Skip to main content
POST
/
v1
/
orders
/
{sourceOrderId}
/
fulfillments
Create Fulfillment
curl --request POST \
  --url https://api.production.orderprotection.com/v1/orders/{sourceOrderId}/fulfillments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sourceItemIds": [
    {
      "sourceItemId": "1478",
      "quantity": 1
    },
    {
      "sourceItemId": "1479",
      "quantity": 2
    }
  ],
  "fulfillmentStatus": "Fulfilled",
  "sourceFulfillmentId": "fulfillment-123",
  "trackingCompany": "FedEx",
  "trackingNumber": [
    "AB0303456",
    "CD0303457"
  ],
  "trackingUrl": [
    "https://example-follow-shipment.com/AB0303456",
    "https://example-follow-shipment.com/CD0303457"
  ],
  "createdAt": "2024-03-20T12:00:00Z",
  "updatedAt": "2024-03-20T12:00:00Z"
}
'
{
  "status": "ok"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

sourceOrderId
string
required

Body

application/json
sourceItemIds
object[]
required

Array of order items objects with the sourceItemId and quantity

Example:
[
{ "sourceItemId": "1478", "quantity": 1 },
{ "sourceItemId": "1479", "quantity": 2 }
]
fulfillmentStatus
enum<string>
required

Fulfillment Status

Available options:
DELIVERED,
FULFILLED,
UNFULFILLED,
PARTIALLY_FULFILLED,
AWAITING_SHIPMENT,
SCHEDULED,
ON_HOLD,
ATTEMPTED_DELIVERY,
CARRIER_PICKED_UP,
CONFIRMED,
DELAYED,
FAILURE,
IN_TRANSIT,
LABEL_PRINTED,
LABEL_PURCHASED,
OUT_FOR_DELIVERY,
PICKED_UP,
READY_FOR_PICKUP
Example:

"Fulfilled"

sourceFulfillmentId
string
required

Source Fulfillment ID. This will allow you to update your fulfillment using your internal fulfillment ID

Example:

"fulfillment-123"

trackingCompany
string

Tracking Company

Example:

"FedEx"

trackingNumber
string[]

Array of Tracking Numbers

Example:
["AB0303456", "CD0303457"]
trackingUrl
string[]

Array of Tracking URLs

Example:
[
"https://example-follow-shipment.com/AB0303456",
"https://example-follow-shipment.com/CD0303457"
]
createdAt
string<date-time>

Creation date of the fulfillment. If null, the createdAt date will be created automatically.

Example:

"2024-03-20T12:00:00Z"

updatedAt
string<date-time>

Last update date of the fulfillment. If null, the updatedAt date will be created automatically.

Example:

"2024-03-20T12:00:00Z"

Response

The fulfillment has been successfully created.

status
string
required
Example:

"ok"