Skip to content

Instantly share code, notes, and snippets.

@BDQ
Last active December 26, 2015 05:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BDQ/7101221 to your computer and use it in GitHub Desktop.
Save BDQ/7101221 to your computer and use it in GitHub Desktop.
Shipment confirmation polling.
{
"message_id": "88af1dc5fe53543f1200f517",
"message": "ctl:shipment:confirmation:poll",
"payload": {
"parameters": [
{
"name": "ctl.last_confirmation_shipment",
"value": "H00000000001"
},
{
"name": "ctl.customer_id",
"value": "12345678"
}
]
}
}
{
"message_id": "88af1dc5fe53543f1200f517",
"messages": [
{
"message": "shipment:confirm",
"inflate": true,
"payload": {
"shipment": {
"order_number": "R1234567"
"number": "H00000000002",
"tracking": "ABC123456"
}
}
},
{
"message": "shipment:confirm",
"inflate": true,
"payload": {
"shipment": {
"order_number": "R1234568"
"number": "H00000000004",
"tracking": "ABC455678"
}
}
}
],
"parameters": [
{
"name": "ctl.last_confirmation_shipment",
"value": "H00000000003"
}
]
}
{
"notifications": [
{ "level": "error", "subject": "Failed to find last shipment", "description": "Failed to find last shipment 'H00000000001'" }
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment