{ "info": { "_postman_id": "f6564796-ca45-4617-a194-32ad4dd71f9a", "name": "AyMakan", "description": "Aymakan API v2 provides new enhancement, performance improvements and new features for clients. This document provides detailed API information. It is recommended to to read it completely before implementing the integrations to any system", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Shipments", "item": [ { "name": "Track Shipping", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/shipping/track/20636", "host": [ "{{url}}" ], "path": [ "shipping", "track", "20636" ] }, "description": "This API enables customer to track thier shipping. It returns full information and full statuses for each shipment provided in the request." }, "response": [ { "name": "Track Shipping (Success)", "originalRequest": { "method": "GET", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "{{url}}/shipping/track/206360", "host": [ "{{url}}" ], "path": [ "shipping", "track", "206360" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 10:51:37 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "vary", "value": "Accept-Encoding" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2998" }, { "key": "x-frame-options", "value": "SAMEORIGIN" }, { "key": "x-xss-protection", "value": "1; mode=block" }, { "key": "x-content-type-options", "value": "nosniff" }, { "key": "content-encoding", "value": "gzip" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=if4Yxd%2B3UlPpxjADEP6NJwWhNMNET1eycIxL32SRBojtNmMOJIikoolWPNFm8R67ts%2Bqjp7qE4W%2Br6C7COaKTmgWXMm0fSDJoyQqOu4BfR7glnNfWp1%2Bk3C6TPHrx%2BMXM6zZmLY%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683c06c458d4fa48-AMS" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "{\n \"success\": true,\n \"data\": {\n \"shipments\": [\n {\n \"reference\": \"123\",\n \"tracking_number\": \"206360\",\n \"customer_tracking\": null,\n \"customer_name\": \"اختباري حساب\",\n \"requested_by\": \"Test\",\n \"cod_amount\": \"1.00\",\n \"declared_value\": null,\n \"declared_value_currency\": null,\n \"currency\": \"SAR\",\n \"delivery_name\": \"Aymakan\",\n \"delivery_email\": null,\n \"delivery_city\": \"Jeddah\",\n \"delivery_address\": \"Malaz\",\n \"delivery_region\": null,\n \"delivery_postcode\": null,\n \"delivery_country\": \"SA\",\n \"delivery_phone\": \"23234234\",\n \"delivery_description\": null,\n \"collection_name\": \"Aymakan\",\n \"collection_email\": null,\n \"collection_city\": \"Riyadh\",\n \"collection_address\": null,\n \"collection_region\": null,\n \"collection_postcode\": null,\n \"collection_country\": \"SA\",\n \"collection_phone\": \"23423423\",\n \"collection_description\": null,\n \"submission_date\": \"2018-09-16 10:39:45\",\n \"pickup_date\": \"2018-09-16T07:39:45.000000Z\",\n \"received_at\": null,\n \"delivery_date\": \"2018-09-16T07:39:45.000000Z\",\n \"weight\": \"1.00\",\n \"pieces\": 1,\n \"items_count\": 1,\n \"status\": \"Received at Warehouse\",\n \"status_label\": \"Received at Warehouse\",\n \"reason_en\": null,\n \"reason_ar\": null,\n \"created_at\": \"2018-09-16T07:39:45.000000Z\",\n \"id_customer\": 2,\n \"is_reverse_pickup\": 0,\n \"tracking_info\": [\n {\n \"status_code\": \"AY-0003\",\n \"description\": \"Shipment is received at Riyadh hub\",\n \"description_ar\": \"أستلمت الشحنة في مركز الرياض لأعادة التوزيع \",\n \"created_at\": \"2019-01-23 20:25:16\"\n },\n {\n \"status_code\": \"AY-0002\",\n \"description\": \"Shipment was collected from collection point \",\n \"description_ar\": \"تم إستلام الشحنة من الشركة الشاحنة \",\n \"created_at\": \"2019-01-23 20:24:15\"\n },\n {\n \"status_code\": \"AY-0001\",\n \"description\": \"Shipping Created\",\n \"description_ar\": null,\n \"created_at\": \"2018-09-16 10:39:45\"\n }\n ]\n }\n ]\n }\n}" }, { "name": "Track Shipping (Not Found)", "originalRequest": { "method": "GET", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "{{url}}/shipping/track/20636", "host": [ "{{url}}" ], "path": [ "shipping", "track", "20636" ] } }, "status": "Unprocessable Entity", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 10:52:21 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2994" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=FVbLMj56YQD4esQnzmgIIVWktHWbImi1Bv2ZfdzQng8SGSNMNENaIyYx%2Fnz1pGRuLPCwKfiqgYJDQLJIGpA%2B6nOTGQpGS5S%2Bv8T9W9klaxp%2F%2BGp%2Fj30OZje7CRVWW2docESC2Y8%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683c07d78ebefa48-AMS" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"No shipping found.\"\n}" }, { "name": "Track Shipping (Invalid Credentials)", "originalRequest": { "method": "GET", "header": [ { "key": "Authorization", "value": "10c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "{{url}}/shipping/track/206360", "host": [ "{{url}}" ], "path": [ "shipping", "track", "206360" ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 10:50:52 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2997" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=%2FGoYi0an837UCVH%2F7d181sZP0YxtjRcfjyK3gDY63Pbomo0mBlwAEvwOdjHVUGrdnHk1WYDUgNixXEud2Wdc9nX060rL87plivfBtfWWICdQ6%2B9S3jaSDZ6iM2ewShig%2F%2Fq4FQg%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683c05ae6a95fa48-AMS" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "{\n \"error\": true,\n \"response\": \"Invalid Credentials\"\n}" } ] }, { "name": "Shipping by Reference", "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "{{url}}/shipping/by_reference/12", "host": [ "{{url}}" ], "path": [ "shipping", "by_reference", "12" ] }, "description": "This API enables customer to fetch their shipping using reference. It returns full shipment info including tracking info and AWB Url." }, "response": [ { "name": "Shipping by Reference (Success)", "originalRequest": { "method": "GET", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "{{url}}/shipping/by_reference/123", "host": [ "{{url}}" ], "path": [ "shipping", "by_reference", "123" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 11:02:37 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "vary", "value": "Accept-Encoding" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2996" }, { "key": "x-frame-options", "value": "SAMEORIGIN" }, { "key": "x-xss-protection", "value": "1; mode=block" }, { "key": "x-content-type-options", "value": "nosniff" }, { "key": "content-encoding", "value": "gzip" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=F%2BALdeaoOLtz0PjG1RMgeKVmJ5AyO24tCY%2FMW%2BDdIgEGfhkE%2BbZfUjZrY5XQfrOTtlxYpvLXeAKRar7wivG%2F%2Fi3BVZA2%2FLGxtYK67M07bbZkVdBO5JEXh%2FRiO%2Fht1hLxjkKepj8%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683c16e18cf7fa48-AMS" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "{\n \"success\": true,\n \"data\": {\n \"shipments\": [\n {\n \"reference\": \"123\",\n \"tracking_number\": \"206360\",\n \"customer_tracking\": null,\n \"customer_name\": \"اختباري حساب\",\n \"requested_by\": \"Test\",\n \"cod_amount\": \"1.00\",\n \"declared_value\": null,\n \"declared_value_currency\": null,\n \"currency\": \"SAR\",\n \"delivery_name\": \"Aymakan\",\n \"delivery_email\": null,\n \"delivery_city\": \"Jeddah\",\n \"delivery_address\": \"Malaz\",\n \"delivery_region\": null,\n \"delivery_postcode\": null,\n \"delivery_country\": \"SA\",\n \"delivery_phone\": \"23234234\",\n \"delivery_description\": null,\n \"collection_name\": \"Aymakan\",\n \"collection_email\": null,\n \"collection_city\": \"Riyadh\",\n \"collection_address\": null,\n \"collection_region\": null,\n \"collection_postcode\": null,\n \"collection_country\": \"SA\",\n \"collection_phone\": \"23423423\",\n \"collection_description\": null,\n \"submission_date\": \"2018-09-16 10:39:45\",\n \"pickup_date\": \"2018-09-16T07:39:45.000000Z\",\n \"received_at\": null,\n \"delivery_date\": \"2018-09-16T07:39:45.000000Z\",\n \"weight\": \"1.00\",\n \"pieces\": 1,\n \"items_count\": 1,\n \"status\": \"AY-0003\",\n \"status_label\": \"Received at Warehouse\",\n \"reason_en\": null,\n \"reason_ar\": null,\n \"created_at\": \"2018-09-16T07:39:45.000000Z\",\n \"id_customer\": 2,\n \"id\": 72573,\n \"is_reverse_pickup\": 0,\n \"tracking_info\": [\n {\n \"status_code\": \"AY-0003\",\n \"description\": \"Shipment is received at Riyadh hub\",\n \"description_ar\": \"أستلمت الشحنة في مركز الرياض لأعادة التوزيع \",\n \"created_at\": \"2019-01-23 20:25:16\"\n },\n {\n \"status_code\": \"AY-0002\",\n \"description\": \"Shipment was collected from collection point \",\n \"description_ar\": \"تم إستلام الشحنة من الشركة الشاحنة \",\n \"created_at\": \"2019-01-23 20:24:15\"\n },\n {\n \"status_code\": \"AY-0001\",\n \"description\": \"Shipping Created\",\n \"description_ar\": null,\n \"created_at\": \"2018-09-16 10:39:45\"\n }\n ]\n },\n {\n \"reference\": \"123\",\n \"tracking_number\": \"206364\",\n \"customer_tracking\": null,\n \"customer_name\": \"اختباري حساب\",\n \"requested_by\": \"Test\",\n \"price_set_amount\": \"20.0000\",\n \"price_set_amount_incl_tax\": \"0.0000\",\n \"tax_amount\": \"0.0000\",\n \"tax_rate\": \"0.0000\",\n \"cod_amount\": \"1.00\",\n \"declared_value\": null,\n \"declared_value_currency\": null,\n \"currency\": \"SAR\",\n \"delivery_name\": \"Aymakan\",\n \"delivery_email\": null,\n \"delivery_city\": \"Jeddah\",\n \"delivery_address\": \"Malaz\",\n \"delivery_region\": null,\n \"delivery_postcode\": null,\n \"delivery_country\": \"SA\",\n \"delivery_phone\": \"23234234\",\n \"delivery_description\": null,\n \"collection_name\": \"Aymakan\",\n \"collection_email\": null,\n \"collection_city\": \"Riyadh\",\n \"collection_address\": null,\n \"collection_region\": null,\n \"collection_postcode\": null,\n \"collection_country\": \"SA\",\n \"collection_phone\": \"23423423\",\n \"collection_description\": null,\n \"submission_date\": \"2018-09-24 10:04:15\",\n \"pickup_date\": \"2018-09-16T07:39:45.000000Z\",\n \"received_at\": null,\n \"delivery_date\": \"2018-09-16T07:39:45.000000Z\",\n \"weight\": \"1.00\",\n \"pieces\": 1,\n \"items_count\": 1,\n \"status\": \"AY-0005\",\n \"status_label\": \"Delivered\",\n \"reason_en\": null,\n \"reason_ar\": null,\n \"created_at\": \"2018-09-16T07:39:45.000000Z\",\n \"id_customer\": 2,\n \"id\": 72577,\n \"is_reverse_pickup\": 0,\n \"tracking_info\": [\n {\n \"status_code\": \"AY-0005\",\n \"description\": \"testing\",\n \"description_ar\": null,\n \"created_at\": \"2018-12-28 15:28:23\"\n },\n {\n \"status_code\": \"AY-0004\",\n \"description\": \"Shipment is out for its final destination.\",\n \"description_ar\": null,\n \"created_at\": \"2018-09-24 10:04:15\"\n },\n {\n \"status_code\": \"AY-0001\",\n \"description\": \"Shipping Created\",\n \"description_ar\": null,\n \"created_at\": \"2018-09-16 10:39:45\"\n }\n ]\n },\n {\n \"reference\": \"123\",\n \"tracking_number\": \"132598\",\n \"customer_tracking\": null,\n \"customer_name\": \"اختباري حساب\",\n \"requested_by\": \"Test\",\n \"price_set_amount\": \"10.0000\",\n \"price_set_amount_incl_tax\": \"0.0000\",\n \"tax_amount\": \"0.0000\",\n \"tax_rate\": \"0.0000\",\n \"cod_amount\": \"120.00\",\n \"declared_value\": \"100.00\",\n \"declared_value_currency\": null,\n \"currency\": \"SAR\",\n \"delivery_name\": \"Muhamad Aladdad\",\n \"delivery_email\": \"1@1.com\",\n \"delivery_city\": \"Riyadh\",\n \"delivery_address\": \"asd\",\n \"delivery_region\": \"\",\n \"delivery_postcode\": \"\",\n \"delivery_country\": \"SA\",\n \"delivery_phone\": \"0550312455\",\n \"delivery_description\": \"\",\n \"collection_name\": \"Muhamad Aladdad\",\n \"collection_email\": \"m.s.a.666@hotmail.com\",\n \"collection_city\": \"Afif\",\n \"collection_address\": \"1548 N Merion way apt #101\",\n \"collection_region\": \"Arkansas\",\n \"collection_postcode\": \"72704\",\n \"collection_country\": \"SA\",\n \"collection_phone\": \"4799356066\",\n \"collection_description\": null,\n \"submission_date\": \"2017-05-31 14:29:30\",\n \"pickup_date\": \"2017-02-07T10:08:05.000000Z\",\n \"received_at\": null,\n \"delivery_date\": \"2017-02-07T10:08:05.000000Z\",\n \"weight\": null,\n \"pieces\": null,\n \"items_count\": null,\n \"status\": \"AY-0005\",\n \"status_label\": \"Delivered\",\n \"reason_en\": null,\n \"reason_ar\": null,\n \"created_at\": \"2017-02-07T10:08:06.000000Z\",\n \"id_customer\": 2,\n \"id\": 4668,\n \"is_reverse_pickup\": 0,\n \"tracking_info\": [\n {\n \"status_code\": \"AY-0005\",\n \"description\": \"Shipment is delivered to customer\",\n \"description_ar\": null,\n \"created_at\": \"2017-05-31 14:29:30\"\n },\n {\n \"status_code\": \"AY-0002\",\n \"description\": \"Shipment was collected from collection point \",\n \"description_ar\": null,\n \"created_at\": \"2017-05-31 13:05:01\"\n },\n {\n \"status_code\": \"AY-0002\",\n \"description\": \"Shipment was collected from collection point \",\n \"description_ar\": null,\n \"created_at\": \"2017-05-28 14:33:54\"\n },\n {\n \"status_code\": \"AY-0002\",\n \"description\": \"Shipment was collected from collection point \",\n \"description_ar\": null,\n \"created_at\": \"2017-05-28 14:26:46\"\n },\n {\n \"status_code\": \"AY-0002\",\n \"description\": \"Shipment was collected from collection point \",\n \"description_ar\": null,\n \"created_at\": \"2017-05-28 14:20:12\"\n },\n {\n \"status_code\": \"AY-0002\",\n \"description\": \"Shipment was collected from collection point \",\n \"description_ar\": null,\n \"created_at\": \"2017-05-28 14:10:11\"\n },\n {\n \"status_code\": \"AY-0007\",\n \"description\": \"Shipment was cancelled and to be returned to shipper. \",\n \"description_ar\": null,\n \"created_at\": \"2017-05-28 13:54:06\"\n },\n {\n \"status_code\": \"AY-0005\",\n \"description\": \"Shipment is delivered to customer\",\n \"description_ar\": null,\n \"created_at\": \"2017-05-18 14:44:25\"\n },\n {\n \"status_code\": \"AY-0005\",\n \"description\": \"Shipment is delivered to customer\",\n \"description_ar\": null,\n \"created_at\": \"2017-05-09 16:08:55\"\n },\n {\n \"status_code\": \"AY-0002\",\n \"description\": \"Shipment was collected from collection point \",\n \"description_ar\": null,\n \"created_at\": \"2017-05-09 15:57:39\"\n },\n {\n \"status_code\": \"AY-0002\",\n \"description\": \"Shipment was collected from collection point \",\n \"description_ar\": null,\n \"created_at\": \"2017-05-09 15:44:28\"\n },\n {\n \"status_code\": \"AY-0001\",\n \"description\": \"Shipment is created at collection point\",\n \"description_ar\": null,\n \"created_at\": \"2017-05-09 15:25:46\"\n },\n {\n \"status_code\": \"AY-0001\",\n \"description\": \"Shipment is created at collection point\",\n \"description_ar\": null,\n \"created_at\": \"2017-05-09 15:23:49\"\n },\n {\n \"status_code\": \"AY-0002\",\n \"description\": \"Shipment was collected from collection point \",\n \"description_ar\": null,\n \"created_at\": \"2017-05-09 15:21:43\"\n },\n {\n \"status_code\": \"AY-0002\",\n \"description\": \"Shipment was collected from collection point \",\n \"description_ar\": null,\n \"created_at\": \"2017-05-09 15:21:08\"\n },\n {\n \"status_code\": \"AY-0002\",\n \"description\": \"Shipment was collected from collection point \",\n \"description_ar\": null,\n \"created_at\": \"2017-05-09 13:50:39\"\n },\n {\n \"status_code\": \"AY-0003\",\n \"description\": \"Shipment is received at Riyadh hub\",\n \"description_ar\": null,\n \"created_at\": \"2017-03-19 10:20:18\"\n },\n {\n \"status_code\": \"AY-0004\",\n \"description\": \"Shipment is out for its final destination.\",\n \"description_ar\": null,\n \"created_at\": \"2017-03-19 10:19:36\"\n },\n {\n \"status_code\": \"AY-0003\",\n \"description\": \"Shipment is received at Riyadh hub\",\n \"description_ar\": null,\n \"created_at\": \"2017-03-19 10:15:27\"\n },\n {\n \"status_code\": \"In-transit \",\n \"description\": \"The Order is out for its final destination.\",\n \"description_ar\": null,\n \"created_at\": \"2017-02-19 15:32:35\"\n },\n {\n \"status_code\": \"delivered\",\n \"description\": \"Shipment is delivered to customer\",\n \"description_ar\": null,\n \"created_at\": \"2017-02-19 15:30:57\"\n },\n {\n \"status_code\": \"In-transit \",\n \"description\": \"The Order is out for its final destination.\",\n \"description_ar\": null,\n \"created_at\": \"2017-02-19 15:30:15\"\n },\n {\n \"status_code\": \"submitted\",\n \"description\": \"Shipping Created\",\n \"description_ar\": null,\n \"created_at\": \"2017-02-07 13:08:06\"\n }\n ]\n }\n ]\n }\n}" }, { "name": "Shipping by Reference (Invalid Credentials)", "originalRequest": { "method": "GET", "header": [ { "key": "Authorization", "value": "10c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "{{url}}/shipping/by_reference/12", "host": [ "{{url}}" ], "path": [ "shipping", "by_reference", "12" ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 11:33:31 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2991" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=TxuOpvWxBoZP%2FEulkV7BqH05cXL3F8M6XqFMjbUjHedJRN6HHYFp%2BM6Gss4f2UTZuy12PfeDRUpWQIUvGjp91jwvUHLG7WUB0jXcv%2F2HSqAyM%2Bf5R%2FmUxqxRdwsSMm3YX5UmSTM%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683c44274da51e6d-AMS" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "{\n \"error\": true,\n \"response\": \"Invalid Credentials\"\n}" }, { "name": "Shipping by Reference (Not Found)", "originalRequest": { "method": "GET", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "{{url}}/shipping/by_reference/12", "host": [ "{{url}}" ], "path": [ "shipping", "by_reference", "12" ] } }, "status": "Unprocessable Entity", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "nginx/1.21.1" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "X-Powered-By", "value": "PHP/8.0.9" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Date", "value": "Sat, 04 Sep 2021 21:26:01 GMT" }, { "key": "X-RateLimit-Limit", "value": "60" }, { "key": "X-RateLimit-Remaining", "value": "59" }, { "key": "Access-Control-Allow-Origin", "value": "*" } ], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"No Shipments Found\"\n}" } ] }, { "name": "Shipping AWB", "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "{{url}}/shipping/awb/tracking/206360", "host": [ "{{url}}" ], "path": [ "shipping", "awb", "tracking", "206360" ] }, "description": "This API can be used to print single AWB. This API requires tracking number associated with a customer account. If the tracking number is found for that associated account, a URL will be returned to download the pdf file for AWB." }, "response": [ { "name": "Shipping AWB (Success)", "originalRequest": { "method": "GET", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "{{url}}/shipping/awb/tracking/AY355010715", "host": [ "{{url}}" ], "path": [ "shipping", "awb", "tracking", "AY355010715" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 08:43:35 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "vary", "value": "Accept-Encoding" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2999" }, { "key": "x-frame-options", "value": "SAMEORIGIN" }, { "key": "x-xss-protection", "value": "1; mode=block" }, { "key": "x-content-type-options", "value": "nosniff" }, { "key": "content-encoding", "value": "gzip" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=Nr8YFpJ%2FE3%2BraMS%2BEryZ6kiGHx75wSSdtsfmn8IfsPbBwkDZLHI%2B9vXasKOZGf0yF%2Fbmw8c5%2FL%2Fj6E84ivq0HT%2BFO0h8niB%2FBm4kUplmrQD%2FrZPXRAyzDvP5sdqt35p0H87z%2BvE%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683b4b3be8b0597d-AMS" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "{\n \"success\": true,\n \"data\": {\n \"awb_url\": \"https://dev.aymakan.com.sa/pdf/generate/f05891c7-6f86-4e59-bd3f-4484a6321309\"\n }\n}" }, { "name": "Shipping AWB (Not Found)", "originalRequest": { "method": "GET", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "{{url}}/shipping/awb/tracking/206360", "host": [ "{{url}}" ], "path": [ "shipping", "awb", "tracking", "206360" ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 11:08:04 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "vary", "value": "Accept-Encoding" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2997" }, { "key": "content-encoding", "value": "gzip" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=9h3fF7bpPDNzppNff2empENqEH6EZAJ9QFyPZnlTSzhyNpduzihVRX1EoSLs8iL%2FJsxadiHxua7oxR%2FLRZyXl0tHMOSLlfd%2BNh92wNGdffLZ2%2FsHlq%2Fst6wxi%2FHVM7eJ%2BDno82g%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683c1ee23e09fa48-AMS" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"Not found\"\n}" }, { "name": "Shipping AWB (Invalid Credentials)", "originalRequest": { "method": "GET", "header": [ { "key": "Authorization", "value": "10c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "{{url}}/shipping/awb/tracking/206360", "host": [ "{{url}}" ], "path": [ "shipping", "awb", "tracking", "206360" ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 11:32:55 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2997" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=Cp5uBlxp4DKr1in2AKDFpIIcWcnXR3Fg9TwsLiAoPxyWYFB7RuSQo4E9yRjMrKVzcE2Kvda%2BXYfLBDUJqsZFjSnEBPms6uNpSbL4R25RlTWo1Ymk75WSCKY6WT7yZlX7ei%2BR31Y%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683c43436bac1e6d-AMS" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "{\n \"error\": true,\n \"response\": \"Invalid Credentials\"\n}" } ] }, { "name": "Customer Shipments", "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "{{url}}/customer/shipments/", "host": [ "{{url}}" ], "path": [ "customer", "shipments", "" ], "query": [ { "key": "", "value": "", "disabled": true } ] }, "description": "This API is used to fetch a customer shipments created. It provides basic data like tracking number, reference, current status and last update date. Data is paginated." }, "response": [ { "name": "Customer Shipments (Success)", "originalRequest": { "method": "GET", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "{{url}}/customer/shipments/", "host": [ "{{url}}" ], "path": [ "customer", "shipments", "" ], "query": [ { "key": "", "value": "", "disabled": true } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 08:37:32 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "vary", "value": "Accept-Encoding" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2995" }, { "key": "x-frame-options", "value": "SAMEORIGIN" }, { "key": "x-xss-protection", "value": "1; mode=block" }, { "key": "x-content-type-options", "value": "nosniff" }, { "key": "content-encoding", "value": "gzip" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=Pac1X%2BWXmL3KVw3KnUn9EQJJE6d8%2BSqnHnqgkSwuda5AogLnBg%2Bm%2F4uPPyJBE45QJv7KgU3dQNmjdowvS2LAPEx2JbwTcqrUVGUZr3wklvX%2Bn7VcIun9%2Bf8tnbW5H70xwTSx8kQ%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683b425daee9597d-AMS" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "{\n \"current_page\": 1,\n \"data\": [\n {\n \"tracking_number\": \"AY355017148\",\n \"reference\": null,\n \"status\": \"Pickup Cancelled\",\n \"updated_at\": \"2021-08-24 10:18:38\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": \"AWB created at origin\",\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n },\n {\n \"tracking_number\": \"AY355010715\",\n \"reference\": null,\n \"status\": null,\n \"updated_at\": \"2021-08-24 10:01:45\"\n }\n ],\n \"first_page_url\": \"https://dev.aymakan.com.sa/api/v2/customer/shipments?page=1\",\n \"from\": 1,\n \"last_page\": 171,\n \"last_page_url\": \"https://dev.aymakan.com.sa/api/v2/customer/shipments?page=171\",\n \"next_page_url\": \"https://dev.aymakan.com.sa/api/v2/customer/shipments?page=2\",\n \"path\": \"https://dev.aymakan.com.sa/api/v2/customer/shipments\",\n \"per_page\": 100,\n \"prev_page_url\": null,\n \"to\": 100,\n \"total\": 17061\n}" }, { "name": "Customer Shipments (Invalid Credentials)", "originalRequest": { "method": "GET", "header": [ { "key": "Authorization", "value": "10c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "{{url}}/customer/shipments/", "host": [ "{{url}}" ], "path": [ "customer", "shipments", "" ], "query": [ { "key": "", "value": "", "disabled": true } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 11:18:02 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2995" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=1cOoInAdITLE55BCKHrgRno%2Bd%2F3tDrQoyjEMgcGY%2BjVKYvjntKKMWptUhufBi3gL5afagxK7csO0C%2FNl05FYCAblGgnk6mSu6m6NJP%2B1tMvnaYbj4LfE2B2yxSCJrggpyxhXhNM%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683c2d79e9844236-AMS" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "{\n \"error\": true,\n \"response\": \"Invalid Credentials\"\n}" }, { "name": "Customer Shipments (Not Found)", "originalRequest": { "method": "GET", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "{{url}}/customer/shipments/", "host": [ "{{url}}" ], "path": [ "customer", "shipments", "" ], "query": [ { "key": "", "value": "", "disabled": true } ] } }, "status": "Unprocessable Entity", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "nginx/1.21.1" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "X-Powered-By", "value": "PHP/8.0.9" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Date", "value": "Sat, 04 Sep 2021 22:11:04 GMT" }, { "key": "X-RateLimit-Limit", "value": "60" }, { "key": "X-RateLimit-Remaining", "value": "58" }, { "key": "Access-Control-Allow-Origin", "value": "*" } ], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"No Shipment Found\"\n}" } ] }, { "name": "Bulk Shipping AWB", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "{{url}}/shipping/bulk_awb/trackings/AY355010715", "host": [ "{{url}}" ], "path": [ "shipping", "bulk_awb", "trackings", "AY355010715" ] }, "description": "This API provides an interface to print multiple AWB at once. This API requires a list of comma separated tracking numbers associated with a customer account. If all the tracking numbers are found for that associated account, this API returns a URL to download the pdf file for all AWB." }, "response": [ { "name": "Bulk Shipping AWB (Success)", "originalRequest": { "method": "GET", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "{{url}}/shipping/bulk_awb/trackings/AY355010715", "host": [ "{{url}}" ], "path": [ "shipping", "bulk_awb", "trackings", "AY355010715" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 08:53:20 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "vary", "value": "Accept-Encoding" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2994" }, { "key": "x-frame-options", "value": "SAMEORIGIN" }, { "key": "x-xss-protection", "value": "1; mode=block" }, { "key": "x-content-type-options", "value": "nosniff" }, { "key": "content-encoding", "value": "gzip" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=TZbJp6I3LPToDrkEtmPJ7Skc1P2vvEjTmtMbTda0g9hjAgZ6RJBwL76cJKA3b630ypGgQZifs7ZxpHfeD8%2FAi9jsGiunxMG%2BUYxFF6x8yyXRfMQ3zd8YCcfOZ6cpYKTluJp4Ios%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683b5984ac0b0766-LHR" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "{\n \"success\": true,\n \"data\": {\n \"bulk_awb_url\": \"https://dev.aymakan.com.sa/pdf/generate/f05891c7-6f86-4e59-bd3f-4484a6321309\"\n }\n}" }, { "name": "Bulk Shipping AWB (Success Bulk)", "originalRequest": { "method": "GET", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "{{url}}/shipping/bulk_awb/trackings/AY355010715,AY355018672", "host": [ "{{url}}" ], "path": [ "shipping", "bulk_awb", "trackings", "AY355010715,AY355018672" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 11:15:52 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "vary", "value": "Accept-Encoding" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2998" }, { "key": "x-frame-options", "value": "SAMEORIGIN" }, { "key": "x-xss-protection", "value": "1; mode=block" }, { "key": "x-content-type-options", "value": "nosniff" }, { "key": "content-encoding", "value": "gzip" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=xMKjLkccz58NteiJES%2FunQdcF5%2FkP7nIkJ0BSH0prcvQ0H2I%2Fbi7g12%2F4cuC7Dvps6TzGE7HPQYnypzre%2F212fjzWp9qhP1%2FlYyX3XOpSSb2%2BZvRE8nYZaeZnXBWKpmafWyI788%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683c2a4d9fb64236-AMS" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "{\n \"success\": true,\n \"data\": {\n \"bulk_awb_url\": \"https://dev.aymakan.com.sa/pdf/generate/f05891c7-6f86-4e59-bd3f-4484a6321309\"\n }\n}" }, { "name": "Bulk Shipping AWB (Invalid Credentials)", "originalRequest": { "method": "GET", "header": [ { "key": "Authorization", "value": "10c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "{{url}}/shipping/bulk_awb/trackings/AY355010715", "host": [ "{{url}}" ], "path": [ "shipping", "bulk_awb", "trackings", "AY355010715" ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 11:17:31 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2998" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=%2Bpt7dxzescVMAH8Lr4uk5hE6B3jht0YTZhOelY44mY%2FNOFWLX9Q0m%2BrW9%2FoWUL2vrwT7BpN5j5RiQwelPYSOmIPBdW4GOHClYdtzw2wd130HAtp8h4bk1D6eb5B0xdiZBAZ5lhE%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683c2cb8ae654236-AMS" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "{\n \"error\": true,\n \"response\": \"Invalid Credentials\"\n}" }, { "name": "Bulk Shipping AWB (Not Found)", "originalRequest": { "method": "GET", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "url": { "raw": "{{url}}/shipping/bulk_awb/trackings/AY355010715,678687687", "host": [ "{{url}}" ], "path": [ "shipping", "bulk_awb", "trackings", "AY355010715,678687687" ] } }, "status": "Unprocessable Entity", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "nginx/1.21.1" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "X-Powered-By", "value": "PHP/8.0.9" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Date", "value": "Sat, 04 Sep 2021 22:20:52 GMT" }, { "key": "X-RateLimit-Limit", "value": "60" }, { "key": "X-RateLimit-Remaining", "value": "59" }, { "key": "Access-Control-Allow-Origin", "value": "*" } ], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"No Shipments Found\",\n \"errors\": {\n \"trackings\": [\n \"AY355010715\",\n \"678687687\"\n ]\n }\n}" } ] }, { "name": "Cancel Shipping", "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"tracking\": \"AY3550\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/shipping/cancel", "host": [ "{{url}}" ], "path": [ "shipping", "cancel" ], "query": [ { "key": "", "value": "", "disabled": true } ] }, "description": "This API enables customer to cancel their shipping." }, "response": [ { "name": "Cancel Shipping (Failed)", "originalRequest": { "method": "POST", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"tracking\": 206360\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/shipping/cancel", "host": [ "{{url}}" ], "path": [ "shipping", "cancel" ], "query": [ { "key": "", "value": "", "disabled": true } ] } }, "status": "Unprocessable Entity", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 06:46:09 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2999" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=1xuOMFz1sgy8yoFhUKw0fLXfNMq%2BhmsPzKOVbLaRoCC4YwMQK0k41X9PPGKxJ5A3KMd%2Bbfd6HMOey9wZcHsV0sYfI%2BmCNXk1ipUiBA%2FG97X4iollpCCZOsSOmooywlN1Iq3gWL4%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683a9f35fc4a424e-AMS" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"This shipping can not be cancelled\"\n}" }, { "name": "Cancel Shipping (Success)", "originalRequest": { "method": "POST", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"tracking\": \"AY355017148\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/shipping/cancel", "host": [ "{{url}}" ], "path": [ "shipping", "cancel" ], "query": [ { "key": "", "value": "", "disabled": true } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 07:18:38 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "vary", "value": "Accept-Encoding" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2999" }, { "key": "x-frame-options", "value": "SAMEORIGIN" }, { "key": "x-xss-protection", "value": "1; mode=block" }, { "key": "x-content-type-options", "value": "nosniff" }, { "key": "content-encoding", "value": "gzip" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=FkUJNcKP2mMC%2BhrzMLOf%2FZqpGw6raye85y3ulYx4rZli3tYZJbNzp5%2BAc74NUQLaPCJYGHD5T42%2FJN5nTRG7ZqsRlgnwsZLxJIB2hqRCuMuxYWL3WWpgYzWTmonz9a%2BFE1iMFqc%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683acec93de89cab-AMS" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "{\n \"success\": true,\n \"message\": \"Shipping pickup is cancelled successfully\"\n}" }, { "name": "Cancel Shipping (404)", "originalRequest": { "method": "POST", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"tracking\": \"AY3550\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/shipping/cancel", "host": [ "{{url}}" ], "path": [ "shipping", "cancel" ], "query": [ { "key": "", "value": "", "disabled": true } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 08:17:41 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "vary", "value": "Accept-Encoding" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2996" }, { "key": "content-encoding", "value": "gzip" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=WwungGy19jnXNUlsZj1kuU0ZYguz1OkcefM%2FoJuTQOm7dF5RLQN9iCxXSOtXYzWWbVPMaoVnMgyHNs%2Fa6EzHWaPF5t%2Fo4IfC37yWz6V%2BmAjOHgch2Q36r9tj2lpztCjXsHUAads%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683b25482b2906a2-LHR" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"Shipping not found\"\n}" }, { "name": "Cancel Shipping (Invalid Credentials)", "originalRequest": { "method": "POST", "header": [ { "key": "Authorization", "value": "10c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"tracking\": \"AY3550\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/shipping/cancel", "host": [ "{{url}}" ], "path": [ "shipping", "cancel" ], "query": [ { "key": "", "value": "", "disabled": true } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 11:27:11 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2998" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=hR%2BOGv1bzdvsXy3vYXCKiyM6Ljivyv1GJ2VdZsXl2RYyDu4QmR8hrDmX1Ne7Fo5F8qYjL4MD7d9os2wbc9V7YDpa0Pi7Xl0VutyznIyJ1xKVue5YQJhwmp%2FPoqyVMVf1mkQVIlc%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683c3adcfaca1e6d-AMS" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "{\n \"error\": true,\n \"response\": \"Invalid Credentials\"\n}" } ] }, { "name": "Cancel Shipping By Reference", "request": { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "{{cred}}", "type": "string" }, { "key": "key", "value": "Authorization", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"reference\": \"3550\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/shipping/cancel_by_reference", "host": [ "{{url}}" ], "path": [ "shipping", "cancel_by_reference" ] } }, "response": [ { "name": "Cancel Shipping By Reference (Failed)", "originalRequest": { "method": "POST", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"reference\": 206360\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/shipping/cancel_by_reference", "host": [ "{{url}}" ], "path": [ "shipping", "cancel_by_reference" ], "query": [ { "key": "", "value": "", "disabled": true } ] } }, "status": "Unprocessable Entity", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 06:46:09 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2999" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=1xuOMFz1sgy8yoFhUKw0fLXfNMq%2BhmsPzKOVbLaRoCC4YwMQK0k41X9PPGKxJ5A3KMd%2Bbfd6HMOey9wZcHsV0sYfI%2BmCNXk1ipUiBA%2FG97X4iollpCCZOsSOmooywlN1Iq3gWL4%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683a9f35fc4a424e-AMS" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"This shipping can not be cancelled\"\n}" }, { "name": "Cancel Shipping By Reference (Success)", "originalRequest": { "method": "POST", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"reference\": 206360\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/shipping/cancel_by_reference", "host": [ "{{url}}" ], "path": [ "shipping", "cancel_by_reference" ], "query": [ { "key": "", "value": "", "disabled": true } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 06:46:09 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2999" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=1xuOMFz1sgy8yoFhUKw0fLXfNMq%2BhmsPzKOVbLaRoCC4YwMQK0k41X9PPGKxJ5A3KMd%2Bbfd6HMOey9wZcHsV0sYfI%2BmCNXk1ipUiBA%2FG97X4iollpCCZOsSOmooywlN1Iq3gWL4%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683a9f35fc4a424e-AMS" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "{\n \"success\": true,\n \"message\": \"Shipping pickup is cancelled successfully\"\n}" }, { "name": "Cancel Shipping By Reference (404)", "originalRequest": { "method": "POST", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"reference\": 206360\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/shipping/cancel_by_reference", "host": [ "{{url}}" ], "path": [ "shipping", "cancel_by_reference" ], "query": [ { "key": "", "value": "", "disabled": true } ] } }, "status": "Not Found", "code": 404, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 06:46:09 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2999" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=1xuOMFz1sgy8yoFhUKw0fLXfNMq%2BhmsPzKOVbLaRoCC4YwMQK0k41X9PPGKxJ5A3KMd%2Bbfd6HMOey9wZcHsV0sYfI%2BmCNXk1ipUiBA%2FG97X4iollpCCZOsSOmooywlN1Iq3gWL4%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683a9f35fc4a424e-AMS" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"Shipping not found\"\n}" }, { "name": "Cancel Shipping By Reference (Invalid Credentials)", "originalRequest": { "method": "POST", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"reference\": 206360\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/shipping/cancel_by_reference", "host": [ "{{url}}" ], "path": [ "shipping", "cancel_by_reference" ], "query": [ { "key": "", "value": "", "disabled": true } ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 06:46:09 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2999" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=1xuOMFz1sgy8yoFhUKw0fLXfNMq%2BhmsPzKOVbLaRoCC4YwMQK0k41X9PPGKxJ5A3KMd%2Bbfd6HMOey9wZcHsV0sYfI%2BmCNXk1ipUiBA%2FG97X4iollpCCZOsSOmooywlN1Iq3gWL4%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683a9f35fc4a424e-AMS" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "{\n \"error\": true,\n \"response\": \"Invalid Credentials\"\n}" } ] }, { "name": "Create Shipping", "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"requested_by\": \"Test\",\n \"delivery_name\":\"saf\",\n \"declared_value\":1,\n \"delivery_city\":\"Riyadh\",\n \"delivery_address\":\"Riyadh\",\n \"delivery_neighbourhood\":\"Riyadh\",\n \"delivery_country\":\"SA\",\n \"delivery_phone\":540094914,\n \"collection_name\":\"saf\",\n \"collection_email\":\"safia@aymakan.com.sa\",\n \"collection_city\":\"Riyadh\",\n \"collection_address\":\"Riyadh\",\n \"collection_country\": \"SA\",\n \"collection_phone\":540094914,\n \"pieces\": 1 \n\n }", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/shipping/create", "host": [ "{{url}}" ], "path": [ "shipping", "create" ] }, "description": "This API provides an interface to create a new shipping at Aymakan." }, "response": [ { "name": "Create Shipping (City Error)", "originalRequest": { "method": "POST", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"requested_by\": \"Test1\",\n \"declared_value\": 1,\n \"delivery_name\":\"saf\",\n \"delivery_city\":\"Riy\",\n \"delivery_address\":\"Riyadh\",\n \"delivery_neighbourhood\":\"Riyadh\",\n \"delivery_country\":\"SA\",\n \"delivery_phone\":540094914,\n \"collection_name\":\"saf\",\n \"collection_email\":\"safia@aymakan.com.sa\",\n \"collection_city\":\"Riy\",\n \"collection_address\":\"Riyadh\",\n \"collection_country\": \"SA\",\n \"collection_phone\":540094914,\n \"pieces\": 1 \n }", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/shipping/create", "host": [ "{{url}}" ], "path": [ "shipping", "create" ] } }, "status": "Unprocessable Entity", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 07:06:26 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2995" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=vXJW8mLUaTZdE2qYbND8uFgYgtjhTWBV1DywdCXvSSpdoRswIbLmfOih1lQ0HWebixMHfmSM2JKK7geFj53h7SjwhzKhdboqsXjnCtRz2%2FMhmk1CpLhm711la3MgrVCr%2F4jcwuQ%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683abce97ca4f40f-LHR" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "{\n \"message\": \"The given data was invalid.\",\n \"errors\": {\n \"collection_city\": [\n \"Invalid collection city. Pass the correct city from Aymakan cities list\"\n ],\n \"delivery_city\": [\n \"Invalid delivery city. Pass the correct city from Aymakan cities list.\"\n ]\n }\n}" }, { "name": "Create Shipping (Success)", "originalRequest": { "method": "POST", "header": [ { "key": "Authorization", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"requested_by\": \"Test3\",\n \"declared_value\": 1,\n \"delivery_name\":\"saf\",\n \"delivery_city\":\"Riyadh\",\n \"delivery_address\":\"Riyadh\",\n \"delivery_neighbourhood\":\"Riyadh\",\n \"delivery_country\":\"SA\",\n \"delivery_phone\":540094914,\n \"collection_name\":\"saf\",\n \"collection_email\":\"safia@aymakan.com.sa\",\n \"collection_city\":\"Riyadh\",\n \"collection_address\":\"Riyadh\",\n \"collection_country\": \"SA\",\n \"collection_phone\":540094914,\n \"pieces\": 1 \n }", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/shipping/create", "host": [ "{{url}}" ], "path": [ "shipping", "create" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 07:07:11 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "vary", "value": "Accept-Encoding" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2994" }, { "key": "x-frame-options", "value": "SAMEORIGIN" }, { "key": "x-xss-protection", "value": "1; mode=block" }, { "key": "x-content-type-options", "value": "nosniff" }, { "key": "content-encoding", "value": "gzip" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=kBbCHU9kOW6L4g7fhtw7dPzgaoYRkK5xLSFVa%2FvkW%2BWj7VTk1LXqeaEv%2F%2B%2ByL2MfCcwQAKoy7p3CjyDa4mPE%2FzkhaIvLHjVw06cSjXhtctc9%2Bkk8zaSjwNGW5FP95S6M40n0nLg%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683abe06bf97424e-AMS" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "\n \"success\": true,\n \"data\": {\n \"shipping\": {\n \"reference\": null,\n \"tracking_number\": \"AY2866494373\",\n \"customer_tracking\": null,\n \"customer_name\": \"test Account\",\n \"requested_by\": \"Test3\",\n \"price_set_amount\": null,\n \"price_set_amount_incl_tax\": null,\n \"tax_amount\": null,\n \"tax_rate\": null,\n \"cod_amount\": 12,\n \"declared_value\": 1,\n \"declared_value_currency\": \"SAR\",\n \"currency\": \"SAR\",\n \"delivery_name\": \"Ahmed\",\n \"delivery_email\": \"Ahmed@email.com\",\n \"delivery_city\": \"Riyadh\",\n \"delivery_address\": \"Riyadh\",\n \"delivery_neighbourhood\": \"Al Sahafa\",\n \"delivery_postcode\": 11543,\n \"delivery_country\": \"SA\",\n \"delivery_phone\": 540000000,\n \"delivery_description\": null,\n \"collection_name\": \"Ahmed\",\n \"collection_email\": \"Ahmed@email.com\",\n \"collection_city\": \"Riyadh\",\n \"collection_address\": \"Al Sahafa\",\n \"collection_region\": null,\n \"collection_postcode\": 11543,\n \"collection_country\": \"SA\",\n \"collection_phone\": 540000000,\n \"collection_description\": null,\n \"submission_date\": \"2021-12-15T12:09:41.915027Z\",\n \"pickup_date\": null,\n \"received_at\": null,\n \"delivery_date\": null,\n \"weight\": 38,\n \"pieces\": 1,\n \"items_count\": 1,\n \"status\": \"AWB created at origin\",\n \"status_label\": \"AWB created at origin\",\n \"created_at\": \"2021-12-15T12:09:41.000000Z\",\n \"is_reverse_pickup\": 0,\n \"label\": \"https://dev.aymakan.com.sa/pdf/generate/172aa74e-980f-4f80-930e-05f465e4cbbc\",\n \"pdf_label\": \"https://dev.aymakan.com.sa/pdf/generate/172aa74e-980f-4f80-930e-05f465e4cbbc\"\n }\n }\n}" }, { "name": "Create Shipping (Invalid Credentials)", "originalRequest": { "method": "POST", "header": [ { "key": "Authorization", "value": "10c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "text" }, { "key": "Accept", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"requested_by\": \"Test\",\n \"delivery_name\":\"saf\",\n \"delivery_city\":\"Riyadh\",\n \"delivery_address\":\"Riyadh\",\n \"delivery_neighbourhood\":\"Riyadh\",\n \"delivery_country\":\"SA\",\n \"delivery_phone\":540094914,\n \"collection_name\":\"saf\",\n \"collection_email\":\"safia@aymakan.com.sa\",\n \"collection_city\":\"Riyadh\",\n \"collection_address\":\"Riyadh\",\n \"collection_country\": \"SA\",\n \"collection_phone\":540094914,\n \"pieces\": 1 \n\n }", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/shipping/create", "host": [ "{{url}}" ], "path": [ "shipping", "create" ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 11:30:36 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2994" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=QGQlYrSuu1UZMNVVFPJOhwe3vc6YoDTl3VHunhL3ab5SWVjUfRELij6GHVoLTlATaJR61z7OW1LxLynqdyt%2Bt2cBaJN8PojyvDX75p%2F3e1z6nwglZWVYMDdRhLU1J63QCBJdji0%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683c3fdf5f1b1e6d-AMS" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "{\n \"error\": true,\n \"response\": \"Invalid Credentials\"\n}" } ] }, { "name": "Reverse Pickup", "request": { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "{{cred}}", "type": "string" }, { "key": "key", "value": "Authorization", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"requested_by\": \"Test3\",\n \"declared_value\": 1,\n \"declared_value_currency\": \"SAR\",\n \"reference\": \"\",\n \"is_cod\": 1,\n \"cod_amount\": 12,\n \"currency\": \"SAR\",\n \"delivery_name\": \"\",\n \"delivery_email\": \"Ahmed@email.com\",\n \"delivery_city\": \"Riyadh\",\n \"delivery_address\": \"Riyadh\",\n \"delivery_neighbourhood\": \"Al Sahafa\",\n \"delivery_postcode\": 11543,\n \"delivery_country\": \"SA\",\n \"delivery_phone\": 540000000,\n \"delivery_description\": \"\",\n \"collection_name\": \"Ahmed\",\n \"collection_email\": \"Ahmed@email.com\",\n \"collection_city\": \"Riyadh\",\n \"collection_address\": \"Al Sahafa\",\n \"collection_neighbourhood\": \"Riyadh\",\n \"collection_postcode\": 11543,\n \"collection_country\": \"SA\",\n \"collection_phone\": 540000000,\n \"collection_description\": \"\",\n \"weight\": 38,\n \"pieces\": 1,\n \"items_count\": 1,\n \"products\": [\n {\n \"sku\": 1212,\n \"qty\": 1,\n \"price\": 20.1\n }\n ]\n\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/shipping/create/reverse_pickup", "host": [ "{{url}}" ], "path": [ "shipping", "create", "reverse_pickup" ] } }, "response": [ { "name": "Reverse Pickup(Success)", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"requested_by\": \"Test3\",\n \"declared_value\": 1,\n \"declared_value_currency\": \"SAR\",\n \"reference\": \"\",\n \"is_cod\": 1,\n \"cod_amount\": 12,\n \"currency\": \"SAR\",\n \"delivery_name\": \"\",\n \"delivery_email\": \"Ahmed@email.com\",\n \"delivery_city\": \"Riyadh\",\n \"delivery_address\": \"Riyadh\",\n \"delivery_neighbourhood\": \"Al Sahafa\",\n \"delivery_postcode\": 11543,\n \"delivery_country\": \"SA\",\n \"delivery_phone\": 540000000,\n \"delivery_description\": \"\",\n \"collection_name\": \"Ahmed\",\n \"collection_email\": \"Ahmed@email.com\",\n \"collection_city\": \"Riyadh\",\n \"collection_address\": \"Al Sahafa\",\n \"collection_neighbourhood\": \"Riyadh\",\n \"collection_postcode\": 11543,\n \"collection_country\": \"SA\",\n \"collection_phone\": 540000000,\n \"collection_description\": \"\",\n \"weight\": 38,\n \"pieces\": 1,\n \"items_count\": 1,\n \"products\": [\n {\n \"sku\": 1212,\n \"qty\": 1,\n \"price\":\n }\n ]\n\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/shipping/create/reverse_pickup", "host": [ "{{url}}" ], "path": [ "shipping", "create", "reverse_pickup" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [], "cookie": [], "body": "{\n \"success\": true,\n \"data\": {\n \"shipping\": {\n \"reference\": null,\n \"tracking_number\": \"RP2866500651\",\n \"customer_tracking\": null,\n \"customer_name\": \"test Account\",\n \"requested_by\": \"Test3\",\n \"price_set_amount\": null,\n \"price_set_amount_incl_tax\": null,\n \"tax_amount\": null,\n \"tax_rate\": null,\n \"cod_amount\": 0,\n \"declared_value\": 1,\n \"declared_value_currency\": \"SAR\",\n \"currency\": \"SAR\",\n \"delivery_name\": \"Ahmed\",\n \"delivery_email\": \"Ahmed@email.com\",\n \"delivery_city\": \"Riyadh\",\n \"delivery_address\": \"Riyadh\",\n \"delivery_neighbourhood\": \"Al Sahafa\",\n \"delivery_postcode\": 11543,\n \"delivery_country\": \"SA\",\n \"delivery_phone\": 540000000,\n \"delivery_description\": null,\n \"collection_name\": \"Ahmed\",\n \"collection_email\": \"Ahmed@email.com\",\n \"collection_city\": \"Riyadh\",\n \"collection_address\": \"Al Sahafa\",\n \"collection_region\": null,\n \"collection_postcode\": 11543,\n \"collection_country\": \"SA\",\n \"collection_phone\": 540000000,\n \"collection_description\": null,\n \"submission_date\": \"2021-12-16T09:38:46.477036Z\",\n \"pickup_date\": null,\n \"received_at\": null,\n \"delivery_date\": null,\n \"weight\": 38,\n \"pieces\": 1,\n \"items_count\": 1,\n \"status\": \"AWB created at origin\",\n \"status_label\": \"AWB created at origin\",\n \"created_at\": \"2021-12-16T09:38:46.000000Z\",\n \"is_reverse_pickup\": 1,\n \"label\": \"https://dev.aymakan.com.sa/pdf/generate/d1f944ca-93f3-483b-a16e-ea9054614f6e\",\n \"pdf_label\": \"https://dev.aymakan.com.sa/pdf/generate/d1f944ca-93f3-483b-a16e-ea9054614f6e\"\n }\n }\n}" }, { "name": "Reverse Pickup(Not Allowed)", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"requested_by\": \"Test3\",\n \"declared_value\": 1,\n \"declared_value_currency\": \"SAR\",\n \"reference\": \"\",\n \"is_cod\": 1,\n \"cod_amount\": 12,\n \"currency\": \"SAR\",\n \"delivery_name\": \"\",\n \"delivery_email\": \"Ahmed@email.com\",\n \"delivery_city\": \"Riyadh\",\n \"delivery_address\": \"Riyadh\",\n \"delivery_neighbourhood\": \"Al Sahafa\",\n \"delivery_postcode\": 11543,\n \"delivery_country\": \"SA\",\n \"delivery_phone\": 540000000,\n \"delivery_description\": \"\",\n \"collection_name\": \"Ahmed\",\n \"collection_email\": \"Ahmed@email.com\",\n \"collection_city\": \"Riyadh\",\n \"collection_address\": \"Al Sahafa\",\n \"collection_neighbourhood\": \"Riyadh\",\n \"collection_postcode\": 11543,\n \"collection_country\": \"SA\",\n \"collection_phone\": 540000000,\n \"collection_description\": \"\",\n \"weight\": 38,\n \"pieces\": 1,\n \"items_count\": 1,\n \"products\": [\n {\n \"sku\": 1212,\n \"qty\": 1,\n \"price\":\n }\n ]\n\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/shipping/create/reverse_pickup", "host": [ "{{url}}" ], "path": [ "shipping", "create", "reverse_pickup" ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"The given data was invalid.\",\n \"errors\": {\n \"rp\": [\n \"You are not allowed to create RP shipments. Contact sales team.\"\n ]\n }\n}" }, { "name": "Reverse Pickup(Failed)", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"requested_by\": \"Test3\",\n \"declared_value\": 1,\n \"declared_value_currency\": \"SAR\",\n \"reference\": \"\",\n \"is_cod\": 1,\n \"cod_amount\": 12,\n \"currency\": \"SAR\",\n \"delivery_name\": \"\",\n \"delivery_email\": \"Ahmed@email.com\",\n \"delivery_city\": \"Riyadh\",\n \"delivery_address\": \"Riyadh\",\n \"delivery_neighbourhood\": \"Al Sahafa\",\n \"delivery_postcode\": 11543,\n \"delivery_country\": \"SA\",\n \"delivery_phone\": 540000000,\n \"delivery_description\": \"\",\n \"collection_name\": \"Ahmed\",\n \"collection_email\": \"Ahmed@email.com\",\n \"collection_city\": \"Riyadh\",\n \"collection_address\": \"Al Sahafa\",\n \"collection_neighbourhood\": \"Riyadh\",\n \"collection_postcode\": 11543,\n \"collection_country\": \"SA\",\n \"collection_phone\": 540000000,\n \"collection_description\": \"\",\n \"weight\": 38,\n \"pieces\": 1,\n \"items_count\": 1,\n \"products\": [\n {\n \"sku\": 1212,\n \"qty\": 1,\n \"price\":\n }\n ]\n\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/shipping/create/reverse_pickup", "host": [ "{{url}}" ], "path": [ "shipping", "create", "reverse_pickup" ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [], "cookie": [], "body": "{\n \"message\": \"The given data was invalid.\",\n \"errors\": {\n \"price_set\": [\n \"The price set field is required.\"\n ],\n \"declared_value\": [\n \"The declared value field is required.\"\n ]\n }\n}" }, { "name": "Reverse Pickup (Invalid Credentials)", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"requested_by\": \"Test3\",\n \"declared_value\": 1,\n \"declared_value_currency\": \"SAR\",\n \"reference\": \"\",\n \"is_cod\": 1,\n \"cod_amount\": 12,\n \"currency\": \"SAR\",\n \"delivery_name\": \"\",\n \"delivery_email\": \"Ahmed@email.com\",\n \"delivery_city\": \"Riyadh\",\n \"delivery_address\": \"Riyadh\",\n \"delivery_neighbourhood\": \"Al Sahafa\",\n \"delivery_postcode\": 11543,\n \"delivery_country\": \"SA\",\n \"delivery_phone\": 540000000,\n \"delivery_description\": \"\",\n \"collection_name\": \"Ahmed\",\n \"collection_email\": \"Ahmed@email.com\",\n \"collection_city\": \"Riyadh\",\n \"collection_address\": \"Al Sahafa\",\n \"collection_neighbourhood\": \"Riyadh\",\n \"collection_postcode\": 11543,\n \"collection_country\": \"SA\",\n \"collection_phone\": 540000000,\n \"collection_description\": \"\",\n \"weight\": 38,\n \"pieces\": 1,\n \"items_count\": 1,\n \"products\": [\n {\n \"sku\": 1212,\n \"qty\": 1,\n \"price\":\n }\n ]\n\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/shipping/create/reverse_pickup", "host": [ "{{url}}" ], "path": [ "shipping", "create", "reverse_pickup" ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [], "cookie": [], "body": "{\n \"error\": true,\n \"response\": \"Invalid Credentials\"\n}" } ] } ] }, { "name": "Addresses", "item": [ { "name": "Address", "request": { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "string" }, { "key": "key", "value": "Authorization", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{url}}/address/list", "host": [ "{{url}}" ], "path": [ "address", "list" ] }, "description": "This API lists all addresses linked to customer.\nEach Customer can have multiple addresses." }, "response": [ { "name": "Address (Success)", "originalRequest": { "method": "GET", "header": [], "url": { "raw": "{{url}}/address/list", "host": [ "{{url}}" ], "path": [ "address", "list" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "nginx/1.21.1" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Vary", "value": "Accept-Encoding" }, { "key": "X-Powered-By", "value": "PHP/8.0.9" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Date", "value": "Sun, 29 Aug 2021 08:03:10 GMT" }, { "key": "X-RateLimit-Limit", "value": "60" }, { "key": "X-RateLimit-Remaining", "value": "59" }, { "key": "Access-Control-Allow-Origin", "value": "*" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "{\n \"success\": true,\n \"data\": {\n \"address\": {\n \"id\": 75,\n \"title\": \"mr\",\n \"name\": \"Muh\",\n \"email\": \"maladdad@aymakan.com.sa\",\n \"city\": \"Riyadh\",\n \"address\": \"123\",\n \"postcode\": \"\",\n \"neighbourhood\": null,\n \"phone\": \"0580777955\",\n \"country\": \"SA\",\n \"description\": null\n }\n }\n}" }, { "name": "Address (Invalid Credentials)", "originalRequest": { "method": "GET", "header": [], "url": { "raw": "{{url}}/address/list", "host": [ "{{url}}" ], "path": [ "address", "list" ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "nginx/1.21.1" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "X-Powered-By", "value": "PHP/8.0.9" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Date", "value": "Sun, 29 Aug 2021 08:04:01 GMT" }, { "key": "X-RateLimit-Limit", "value": "60" }, { "key": "X-RateLimit-Remaining", "value": "58" }, { "key": "Access-Control-Allow-Origin", "value": "*" } ], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"Invalid Credentials\"\n}" } ] }, { "name": "Update Address", "request": { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "string" }, { "key": "key", "value": "Authorization", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"id\" : 75,\n \"title\" : \"mr\",\n \"name\" : \"Muh\",\n \"email\" : \"maladdad@aymakan.com.sa\",\n \"city\" : \"Riyadh\",\n \"address\" : 123,\n \"neighbourhood\" : \"Rabiea\",\n \"postcode\" : \"11534\",\n \"phone\" : 580777955 ,\n \"description\" :\"Test User\" \n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/address/update", "host": [ "{{url}}" ], "path": [ "address", "update" ] }, "description": "Updates data of address linked to the customer." }, "response": [ { "name": "Update Address (Failed)", "originalRequest": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n\n \"id\" => ,\n \"title\" => ,\n \"name\" => ,\n \"email\" => ,\n \"city\" => ,\n \"address\" => ,\n \"neighbourhood\" => ,\n \"postcode\" => ,\n \"phone\" => ,\n \"description\" => \n \n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/address/update", "host": [ "{{url}}" ], "path": [ "address", "update" ] } }, "status": "Unprocessable Entity", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "nginx/1.21.1" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "X-Powered-By", "value": "PHP/8.0.9" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Date", "value": "Sun, 29 Aug 2021 08:16:34 GMT" }, { "key": "X-RateLimit-Limit", "value": "60" }, { "key": "X-RateLimit-Remaining", "value": "59" }, { "key": "Access-Control-Allow-Origin", "value": "*" } ], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"Validation Error.\",\n \"errors\": {\n \"id\": [\n \"The id field is required.\"\n ],\n \"title\": [\n \"The title field is required.\"\n ],\n \"name\": [\n \"The name field is required.\"\n ],\n \"email\": [\n \"The email field is required.\"\n ],\n \"city\": [\n \"The city field is required.\"\n ],\n \"address\": [\n \"The address field is required.\"\n ],\n \"neighbourhood\": [\n \"The neighbourhood field is required.\"\n ],\n \"postcode\": [\n \"The postcode field is required.\"\n ],\n \"phone\": [\n \"The phone field is required.\"\n ],\n \"description\": [\n \"The description field is required.\"\n ]\n }\n}" }, { "name": "Update Address (Invalid Credentials)", "originalRequest": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"id\" => ,\n \"title\" => ,\n \"name\" => ,\n \"email\" => ,\n \"city\" => ,\n \"address\" => ,\n \"neighbourhood\" => ,\n \"postcode\" => ,\n \"phone\" => ,\n \"description\" => \n\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/address/update", "host": [ "{{url}}" ], "path": [ "address", "update" ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "nginx/1.21.1" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "X-Powered-By", "value": "PHP/8.0.9" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Date", "value": "Sun, 29 Aug 2021 08:18:28 GMT" }, { "key": "X-RateLimit-Limit", "value": "60" }, { "key": "X-RateLimit-Remaining", "value": "59" }, { "key": "Access-Control-Allow-Origin", "value": "*" } ], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"Invalid Credentials\"\n}" }, { "name": "Update Address (Success)", "originalRequest": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"id\" : 75,\n \"title\" : \"mr\",\n \"name\" : \"Muh\",\n \"email\" : \"maladdad@aymakan.com.sa\",\n \"city\" : \"Riyadh\",\n \"address\" : 123,\n \"neighbourhood\" : \"Rabie\",\n \"postcode\" : \"11534\",\n \"phone\" : 580777955 ,\n \"description\" :\"Test User\" \n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/address/update", "host": [ "{{url}}" ], "path": [ "address", "update" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "nginx/1.21.1" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Vary", "value": "Accept-Encoding" }, { "key": "X-Powered-By", "value": "PHP/8.0.9" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Date", "value": "Sun, 29 Aug 2021 08:27:50 GMT" }, { "key": "X-RateLimit-Limit", "value": "60" }, { "key": "X-RateLimit-Remaining", "value": "59" }, { "key": "Access-Control-Allow-Origin", "value": "*" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "{\n \"success\": true,\n \"data\": {\n \"address\": {\n \"id\": 75,\n \"title\": \"mr\",\n \"name\": \"Muh\",\n \"email\": \"maladdad@aymakan.com.sa\",\n \"city\": \"Riyadh\",\n \"address\": \"123\",\n \"neighbourhood\": \"Rabie\",\n \"postcode\": \"11534\",\n \"phone\": \"580777955\",\n \"country\": \"SA\",\n \"description\": \"Test User\",\n \"active\": 1,\n \"created_at\": \"2019-02-07T08:53:21.000000Z\",\n \"updated_at\": \"2021-08-29T08:27:50.000000Z\"\n }\n }\n}" } ] }, { "name": "Delete Address", "request": { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "string" }, { "key": "key", "value": "Authorization", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "{\n \"id\": 1002\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/address/delete", "host": [ "{{url}}" ], "path": [ "address", "delete" ] }, "description": "Delete address linked to customer." }, "response": [ { "name": "Delete Address (Success)", "originalRequest": { "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "{\n \"id\": 1002\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/address/delete", "host": [ "{{url}}" ], "path": [ "address", "delete" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "nginx/1.21.1" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Vary", "value": "Accept-Encoding" }, { "key": "X-Powered-By", "value": "PHP/8.0.9" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Date", "value": "Sun, 29 Aug 2021 11:51:09 GMT" }, { "key": "X-RateLimit-Limit", "value": "60" }, { "key": "X-RateLimit-Remaining", "value": "59" }, { "key": "Access-Control-Allow-Origin", "value": "*" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "{\n \"success\": true,\n \"message\": \"Record Delete Successfully\"\n}" }, { "name": "Delete Address (Failed)", "originalRequest": { "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "{\n \"id\": 1002\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/address/delete", "host": [ "{{url}}" ], "path": [ "address", "delete" ] } }, "status": "Unprocessable Entity", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "nginx/1.21.1" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "X-Powered-By", "value": "PHP/8.0.9" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Date", "value": "Sun, 29 Aug 2021 11:51:28 GMT" }, { "key": "X-RateLimit-Limit", "value": "60" }, { "key": "X-RateLimit-Remaining", "value": "58" }, { "key": "Access-Control-Allow-Origin", "value": "*" } ], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"Validation Error.\",\n \"errors\": {\n \"id\": [\n \"The selected id is invalid.\"\n ]\n }\n}" }, { "name": "Delete Address (Invalid Credentials)", "originalRequest": { "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "{\n \"id\": 1002\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/address/delete", "host": [ "{{url}}" ], "path": [ "address", "delete" ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "nginx/1.21.1" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "X-Powered-By", "value": "PHP/8.0.9" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Date", "value": "Sun, 29 Aug 2021 11:52:03 GMT" }, { "key": "X-RateLimit-Limit", "value": "60" }, { "key": "X-RateLimit-Remaining", "value": "57" }, { "key": "Access-Control-Allow-Origin", "value": "*" } ], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"Invalid Credentials\"\n}" } ] }, { "name": "Create Address", "request": { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "string" }, { "key": "key", "value": "Authorization", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"title\" : \"mr\",\n \"name\" : \"Muh\",\n \"email\" : \"maladdad@aymakan.com.sa\",\n \"city\" : \"Riyadh\",\n \"address\" : 123,\n \"neighbourhood\" : \"Rabiea\",\n \"postcode\" : \"11534\",\n \"phone\" : 580777955 ,\n \"description\" :\"Test User\" \n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/address/create", "host": [ "{{url}}" ], "path": [ "address", "create" ] }, "description": "Creates new address and links it to customer.\nCustomer can have multiple addresses." }, "response": [ { "name": "Create Address (Success)", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"title\" : \"mr\",\n \"name\" : \"Muh\",\n \"email\" : \"maladdad@aymakan.com.sa\",\n \"city\" : \"Riyadh\",\n \"address\" : 123,\n \"neighbourhood\" : \"Rabiea\",\n \"postcode\" : \"11534\",\n \"phone\" : 580777955 ,\n \"description\" :\"Test User\" \n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/address/create", "host": [ "{{url}}" ], "path": [ "address", "create" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "nginx/1.21.1" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Vary", "value": "Accept-Encoding" }, { "key": "X-Powered-By", "value": "PHP/8.0.9" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Date", "value": "Sun, 29 Aug 2021 11:37:48 GMT" }, { "key": "X-RateLimit-Limit", "value": "60" }, { "key": "X-RateLimit-Remaining", "value": "59" }, { "key": "Access-Control-Allow-Origin", "value": "*" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "{\n \"success\": true,\n \"data\": {\n \"address\": {\n \"id\": 1004,\n \"title\": \"mr\",\n \"name\": \"Muh\",\n \"email\": \"maladdad@aymakan.com.sa\",\n \"city\": \"Riyadh\",\n \"address\": \"123\",\n \"postcode\": \"11534\",\n \"neighbourhood\": \"Rabiea\",\n \"phone\": \"580777955\",\n \"country\": \"SA\",\n \"description\": \"Test User\"\n }\n }\n}" }, { "name": "Create Address (Invalid Credentials)", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"title\" : \"mr\",\n \"name\" : \"Muh\",\n \"email\" : \"maladdad@aymakan.com.sa\",\n \"city\" : \"Riyadh\",\n \"address\" : 123,\n \"neighbourhood\" : \"Rabiea\",\n \"postcode\" : \"11534\",\n \"phone\" : 580777955 ,\n \"description\" :\"Test User\" \n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/address/create", "host": [ "{{url}}" ], "path": [ "address", "create" ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "nginx/1.21.1" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "X-Powered-By", "value": "PHP/8.0.9" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Date", "value": "Sun, 29 Aug 2021 11:53:17 GMT" }, { "key": "X-RateLimit-Limit", "value": "60" }, { "key": "X-RateLimit-Remaining", "value": "58" }, { "key": "Access-Control-Allow-Origin", "value": "*" } ], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"Invalid Credentials\"\n}" }, { "name": "Create Address (Failed)", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"name\" : \"Muh\",\n \"email\" : \"maladdad@aymakan.com.sa\",\n \"city\" : \"Riyadh\",\n \"address\" : 123,\n \"neighbourhood\" : \"Rabiea\",\n \"postcode\" : \"11534\",\n \"phone\" : 580777955 ,\n \"description\" :\"Test User\" \n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/address/create", "host": [ "{{url}}" ], "path": [ "address", "create" ] } }, "status": "Unprocessable Entity", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "nginx/1.21.1" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "X-Powered-By", "value": "PHP/8.0.9" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Date", "value": "Sun, 29 Aug 2021 11:54:01 GMT" }, { "key": "X-RateLimit-Limit", "value": "60" }, { "key": "X-RateLimit-Remaining", "value": "55" }, { "key": "Access-Control-Allow-Origin", "value": "*" } ], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"Validation Error.\",\n \"errors\": {\n \"title\": [\n \"The title field is required.\"\n ]\n }\n}" } ] } ] }, { "name": "Webhooks", "item": [ { "name": "Webhook", "request": { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "string" }, { "key": "key", "value": "Authorization", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{url}}/webhooks/list", "host": [ "{{url}}" ], "path": [ "webhooks", "list" ] }, "description": "This API provides an interface to fetch webhook associated to customer account.\nCustomer can have only one webhook." }, "response": [ { "name": "Webhook (Success)", "originalRequest": { "method": "GET", "header": [], "url": { "raw": "{{url}}/webhooks/list", "host": [ "{{url}}" ], "path": [ "webhooks", "list" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "nginx/1.21.1" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Vary", "value": "Accept-Encoding" }, { "key": "X-Powered-By", "value": "PHP/8.0.9" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Date", "value": "Sun, 29 Aug 2021 11:48:54 GMT" }, { "key": "X-RateLimit-Limit", "value": "60" }, { "key": "X-RateLimit-Remaining", "value": "57" }, { "key": "Access-Control-Allow-Origin", "value": "*" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "{\n \"success\": true,\n \"data\": {\n \"webhook\": {\n \"id\": 195,\n \"webhook_url\": \"https://testings.com\",\n \"call_method\": \"POST\",\n \"active\": 0,\n \"created_at\": \"2021-02-07T10:05:08.000000Z\",\n \"updated_at\": \"2021-02-07T10:40:34.000000Z\"\n }\n }\n}" }, { "name": "Webhook (Invalid Credentials)", "originalRequest": { "method": "GET", "header": [], "url": { "raw": "{{url}}/webhooks/list", "host": [ "{{url}}" ], "path": [ "webhooks", "list" ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "nginx/1.21.1" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "X-Powered-By", "value": "PHP/8.0.9" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Date", "value": "Sun, 29 Aug 2021 11:49:52 GMT" }, { "key": "X-RateLimit-Limit", "value": "60" }, { "key": "X-RateLimit-Remaining", "value": "59" }, { "key": "Access-Control-Allow-Origin", "value": "*" } ], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"Invalid Credentials\"\n}" }, { "name": "Webhook (Not Found)", "originalRequest": { "method": "GET", "header": [], "url": { "raw": "{{url}}/webhooks/list", "host": [ "{{url}}" ], "path": [ "webhooks", "list" ] } }, "status": "Unprocessable Entity", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "nginx/1.21.1" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "X-Powered-By", "value": "PHP/8.0.9" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Date", "value": "Sun, 05 Sep 2021 11:27:14 GMT" }, { "key": "X-RateLimit-Limit", "value": "60" }, { "key": "X-RateLimit-Remaining", "value": "59" }, { "key": "Access-Control-Allow-Origin", "value": "*" } ], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"WebHook not found.\"\n}" } ] }, { "name": "Create Webhook", "request": { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "string" }, { "key": "key", "value": "Authorization", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"webhook_url\": \"https://what.com\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/webhooks/create", "host": [ "{{url}}" ], "path": [ "webhooks", "create" ] }, "description": "This api creates webhook and links it to customer, after checking that customer doesnt already have an existing webhook linked to his account." }, "response": [ { "name": "Create Webhook (Success)", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"webhook_url\": \"https://what.com\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/webhooks/create", "host": [ "{{url}}" ], "path": [ "webhooks", "create" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "nginx/1.21.1" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Vary", "value": "Accept-Encoding" }, { "key": "X-Powered-By", "value": "PHP/8.0.9" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Date", "value": "Thu, 02 Sep 2021 08:34:51 GMT" }, { "key": "X-RateLimit-Limit", "value": "60" }, { "key": "X-RateLimit-Remaining", "value": "59" }, { "key": "Access-Control-Allow-Origin", "value": "*" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "{\n \"success\": true,\n \"data\": {\n \"webhook\": {\n \"id\": 196,\n \"webhook_url\": \"https://what.com\",\n \"call_method\": \"POST\",\n \"active\": null,\n \"created_at\": \"2021-09-02T08:34:51.000000Z\",\n \"updated_at\": \"2021-09-02T08:34:51.000000Z\"\n }\n }\n}" }, { "name": "Create Webhook (Duplicate)", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"webhook_url\": \"https://what.com\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/webhooks/create", "host": [ "{{url}}" ], "path": [ "webhooks", "create" ] } }, "status": "Unprocessable Entity", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "nginx/1.21.1" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "X-Powered-By", "value": "PHP/8.0.9" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Date", "value": "Thu, 02 Sep 2021 08:35:28 GMT" }, { "key": "X-RateLimit-Limit", "value": "60" }, { "key": "X-RateLimit-Remaining", "value": "58" }, { "key": "Access-Control-Allow-Origin", "value": "*" } ], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"There are some errors.\",\n \"errors\": \"You already have webhook. Please fetch your webhook if you want to update it.\"\n}" }, { "name": "Create Webhook (Invalid Credentials)", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"webhook_url\": \"https://what.com\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/webhooks/create", "host": [ "{{url}}" ], "path": [ "webhooks", "create" ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "nginx/1.21.1" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "X-Powered-By", "value": "PHP/8.0.9" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Date", "value": "Thu, 02 Sep 2021 08:36:01 GMT" }, { "key": "X-RateLimit-Limit", "value": "60" }, { "key": "X-RateLimit-Remaining", "value": "59" }, { "key": "Access-Control-Allow-Origin", "value": "*" } ], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"Invalid Credentials\"\n}" } ] }, { "name": "Update Webhook", "request": { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "0c2b7458eaac670745bf1de00217c7c9-d008a330-5577-44df-a34b-b355c20cd5d8-d7ec25c503e66072837412ebf4b2ee86/5ec606d031e7ad7d18f772f51cf328d5/ba373c49-3c14-47e5-9460-78a418bc5034", "type": "string" }, { "key": "key", "value": "Authorization", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"id\": 195 ,\n \"webhook_url\": \"https://testings.com\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/webhooks/update", "host": [ "{{url}}" ], "path": [ "webhooks", "update" ] } }, "response": [ { "name": "Update Webhook (Not Found)", "originalRequest": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"id\": 3 ,\n \"webhook_url\": \"https://what.com\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/webhooks/update", "host": [ "{{url}}" ], "path": [ "webhooks", "update" ] } }, "status": "Unprocessable Entity", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "nginx/1.21.1" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "X-Powered-By", "value": "PHP/8.0.9" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Date", "value": "Thu, 02 Sep 2021 08:47:36 GMT" }, { "key": "X-RateLimit-Limit", "value": "60" }, { "key": "X-RateLimit-Remaining", "value": "59" }, { "key": "Access-Control-Allow-Origin", "value": "*" } ], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"WebHook not found.\"\n}" }, { "name": "Update Webhook (Success)", "originalRequest": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"id\": 195 ,\n \"webhook_url\": \"https://testings.com\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/webhooks/update", "host": [ "{{url}}" ], "path": [ "webhooks", "update" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "nginx/1.21.1" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "Vary", "value": "Accept-Encoding" }, { "key": "X-Powered-By", "value": "PHP/8.0.9" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Date", "value": "Thu, 02 Sep 2021 08:56:43 GMT" }, { "key": "X-RateLimit-Limit", "value": "60" }, { "key": "X-RateLimit-Remaining", "value": "56" }, { "key": "Access-Control-Allow-Origin", "value": "*" }, { "key": "Content-Encoding", "value": "gzip" } ], "cookie": [], "body": "{\n \"success\": true,\n \"data\": {\n \"webhook\": {\n \"id\": 195,\n \"webhook_url\": \"https://testings.com\",\n \"call_method\": \"POST\",\n \"active\": 0,\n \"created_at\": \"2021-02-07T10:05:08.000000Z\",\n \"updated_at\": \"2021-09-02T08:56:43.000000Z\"\n }\n }\n}" }, { "name": "Update Webhook (Invalid Credentials)", "originalRequest": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"id\": 195 ,\n \"webhook_url\": \"https://testings.com\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/webhooks/update", "host": [ "{{url}}" ], "path": [ "webhooks", "update" ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "nginx/1.21.1" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "X-Powered-By", "value": "PHP/8.0.9" }, { "key": "Cache-Control", "value": "no-cache, private" }, { "key": "Date", "value": "Thu, 02 Sep 2021 08:57:03 GMT" }, { "key": "X-RateLimit-Limit", "value": "60" }, { "key": "X-RateLimit-Remaining", "value": "59" }, { "key": "Access-Control-Allow-Origin", "value": "*" } ], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"Invalid Credentials\"\n}" } ] } ] }, { "name": "Pickup Requests", "item": [ { "name": "Pickup Requests", "request": { "method": "GET", "header": [], "url": { "raw": "{{url}}/pickup_request/list", "host": [ "{{url}}" ], "path": [ "pickup_request", "list" ] } }, "response": [ { "name": "Pickup Requests (Success)", "originalRequest": { "method": "GET", "header": [], "url": { "raw": "{{url}}/pickup_request/list", "host": [ "{{url}}" ], "path": [ "pickup_request", "list" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [], "cookie": [], "body": "{\n \"success\": true,\n \"data\": {\n \"pickupRequests\": {\n \"current_page\": 1,\n \"data\": [\n {\n \"id\": 3573,\n \"customer_id\": 2,\n \"contact_name\": \"test Account\",\n \"contact_phone\": \"598998110\",\n \"address\": \"123, Riyadh\",\n \"lat_long\": null,\n \"shipments\": 4,\n \"time_slot\": \"morning\",\n \"pickup_date\": \"2021-07-14\",\n \"driver_id\": null,\n \"dispatcher_id\": null,\n \"status\": \"cancelled\",\n \"reason_id\": null,\n \"created_at\": \"2021-07-11T03:25:51.000000Z\",\n \"updated_at\": \"2021-07-11T03:26:22.000000Z\"\n },\n {\n \"id\": 3572,\n \"customer_id\": 2,\n \"contact_name\": \"test Account\",\n \"contact_phone\": \"598998110\",\n \"address\": \"123, Riyadh\",\n \"lat_long\": null,\n \"shipments\": 4,\n \"time_slot\": \"morning\",\n \"pickup_date\": \"2021-07-11\",\n \"driver_id\": null,\n \"dispatcher_id\": null,\n \"status\": \"cancelled\",\n \"reason_id\": null,\n \"created_at\": \"2021-07-11T03:25:08.000000Z\",\n \"updated_at\": \"2021-07-11T03:25:16.000000Z\"\n },\n {\n \"id\": 2604,\n \"customer_id\": 2,\n \"contact_name\": \"test Account\",\n \"contact_phone\": \"598998110\",\n \"address\": \"Hara\",\n \"lat_long\": \",\",\n \"shipments\": 5,\n \"time_slot\": \"03pm\",\n \"pickup_date\": \"2021-04-14\",\n \"driver_id\": null,\n \"dispatcher_id\": null,\n \"status\": \"cancelled\",\n \"reason_id\": null,\n \"created_at\": \"2021-04-04T08:25:51.000000Z\",\n \"updated_at\": \"2021-04-04T10:25:09.000000Z\"\n },\n {\n \"id\": 1572,\n \"customer_id\": 2,\n \"contact_name\": \"test Account\",\n \"contact_phone\": \"598998110\",\n \"address\": \"6061 Al Ulaya, Al Wurud, Riyadh 12251 2832, Saudi Arabia\",\n \"lat_long\": \"24.7141515,46.6753732\",\n \"shipments\": 10,\n \"time_slot\": \"04pm\",\n \"pickup_date\": \"2020-12-12\",\n \"driver_id\": 202,\n \"dispatcher_id\": null,\n \"status\": \"completed\",\n \"reason_id\": null,\n \"created_at\": \"2020-12-10T12:15:35.000000Z\",\n \"updated_at\": \"2020-12-31T09:03:29.000000Z\"\n },\n {\n \"id\": 1,\n \"customer_id\": 2,\n \"contact_name\": \"Test by Altaf\",\n \"contact_phone\": \"598998110\",\n \"address\": \"2370 Abdullah Al Adawi, As Sali, Riyadh 14265 7461, Saudi Arabia\",\n \"lat_long\": \"24.6748983,46.8305797\",\n \"shipments\": 6,\n \"time_slot\": \"03pm\",\n \"pickup_date\": \"2020-02-16\",\n \"driver_id\": 202,\n \"dispatcher_id\": null,\n \"status\": \"cancelled\",\n \"reason_id\": 1,\n \"created_at\": \"2020-02-16T07:22:09.000000Z\",\n \"updated_at\": \"2020-12-10T12:14:48.000000Z\"\n }\n ],\n \"first_page_url\": \"http://customers-api.test/api/pickup_request/list?page=1\",\n \"from\": 1,\n \"last_page\": 1,\n \"last_page_url\": \"http://customers-api.test/api/pickup_request/list?page=1\",\n \"links\": [\n {\n \"url\": null,\n \"label\": \"« Previous\",\n \"active\": false\n },\n {\n \"url\": \"http://customers-api.test/api/pickup_request/list?page=1\",\n \"label\": \"1\",\n \"active\": true\n },\n {\n \"url\": null,\n \"label\": \"Next »\",\n \"active\": false\n }\n ],\n \"next_page_url\": null,\n \"path\": \"http://customers-api.test/api/pickup_request/list\",\n \"per_page\": 20,\n \"prev_page_url\": null,\n \"to\": 5,\n \"total\": 5\n }\n }\n}" }, { "name": "Pickup Requests(Invalid Credentials)", "originalRequest": { "method": "GET", "header": [], "url": { "raw": "{{url}}/pickup_request/list", "host": [ "{{url}}" ], "path": [ "pickup_request", "list" ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"Invalid Credentials\"\n}" } ] }, { "name": "Create Pickup Requests", "request": { "auth": { "type": "apikey", "apikey": [ { "key": "value", "value": "{{cred}}", "type": "string" }, { "key": "key", "value": "Authorization", "type": "string" }, { "key": "in", "value": "header", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"pickup_date\": \"2021-12-27\",\n \"time_slot\": \"afternoon\",\n \"contact_name\": \"Test-999\",\n \"contact_phone\": \"Test-999\",\n \"address\": \"Test-999\",\n \"shipments\": 3\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/pickup_request/create", "host": [ "{{url}}" ], "path": [ "pickup_request", "create" ] } }, "response": [ { "name": "Create Pickup Requests (Success)", "originalRequest": { "method": "POST", "header": [], "url": { "raw": "{{url}}/pickup_request/create", "host": [ "{{url}}" ], "path": [ "pickup_request", "create" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [], "cookie": [], "body": "{\n \"success\": true,\n \"data\": {\n \"customer_id\": 2,\n \"contact_name\": \"Test-999\",\n \"contact_phone\": \"Test-999\",\n \"shipments\": 3,\n \"time_slot\": \"afternoon\",\n \"pickup_date\": \"2021-12-26\",\n \"address\": \"Test-999\",\n \"lat_long\": \",\",\n \"status\": \"pending\",\n \"updated_at\": \"2021-12-14T06:07:14.000000Z\",\n \"created_at\": \"2021-12-14T06:07:14.000000Z\",\n \"id\": 4053\n },\n \"message\": \"Pickup request created successfully.\"\n}" }, { "name": "Create Pickup Requests (Max Requests Error)", "originalRequest": { "method": "POST", "header": [], "url": { "raw": "{{url}}/pickup_request/create", "host": [ "{{url}}" ], "path": [ "pickup_request", "create" ] } }, "status": "Unprocessable Entity", "code": 422, "_postman_previewlanguage": "json", "header": [], "cookie": [], "body": "{\n \"error\": true,\n \"message\": {\n \"error\": [\n \"You can not request any pickup as You already have pickup requests pending/processing. Cancel it and then request a new one.\"\n ]\n }\n}" }, { "name": "Create Pickup Requests (Unavailable Slots Error)", "originalRequest": { "method": "POST", "header": [], "url": { "raw": "{{url}}/pickup_request/create", "host": [ "{{url}}" ], "path": [ "pickup_request", "create" ] } }, "status": "Unprocessable Entity", "code": 422, "_postman_previewlanguage": "json", "header": [], "cookie": [], "body": "{\n \"error\": true,\n \"message\": {\n \"error\": [\n \"All slots are full for this day. Please select next available date.\"\n ]\n }\n}" }, { "name": "Create Pickup Requests (Date Errors)", "originalRequest": { "method": "POST", "header": [], "url": { "raw": "{{url}}/pickup_request/create", "host": [ "{{url}}" ], "path": [ "pickup_request", "create" ] } }, "status": "Unprocessable Entity", "code": 422, "_postman_previewlanguage": "json", "header": [], "cookie": [], "body": "{\n \"error\": true,\n \"message\": {\n \"pickup_date\": [\n \"The pickup date is not a valid date.\",\n \"The pickup date must be a date after or equal to today.\",\n \"The pickup date does not match the format Y-m-d.\"\n ]\n }\n}" }, { "name": "Create Pickup Requests (Invalid Credentials)", "originalRequest": { "method": "POST", "header": [], "url": { "raw": "{{url}}/pickup_request/create", "host": [ "{{url}}" ], "path": [ "pickup_request", "create" ] } }, "status": "Unauthorized", "code": 401, "_postman_previewlanguage": "json", "header": [], "cookie": [], "body": "{\n \"error\": true,\n \"response\": \"Invalid Credentials\"\n}" }, { "name": "Create Pickup Requests (Failed)", "originalRequest": { "method": "POST", "header": [], "url": { "raw": "{{url}}/pickup_request/create", "host": [ "{{url}}" ], "path": [ "pickup_request", "create" ] } }, "status": "Unprocessable Entity", "code": 422, "_postman_previewlanguage": "json", "header": [], "cookie": [], "body": "{\n \"error\": true,\n \"message\": {\n \"time_slot\": [\n \"The time slot field is required.\"\n ]\n }\n}" } ] }, { "name": "Time Slots", "request": { "method": "GET", "header": [], "url": { "raw": "{{url}}/time_slots/", "host": [ "{{url}}" ], "path": [ "time_slots", "" ] } }, "response": [ { "name": "Time Slots (Success)", "originalRequest": { "method": "GET", "header": [], "url": { "raw": "{{url}}/time_slots/", "host": [ "{{url}}" ], "path": [ "time_slots", "" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [], "cookie": [], "body": "{\n \"success\": true,\n \"data\": {\n \"date\": \"2021-12-23\",\n \"slots\": {\n \"morning\": \"Morning (9 AM - 12 PM)\",\n \"afternoon\": \"After Noon (02 PM - 06 PM)\",\n \"evening\": \"Evening (06 PM - 09 PM)\"\n }\n }\n}" }, { "name": "Time Slots (Failed)", "originalRequest": { "method": "GET", "header": [], "url": { "raw": "{{url}}/time_slots/", "host": [ "{{url}}" ], "path": [ "time_slots", "" ] } }, "status": "Unprocessable Entity", "code": 422, "_postman_previewlanguage": "json", "header": [], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"Validation Error\",\n \"errors\": {\n \"pickup_date\": [\n \"The pickup date field is required.\"\n ]\n }\n}" }, { "name": "Time Slots (Pickup Date Errors)", "originalRequest": { "method": "GET", "header": [], "url": { "raw": "{{url}}/time_slots/", "host": [ "{{url}}" ], "path": [ "time_slots", "" ] } }, "status": "Unprocessable Entity", "code": 422, "_postman_previewlanguage": "json", "header": [], "cookie": [], "body": "{\n \"error\": true,\n \"message\": \"Validation Error\",\n \"errors\": {\n \"pickup_date\": [\n \"The pickup date is not a valid date.\",\n \"The pickup date must be a date after or equal to today.\",\n \"The pickup date does not match the format Y-m-d.\"\n ]\n }\n}" } ] } ] }, { "name": "Cities", "request": { "method": "GET", "header": [], "url": { "raw": "{{url}}/cities", "host": [ "{{url}}" ], "path": [ "cities" ] }, "description": "This API provides an interface to fetch all cities where AyMakan ship. This is a public API and does not require API token.\n\nAlso, the complete list of cities can be downloaded by clicking on below link." }, "response": [ { "name": "Cities (Success)", "originalRequest": { "method": "GET", "header": [], "url": { "raw": "{{url}}/cities", "host": [ "{{url}}" ], "path": [ "cities" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Date", "value": "Tue, 24 Aug 2021 10:49:51 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Connection", "value": "keep-alive" }, { "key": "vary", "value": "Accept-Encoding" }, { "key": "cache-control", "value": "no-cache, private" }, { "key": "x-ratelimit-limit", "value": "3000" }, { "key": "x-ratelimit-remaining", "value": "2995" }, { "key": "x-frame-options", "value": "SAMEORIGIN" }, { "key": "x-xss-protection", "value": "1; mode=block" }, { "key": "x-content-type-options", "value": "nosniff" }, { "key": "content-encoding", "value": "gzip" }, { "key": "CF-Cache-Status", "value": "DYNAMIC" }, { "key": "Expect-CT", "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"" }, { "key": "Report-To", "value": "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=nNJ%2FYOdQX1xi8e9mmkRA3sPAg7vp9iqFd1VSxcRhHflsv5waE1weMtbDxcxg43rwDLitfLnVkct2dWC2PTwN%2BMer%2FXTfWKB7GNRvGX0Lguq%2B6KI1Wj%2FkQjVd3NLNj50ojnT7BpQ%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}" }, { "key": "NEL", "value": "{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}" }, { "key": "Server", "value": "cloudflare" }, { "key": "CF-RAY", "value": "683c042fbe7bfa48-AMS" }, { "key": "alt-svc", "value": "h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400" } ], "cookie": [], "body": "{\n \"success\": true,\n \"data\": {\n \"cities\": [\n {\n \"id\": 2,\n \"city_en\": \"Riyadh\",\n \"city_ar\": \"الرياض\"\n },\n {\n \"id\": 4,\n \"city_en\": \"Alghat\",\n \"city_ar\": \"الغاط\"\n },\n {\n \"id\": 5,\n \"city_en\": \"AlRass\",\n \"city_ar\": \"الرس\"\n },\n {\n \"id\": 6,\n \"city_en\": \"Assiyah\",\n \"city_ar\": \"الأسياح\"\n },\n {\n \"id\": 7,\n \"city_en\": \"Ayn Fuhayd\",\n \"city_ar\": \"عين ابن فهيد\"\n },\n {\n \"id\": 8,\n \"city_en\": \"Badaya\",\n \"city_ar\": \"البدايع\"\n },\n {\n \"id\": 9,\n \"city_en\": \"Bukeiriah \",\n \"city_ar\": \"البكيرية\"\n },\n {\n \"id\": 10,\n \"city_en\": \"Buraidah\",\n \"city_ar\": \"بريدة\"\n },\n {\n \"id\": 11,\n \"city_en\": \"Daelim\",\n \"city_ar\": \"الدلم\"\n },\n {\n \"id\": 12,\n \"city_en\": \"Deraab\",\n \"city_ar\": \"ديراب\"\n },\n {\n \"id\": 13,\n \"city_en\": \"Dere'iyeh \",\n \"city_ar\": \"الدرعية\"\n },\n {\n \"id\": 14,\n \"city_en\": \"Dhurma\",\n \"city_ar\": \"ضرما\"\n },\n {\n \"id\": 15,\n \"city_en\": \"Hareeq \",\n \"city_ar\": \"الحريق\"\n },\n {\n \"id\": 16,\n \"city_en\": \"Hawtat Bani Tamim\",\n \"city_ar\": \"حوطة بني تميم\"\n },\n {\n \"id\": 18,\n \"city_en\": \"Horaimal\",\n \"city_ar\": \"حريملاء\"\n },\n {\n \"id\": 19,\n \"city_en\": \"Hotat Sudair\",\n \"city_ar\": \"حوطة سدير\"\n },\n {\n \"id\": 20,\n \"city_en\": \"Kharj\",\n \"city_ar\": \"الخرج\"\n },\n {\n \"id\": 21,\n \"city_en\": \"Majma\",\n \"city_ar\": \"المجمعة\"\n },\n {\n \"id\": 22,\n \"city_en\": \"Muzahmiah \",\n \"city_ar\": \"المزاحمية\"\n },\n {\n \"id\": 23,\n \"city_en\": \"Onaiza \",\n \"city_ar\": \"عنيزة\"\n },\n {\n \"id\": 24,\n \"city_en\": \"Oyaynah\",\n \"city_ar\": \"العيينة\"\n },\n {\n \"id\": 25,\n \"city_en\": \"Qasab\",\n \"city_ar\": \"القصب\"\n },\n {\n \"id\": 26,\n \"city_en\": \"Qassim\",\n \"city_ar\": \"القصيم\"\n },\n {\n \"id\": 28,\n \"city_en\": \"Riyadh Al Khabra\",\n \"city_ar\": \"رياض الخبراء\"\n },\n {\n \"id\": 31,\n \"city_en\": \"Shaqra \",\n \"city_ar\": \"شقراء\"\n },\n {\n \"id\": 34,\n \"city_en\": \"Zulfi \",\n \"city_ar\": \"الزلفي\"\n },\n {\n \"id\": 35,\n \"city_en\": \"Midinhab \",\n \"city_ar\": \"المذنب\"\n },\n {\n \"id\": 36,\n \"city_en\": \"Jeddah\",\n \"city_ar\": \"جدة\"\n },\n {\n \"id\": 37,\n \"city_en\": \"Ushayqer \",\n \"city_ar\": \"اشيقر\"\n },\n {\n \"id\": 38,\n \"city_en\": \"Tharmada`a\",\n \"city_ar\": \"ثرمداء\"\n },\n {\n \"id\": 39,\n \"city_en\": \"Al Qareenah \",\n \"city_ar\": \"القرينية\"\n },\n {\n \"id\": 40,\n \"city_en\": \"Al Jubailah \",\n \"city_ar\": \"الجبيلة\"\n },\n {\n \"id\": 41,\n \"city_en\": \"Qusor almoqbel\",\n \"city_ar\": \"قصور المقبل\"\n },\n {\n \"id\": 42,\n \"city_en\": \"Al Hazim \",\n \"city_ar\": \"الحزم \"\n },\n {\n \"id\": 43,\n \"city_en\": \"Al Dhabe`ah \",\n \"city_ar\": \"الضبيعة\"\n },\n {\n \"id\": 44,\n \"city_en\": \"Heet \",\n \"city_ar\": \"هيت\"\n },\n {\n \"id\": 45,\n \"city_en\": \"Al Amajiyah \",\n \"city_ar\": \"العمجية\"\n },\n {\n \"id\": 46,\n \"city_en\": \"Na`am \",\n \"city_ar\": \"نعام\"\n },\n {\n \"id\": 47,\n \"city_en\": \"Al Helwah \",\n \"city_ar\": \"الحلوة\"\n },\n {\n \"id\": 48,\n \"city_en\": \"Benban \",\n \"city_ar\": \"بنبان\"\n },\n {\n \"id\": 49,\n \"city_en\": \"Mulhem \",\n \"city_ar\": \"ملهم\"\n },\n {\n \"id\": 50,\n \"city_en\": \"Al Hasi \",\n \"city_ar\": \"الحسي\"\n },\n {\n \"id\": 51,\n \"city_en\": \"Sudayer\",\n \"city_ar\": \"سدير\"\n },\n {\n \"id\": 52,\n \"city_en\": \"Tameer\",\n \"city_ar\": \"تمير\"\n },\n {\n \"id\": 53,\n \"city_en\": \"Temeriyah \",\n \"city_ar\": \"تميرية\"\n },\n {\n \"id\": 54,\n \"city_en\": \"Jalajil \",\n \"city_ar\": \"جلاجل\"\n },\n {\n \"id\": 56,\n \"city_en\": \"Al Hayer\",\n \"city_ar\": \"الحائر\"\n },\n {\n \"id\": 57,\n \"city_en\": \"Hermah \",\n \"city_ar\": \"حرمة\"\n },\n {\n \"id\": 58,\n \"city_en\": \"Maleeh\",\n \"city_ar\": \"مليح\"\n },\n {\n \"id\": 60,\n \"city_en\": \"Roudhah Sudayer\",\n \"city_ar\": \"روضة سدير\"\n },\n {\n \"id\": 62,\n \"city_en\": \"Asheerah Sudayer \",\n \"city_ar\": \"عشيرة سدير\"\n },\n {\n \"id\": 63,\n \"city_en\": \"Awdah Sudayer\",\n \"city_ar\": \"عودة سدير\"\n },\n {\n \"id\": 64,\n \"city_en\": \"Al Ma`ashabah \",\n \"city_ar\": \"المعشبة\"\n },\n {\n \"id\": 65,\n \"city_en\": \"Salbokh\",\n \"city_ar\": \"صلبوخ\"\n },\n {\n \"id\": 66,\n \"city_en\": \"Thadeq\",\n \"city_ar\": \"ثادق\"\n },\n {\n \"id\": 67,\n \"city_en\": \"Uyun Al Jiwa\",\n \"city_ar\": \"عيون الجواء\"\n },\n {\n \"id\": 68,\n \"city_en\": \"Al Qawarah\",\n \"city_ar\": \"القوارة\"\n },\n {\n \"id\": 69,\n \"city_en\": \"Al Shamasiyah\",\n \"city_ar\": \"الشماسية\"\n },\n {\n \"id\": 70,\n \"city_en\": \"Qusayba'a \",\n \"city_ar\": \"قصيباء\"\n },\n {\n \"id\": 71,\n \"city_en\": \"Al Bateen \",\n \"city_ar\": \"البطين\"\n },\n {\n \"id\": 72,\n \"city_en\": \"Aba Al Woroud\",\n \"city_ar\": \"أبا الورود\"\n },\n {\n \"id\": 74,\n \"city_en\": \"Al Khabra\",\n \"city_ar\": \"الخبراء\"\n },\n {\n \"id\": 75,\n \"city_en\": \"Al Basar \",\n \"city_ar\": \"البصر\"\n },\n {\n \"id\": 76,\n \"city_en\": \"Al Nab'haniyah\",\n \"city_ar\": \"النبهانية\"\n },\n {\n \"id\": 78,\n \"city_en\": \"Al Fuwaileq \",\n \"city_ar\": \"الفويلق \"\n },\n {\n \"id\": 79,\n \"city_en\": \"Bin Aqeel Palace \",\n \"city_ar\": \"قصر بن عقيل\"\n },\n {\n \"id\": 80,\n \"city_en\": \"Al Ammar\",\n \"city_ar\": \"العمار\"\n },\n {\n \"id\": 81,\n \"city_en\": \"Al Dulymiyah\",\n \"city_ar\": \"الدليمية\"\n },\n {\n \"id\": 84,\n \"city_en\": \"Al Shehiyah\",\n \"city_ar\": \"الشيحية\"\n },\n {\n \"id\": 86,\n \"city_en\": \"Khobar\",\n \"city_ar\": \"الخبر\"\n },\n {\n \"id\": 87,\n \"city_en\": \"Dammam\",\n \"city_ar\": \"الدمام\"\n },\n {\n \"id\": 100,\n \"city_en\": \"Anak\",\n \"city_ar\": \"عنك\"\n },\n {\n \"id\": 106,\n \"city_en\": \"Awamiah\",\n \"city_ar\": \"العوامية\"\n },\n {\n \"id\": 121,\n \"city_en\": \"Dhahran\",\n \"city_ar\": \"الظهران\"\n },\n {\n \"id\": 165,\n \"city_en\": \"Qatif\",\n \"city_ar\": \"القطيف\"\n },\n {\n \"id\": 175,\n \"city_en\": \"Ras Tanura\",\n \"city_ar\": \"رأس تنورة\"\n },\n {\n \"id\": 181,\n \"city_en\": \"Safwa\",\n \"city_ar\": \"صفوى\"\n },\n {\n \"id\": 188,\n \"city_en\": \"Seiha\",\n \"city_ar\": \"سيهات\"\n },\n {\n \"id\": 227,\n \"city_en\": \"Jubail\",\n \"city_ar\": \"الجبيل\"\n },\n {\n \"id\": 228,\n \"city_en\": \"Makkah\",\n \"city_ar\": \"مكة المكرمة\"\n },\n {\n \"id\": 229,\n \"city_en\": \"Al Thaniah\",\n \"city_ar\": \"الثانية\"\n },\n {\n \"id\": 230,\n \"city_en\": \"Al Ogam\",\n \"city_ar\": \"الاوجام\"\n },\n {\n \"id\": 231,\n \"city_en\": \"Ghezlan\",\n \"city_ar\": \"غزلان\"\n },\n {\n \"id\": 232,\n \"city_en\": \"Al Fanateer\",\n \"city_ar\": \"الفناتير\"\n },\n {\n \"id\": 233,\n \"city_en\": \"Khamis Mushait\",\n \"city_ar\": \"خميس مشيط\"\n },\n {\n \"id\": 234,\n \"city_en\": \"Abha\",\n \"city_ar\": \"أبها\"\n },\n {\n \"id\": 235,\n \"city_en\": \"Ahad Rafidah\",\n \"city_ar\": \"أحد رفيدة\"\n },\n {\n \"id\": 236,\n \"city_en\": \"Rejal Alma'a\",\n \"city_ar\": \"رجال ألمع\"\n },\n {\n \"id\": 238,\n \"city_en\": \"Balasmar\",\n \"city_ar\": \"بللسمر\"\n },\n {\n \"id\": 239,\n \"city_en\": \"Balahmar\",\n \"city_ar\": \"بللحمر\"\n },\n {\n \"id\": 240,\n \"city_en\": \"Sarat Abidah\",\n \"city_ar\": \"سراة عبيدة\"\n },\n {\n \"id\": 241,\n \"city_en\": \"Tendaha\",\n \"city_ar\": \"تندحة\"\n },\n {\n \"id\": 242,\n \"city_en\": \"Tanuma\",\n \"city_ar\": \"تنومة\"\n },\n {\n \"id\": 243,\n \"city_en\": \"Mohayel Aseer\",\n \"city_ar\": \"محايل عسير\"\n }\n ]\n }\n}" } ] } ] }