m2pfintech
API LibraryCard Order Management

Upload Card Order File

Uploads a card order file in TXT format for processing. The file will be validated, stored, and prepared for card order creation. Use this API before calling the card-order/withFile endpoint. The file is uploaded as multipart form data.

POST
/card-order/uploadFile

Authorization

tenantAuth
tenant<token>

The DCMS tenant name for multi-tenant isolation. Every API call must include this header to identify the client organization.

In: header

Header Parameters

tenant*string

The DCMS client or tenant name for multi-tenant isolation.

Request Body

multipart/form-data

file?string

The card order file in TXT format to upload.

Response Body

application/json

application/json

curl -X POST "https://api.dcms.example.com/v1/card-order/uploadFile" \  -H "tenant: ACME_BANK"
{
  "result": {
    "fileName": "Insta_PGK_Format_With_check_File.txt",
    "status": "success"
  },
  "exception": null,
  "pagination": null
}
{
  "result": null,
  "exception": {
    "errorCode": "ORD002",
    "shortMessage": "File upload failed",
    "detailMessage": "The uploaded file is invalid or has incorrect format",
    "httpStatus": "BAD_REQUEST",
    "fieldError": [
      "Invalid file format"
    ],
    "languageCode": "en"
  },
  "pagination": null
}