Notify Fulfillment

This endpoint allows you to add multiple fulfillments to an order to notify fraud prevention providers. Any fulfillments provided will be appended to the ones that already exist.

POST/payments/{payment_id}/fulfillments

Notify fulfillment status and shipping details for a payment order.

Path Parameters

payment_idstringrequired

The unique identifier of the payment (MAX 64; MIN 36).

Body application/json

status"PARTIAL" | "COMPLETED" | "REPLACEMENT" | "CANCELED"required

The status of the order fulfillment.

fulfillmentsobject[]required

Fulfillments array

Show fulfillments properties
idstringrequired

The unique identifier of the fulfillment (MAX 255; MIN 3)

type"CUSTOM" | "MILITARY" | "ELECTRONIC" | "EXPRESS" | "STANDARD" | "SCHEDULED" | "ECONOMY" | "PRIORITY" | "SAME_DAY" | "NEXT_DAY" | "THIRD_DAY" | "STORE_PICK_UP" | "LOCKER_PICK_UP" | "OTHER"required

The type of the fulfillment

status"PARTIAL" | "COMPLETED" | "REPLACEMENT" | "CANCELED"required

The status of the fulfillment.

descriptionstring

The description of the fulfillment. (MAX 255; MIN 3)

carriersobject[]

Carriers array

Show carriers properties
idstringrequired

The unique identifier of the carrier (MAX 255; MIN 3)

tracking_idstring[]required

Tracking identifiers from the carrier (MAX 255; MIN 3 per item)

tracking_urlstring[]required

Tracking URLs from the carrier (MAX 999; MIN 1 per item)

shipped_atstring<date>

Shipping date (YYYY-MM-DD)

delivered_atstring<date>

Delivery date (YYYY-MM-DD)

carriersnull

Deprecated: use fulfillments[].carriers instead

Response

Accepted

400

Request
curl -X POST "https://api-sandbox.whitelabel.com/v1/payments/<payment_id>/fulfillments" \
  -H "Content-Type: application/json" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>" \
  -d '{
  "status": "PARTIAL",
  "fulfillments": [
    {
      "id": "string",
      "type": "CUSTOM",
      "status": "PARTIAL",
      "description": "string",
      "carriers": [
        {
          "id": "string",
          "tracking_id": [
            "string"
          ],
          "tracking_url": [
            "string"
          ],
          "shipped_at": "2024-01-01",
          "delivered_at": "2024-01-01"
        }
      ]
    }
  ],
  "carriers": null
}'
Response
{}