Create Shipment
https://api.flxpoint.com/shipmentsUse this when you want to create shipment data through the API.
This page explains the endpoint. To send a live test request, use the interactive tester in Stoplight or your own Postman / HTTP client.
Create a new shipment for a Fulfillment Request / Purchase Order.
A source token or account token may be used.
Request
application/jsonFor the `shipment` data you must provide `trackingNumber` and there must be at least one `shipmentItem`. Within `shipmentItem` a `quantity` must be specified and one out of (`sku`, `sourceVariantId`, `orderItemId`, `purchaseOrderItemId`) must be provided.
purchaseOrderIdintegerdeprecatedpurchaseOrderNumberstringsourceIdintegerallowDuplicateTrackingNumbersbooleanfalseshipmentobjectrequirednotestringtrackingUrlstringtrackingNumberstringrequiredcarrierstringmethodstringshippedAtstring (date-time)shippingCostnumbersuppressedbooleanshipmentItemsarray[CreateShipmentItem]skustringquantityintegerrequiredinventoryVariantIdinteger (int64)orderItemIdintegerpurchaseOrderItemIdintegerrmaItemIdintegercustomFieldsarray[CreateShipmentCustomField]namestringvaluestringcustomFieldsarray[CreateShipmentCustomField]namestringvaluestringfulfillmentRequestIdintegerExample request
/shipmentscurl -X POST "https://api.flxpoint.com/shipments" \
-H "Accept: application/json" \
-H "X-API-TOKEN: YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"purchaseOrderId": 0,
"purchaseOrderNumber": "string",
"sourceId": 0,
"allowDuplicateTrackingNumbers": true,
"shipment": {
"note": "string",
"trackingUrl": "string",
"trackingNumber": "string",
"carrier": "string",
"method": "string",
"shippedAt": "2026-04-20T00:00:00Z",
"shippingCost": 0,
"suppressed": true,
"shipmentItems": [
{
"sku": "string",
"quantity": 0,
"inventoryVariantId": 0,
"orderItemId": 0,
"purchaseOrderItemId": 0,
"rmaItemId": 0,
"customFields": [
null
]
}
],
"customFields": [
{
"name": "string",
"value": "string"
}
]
},
"fulfillmentRequestId": 0
}'{
"purchaseOrderId": 0,
"purchaseOrderNumber": "string",
"sourceId": 0,
"allowDuplicateTrackingNumbers": true,
"shipment": {
"note": "string",
"trackingUrl": "string",
"trackingNumber": "string",
"carrier": "string",
"method": "string",
"shippedAt": "2026-04-20T00:00:00Z",
"shippingCost": 0,
"suppressed": true,
"shipmentItems": [
{
"sku": "string",
"quantity": 0,
"inventoryVariantId": 0,
"orderItemId": 0,
"purchaseOrderItemId": 0,
"rmaItemId": 0,
"customFields": [
null
]
}
],
"customFields": [
{
"name": "string",
"value": "string"
}
]
},
"fulfillmentRequestId": 0
}Responses
201Createdapplication/json
idintegernotestringtrackingUrlstringtrackingNumberstringcarrierstringmethodstringshippedAtstring (date-time)insertedAtstring (date-time)shippingCostnumberorderIdintegerpurchaseOrderIdintegerfulfillmentRequestIdintegerrmaIdintegersourceIdintegeraccountIdintegerpartialbooleansuppressedbooleansyncedToChannelbooleansyncErrorstringcrossDockPurchaseOrderIdintegershipmentItemsarray[ShipmentItem]idintegerskustringquantityintegershipmentIdintegerinventoryVariantIdinteger (int64)partialbooleanorderItemIdintegerpurchaseOrderItemIdintegerfulfillmentRequestItemIdintegercommittedStockReleasedQuantityintegerrmaItemIdintegercustomFieldsarray[ShipmentCustomField]idintegernamestringvaluestringcustomFieldsarray[ShipmentCustomField]idintegernamestringvaluestringupdatedAtstring (date-time)accountingSyncedboolean{
"id": 0,
"note": "string",
"trackingUrl": "string",
"trackingNumber": "string",
"carrier": "string",
"method": "string",
"shippedAt": "2026-04-20T00:00:00Z",
"insertedAt": "2026-04-20T00:00:00Z",
"shippingCost": 0,
"orderId": 0,
"purchaseOrderId": 0,
"fulfillmentRequestId": 0,
"rmaId": 0,
"sourceId": 0,
"accountId": 0,
"partial": true,
"suppressed": true,
"syncedToChannel": true,
"syncError": "string",
"crossDockPurchaseOrderId": 0,
"shipmentItems": [
{
"id": 0,
"sku": "string",
"quantity": 0,
"shipmentId": 0,
"inventoryVariantId": 0,
"partial": true,
"orderItemId": 0,
"purchaseOrderItemId": 0,
"fulfillmentRequestItemId": 0,
"committedStockReleasedQuantity": 0,
"rmaItemId": 0,
"customFields": [
{
"id": null,
"name": null,
"value": null
}
]
}
],
"customFields": [
{
"id": 0,
"name": "string",
"value": "string"
}
],
"updatedAt": "2026-04-20T00:00:00Z",
"accountingSynced": true
}400Bad Request
No schema documented for this status.
401Unauthorized
No schema documented for this status.
404Not Found
No schema documented for this status.
409Conflict
No schema documented for this status.
412Precondition Failed
No schema documented for this status.
OpenAPI fragment
{
"post": {
"summary": "Create Shipment",
"description": "Create a new shipment for a Fulfillment Request / Purchase Order.\n\nA source token or account token may be used.",
"parameters": [],
"requestBody": {
"description": "For the `shipment` data you must provide `trackingNumber` and there must be at least one `shipmentItem`. Within `shipmentItem` a `quantity` must be specified and one out of (`sku`, `sourceVariantId`, `orderItemId`, `purchaseOrderItemId`) must be provided.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateShipmentRequest"
},
"examples": {
"Example 1: Using \"purchaseOrderId\" to identify the PO & \"SKU\" to identify the PO Items (NOTE : the Shipment Item SKU must match the PO Item SKU)": {
"value": {
"purchaseOrderId": 1388412,
"shipment": {
"trackingNumber": "1Z63R094545434534534534534",
"carrier": "ups",
"method": "ups_ground",
"shipmentItems": [
{
"sku": "HG12123123",
"quantity": 1
}
]
}
}
},
"Example 2: Using \"purchaseOrderNumber\" to identify the PO & \"sku\" to identify the items (NOTE : the Shipment Item SKU must match the PO Item SKU)": {
"value": {
"purchaseOrderNumber": "ORDER_123-1",
"shipment": {
"trackingNumber": "1Z63R094545434534534534534",
"carrier": "ups",
"method": "ups_ground",
"shipmentItems": [
{
"sku": "HG12123123",
"quantity": 1
}
]
}
}
},
"Example 3: Using \"purchaseOrderNumber\" to identify the PO & \"purchaseOrderItemId\" to identify the items": {
"value": {
"purchaseOrderNumber": "ORDER_123-1",
"shipment": {
"trackingNumber": "1Z63R094545434534534534534",
"carrier": "ups",
"method": "ups_ground",
"shipmentItems": [
{
"purchaseOrderItemId": 1884921,
"quantity": 1
}
]
}
}
}
}
}
}
},
"responses": {
"201": {
"description": "Created",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Shipment"
}
}
}
},
"400": {
"description": "Bad Request"
},
"401": {
"description": "Unauthorized"
},
"404": {
"description": "Not Found"
},
"409": {
"description": "Conflict"
},
"412": {
"description": "Precondition Failed"
}
}
}
}