{"_id":"5c097a0265263a0216070bc4","user":"5436a1afb7cf0e1c0020d9ca","githubsync":"","version":{"_id":"5c097a0265263a0216070bd2","__v":0,"forked_from":"54cc2148380ecd0d00ca18aa","project":"5436a1e1d0ffee0e00f18f8c","createdAt":"2015-01-31T00:26:48.753Z","releaseDate":"2015-01-31T00:26:48.753Z","categories":["5c097a0265263a0216070b98","5c097a0265263a0216070b99","5c097a0265263a0216070b9a","5c097a0265263a0216070b9b","5c097a0265263a0216070b9c","5c097a0265263a0216070b9d","5c097a0265263a0216070b9e","5c097a0265263a0216070b9f","5c097a0265263a0216070ba0","5c097a0265263a0216070ba1"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.2.0","version":"1.2"},"project":"5436a1e1d0ffee0e00f18f8c","parentDoc":null,"__v":3,"category":{"_id":"5c097a0265263a0216070b99","pages":["5c097a0265263a0216070bb2","5c097a0265263a0216070bb3","5c097a0265263a0216070bb4","5c097a0265263a0216070bb5","5c097a0265263a0216070bb6","5c097a0265263a0216070bb7","5c097a0265263a0216070bc4","5c097a0265263a0216070bc7","5c097a0265263a0216070bcd","5c097a0265263a0216070bce"],"project":"5436a1e1d0ffee0e00f18f8c","version":"5c097a0265263a0216070bd2","__v":5,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-09T15:31:21.989Z","from_sync":false,"order":1,"slug":"customer-api","title":"Customer API"},"updates":["579258f2310cb22200f6e18c"],"next":{"pages":[],"description":""},"createdAt":"2015-01-31T00:46:57.967Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":11,"body":"ShippingEasy can send a webhook callback to your application when an order that was added to ShippingEasy via the ShippingEasy API is shipped\n\nThe URL for the callback is configured on your ShippingEasy API store settings page.\n\nThe callback will be an HTTP POST from the ShippingEasy server. It will always include an `api_signature` querystring, and JSON formatted body.\n\nThe endpoint you provide for shipment notifications must not require authentication.\n\nAn example callback payload:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{  \\n  \\\"shipment\\\":{  \\n    \\\"id\\\":58,\\n    \\\"tracking_number\\\":\\\"794675663409\\\",\\n    \\\"carrier_key\\\":\\\"FEDEX\\\",\\n    \\\"carrier_service_key\\\":\\\"FEDEX_GROUND\\\",\\n    \\\"shipment_cost\\\":2009,\\n    \\\"weight_in_ounces\\\":\\\"12.0\\\",\\n    \\\"ship_date\\\": \\\"2018-02-12\\\",\\n    \\\"workflow_state\\\": \\\"label_ready\\\",\\n    \\\"cloned_from_shipment_id\\\": null,\\n    \\\"weight_in_ounces\\\": \\\"4.0\\\",\\n    \\\"length_in_inches\\\": \\\"3.0\\\",\\n    \\\"width_in_inches\\\": \\\"2.0\\\",\\n    \\\"height_in_inches\\\": \\\"1.0\\\",\\n    \\\"additional_packages\\\": [\\n      {\\n        \\\"description\\\": \\\"second box\\\",\\n        \\\"tracking_number\\\": \\\"794675663410\\\",\\n        \\\"weight_in_ounces\\\": \\\"16.0\\\",\\n        \\\"length_in_inches\\\": \\\"3.0\\\",\\n        \\\"width_in_inches\\\": \\\"3.0\\\",\\n        \\\"height_in_inches\\\": \\\"3.0\\\"\\n      }\\n    ],\\n    \\\"orders\\\":[  \\n      {  \\n        \\\"id\\\":119,\\n        \\\"external_order_identifier\\\":\\\"ABC-635574609661580899\\\",\\n        \\\"ordered_at\\\":\\\"2015-01-22T00:16:06Z\\\",\\n        \\\"order_status\\\":\\\"shipped\\\",\\n        \\\"parent_order_id\\\":null,\\n        \\\"source_order_ids\\\":null,\\n        \\\"total_including_tax\\\":\\\"0.00\\\",\\n        \\\"total_excluding_tax\\\":\\\"0.00\\\",\\n        \\\"discount_amount\\\":\\\"0.00\\\",\\n        \\\"coupon_discount\\\":\\\"0.00\\\",\\n        \\\"subtotal_including_tax\\\":\\\"0.00\\\",\\n        \\\"subtotal_excluding_tax\\\":\\\"0.00\\\",\\n        \\\"subtotal_tax\\\":\\\"0.00\\\",\\n        \\\"total_tax\\\":\\\"0.00\\\",\\n        \\\"base_shipping_cost\\\":\\\"0.00\\\",\\n        \\\"shipping_cost_including_tax\\\":\\\"0.00\\\",\\n        \\\"shipping_cost_excluding_tax\\\":\\\"0.00\\\",\\n        \\\"shipping_cost_tax\\\":\\\"0.00\\\",\\n        \\\"base_handling_cost\\\":\\\"0.00\\\",\\n        \\\"handling_cost_excluding_tax\\\":\\\"0.00\\\",\\n        \\\"handling_cost_including_tax\\\":\\\"0.00\\\",\\n        \\\"handling_cost_tax\\\":\\\"0.00\\\",\\n        \\\"base_wrapping_cost\\\":\\\"0.00\\\",\\n        \\\"wrapping_cost_excluding_tax\\\":\\\"0.00\\\",\\n        \\\"wrapping_cost_including_tax\\\":\\\"0.00\\\",\\n        \\\"wrapping_cost_tax\\\":\\\"0.00\\\",\\n        \\\"billing_company\\\":null,\\n        \\\"billing_first_name\\\":null,\\n        \\\"billing_last_name\\\":null,\\n        \\\"billing_address\\\":null,\\n        \\\"billing_address2\\\":null,\\n        \\\"billing_city\\\":null,\\n        \\\"billing_state\\\":null,\\n        \\\"billing_country\\\":null,\\n        \\\"billing_postal_code\\\":null,\\n        \\\"billing_phone_number\\\":null,\\n        \\\"billing_email\\\":null,\\n        \\\"recipients\\\":[  \\n          {  \\n            \\\"company\\\":null,\\n            \\\"first_name\\\":\\\"Jack\\\",\\n            \\\"last_name\\\":\\\"Ship\\\",\\n            \\\"address\\\":\\\"123 Main St\\\",\\n            \\\"address2\\\":\\\"Suite # 2\\\",\\n            \\\"address3\\\":null,\\n            \\\"city\\\": \\\"Somewhere\\\",\\n            \\\"residential\\\":null,\\n            \\\"state\\\": \\\"TX\\\",\\n            \\\"province\\\":null,\\n            \\\"country\\\":\\\"United States\\\",\\n            \\\"postal_code\\\":null,\\n            \\\"postal_code_plus_4\\\":null,\\n            \\\"phone_number\\\":null,\\n            \\\"email\\\":null,\\n            \\\"base_cost\\\":\\\"0.00\\\",\\n            \\\"cost_excluding_tax\\\":\\\"0.00\\\",\\n            \\\"cost_including_tax\\\":\\\"0.00\\\",\\n            \\\"cost_tax\\\":\\\"0.00\\\",\\n            \\\"base_handling_cost\\\":\\\"0.00\\\",\\n            \\\"handling_cost_excluding_tax\\\":\\\"0.00\\\",\\n            \\\"handling_cost_including_tax\\\":\\\"0.00\\\",\\n            \\\"handling_cost_tax\\\":\\\"0.00\\\",\\n            \\\"shipping_zone_id\\\":null,\\n            \\\"shipping_zone_name\\\":null,\\n            \\\"items_total\\\":0,\\n            \\\"shipping_method\\\":null,\\n            \\\"items_shipped\\\":0,\\n            \\\"ext_shipping_detail_id\\\":null,\\n            \\\"line_items\\\":[  \\n              {  \\n                \\\"item_name\\\":\\\"Sprocket\\\",\\n                \\\"sku\\\":null,\\n                \\\"bin_picking_number\\\":null,\\n                \\\"weight_in_ounces\\\":\\\"0.0\\\",\\n                \\\"quantity\\\":7,\\n                \\\"total_excluding_tax\\\":\\\"0.00\\\",\\n                \\\"price_excluding_tax\\\":\\\"0.00\\\",\\n                \\\"unit_price\\\":\\\"0.00\\\",\\n                \\\"ext_line_item_id\\\":null,\\n                \\\"ext_product_id\\\":null,\\n                \\\"product_options\\\":null,\\n                \\\"uuid\\\":null,\\n                \\\"order_source_id\\\":null\\n              }\\n            ]\\n          }\\n        ],\\n        \\\"store_api_key\\\":\\\"c71dc6da574eea04e2c926906bcb4eec\\\",\\n        \\\"shipments\\\":[  \\n          {  \\n            \\\"id\\\":58,\\n            \\\"tracking_number\\\":\\\"794675663409\\\",\\n            \\\"carrier_key\\\":\\\"FEDEX\\\",\\n            \\\"carrier_service_key\\\":\\\"FEDEX_GROUND\\\",\\n            \\\"shipment_cost\\\":2009,\\n            \\\"ship_date\\\":\\\"2015-01-29\\\",\\n            \\\"workflow_state\\\": \\\"label_ready\\\",\\n            \\\"cloned_from_shipment_id\\\": null,\\n            \\\"weight_in_ounces\\\": \\\"4.0\\\",\\n            \\\"length_in_inches\\\": \\\"3.0\\\",\\n            \\\"width_in_inches\\\": \\\"2.0\\\",\\n            \\\"height_in_inches\\\": \\\"1.0\\\",\\n            \\\"additional_packages\\\": [\\n              {\\n                \\\"description\\\": \\\"second box\\\",\\n                \\\"tracking_number\\\": \\\"794675663410\\\",\\n                \\\"weight_in_ounces\\\": \\\"16.0\\\",\\n                \\\"length_in_inches\\\": \\\"3.0\\\",\\n                \\\"width_in_inches\\\": \\\"3.0\\\",\\n                \\\"height_in_inches\\\": \\\"3.0\\\"\\n              }\\n            ]\\n          }\\n        ],\\n        \\\"updated_at\\\":\\\"2015-01-29T18:50:35Z\\\",\\n        \\\"notes\\\": \\\"Please use extra packaging\\\"\\n      }\\n    ]\\n  }\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Shipment notification payload\"\n    }\n  ]\n}\n[/block]\nThe supported values for `workflow_state` are:\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Value\",\n    \"h-1\": \"Meaning\",\n    \"0-0\": \"label_ready\",\n    \"0-1\": \"The shipment label has been purchased, but not yet printed.\",\n    \"1-0\": \"label_printed\",\n    \"1-1\": \"The shipment label has been both purchased and printed.\",\n    \"2-0\": \"cancelled\",\n    \"2-1\": \"The shipment label has been cancelled.\",\n    \"3-0\": \"drop_shipped\",\n    \"3-1\": \"No shipping label was created in ShippingEasy - instead, the order was marked as shipped.\",\n    \"4-0\": \"label_pending\",\n    \"4-1\": \"The shipment label has not yet been purchased.\"\n  },\n  \"cols\": 2,\n  \"rows\": 5\n}\n[/block]","excerpt":"","slug":"shipment-notification-callback","type":"basic","title":"Shipment notification callback"}

Shipment notification callback


ShippingEasy can send a webhook callback to your application when an order that was added to ShippingEasy via the ShippingEasy API is shipped The URL for the callback is configured on your ShippingEasy API store settings page. The callback will be an HTTP POST from the ShippingEasy server. It will always include an `api_signature` querystring, and JSON formatted body. The endpoint you provide for shipment notifications must not require authentication. An example callback payload: [block:code] { "codes": [ { "code": "{ \n \"shipment\":{ \n \"id\":58,\n \"tracking_number\":\"794675663409\",\n \"carrier_key\":\"FEDEX\",\n \"carrier_service_key\":\"FEDEX_GROUND\",\n \"shipment_cost\":2009,\n \"weight_in_ounces\":\"12.0\",\n \"ship_date\": \"2018-02-12\",\n \"workflow_state\": \"label_ready\",\n \"cloned_from_shipment_id\": null,\n \"weight_in_ounces\": \"4.0\",\n \"length_in_inches\": \"3.0\",\n \"width_in_inches\": \"2.0\",\n \"height_in_inches\": \"1.0\",\n \"additional_packages\": [\n {\n \"description\": \"second box\",\n \"tracking_number\": \"794675663410\",\n \"weight_in_ounces\": \"16.0\",\n \"length_in_inches\": \"3.0\",\n \"width_in_inches\": \"3.0\",\n \"height_in_inches\": \"3.0\"\n }\n ],\n \"orders\":[ \n { \n \"id\":119,\n \"external_order_identifier\":\"ABC-635574609661580899\",\n \"ordered_at\":\"2015-01-22T00:16:06Z\",\n \"order_status\":\"shipped\",\n \"parent_order_id\":null,\n \"source_order_ids\":null,\n \"total_including_tax\":\"0.00\",\n \"total_excluding_tax\":\"0.00\",\n \"discount_amount\":\"0.00\",\n \"coupon_discount\":\"0.00\",\n \"subtotal_including_tax\":\"0.00\",\n \"subtotal_excluding_tax\":\"0.00\",\n \"subtotal_tax\":\"0.00\",\n \"total_tax\":\"0.00\",\n \"base_shipping_cost\":\"0.00\",\n \"shipping_cost_including_tax\":\"0.00\",\n \"shipping_cost_excluding_tax\":\"0.00\",\n \"shipping_cost_tax\":\"0.00\",\n \"base_handling_cost\":\"0.00\",\n \"handling_cost_excluding_tax\":\"0.00\",\n \"handling_cost_including_tax\":\"0.00\",\n \"handling_cost_tax\":\"0.00\",\n \"base_wrapping_cost\":\"0.00\",\n \"wrapping_cost_excluding_tax\":\"0.00\",\n \"wrapping_cost_including_tax\":\"0.00\",\n \"wrapping_cost_tax\":\"0.00\",\n \"billing_company\":null,\n \"billing_first_name\":null,\n \"billing_last_name\":null,\n \"billing_address\":null,\n \"billing_address2\":null,\n \"billing_city\":null,\n \"billing_state\":null,\n \"billing_country\":null,\n \"billing_postal_code\":null,\n \"billing_phone_number\":null,\n \"billing_email\":null,\n \"recipients\":[ \n { \n \"company\":null,\n \"first_name\":\"Jack\",\n \"last_name\":\"Ship\",\n \"address\":\"123 Main St\",\n \"address2\":\"Suite # 2\",\n \"address3\":null,\n \"city\": \"Somewhere\",\n \"residential\":null,\n \"state\": \"TX\",\n \"province\":null,\n \"country\":\"United States\",\n \"postal_code\":null,\n \"postal_code_plus_4\":null,\n \"phone_number\":null,\n \"email\":null,\n \"base_cost\":\"0.00\",\n \"cost_excluding_tax\":\"0.00\",\n \"cost_including_tax\":\"0.00\",\n \"cost_tax\":\"0.00\",\n \"base_handling_cost\":\"0.00\",\n \"handling_cost_excluding_tax\":\"0.00\",\n \"handling_cost_including_tax\":\"0.00\",\n \"handling_cost_tax\":\"0.00\",\n \"shipping_zone_id\":null,\n \"shipping_zone_name\":null,\n \"items_total\":0,\n \"shipping_method\":null,\n \"items_shipped\":0,\n \"ext_shipping_detail_id\":null,\n \"line_items\":[ \n { \n \"item_name\":\"Sprocket\",\n \"sku\":null,\n \"bin_picking_number\":null,\n \"weight_in_ounces\":\"0.0\",\n \"quantity\":7,\n \"total_excluding_tax\":\"0.00\",\n \"price_excluding_tax\":\"0.00\",\n \"unit_price\":\"0.00\",\n \"ext_line_item_id\":null,\n \"ext_product_id\":null,\n \"product_options\":null,\n \"uuid\":null,\n \"order_source_id\":null\n }\n ]\n }\n ],\n \"store_api_key\":\"c71dc6da574eea04e2c926906bcb4eec\",\n \"shipments\":[ \n { \n \"id\":58,\n \"tracking_number\":\"794675663409\",\n \"carrier_key\":\"FEDEX\",\n \"carrier_service_key\":\"FEDEX_GROUND\",\n \"shipment_cost\":2009,\n \"ship_date\":\"2015-01-29\",\n \"workflow_state\": \"label_ready\",\n \"cloned_from_shipment_id\": null,\n \"weight_in_ounces\": \"4.0\",\n \"length_in_inches\": \"3.0\",\n \"width_in_inches\": \"2.0\",\n \"height_in_inches\": \"1.0\",\n \"additional_packages\": [\n {\n \"description\": \"second box\",\n \"tracking_number\": \"794675663410\",\n \"weight_in_ounces\": \"16.0\",\n \"length_in_inches\": \"3.0\",\n \"width_in_inches\": \"3.0\",\n \"height_in_inches\": \"3.0\"\n }\n ]\n }\n ],\n \"updated_at\":\"2015-01-29T18:50:35Z\",\n \"notes\": \"Please use extra packaging\"\n }\n ]\n }\n}", "language": "json", "name": "Shipment notification payload" } ] } [/block] The supported values for `workflow_state` are: [block:parameters] { "data": { "h-0": "Value", "h-1": "Meaning", "0-0": "label_ready", "0-1": "The shipment label has been purchased, but not yet printed.", "1-0": "label_printed", "1-1": "The shipment label has been both purchased and printed.", "2-0": "cancelled", "2-1": "The shipment label has been cancelled.", "3-0": "drop_shipped", "3-1": "No shipping label was created in ShippingEasy - instead, the order was marked as shipped.", "4-0": "label_pending", "4-1": "The shipment label has not yet been purchased." }, "cols": 2, "rows": 5 } [/block]