Create Shipment Exception
Create a Shipment Exception for a Shipment
Clients can create shipment exceptions of a single type currently:
requested_hold_to_collectA shipment must have a
pendingorconfirmedstatus to create arequested_hold_to_collectshipment exception.hold_untildate cannot be greater than 30 days from the associated shipment'screated_attimestamp.
POST
/shipment_exceptions
curl \
--request POST 'https://api.arta.io/shipment_exceptions' \
--header "Content-Type: application/json" \
--header "Authorization: ARTA_APIKey s0e1t2e3c4a5s6t7r8o9n10o11m12y" \
--data '{"shipment_exception":{"type":"requested_hold_to_collect","hold_until":"2023-08-15","shipment_id":"5baff45a-281d-416e-9310-a4a7c637952e"}}'
Request examples
# Headers
Authorization: ARTA_APIKey s0e1t2e3c4a5s6t7r8o9n10o11m12y
# Payload
{
"shipment_exception": {
"type": "requested_hold_to_collect",
"hold_until": "2023-08-15",
"shipment_id": "5baff45a-281d-416e-9310-a4a7c637952e"
}
}
Response examples (201)
# Headers
content-type: application/json
x-arta-request-id: FkBjuxbwLLTx4RoAARkx
# Payload
{
"id": "d686ad3b-33fd-454c-a7aa-94b1ecbc539f",
"type": "held_at_customs",
"source": "api",
"status": "new",
"created_at": "2023-05-26T19:33:19.693833",
"hold_until": null,
"package_id": 4366794,
"resolution": null,
"updated_at": "2023-05-26T19:33:19.693833",
"shipment_id": "a5cbb58c-43ab-4658-9999-98a33b0070d5",
"exception_type_label": null
}