{"info":{"_postman_id":"8180bc9d-d995-413d-8d62-dda8b6c26630","name":"LAFASTA API v4","description":"<html><head></head><body><img src=\"https://lafasta.sa.com/wp-content/uploads/2021/04/cropped-1.png\">\n\n<p>Lafasta offers developers a wide range of RESTful APIs. For new development, Lafasta strongly encourages the use of our RESTful APIs. A key benefit of REST is that it uses less bandwidth and supports<br>multiple formats including plain text, XML, HTML, and JSON.</p>\n<p>This is Lafasta API v4. This API is for everyone and for the merchants who wants to ship from multiple or unlimited shipping locations and pickup points.</p>\n<h1 id=\"notes\">Notes:</h1>\n<p>* New endpoint will be added here soon.<br>* For API authentication please follow the same process in API v3 <a href=\"https://c.lafasta.sa.com/Store/API/Index\">here</a><br>* For API v4 lookups (keys and City, Orders status Lists), download them from <a href=\"https://c.lafasta.sa.com/Store/API/DownloadAPILookupsExcel\">here</a> (Note that this file is dynamically generated so the data inside is always up to date)</p>\n<h1 id=\"request-response-exmaples\">Request-Response Exmaples:</h1>\n<p>Click the name of the '<strong>Example Request</strong>' (SUCCESS) to expand the reset of request/response examples and get an empty request body template.</p>\n<h1 id=\"action-header\">Action Header</h1>\n<p>This API offers two actions, the action can be selected by setting the request header '<strong>lafasta-shipping-action</strong>'. Please check the example named '<strong>CALCULATE SHIPPING COST - SUCCESS</strong>' for better understanding.</p>\n<p>'<strong>lafasta-shipping-action</strong>' header's value list:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Header value</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>CreateShipment</td>\n<td>This is the deaullt value and can be ignored.</td>\n</tr>\n<tr>\n<td>CalcShippingCost</td>\n<td>This is used to return the shipping cost instead of creating a shipment.</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"base-url\">Base URL</h1>\n<p><code>https://c.lafasta.sa.com</code></p>\n<h1 id=\"credentials-for-testing\">Credentials For Testing</h1>\n<p><code>Username: test_account_9 Password: 123456789#</code></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Notes:","slug":"notes"},{"content":"Request-Response Exmaples:","slug":"request-response-exmaples"},{"content":"Action Header","slug":"action-header"},{"content":"Base URL","slug":"base-url"},{"content":"Credentials For Testing","slug":"credentials-for-testing"}],"owner":"8565848","collectionId":"8180bc9d-d995-413d-8d62-dda8b6c26630","publishedId":"2s83tGkVto","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-10-02T10:43:39.000Z"},"item":[{"name":"Shipping API","id":"7e18f086-6e14-48d4-9621-0ccf7a8e7058","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{accesstoken}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"APICallerId\": \"{{apicallerid}}\",\r\n    \"Reference1\": \"\",\r\n    \"Notes\": null,\r\n    \"Shipper\": {\r\n        \"Address\": {\r\n            \"Line1\": \"RIZA4018, 4018 Sadir, 7036، حي الزهرة، Riyadh 12987, Saudi Arabia\",\r\n            \"Line2\": null,\r\n            \"Line3\": null,\r\n            \"City\": \"الرياض\",\r\n            \"Country\": \"SA\",\r\n            \"Longitude\": null,\r\n            \"Latitude\": null\r\n        },\r\n        \"Contact\": {\r\n            \"Name\": \"Ola - اولا  by Cloud Shelf\",\r\n            \"NationalId\": null,\r\n            \"PhoneNumber\": \"0555380300⁩\",\r\n            \"CompanyName\": \"Ola - اولا \",\r\n            \"CompanyPhoneNumber\": \"0555380300⁩\"\r\n        }\r\n    },\r\n    \"Consignee\": {\r\n        \"Address\": {\r\n            \"Line1\": \"مجمع الرائدة السكني-ابحر الجنوبية-جدة-\",\r\n            \"Line2\": null,\r\n            \"Line3\": null,\r\n            \"City\": \"جدة\",\r\n            \"Country\": \"SA\",\r\n            \"Longitude\": null,\r\n            \"Latitude\": null\r\n        },\r\n        \"Contact\": {\r\n            \"Name\": \"lolo alamri\",\r\n            \"NationalId\": null,\r\n            \"PhoneNumber\": \"966542855550\",\r\n            \"CompanyName\": null,\r\n            \"CompanyPhoneNumber\": null\r\n        }\r\n    },\r\n    \"Details\": {\r\n        \"ProductType\": \"PRODUCT\",\r\n        \"COD\": null,\r\n        \"ProductValue\": {\r\n            \"Currency\": \"SAR\",\r\n            \"Value\": 170.00\r\n        },\r\n        \"AdditionalServices\": null\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseurl}}/API/V4/Shipment","description":"<p>Used to create shipping or fulfillment requests and returns an AWB label.</p>\n<p><strong>Request body data model description</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Validation</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Reference1</td>\n<td>string</td>\n<td>Optional  <br />Max Length 50</td>\n<td>Request reference in merchant's system. This must be unique for every shipping request.</td>\n</tr>\n<tr>\n<td>Notes</td>\n<td>string</td>\n<td>Optional  <br />Max Length 50</td>\n<td>Notes for the carrier, this will be printed in the notes section of the AWB label.</td>\n</tr>\n<tr>\n<td>Shipper</td>\n<td>Party</td>\n<td>Required</td>\n<td>An object of type 'Party' contains the shipper address and contact details.</td>\n</tr>\n<tr>\n<td>Details</td>\n<td>Details</td>\n<td>Required</td>\n<td>An object of type 'Details' contains more details about your shipment.</td>\n</tr>\n<tr>\n<td>Consignee</td>\n<td>Party</td>\n<td>Required</td>\n<td>An object of type 'Party' contains the consignee address and contact details.</td>\n</tr>\n<tr>\n<td>Products</td>\n<td>Product</td>\n<td>-Optional  <br />-Inventory service must be enabled for your account  <br />-All products (SKUs) must be listed on your account, approved by Lafasta Administration, has sufficient stock.</td>\n<td>An object of type 'Product' contains a list of products that are to be shipped from your inventory stored in Lafasta warehouse</td>\n</tr>\n<tr>\n<td>APICallerId</td>\n<td>string</td>\n<td>Required</td>\n<td>In order to use this API you must contact Lafasta and ask for your unique caller ID. This is used to make a connection for all or your shipping requests among all the accounts that belong to your company</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>'Party' data type</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Validation</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Address</td>\n<td>Address</td>\n<td>Required</td>\n<td>Contains shipper/consignee address</td>\n</tr>\n<tr>\n<td>Contact</td>\n<td>Contact</td>\n<td>Required</td>\n<td>Contains shipper/consignee contact information</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>'Address' data type</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Validation</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Line1</td>\n<td>string</td>\n<td>Required  <br />Max Length 100</td>\n<td>Address description</td>\n</tr>\n<tr>\n<td>Line2</td>\n<td>string</td>\n<td>Max Length 100</td>\n<td>Address description</td>\n</tr>\n<tr>\n<td>Line3</td>\n<td>string</td>\n<td>Max Length 100</td>\n<td>Address description</td>\n</tr>\n<tr>\n<td>City</td>\n<td>string</td>\n<td>Required  <br />Max Length 50  <br />A lookup from 'City' sheet <a href=\"https://c.lafasta.sa.com/Store/API/DownloadAPILookupsExcel\">here</a>  <br />Must match City Id or Arabic or English Name  <br /></td>\n<td>City Name or Id</td>\n</tr>\n<tr>\n<td>Country</td>\n<td>string</td>\n<td>Required  <br />Max Length 50  <br />A lookup from 'Country' sheet <a href=\"https://c.lafasta.sa.com/Store/API/DownloadAPILookupsExcel\">here</a>  <br />Must match County Id or Arabic or English Name or Alpha code  <br /></td>\n<td>County Id or Name or Code</td>\n</tr>\n<tr>\n<td>Longitude</td>\n<td>string</td>\n<td>Optional  <br />Max Length 50  <br />Regular Expression (only numbers a dot are allowed)</td>\n<td>Latitude and Longitude that represent the coordinates at geographic coordinate system (ex: Google maps)</td>\n</tr>\n<tr>\n<td>Latitude</td>\n<td>string</td>\n<td>Optional  <br />Max Length 50  <br />Regular Expression (only numbers and a dot are allowed)</td>\n<td>Latitude and Longitude that represent the coordinates at geographic coordinate system (ex: Google maps)</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>'Contact' data type</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Validation</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Name</td>\n<td>string</td>\n<td>Required  <br />Max Length 50  <br /></td>\n<td>Shipper/consignee full name</td>\n</tr>\n<tr>\n<td>NationalId</td>\n<td>string</td>\n<td>Required when the shipper is an individual (not a company)  <br />Regular Expression (only numbers are allowed)  <br />Length must be 10 digits</td>\n<td>Shipper/consignee national Id number  <br /></td>\n</tr>\n<tr>\n<td>PhoneNumber</td>\n<td>string</td>\n<td>Required  <br />Max Length 50  <br />Regular Expression (only numbers are allowed)</td>\n<td>Shipper/consignee phone number</td>\n</tr>\n<tr>\n<td>CompanyName</td>\n<td>string</td>\n<td>Optional</td>\n<td>When provided, the company name will be shown on AWB label and the person name (Name) will be hidden</td>\n</tr>\n<tr>\n<td>CompanyPhoneNumber</td>\n<td>string</td>\n<td>Optional  <br />Max Length 50  <br />Regular Expression (only numbers are allowed)</td>\n<td>When provided, the company phone number will be shown on AWB label and the personal number (PhoneNumber) will be hidden</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>'Details' data type</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Validation</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>ProductType</td>\n<td>string</td>\n<td>Required  <br />Max Length 50  <br />A lookup from 'ProductType' sheet <a href=\"https://c.lafasta.sa.com/Store/API/DownloadAPILookupsExcel\">here</a></td>\n<td>Shipment contents type</td>\n</tr>\n<tr>\n<td>COD</td>\n<td>Money</td>\n<td>Optional</td>\n<td>Cash on delivery amount to be collected from consignee</td>\n</tr>\n<tr>\n<td>ProductValue</td>\n<td>Money</td>\n<td>Optional</td>\n<td>Shipment contents value</td>\n</tr>\n<tr>\n<td>AdditionalServices</td>\n<td>Array of string</td>\n<td>Optional</td>\n<td>Additional services, A lookup from 'AdditionalServices' sheet <a href=\"https://c.lafasta.sa.com/Store/API/DownloadAPILookupsExcel\">here</a>  <br />example: packaging, express shipping</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>'Money' data type</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Validation</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Currency</td>\n<td>string</td>\n<td>Required  <br />Max Length 50  <br />A lookup from 'ProductType' sheet <a href=\"https://c.lafasta.sa.com/Store/API/DownloadAPILookupsExcel\">here</a></td>\n<td>Currency code</td>\n</tr>\n<tr>\n<td>Value</td>\n<td>decimal</td>\n<td>Required</td>\n<td>Money amount</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>'Product' data type</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Validation</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>SKU</td>\n<td>string</td>\n<td>Required  <br />Must match one of the SKUs on your products registered on your Lafasta account he</td>\n<td>Products SKU, used to identify which of your products to send from Lafasta warehouse</td>\n</tr>\n<tr>\n<td>Quantity</td>\n<td>number</td>\n<td>Required</td>\n<td>The quantity to be shipped of this certain product</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"general-response-model\"><strong>General Response model</strong></h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Success</td>\n<td>boolean</td>\n<td>Indicates operation success or failure</td>\n</tr>\n<tr>\n<td>Notifications</td>\n<td>A list of 'Notification' type</td>\n<td>Lists the errors if any</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>'Notification' data type</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Code</td>\n<td>string</td>\n<td>Error code</td>\n</tr>\n<tr>\n<td>Message</td>\n<td>string</td>\n<td>Error message and its exact position in the request body</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"create-shipment-response-model\"><strong>Create shipment response model</strong></h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Success</td>\n<td>boolean</td>\n<td>Indicates operation success or failure</td>\n</tr>\n<tr>\n<td>Notifications</td>\n<td>A list of 'Notification' type</td>\n<td>Lists the errors if any</td>\n</tr>\n<tr>\n<td>AWB</td>\n<td>number</td>\n<td>The created shipment/AWB number. Use this for tracking your shipment.</td>\n</tr>\n<tr>\n<td>Reference1</td>\n<td>string</td>\n<td>The same 'Reference1' sent in the request body</td>\n</tr>\n<tr>\n<td>LabelUrl</td>\n<td>string</td>\n<td>URL to download the AWB label. The Url is not permanent, so you may cache the file or request it again through 'GetShippingLableAsPDF' API mentioned in v3 <a href=\"https://c.lafasta.sa.com/Store/API/Index\">here</a></td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"calc-shipping-cost-response-model\">Calc shipping cost response model</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Success</td>\n<td>boolean</td>\n<td>Indicates operation success or failure</td>\n</tr>\n<tr>\n<td>Notifications</td>\n<td>A list of 'Notification' type</td>\n<td>Lists the errors if any</td>\n</tr>\n<tr>\n<td>Reference1</td>\n<td>string</td>\n<td>The same 'Reference1' sent in the request body</td>\n</tr>\n<tr>\n<td>TotalShippingCost</td>\n<td>'Money' type</td>\n<td>Total shipping cost of all used services for this shipment</td>\n</tr>\n<tr>\n<td>ServicesUsed</td>\n<td>A list of 'LafastaService' type</td>\n<td>Lists the services used in this shipment and corresponding prices</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>'LafastaService' data type</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Id</td>\n<td>number</td>\n<td>Service Id</td>\n</tr>\n<tr>\n<td>NameAr</td>\n<td>string</td>\n<td>Service name in Arabic</td>\n</tr>\n<tr>\n<td>NameEn</td>\n<td>string</td>\n<td>Service name in English</td>\n</tr>\n<tr>\n<td>Cost</td>\n<td>'Money' type</td>\n<td>Service cost</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["API","V4","Shipment"],"host":["{{baseurl}}"],"query":[],"variable":[]}},"response":[{"id":"1b9beef8-408d-48bd-9fe1-8ea09f886539","name":"CREATE SHIPMENT - SUCCESS","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"APICallerId\": \"{{apicallerid}}\",\r\n    \"Reference1\": \"\",\r\n    \"Notes\": \"Breakable item inside please take care\",\r\n    \"Shipper\":{\r\n        \"Address\":{\r\n            \"Line1\": \"X apartments, A1 block, apt #14\",\r\n            \"Line2\": \"Abu Jafar Al Mansur Street\",\r\n            \"Line3\": \"Ashuhada District, Gurnada, 13241\",\r\n            \"City\": \"1\",\r\n            \"Country\": \"SA\",\r\n            \"Longitude\": \"24.7943169\",\r\n            \"Latitude\": \"46.7798573\"\r\n        },\r\n        \"Contact\":{\r\n            \"Name\": \"Ahmed Mustafa\",\r\n            \"NationalId\": \"1234567899\",\r\n            \"PhoneNumber\": \"0546281000\",\r\n            \"CompanyName\": \"ْX Trades\",\r\n            \"CompanyPhoneNumber\": \"0546281222\"\r\n        }\r\n    },\r\n    \"Consignee\":{\r\n        \"Address\":{\r\n            \"Line1\": \"مبنى 124\",\r\n            \"Line2\": \"شارع المنتزه\",\r\n            \"Line3\": \"\",\r\n            \"City\": \"2\",\r\n            \"Country\": \"السعودية\",\r\n            \"Longitude\": \"\",\r\n            \"Latitude\": \"\"\r\n        },\r\n        \"Contact\":{\r\n            \"Name\": \"Mohammed Mohammed\",\r\n            \"NationalId\": \"\",\r\n            \"PhoneNumber\": \"0541581257\",\r\n            \"CompanyName\": \"\",\r\n            \"CompanyPhoneNumber\": \"\"\r\n        }\r\n    },\r\n    \"Details\":{\r\n        \"ProductType\": \"PRODUCT\",\r\n        \"COD\": {\r\n            \"Currency\": \"SAR\",\r\n            \"Value\": \"299.9\"\r\n        },\r\n        \"ProductValue\":{\r\n            \"Currency\": \"SAR\",\r\n            \"Value\": \"150\"\r\n        },\r\n        \"AdditionalServices\": [ \"PACKAGING\", \"ExpressShippingService\", \"PrintShippingLabelService\", \"ColdTransportation\" ]\r\n    },\r\n    \"Products\": [\r\n\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseurl}}/API/V4/Shipment"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Wed, 05 Oct 2022 01:50:08 GMT"},{"key":"Content-Length","value":"182"}],"cookie":[],"responseTime":null,"body":"{\n    \"awb\": 100509570,\n    \"reference1\": null,\n    \"labelUrl\": \"https://c.lafasta.sa.com/Content/Files/ShippingLabelsCache/53f64fdc-cc9e-4507-84ec-dc5043027955.pdf\",\n    \"success\": true,\n    \"notifications\": []\n}"},{"id":"25f0d977-9b8e-40b1-92eb-f1dbc8642c6c","name":"CREATE SHIPMENT - ERROR","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"APICallerId\": \"{{apicallerid}}\",\r\n    \"Reference1\": \"1006975\",\r\n    \"Notes\": \"Breakable item inside please take care\",\r\n    \"Shipper\":{\r\n        \"Address\":{\r\n            \"Line1\": \"X apartments, A1 block, apt #14\",\r\n            \"Line2\": \"Abu Jafar Al Mansur Street\",\r\n            \"Line3\": \"Ashuhada District, Gurnada, 13241\",\r\n            \"City\": \"Riyadh\",\r\n            \"Country\": \"SA\",\r\n            \"Longitude\": \"24.7943169\",\r\n            \"Latitude\": \"46.7798573\"\r\n        },\r\n        \"Contact\":{\r\n            \"Name\": \"Ahmed Mustafa\",\r\n            \"NationalId\": \"1080506215\",\r\n            \"PhoneNumber\": \"0546281000\",\r\n            \"CompanyName\": \"ْX Trades\",\r\n            \"CompanyPhoneNumber\": \"0546281222\"\r\n        }\r\n    },\r\n    \"Consignee\":{\r\n        \"Address\":{\r\n            \"Line1\": \"مبنى 124\",\r\n            \"Line2\": \"شارع المنتزه\",\r\n            \"Line3\": \"\",\r\n            \"City\": \"جدة\",\r\n            \"Country\": \"السعودية\",\r\n            \"Longitude\": \"\",\r\n            \"Latitude\": \"\"\r\n        },\r\n        \"Contact\":{\r\n            \"Name\": \"محمد عمر\",\r\n            \"NationalId\": \"\",\r\n            \"PhoneNumber\": \"0541581257\",\r\n            \"CompanyName\": \"\",\r\n            \"CompanyPhoneNumber\": \"\"\r\n        }\r\n    },\r\n    \"Details\":{\r\n        \"ProductType\": \"PRODUCT\",\r\n        \"COD\": {\r\n            \"Currency\": \"SAR\",\r\n            \"Value\": \"299.9\"\r\n        },\r\n        \"ProductValue\":{\r\n            \"Currency\": \"SAR\",\r\n            \"Value\": \"150\"\r\n        },\r\n        \"AdditionalServices\": [ \"PACKAGING\", \"ExpressShippingService\", \"PrintShippingLabelService\", \"ColdTransportation\" ]\r\n    },\r\n    \"Products\": [\r\n        {\r\n            \"SKU\": \"iphone-xs-redS\",\r\n            \"Quantity\": \"1\"\r\n        },\r\n        {\r\n            \"SKU\": \"iphone-xs-cover-green\",\r\n            \"Quantity\": \"1\"\r\n        },\r\n        {\r\n            \"SKU\": \"iphone-xs-cover-green\",\r\n            \"Quantity\": \"1\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseurl}}/API/V4/Shipment"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-SourceFiles","value":"=?UTF-8?B?RDpcUXVpY2tQcm9qZWN0LW1hc3RlclxRdWlja1Byb2plY3RcQVBJXFY0XFNoaXBtZW50?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Sun, 25 Sep 2022 17:33:05 GMT"},{"key":"Content-Length","value":"119"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"notifications\": [\n        {\n            \"code\": \"E032\",\n            \"message\": \"Invalid product SKU 'iphone-xs-redS' in Products[0].SKU\"\n        }\n    ]\n}"},{"id":"a431cd4d-3d07-4329-9f7f-32e1e8b49fa9","name":"EMPTY JSON TEMPLATE","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"APICallerId\": \"\",\r\n    \"Reference1\": \"\",\r\n    \"Notes\": \"\",\r\n    \"Shipper\":{\r\n        \"Address\":{\r\n            \"Line1\": \"\",\r\n            \"Line2\": \"\",\r\n            \"Line3\": \"\",\r\n            \"City\": \"\",\r\n            \"Country\": \"\",\r\n            \"Longitude\": \"\",\r\n            \"Latitude\": \"\"\r\n        },\r\n        \"Contact\":{\r\n            \"Name\": \"\",\r\n            \"NationalId\": \"\",\r\n            \"PhoneNumber\": \"\",\r\n            \"CompanyName\": \"\",\r\n            \"CompanyPhoneNumber\": \"\"\r\n        }\r\n    },\r\n    \"Consignee\":{\r\n        \"Address\":{\r\n            \"Line1\": \"\",\r\n            \"Line2\": \"\",\r\n            \"Line3\": \"\",\r\n            \"City\": \"\",\r\n            \"Country\": \"\",\r\n            \"Longitude\": \"\",\r\n            \"Latitude\": \"\"\r\n        },\r\n        \"Contact\":{\r\n            \"Name\": \"\",\r\n            \"NationalId\": \"\",\r\n            \"PhoneNumber\": \"\",\r\n            \"CompanyName\": \"\",\r\n            \"CompanyPhoneNumber\": \"\"\r\n        }\r\n    },\r\n    \"Details\":{\r\n        \"ProductType\": \"\",\r\n        \"COD\": {\r\n            \"Currency\": \"\",\r\n            \"Value\": \"\"\r\n        },\r\n        \"ProductValue\":{\r\n            \"Currency\": \"\",\r\n            \"Value\": \"\"\r\n        },\r\n        \"AdditionalServices\": []\r\n    },\r\n    \"Products\": [\r\n        {\r\n            \"SKU\": \"\",\r\n            \"Quantity\": \"\"\r\n        }\r\n    ]\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseurl}}/API/V4/Shipment"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-SourceFiles","value":"=?UTF-8?B?RDpcUXVpY2tQcm9qZWN0LW1hc3RlclxRdWlja1Byb2plY3RcQVBJXFY0XFNoaXBtZW50?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Sun, 25 Sep 2022 17:33:28 GMT"},{"key":"Content-Length","value":"225"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"notifications\": [\n        {\n            \"code\": \"E026\",\n            \"message\": \"Request deserialization error\"\n        },\n        {\n            \"code\": \"E026\",\n            \"message\": \"Error converting value {null} to type 'System.Decimal'. Path 'Details.COD.Value', line 45, position 23.\"\n        }\n    ]\n}"},{"id":"8a423133-0c48-4bcd-859d-be8b03d5c075","name":"CALCULATE SHIPPING COST - SUCCESS","originalRequest":{"method":"POST","header":[{"key":"lafasta-shipping-action","value":"CalcShippingCost","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"APICallerId\": \"{{apicallerid}}\",\r\n    \"Reference1\": \"\",\r\n    \"Notes\": \"Breakable item inside please take care\",\r\n    \"Shipper\":{\r\n        \"Address\":{\r\n            \"Line1\": \"X apartments, A1 block, apt #14\",\r\n            \"Line2\": \"Abu Jafar Al Mansur Street\",\r\n            \"Line3\": \"Ashuhada District, Gurnada, 13241\",\r\n            \"City\": \"1\",\r\n            \"Country\": \"SA\",\r\n            \"Longitude\": \"24.7943169\",\r\n            \"Latitude\": \"46.7798573\"\r\n        },\r\n        \"Contact\":{\r\n            \"Name\": \"Ahmed Mustafa\",\r\n            \"NationalId\": \"1234567899\",\r\n            \"PhoneNumber\": \"0546281000\",\r\n            \"CompanyName\": \"ْX Trades\",\r\n            \"CompanyPhoneNumber\": \"0546281222\"\r\n        }\r\n    },\r\n    \"Consignee\":{\r\n        \"Address\":{\r\n            \"Line1\": \"مبنى 124\",\r\n            \"Line2\": \"شارع المنتزه\",\r\n            \"Line3\": \"\",\r\n            \"City\": \"1\",\r\n            \"Country\": \"السعودية\",\r\n            \"Longitude\": \"\",\r\n            \"Latitude\": \"\"\r\n        },\r\n        \"Contact\":{\r\n            \"Name\": \"Mohammed Mohammed\",\r\n            \"NationalId\": \"\",\r\n            \"PhoneNumber\": \"0541581257\",\r\n            \"CompanyName\": \"\",\r\n            \"CompanyPhoneNumber\": \"\"\r\n        }\r\n    },\r\n    \"Details\":{\r\n        \"ProductType\": \"PRODUCT\",\r\n        \"COD\": {\r\n            \"Currency\": \"SAR\",\r\n            \"Value\": \"299.9\"\r\n        },\r\n        \"ProductValue\":{\r\n            \"Currency\": \"SAR\",\r\n            \"Value\": \"150\"\r\n        },\r\n        \"AdditionalServices\": [ \"PACKAGING\", \"ExpressShippingService\", \"PrintShippingLabelService\", \"ColdTransportation\" ]\r\n    },\r\n    \"Products\": [\r\n\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseurl}}/API/V4/Shipment"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-AspNet-Version","value":"4.0.30319"},{"key":"X-SourceFiles","value":"=?UTF-8?B?RDpcUXVpY2tQcm9qZWN0LW1hc3RlclxRdWlja1Byb2plY3RcQVBJXFY0XFNoaXBtZW50?="},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"Date","value":"Sun, 29 Jan 2023 10:00:34 GMT"},{"key":"Content-Length","value":"947"}],"cookie":[],"responseTime":null,"body":"{\n    \"reference1\": \"\",\n    \"totalShippingCost\": {\n        \"currency\": \"SAR\",\n        \"value\": 48\n    },\n    \"servicesUsed\": [\n        {\n            \"id\": 6,\n            \"nameAr\": \"التغليف\",\n            \"nameEn\": \"Packaging\",\n            \"cost\": {\n                \"currency\": \"SAR\",\n                \"value\": 2\n            }\n        },\n        {\n            \"id\": 13,\n            \"nameAr\": \"خدمة التوصيل السريع طيَّااااااارة\",\n            \"nameEn\": \"Express shipping service\",\n            \"cost\": {\n                \"currency\": \"SAR\",\n                \"value\": 7\n            }\n        },\n        {\n            \"id\": 14,\n            \"nameAr\": \"خدمة طباعة البوليصة\",\n            \"nameEn\": \"Print shipping label service\",\n            \"cost\": {\n                \"currency\": \"SAR\",\n                \"value\": 2\n            }\n        },\n        {\n            \"id\": 16,\n            \"nameAr\": \"نقل مبرد\",\n            \"nameEn\": \"Cold transportation\",\n            \"cost\": {\n                \"currency\": \"SAR\",\n                \"value\": 15\n            }\n        },\n        {\n            \"id\": 4,\n            \"nameAr\": \"الدفع عند الاستلام داخل تغطية لافاستا\",\n            \"nameEn\": null,\n            \"cost\": {\n                \"currency\": \"SAR\",\n                \"value\": 2\n            }\n        },\n        {\n            \"id\": 21,\n            \"nameAr\": \"خدمة التوصيل\",\n            \"nameEn\": \"Shipping within the same city within Lafasta served cities\",\n            \"cost\": {\n                \"currency\": \"SAR\",\n                \"value\": 20\n            }\n        }\n    ],\n    \"success\": true,\n    \"notifications\": []\n}"}],"_postman_id":"7e18f086-6e14-48d4-9621-0ccf7a8e7058"}]}