POST https://api.ecartapi.com/api/v2/orders/{{orderId}}/fulfillments
Creates an order's fulfillment. Important information:
Body
PARAM
Key | Datatype | Required | Description |
HEADERS
Key | Datatype | Required | Description |
Authorization
|
string | ||
Content-Type
|
string |
RESPONSES
status OK
{
"success": true,
"fulfillment": {
"id": null,
"shippingMethod": {
"id": null,
"service": "Priority Mail"
},
"tracking": {
"number": "abcd",
"url": "https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=abcd",
"company": "USPS"
},
"status": {
"id": null,
"status": null,
"shipment": null
},
"items": [
{
"id": null,
"variantId": "d624eac3-e0fc-4f83-9a7c-dc13e1c5508a",
"productId": "5f7df98d5fab760001063cd1",
"quantity": "1",
"ecartapiUrl": "localhost:3000/api/v2/products/5f7df98d5fab760001063cd1"
}
],
"packages": [],
"dates": {
"createdAt": "2017-01-28T22:19:26.980Z",
"updatedAt": null
}
}
} |
ENDPOINTS