Postman Collections details for Shipping API - Dynamic Sandbox

Importable postman Collection file pre-packaged ready to call the Shipping APIs with example parameters and payloads. This is in JSON format, please copy and save the text in JSON format before importing in Postman.

15461546
{
    "info": {
        "_postman_id": "a06ab188-b340-4904-ad11-3dbcc51ade97",
        "name": "Amazon Shipping APIs",
        "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
    },
    "item": [
        {
            "name": "1. GetToken Sandbox",
            "request": {
                "auth": {
                    "type": "noauth"
                },
                "method": "POST",
                "header": [
                    {
                        "key": "Content-Type",
                        "name": "Content-Type",
                        "value": "application/x-www-form-urlencoded",
                        "type": "text"
                    }
                ],
                "body": {
                    "mode": "urlencoded",
                    "urlencoded": [
                        {
                            "key": "grant_type",
                            "value": "refresh_token",
                            "type": "text"
                        },
                        {
                            "key": "refresh_token",
                            "value": "",
                            "type": "text"
                        },
                        {
                            "key": "client_id",
                            "value": "",
                            "type": "text"
                        },
                        {
                            "key": "client_secret",
                            "value": "",
                            "type": "text"
                        }
                    ]
                },
                "url": "https://api.amazon.co.uk/auth/o2/token"
            },
            "response": []
        },
        {
            "name": "2. GetRates Sandbox",
            "request": {
                "auth": {
                    "type": "awsv4",
                    "awsv4": {
                        "region": "{{awsRegion}}",
                        "secretKey": "{{secretKey}}",
                        "accessKey": "{{accessKey}}",
                        "service": "execute-api"
                    }
                },
                "method": "POST",
                "header": [
                    {
                        "warning": "This is a duplicate header and will be overridden by the Content-Type header generated by Postman.",
                        "key": "Content-Type",
                        "name": "Content-Type",
                        "type": "text",
                        "value": "application/json"
                    },
                    {
                        "key": "x-amz-access-token",
                        "type": "text",
                        "value": "{{x-amz-access-token}}"
                    }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"shipTo\": {\n    \"name\": \"A3\",\n    \"addressLine1\": \"SWA Test Account\",\n    \"addressLine2\": \"SWA Test Account\",\n    \"addressLine3\": \"SWA Test Account\",\n    \"stateOrRegion\": \"\",\n    \"postalCode\": \"DN1 1QZ\",\n    \"city\": \"Doncaster\",\n    \"countryCode\": \"GB\",\n    \"email\": \"[email protected]\",\n    \"phoneNumber\": \"444-444-4444\"\n  },\n  \"shipFrom\": {\n    \"name\": \"A1\",\n    \"addressLine1\": \"4 Neal Street\",\n    \"stateOrRegion\": \"\",\n    \"postalCode\": \"WC2H 9QL\",\n    \"city\": \"London\",\n    \"countryCode\": \"GB\",\n    \"email\": \"[email protected]\",\n    \"phoneNumber\": \"444-444-4444\"\n  },\n  \"packages\": [\n    {\n      \"dimensions\": {\n        \"length\": 3.14,\n        \"width\": 3.14,\n        \"height\": 3.14,\n        \"unit\": \"INCH\"\n      },\n      \"weight\": {\n        \"unit\": \"KILOGRAM\",\n        \"value\": 3.14159\n      },\n      \"items\": [\n        {\n          \"quantity\": 1,\n          \"itemIdentifier\": \"V-02\",\n          \"description\": \"Sundries\",\n          \"isHazmat\": false,\n          \"weight\": {\n            \"unit\": \"KILOGRAM\",\n            \"value\": 1.14159\n          }\n        },\n        {\n          \"quantity\": 1,\n          \"itemIdentifier\": \"V-01\",\n          \"description\": \"Sundries\",\n          \"isHazmat\": false,\n          \"weight\": {\n            \"unit\": \"KILOGRAM\",\n            \"value\": 1.14159\n          }\n        }\n      ],\n      \"insuredValue\": {\n        \"unit\": \"GBP\",\n        \"value\": 29.98\n      },\n      \"packageClientReferenceId\": \"abcd\"\n    }\n  ],\n \"channelDetails\": {\n    \"channelType\": \"AMAZON\",\n    \"amazonOrderDetails\": {\n      \"orderId\": \"113-3080243-4028244\"\n    }\n  }\n}\n"
                },
                "url": "{{endpoint}}/shipping/v2/shipments/rates"
            },
            "response": []
        },
        {
            "name": "3. PurchaseShipment",
            "request": {
                "auth": {
                    "type": "awsv4",
                    "awsv4": {
                        "region": "{{awsRegion}}",
                        "secretKey": "{{secretKey}}",
                        "accessKey": "{{accessKey}}",
                        "service": "execute-api"
                    }
                },
                "method": "POST",
                "header": [
                    {
                        "warning": "This is a duplicate header and will be overridden by the Content-Type header generated by Postman.",
                        "key": "Content-Type",
                        "name": "Content-Type",
                        "type": "text",
                        "value": "application/json"
                    },
                    {
                        "key": "x-amz-access-token",
                        "type": "text",
                        "value": "{{x-amz-access-token}}"
                    }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n\t\"requestToken\": \"<Request Token Value from getRates>\",\n\t\"rateId\": \"<rateID Value from getRates>\",\n\t\"requestedDocumentSpecification\": {\n\t\t\"format\": \"PNG\",\n\t\t\"size\": {\n\t\t\t\"width\": 4,\n\t\t\t\"length\": 6,\n\t\t\t\"unit\": \"INCH\"\n\t\t},\n\t\t\"dpi\": 300,\n\t\t\"pageLayout\": \"DEFAULT\",\n\t\t\"needFileJoining\": false,\n\t\t\"requestedDocumentTypes\": [\n\t\t\t\"LABEL\"\n\t\t]\n\t}\n}"
                },
                "url": "{{endpoint}}/shipping/v2/shipments"
            },
            "response": []
        },
        {
            "name": "CancelShipment",
            "request": {
                "auth": {
                    "type": "awsv4",
                    "awsv4": {
                        "region": "{{awsRegion}}",
                        "secretKey": "{{secretKey}}",
                        "accessKey": "{{accessKey}}",
                        "service": "execute-api"
                    }
                },
                "method": "PUT",
                "header": [
                    {
                        "warning": "This is a duplicate header and will be overridden by the Content-Type header generated by Postman.",
                        "key": "Content-Type",
                        "name": "Content-Type",
                        "type": "text",
                        "value": "application/json"
                    },
                    {
                        "key": "x-amz-access-token",
                        "type": "text",
                        "value": "{{x-amz-access-token}}"
                    }
                ],
                "body": {
                    "mode": "raw",
                    "raw": ""
                },
                "url": "{{endpoint}}/shipping/v2/shipments/<ShipmentID>/cancel"
            },
            "response": []
        },
        {
            "name": "GetShipmentDocuments",
            "protocolProfileBehavior": {
                "disableBodyPruning": true
            },
            "request": {
                "auth": {
                    "type": "awsv4",
                    "awsv4": {
                        "region": "{{awsRegion}}",
                        "secretKey": "{{secretKey}}",
                        "accessKey": "{{accessKey}}",
                        "service": "execute-api"
                    }
                },
                "method": "GET",
                "header": [
                    {
                        "warning": "This is a duplicate header and will be overridden by the Content-Type header generated by Postman.",
                        "key": "Content-Type",
                        "name": "Content-Type",
                        "type": "text",
                        "value": "application/json"
                    },
                    {
                        "key": "x-amz-access-token",
                        "type": "text",
                        "value": "{{x-amz-access-token}}"
                    }
                ],
                "body": {
                    "mode": "raw",
                    "raw": ""
                },
                "url": {
                    "raw": "{{endpoint}}/shipping/v2/shipments/<ShipmentID>/documents?packageClientReferenceId=<ClientRefID>&format=<DOCFormat>",
                    "host": [
                        "{{endpoint}}"
                    ],
                    "path": [
                        "shipping",
                        "v2",
                        "shipments",
                        "<ShipmentID>",
                        "documents"
                    ],
                    "query": [
                        {
                            "key": "packageClientReferenceId",
                            "value": "<ClientRefID>"
                        },
                        {
                            "key": "format",
                            "value": "<DOCFormat>"
                        }
                    ]
                }
            },
            "response": []
        },
        {
            "name": "GetTracking",
            "protocolProfileBehavior": {
                "disableBodyPruning": true
            },
            "request": {
                "auth": {
                    "type": "awsv4",
                    "awsv4": {
                        "region": "{{awsRegion}}",
                        "secretKey": "{{secretKey}}",
                        "accessKey": "{{accessKey}}",
                        "service": "execute-api"
                    }
                },
                "method": "GET",
                "header": [
                    {
                        "warning": "This is a duplicate header and will be overridden by the Content-Type header generated by Postman.",
                        "key": "Content-Type",
                        "name": "Content-Type",
                        "type": "text",
                        "value": "application/json"
                    },
                    {
                        "key": "x-amz-access-token",
                        "type": "text",
                        "value": "{{x-amz-access-token}}"
                    }
                ],
                "body": {
                    "mode": "raw",
                    "raw": ""
                },
                "url": {
                    "raw": "{{endpoint}}/shipping/v2/tracking?carrierId=AMZN_UK&trackingId=1582657452914",
                    "host": [
                        "{{endpoint}}"
                    ],
                    "path": [
                        "shipping",
                        "v2",
                        "tracking"
                    ],
                    "query": [
                        {
                            "key": "carrierId",
                            "value": "AMZN_UK"
                        },
                        {
                            "key": "trackingId",
                            "value": "1582657452914"
                        }
                    ]
                }
            },
            "response": []
        }
    ]
}

Did this page help you?