Splits selected line items from a fulfillment order into a new fulfillment order.
Only items in pending status (open or allocated) can be split:
open - Can be splitallocated - Can be splitfulfilled - Cannot be splitcancelled - Cannot be splitclosed - Cannot be splitSpecify:
line_items (required): Items and quantities to move to the new FOlocation_id (optional): New location for the split items (defaults to original FO's location)partner_fulfillment_order_reference (optional): Your reference for the new FOAfter splitting:
fulfillment_order_iddelivery and carriyo_metadata from the originalallocated if location is set, otherwise openNo direct inventory changes occur during split - items are simply reorganized.
Fulfillment order split successfully.
Cannot split fulfillment order.
Order or fulfillment order not found.
{- "line_items": [
- {
- "line_item_id": "string",
- "quantity": 0
}
], - "partner_fulfillment_order_reference": "string",
- "location_id": "string"
}{- "tenant": "string",
- "order_id": "string",
- "merchant": "string",
- "partner_order_reference": "string",
- "language": "string",
- "order_date": "2019-08-24T14:15:22Z",
- "sales_channel": "string",
- "creation_source": {
- "source": "string",
- "user_id": "string",
- "ip_address": "string"
}, - "update_source": {
- "source": "string",
- "user_id": "string",
- "ip_address": "string"
}, - "carriyo_metadata": [
- {
- "key": "string",
- "value": "string"
}
], - "status": "open",
- "auto_allocation_failed": true,
- "cancellation_reason": "CUSTOMER_CANCELLATION",
- "shipping_address": {
- "name": "string",
- "company": "string",
- "email": "user@example.com",
- "phone": "string",
- "alternate_phone": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "state": "string",
- "postcode": "string",
- "country": "string",
- "coords": "string",
- "what3words": "string"
}, - "billing_address": {
- "name": "string",
- "company": "string",
- "email": "user@example.com",
- "phone": "string",
- "alternate_phone": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "state": "string",
- "postcode": "string",
- "country": "string",
- "coords": "string",
- "what3words": "string"
}, - "customer": {
- "name": "string",
- "company": "string",
- "email": "user@example.com",
- "phone": "string",
- "alternate_phone": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "state": "string",
- "postcode": "string",
- "country": "string",
- "coords": "string",
- "what3words": "string"
}, - "payment": {
- "payment_mode": "prepaid",
- "pending_amount": 0,
- "currency": "string"
}, - "redacted": true,
- "taxes_included": true,
- "duties_included": true,
- "discount_applications": [
- {
- "code": "string",
- "type": "string",
- "value": 0,
- "description": "string"
}
], - "line_items": [
- {
- "line_item_id": "string",
- "sku": "string",
- "product_id": "string",
- "name": "string",
- "description": "string",
- "quantity": 0,
- "price": 0,
- "currency": "string",
- "weight": 0,
- "weight_unit": "kg",
- "image_url": "string",
- "properties": {
- "property1": "string",
- "property2": "string"
}
}
], - "fulfillment_orders": [
- {
- "fulfillment_order_id": "string",
- "partner_fulfillment_order_reference": "string",
- "location_id": "string",
- "delivery": {
- "delivery_type": "string",
- "time_slot": {
- "date": "2019-08-24",
- "from": "string",
- "to": "string"
}, - "instructions": "string"
}, - "line_items": [
- {
- "line_item_id": "string",
- "quantity": 0,
- "status": "open",
- "fulfillment_id": "string",
- "shipment_ids": [
- "string"
]
}
], - "carriyo_metadata": [
- {
- "key": "string",
- "value": "string"
}
]
}
], - "shipping_lines": [
- {
- "code": "string",
- "title": "string",
- "price": 0,
- "currency": "string"
}
], - "error_details": [
- {
- "code": "string",
- "message": "string",
- "field": "string"
}
], - "creation_date": "2019-08-24T14:15:22Z",
- "update_date": "2019-08-24T14:15:22Z"
}