m2pfintech
API LibraryInventory Management

Update Delivery Status

Updates the delivery status for one or more card kits. Accepts a list of delivery status groups, each containing a delivery status value and a list of kit numbers to update. Returns individual success or failure results for each kit number. Common delivery statuses include DELIVERED, BANK, IN_TRANSIT, and RETURNED.

POST
/inventory/update/deliveryStatus

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

application/json

Response Body

application/json

curl -X POST "https://api.dcms.example.com/v1/inventory/update/deliveryStatus" \  -H "tenant: ACME_BANK" \  -H "Content-Type: application/json" \  -d '[    {      "deliveryStatus": "DELIVERED",      "kitNo": [        "10012192",        "10000843"      ]    },    {      "deliveryStatus": "BANK",      "kitNo": [        "234"      ]    }  ]'
{
  "result": [
    {
      "kitNo": "10012192",
      "result": true,
      "status": "200"
    },
    {
      "kitNo": "10000843",
      "result": true,
      "status": "200"
    },
    {
      "kitNo": "234",
      "status": "500",
      "exception": {
        "errorCode": "MCC007",
        "shortMessage": "valid kit not found",
        "detailMessage": "valid kit not found",
        "httpStatus": "BAD_REQUEST",
        "fieldError": [
          "Invalid Kit No"
        ],
        "cause": null,
        "languageCode": "en",
        "localizedMessage": null,
        "message": null,
        "suppressed": []
      }
    }
  ],
  "exception": null,
  "pagination": null
}