# 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`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Notify fulfillment status and shipping details for a payment order.

## Authorization

- public-api-key (apiKey in header)
- private-secret-key (apiKey in header)

## Path parameters

- `payment_id` (string, required)
  The unique identifier of the payment (MAX 64; MIN 36).

## Body

Content type: `application/json`

- `status` ("PARTIAL" | "COMPLETED" | "REPLACEMENT" | "CANCELED", required)
  The status of the order fulfillment.
- `fulfillments` (object[], required)
  Fulfillments array
  - `id` (string, required)
    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.
  - `description` (string)
    The description of the fulfillment.  (MAX 255; MIN 3)
  - `carriers` (object[])
    Carriers array
    - `id` (string, required)
      The unique identifier of the carrier (MAX 255; MIN 3)
    - `tracking_id` (string[], required)
      Tracking identifiers from the carrier (MAX 255; MIN 3 per item)
    - `tracking_url` (string[], required)
      Tracking URLs from the carrier (MAX 999; MIN 1 per item)
    - `shipped_at` (string<date>)
      Shipping date (YYYY-MM-DD)
    - `delivered_at` (string<date>)
      Delivery date (YYYY-MM-DD)
- `carriers` (null)
  Deprecated: use `fulfillments[].carriers` instead

Example:

```json
{
  "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
}
```

## Responses

### 202

Accepted

Example:

```json
{}
```

### 400

400

Example:

```json
{}
```