{
	"info": {
		"name": "PostShipping API",
		"description": "Sample requests for the PostShipping API (https://doc.postshipping.com/docs/developers/overview/).\n\n**Setup**\n1. Import this file into Postman (File > Import).\n2. Open the collection > **Variables** and paste your API key into `apiKey`. Don't share or re-export the collection with your key in it.\n3. Send **Calculate Rates** first; it doesn't create anything.\n\n`ServiceTypeName` / `ServiceType` values in the samples are examples - use the service codes enabled on your account.\n\nAPI calls are limited to 300 calls per minute.",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"auth": {
		"type": "apikey",
		"apikey": [
			{
				"key": "key",
				"value": "Token",
				"type": "string"
			},
			{
				"key": "value",
				"value": "{{apiKey}}",
				"type": "string"
			},
			{
				"key": "in",
				"value": "header",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					"// pickup dates default to tomorrow so sample requests aren't rejected for being in the past",
					"var d = new Date(); d.setDate(d.getDate() + 1);",
					"function pad(n) { return (\"0\" + n).slice(-2); }",
					"var day = d.getFullYear() + \"/\" + pad(d.getMonth() + 1) + \"/\" + pad(d.getDate());",
					"pm.collectionVariables.set(\"pickupReadyTime\", day + \" 09:00:00\");",
					"pm.collectionVariables.set(\"pickupCloseTime\", day + \" 18:00:00\");",
					"pm.collectionVariables.set(\"collectionDate\", day.replace(/\\//g, \"-\"));"
				]
			}
		}
	],
	"item": [
		{
			"name": "Calculate Rates",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"DepartureCountryCode\": \"SG\",\n\t\"DeparturePostcode\": \"208573\",\n\t\"DepartureLocation\": \"SINGAPORE\",\n\t\"ArrivalCountryCode\": \"MY\",\n\t\"ArrivalPostcode\": \"47650\",\n\t\"ArrivalLocation\": \"SUBANG JAYA\",\n\t\"PaymentCurrencyCode\": \"SGD\",\n\t\"WeightMeasure\": \"KG\",\n\t\"Weight\": 3.5,\n\t\"NumofItem\": \"1\",\n\t\"ServiceType\": \"ED\",\n\t\"DimensionUnit\": \"CM\",\n\t\"CustomCurrencyCode\": \"SGD\",\n\t\"CustomAmount\": 50,\n\t\"Items\": [\n\t\t{\n\t\t\t\"Weight\": 1,\n\t\t\t\"Length\": 3,\n\t\t\t\"Width\": 3,\n\t\t\t\"Height\": 3,\n\t\t\t\"CubicWeight\": 0\n\t\t},\n\t\t{\n\t\t\t\"Weight\": 1.5,\n\t\t\t\"Length\": 3,\n\t\t\t\"Width\": 3,\n\t\t\t\"Height\": 3,\n\t\t\t\"CubicWeight\": 0\n\t\t}\n\t]\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{baseUrl}}rates",
					"host": [
						"{{baseUrl}}"
					],
					"path": [
						"rates"
					]
				},
				"description": "Get rates for a shipment. Read-only - safe to run."
			}
		},
		{
			"name": "Create Shipment",
			"description": "**Creates a real shipment on your account.** Use a test account where possible.\n\n`BookPickUP` is `false` in every sample; set it to `true` only if you want a pickup booked as well.",
			"item": [
				{
					"name": "Domestic Shipment",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "[\n\t{\n\t\t\"SenderDetails\": {\n\t\t\t\"SenderName\": \"John\",\n\t\t\t\"SenderCompanyName\": \"Frontier Force Technology\",\n\t\t\t\"SenderCountryCode\": \"SG\",\n\t\t\t\"SenderAdd1\": \"338D King George's Avenue\",\n\t\t\t\"SenderAdd2\": \"King George's Building\",\n\t\t\t\"SenderAdd3\": \"\",\n\t\t\t\"SenderAddCity\": \"Singapore\",\n\t\t\t\"SenderAddState\": \"\",\n\t\t\t\"SenderAddPostcode\": \"208573\",\n\t\t\t\"SenderPhone\": \"+6563465333\",\n\t\t\t\"SenderEmail\": \"sales@frontierforce.com\",\n\t\t\t\"SenderFax\": \"+6563456717\",\n\t\t\t\"SenderKycType\": \"\",\n\t\t\t\"SenderKycNumber\": \"\",\n\t\t\t\"SenderReceivingCountryTaxID\": \"\"\n\t\t},\n\t\t\"ReceiverDetails\": {\n\t\t\t\"ReceiverName\": \"Jane Tan\",\n\t\t\t\"ReceiverCompanyName\": \"XYZ Pte Ltd\",\n\t\t\t\"ReceiverCountryCode\": \"SG\",\n\t\t\t\"ReceiverAdd1\": \"1 Example Road\",\n\t\t\t\"ReceiverAdd2\": \"#05-01\",\n\t\t\t\"ReceiverAdd3\": \"\",\n\t\t\t\"ReceiverAddCity\": \"Singapore\",\n\t\t\t\"ReceiverAddState\": \"\",\n\t\t\t\"ReceiverAddPostcode\": \"123456\",\n\t\t\t\"ReceiverMobile\": \"\",\n\t\t\t\"ReceiverPhone\": \"+6560000000\",\n\t\t\t\"ReceiverEmail\": \"shipping@example.com\",\n\t\t\t\"ReceiverAddResidential\": \"N\",\n\t\t\t\"ReceiverFax\": \"\",\n\t\t\t\"ReceiverKycType\": \"\",\n\t\t\t\"ReceiverKycNumber\": \"\"\n\t\t},\n\t\t\"PackageDetails\": {\n\t\t\t\"GoodsDescription\": \"a box of shirts\",\n\t\t\t\"CustomValue\": 3,\n\t\t\t\"CustomCurrencyCode\": \"SGD\",\n\t\t\t\"InsuranceValue\": \"0.00\",\n\t\t\t\"InsuranceCurrencyCode\": \"SGD\",\n\t\t\t\"ShipmentTerm\": \"\",\n\t\t\t\"GoodsOriginCountryCode\": \"SG\",\n\t\t\t\"DeliveryInstructions\": \"fragile shipment. please take care.\",\n\t\t\t\"Weight\": 3,\n\t\t\t\"WeightMeasurement\": \"KG\",\n\t\t\t\"NoOfItems\": 1,\n\t\t\t\"CubicL\": 3,\n\t\t\t\"CubicW\": 3,\n\t\t\t\"CubicH\": 3,\n\t\t\t\"CubicWeight\": 0,\n\t\t\t\"ServiceTypeName\": \"EN\",\n\t\t\t\"BookPickUP\": false,\n\t\t\t\"AlternateRef\": \"\",\n\t\t\t\"SenderRef1\": \"test shipment\",\n\t\t\t\"SenderRef2\": \"\",\n\t\t\t\"SenderRef3\": \"\",\n\t\t\t\"DeliveryAgentCode\": \"\",\n\t\t\t\"DeliveryRouteCode\": \"\",\n\t\t\t\"BusinessType\": \"B2C\",\n\t\t\t\"ShipmentResponseItem\": [\n\t\t\t\t{\n\t\t\t\t\t\"ItemAlt\": \"\",\n\t\t\t\t\t\"ItemNoOfPcs\": 1,\n\t\t\t\t\t\"ItemCubicL\": 3,\n\t\t\t\t\t\"ItemCubicW\": 3,\n\t\t\t\t\t\"ItemCubicH\": 3,\n\t\t\t\t\t\"ItemWeight\": 3,\n\t\t\t\t\t\"ItemCubicWeight\": 0,\n\t\t\t\t\t\"ItemDescription\": \"document\",\n\t\t\t\t\t\"ItemCustomValue\": 3,\n\t\t\t\t\t\"ItemCustomCurrencyCode\": \"SGD\",\n\t\t\t\t\t\"Notes\": \"item notes\",\n\t\t\t\t\t\"Pieces\": []\n\t\t\t\t}\n\t\t\t],\n\t\t\t\"CODAmount\": 0,\n\t\t\t\"CODCurrencyCode\": \"SGD\",\n\t\t\t\"Bag\": 0,\n\t\t\t\"Notes\": \"this is sample notes\",\n\t\t\t\"OriginLocCode\": \"\",\n\t\t\t\"BagNumber\": 0,\n\t\t\t\"DeadWeight\": 3,\n\t\t\t\"ReasonExport\": \"\",\n\t\t\t\"DestTaxes\": 0,\n\t\t\t\"Security\": 0,\n\t\t\t\"Surcharge\": 0,\n\t\t\t\"ReceiverTaxID\": \"\",\n\t\t\t\"OrderNumber\": \"\",\n\t\t\t\"Incoterms\": \"\",\n\t\t\t\"ClearanceReference\": \"\"\n\t\t},\n\t\t\"PickupDetails\": {\n\t\t\t\"ReadyTime\": \"{{pickupReadyTime}}\",\n\t\t\t\"CloseTime\": \"{{pickupCloseTime}}\",\n\t\t\t\"SpecialInstructions\": \"Operating hours 9:00am - 6:00pm (Mon - Fri)\",\n\t\t\t\"Address1\": \"338D King George's Avenue\",\n\t\t\t\"Address2\": \"King George's Building\",\n\t\t\t\"Address3\": \"\",\n\t\t\t\"AddressState\": \"\",\n\t\t\t\"AddressCity\": \"Singapore\",\n\t\t\t\"AddressPostalCode\": \"208573\",\n\t\t\t\"AddressCountryCode\": \"SG\"\n\t\t}\n\t}\n]",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{baseUrl}}shipments",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"shipments"
							]
						},
						"description": "**Creates a real shipment on your account.** Use a test account where possible.\n\nSender and receiver in the same country (SG -> SG)."
					},
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"// keep the new shipment number for the Tracks request",
									"var res = pm.response.json();",
									"if (Array.isArray(res) && res[0] && res[0].ShipmentNumber) pm.collectionVariables.set(\"trackingNumber\", res[0].ShipmentNumber);",
									"pm.test(\"no ErrMessage\", function () { pm.expect(res[0].ErrMessage || \"\").to.eql(\"\"); });"
								]
							}
						}
					]
				},
				{
					"name": "International Shipment",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "[\n\t{\n\t\t\"SenderDetails\": {\n\t\t\t\"SenderName\": \"John\",\n\t\t\t\"SenderCompanyName\": \"Frontier Force Technology\",\n\t\t\t\"SenderCountryCode\": \"SG\",\n\t\t\t\"SenderAdd1\": \"338D King George's Avenue\",\n\t\t\t\"SenderAdd2\": \"King George's Building\",\n\t\t\t\"SenderAdd3\": \"\",\n\t\t\t\"SenderAddCity\": \"Singapore\",\n\t\t\t\"SenderAddState\": \"\",\n\t\t\t\"SenderAddPostcode\": \"208573\",\n\t\t\t\"SenderPhone\": \"+6563465333\",\n\t\t\t\"SenderEmail\": \"sales@frontierforce.com\",\n\t\t\t\"SenderFax\": \"+6563456717\",\n\t\t\t\"SenderKycType\": \"Passport\",\n\t\t\t\"SenderKycNumber\": \"P00001\",\n\t\t\t\"SenderReceivingCountryTaxID\": \"\"\n\t\t},\n\t\t\"ReceiverDetails\": {\n\t\t\t\"ReceiverName\": \"May\",\n\t\t\t\"ReceiverCompanyName\": \"Frontier Force Technology (M) Sdn Bhd\",\n\t\t\t\"ReceiverCountryCode\": \"MY\",\n\t\t\t\"ReceiverAdd1\": \"B-08-02, Second Floor, Garden Shoppe @ One City\",\n\t\t\t\"ReceiverAdd2\": \"Jalan USJ 25/1A\",\n\t\t\t\"ReceiverAdd3\": \"\",\n\t\t\t\"ReceiverAddCity\": \"Subang Jaya\",\n\t\t\t\"ReceiverAddState\": \"Selangor\",\n\t\t\t\"ReceiverAddPostcode\": \"47650\",\n\t\t\t\"ReceiverMobile\": \"\",\n\t\t\t\"ReceiverPhone\": \"+60380118166\",\n\t\t\t\"ReceiverEmail\": \"support.my@frontierforce.com\",\n\t\t\t\"ReceiverAddResidential\": \"N\",\n\t\t\t\"ReceiverFax\": \"\",\n\t\t\t\"ReceiverKycType\": \"Passport\",\n\t\t\t\"ReceiverKycNumber\": \"P00005\"\n\t\t},\n\t\t\"PackageDetails\": {\n\t\t\t\"GoodsDescription\": \"a box of shirts\",\n\t\t\t\"CustomValue\": 3,\n\t\t\t\"CustomCurrencyCode\": \"SGD\",\n\t\t\t\"InsuranceValue\": \"0.00\",\n\t\t\t\"InsuranceCurrencyCode\": \"SGD\",\n\t\t\t\"ShipmentTerm\": \"\",\n\t\t\t\"GoodsOriginCountryCode\": \"SG\",\n\t\t\t\"DeliveryInstructions\": \"fragile shipment. please take care.\",\n\t\t\t\"Weight\": 3,\n\t\t\t\"WeightMeasurement\": \"KG\",\n\t\t\t\"NoOfItems\": 1,\n\t\t\t\"CubicL\": 3,\n\t\t\t\"CubicW\": 3,\n\t\t\t\"CubicH\": 3,\n\t\t\t\"CubicWeight\": 0,\n\t\t\t\"ServiceTypeName\": \"EN\",\n\t\t\t\"BookPickUP\": false,\n\t\t\t\"AlternateRef\": \"\",\n\t\t\t\"SenderRef1\": \"test shipment\",\n\t\t\t\"SenderRef2\": \"\",\n\t\t\t\"SenderRef3\": \"\",\n\t\t\t\"DeliveryAgentCode\": \"\",\n\t\t\t\"DeliveryRouteCode\": \"\",\n\t\t\t\"BusinessType\": \"B2B\",\n\t\t\t\"ShipmentResponseItem\": [\n\t\t\t\t{\n\t\t\t\t\t\"ItemAlt\": \"\",\n\t\t\t\t\t\"ItemNoOfPcs\": 1,\n\t\t\t\t\t\"ItemCubicL\": 3,\n\t\t\t\t\t\"ItemCubicW\": 3,\n\t\t\t\t\t\"ItemCubicH\": 3,\n\t\t\t\t\t\"ItemWeight\": 3,\n\t\t\t\t\t\"ItemCubicWeight\": 0,\n\t\t\t\t\t\"ItemDescription\": \"document\",\n\t\t\t\t\t\"ItemCustomValue\": 3,\n\t\t\t\t\t\"ItemCustomCurrencyCode\": \"SGD\",\n\t\t\t\t\t\"Notes\": \"item notes\",\n\t\t\t\t\t\"Pieces\": [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"HarmonisedCode\": \"hs001\",\n\t\t\t\t\t\t\t\"GoodsDescription\": \"shirts\",\n\t\t\t\t\t\t\t\"Content\": \"cotton\",\n\t\t\t\t\t\t\t\"Notes\": \"shirts\",\n\t\t\t\t\t\t\t\"SenderRef1\": \"ref #001\",\n\t\t\t\t\t\t\t\"Quantity\": 3,\n\t\t\t\t\t\t\t\"Weight\": 3,\n\t\t\t\t\t\t\t\"ManufactureCountryCode\": \"SG\",\n\t\t\t\t\t\t\t\"OriginCountryCode\": \"SG\",\n\t\t\t\t\t\t\t\"CurrencyCode\": \"SGD\",\n\t\t\t\t\t\t\t\"CustomsValue\": 3\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t],\n\t\t\t\"CODAmount\": 0,\n\t\t\t\"CODCurrencyCode\": \"SGD\",\n\t\t\t\"Bag\": 0,\n\t\t\t\"Notes\": \"this is sample notes\",\n\t\t\t\"OriginLocCode\": \"\",\n\t\t\t\"BagNumber\": 0,\n\t\t\t\"DeadWeight\": 3,\n\t\t\t\"ReasonExport\": \"\",\n\t\t\t\"DestTaxes\": 0,\n\t\t\t\"Security\": 0,\n\t\t\t\"Surcharge\": 0,\n\t\t\t\"ReceiverTaxID\": \"\",\n\t\t\t\"OrderNumber\": \"\",\n\t\t\t\"Incoterms\": \"CIF\",\n\t\t\t\"ClearanceReference\": \"\"\n\t\t},\n\t\t\"PickupDetails\": {\n\t\t\t\"ReadyTime\": \"{{pickupReadyTime}}\",\n\t\t\t\"CloseTime\": \"{{pickupCloseTime}}\",\n\t\t\t\"SpecialInstructions\": \"Operating hours 9:00am - 6:00pm (Mon - Fri)\",\n\t\t\t\"Address1\": \"338D King George's Avenue\",\n\t\t\t\"Address2\": \"King George's Building\",\n\t\t\t\"Address3\": \"\",\n\t\t\t\"AddressState\": \"\",\n\t\t\t\"AddressCity\": \"Singapore\",\n\t\t\t\"AddressPostalCode\": \"208573\",\n\t\t\t\"AddressCountryCode\": \"SG\"\n\t\t}\n\t}\n]",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{baseUrl}}shipments",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"shipments"
							]
						},
						"description": "**Creates a real shipment on your account.** Use a test account where possible.\n\nCross-border shipment (SG -> MY) with customs values and item pieces."
					},
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"// keep the new shipment number for the Tracks request",
									"var res = pm.response.json();",
									"if (Array.isArray(res) && res[0] && res[0].ShipmentNumber) pm.collectionVariables.set(\"trackingNumber\", res[0].ShipmentNumber);",
									"pm.test(\"no ErrMessage\", function () { pm.expect(res[0].ErrMessage || \"\").to.eql(\"\"); });"
								]
							}
						}
					]
				},
				{
					"name": "PUDO Shipment",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "[\n\t{\n\t\t\"SenderDetails\": {\n\t\t\t\"SenderName\": \"John\",\n\t\t\t\"SenderCompanyName\": \"Frontier Force Technology\",\n\t\t\t\"SenderCountryCode\": \"SG\",\n\t\t\t\"SenderAdd1\": \"338D King George's Avenue\",\n\t\t\t\"SenderAdd2\": \"King George's Building\",\n\t\t\t\"SenderAdd3\": \"\",\n\t\t\t\"SenderAddCity\": \"Singapore\",\n\t\t\t\"SenderAddState\": \"\",\n\t\t\t\"SenderAddPostcode\": \"208573\",\n\t\t\t\"SenderPhone\": \"+6563465333\",\n\t\t\t\"SenderEmail\": \"sales@frontierforce.com\",\n\t\t\t\"SenderFax\": \"+6563456717\",\n\t\t\t\"SenderKycType\": \"\",\n\t\t\t\"SenderKycNumber\": \"\",\n\t\t\t\"SenderReceivingCountryTaxID\": \"\"\n\t\t},\n\t\t\"ReceiverDetails\": {\n\t\t\t\"ReceiverName\": \"Jane Tan\",\n\t\t\t\"ReceiverCompanyName\": \"XYZ Pte Ltd\",\n\t\t\t\"ReceiverCountryCode\": \"SG\",\n\t\t\t\"ReceiverAdd1\": \"1 Example Road\",\n\t\t\t\"ReceiverAdd2\": \"#05-01\",\n\t\t\t\"ReceiverAdd3\": \"\",\n\t\t\t\"ReceiverAddCity\": \"Singapore\",\n\t\t\t\"ReceiverAddState\": \"\",\n\t\t\t\"ReceiverAddPostcode\": \"123456\",\n\t\t\t\"ReceiverMobile\": \"\",\n\t\t\t\"ReceiverPhone\": \"+6560000000\",\n\t\t\t\"ReceiverEmail\": \"shipping@example.com\",\n\t\t\t\"ReceiverAddResidential\": \"N\",\n\t\t\t\"ReceiverFax\": \"\",\n\t\t\t\"ReceiverKycType\": \"\",\n\t\t\t\"ReceiverKycNumber\": \"\"\n\t\t},\n\t\t\"PackageDetails\": {\n\t\t\t\"GoodsDescription\": \"a box of shirts\",\n\t\t\t\"CustomValue\": 3,\n\t\t\t\"CustomCurrencyCode\": \"SGD\",\n\t\t\t\"InsuranceValue\": \"0.00\",\n\t\t\t\"InsuranceCurrencyCode\": \"SGD\",\n\t\t\t\"ShipmentTerm\": \"\",\n\t\t\t\"GoodsOriginCountryCode\": \"SG\",\n\t\t\t\"DeliveryInstructions\": \"fragile shipment. please take care.\",\n\t\t\t\"Weight\": 3,\n\t\t\t\"WeightMeasurement\": \"KG\",\n\t\t\t\"NoOfItems\": 1,\n\t\t\t\"CubicL\": 3,\n\t\t\t\"CubicW\": 3,\n\t\t\t\"CubicH\": 3,\n\t\t\t\"CubicWeight\": 0,\n\t\t\t\"ServiceTypeName\": \"EN\",\n\t\t\t\"BookPickUP\": false,\n\t\t\t\"AlternateRef\": \"\",\n\t\t\t\"SenderRef1\": \"test shipment\",\n\t\t\t\"SenderRef2\": \"\",\n\t\t\t\"SenderRef3\": \"\",\n\t\t\t\"DeliveryAgentCode\": \"{{pudoProviderCode}}\",\n\t\t\t\"DeliveryRouteCode\": \"{{pudoCode}}\",\n\t\t\t\"BusinessType\": \"B2C\",\n\t\t\t\"ShipmentResponseItem\": [\n\t\t\t\t{\n\t\t\t\t\t\"ItemAlt\": \"\",\n\t\t\t\t\t\"ItemNoOfPcs\": 1,\n\t\t\t\t\t\"ItemCubicL\": 3,\n\t\t\t\t\t\"ItemCubicW\": 3,\n\t\t\t\t\t\"ItemCubicH\": 3,\n\t\t\t\t\t\"ItemWeight\": 3,\n\t\t\t\t\t\"ItemCubicWeight\": 0,\n\t\t\t\t\t\"ItemDescription\": \"document\",\n\t\t\t\t\t\"ItemCustomValue\": 3,\n\t\t\t\t\t\"ItemCustomCurrencyCode\": \"SGD\",\n\t\t\t\t\t\"Notes\": \"item notes\",\n\t\t\t\t\t\"Pieces\": []\n\t\t\t\t}\n\t\t\t],\n\t\t\t\"CODAmount\": 0,\n\t\t\t\"CODCurrencyCode\": \"SGD\",\n\t\t\t\"Bag\": 0,\n\t\t\t\"Notes\": \"this is sample notes\",\n\t\t\t\"OriginLocCode\": \"\",\n\t\t\t\"BagNumber\": 0,\n\t\t\t\"DeadWeight\": 3,\n\t\t\t\"ReasonExport\": \"\",\n\t\t\t\"DestTaxes\": 0,\n\t\t\t\"Security\": 0,\n\t\t\t\"Surcharge\": 0,\n\t\t\t\"ReceiverTaxID\": \"\",\n\t\t\t\"OrderNumber\": \"\",\n\t\t\t\"Incoterms\": \"\",\n\t\t\t\"ClearanceReference\": \"\"\n\t\t},\n\t\t\"PickupDetails\": {\n\t\t\t\"ReadyTime\": \"{{pickupReadyTime}}\",\n\t\t\t\"CloseTime\": \"{{pickupCloseTime}}\",\n\t\t\t\"SpecialInstructions\": \"Operating hours 9:00am - 6:00pm (Mon - Fri)\",\n\t\t\t\"Address1\": \"338D King George's Avenue\",\n\t\t\t\"Address2\": \"King George's Building\",\n\t\t\t\"Address3\": \"\",\n\t\t\t\"AddressState\": \"\",\n\t\t\t\"AddressCity\": \"Singapore\",\n\t\t\t\"AddressPostalCode\": \"208573\",\n\t\t\t\"AddressCountryCode\": \"SG\"\n\t\t}\n\t}\n]",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{baseUrl}}shipments",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"shipments"
							]
						},
						"description": "**Creates a real shipment on your account.** Use a test account where possible.\n\nDelivery to a Pick Up / Drop Off point for the receiver to collect.\n\nSet the collection variables:\n- `pudoProviderCode` -> `DeliveryAgentCode` (PUDO provider)\n- `pudoCode` -> `DeliveryRouteCode` (PUDO point code)"
					},
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"// keep the new shipment number for the Tracks request",
									"var res = pm.response.json();",
									"if (Array.isArray(res) && res[0] && res[0].ShipmentNumber) pm.collectionVariables.set(\"trackingNumber\", res[0].ShipmentNumber);",
									"pm.test(\"no ErrMessage\", function () { pm.expect(res[0].ErrMessage || \"\").to.eql(\"\"); });"
								]
							}
						}
					]
				},
				{
					"name": "Europe Shipment",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "[\n\t{\n\t\t\"ThirdPartyToken\": \"{{thirdPartyToken}}\",\n\t\t\"SenderDetails\": {\n\t\t\t\"SenderName\": \"Jane Tan\",\n\t\t\t\"SenderCompanyName\": \"XYZ Pte Ltd\",\n\t\t\t\"SenderCountryCode\": \"SG\",\n\t\t\t\"SenderAdd1\": \"1 Example Road\",\n\t\t\t\"SenderAdd2\": \"#05-01\",\n\t\t\t\"SenderAdd3\": \"\",\n\t\t\t\"SenderAddCity\": \"Singapore\",\n\t\t\t\"SenderAddState\": \"\",\n\t\t\t\"SenderAddPostcode\": \"123456\",\n\t\t\t\"SenderPhone\": \"+6560000000\",\n\t\t\t\"SenderEmail\": \"shipping@example.com\",\n\t\t\t\"SenderFax\": \"\",\n\t\t\t\"SenderKycType\": \"\",\n\t\t\t\"SenderKycNumber\": \"\",\n\t\t\t\"SenderReceivingCountryTaxID\": \"IM7020000000\"\n\t\t},\n\t\t\"ReceiverDetails\": {\n\t\t\t\"ReceiverName\": \"Max Mustermann\",\n\t\t\t\"ReceiverCompanyName\": \"Max Mustermann\",\n\t\t\t\"ReceiverCountryCode\": \"DE\",\n\t\t\t\"ReceiverAdd1\": \"Waldstr. 66\",\n\t\t\t\"ReceiverAdd2\": \"\",\n\t\t\t\"ReceiverAdd3\": \"\",\n\t\t\t\"ReceiverAddCity\": \"Dietzenbach\",\n\t\t\t\"ReceiverAddState\": \"\",\n\t\t\t\"ReceiverAddPostcode\": \"63128\",\n\t\t\t\"ReceiverMobile\": \"\",\n\t\t\t\"ReceiverPhone\": \"+4960000000\",\n\t\t\t\"ReceiverEmail\": \"buyer@example.com\",\n\t\t\t\"ReceiverAddResidential\": \"Y\",\n\t\t\t\"ReceiverFax\": \"\",\n\t\t\t\"ReceiverKycType\": \"\",\n\t\t\t\"ReceiverKycNumber\": \"\"\n\t\t},\n\t\t\"PackageDetails\": {\n\t\t\t\"GoodsDescription\": \"PC Accessories\",\n\t\t\t\"CustomValue\": 44,\n\t\t\t\"CustomCurrencyCode\": \"EUR\",\n\t\t\t\"InsuranceValue\": 0,\n\t\t\t\"InsuranceCurrencyCode\": \"\",\n\t\t\t\"ShipmentTerm\": \"DDP\",\n\t\t\t\"GoodsOriginCountryCode\": \"CN\",\n\t\t\t\"DeliveryInstructions\": \"\",\n\t\t\t\"Weight\": 0.55,\n\t\t\t\"WeightMeasurement\": \"KG\",\n\t\t\t\"NoOfItems\": 1,\n\t\t\t\"CubicL\": 0,\n\t\t\t\"CubicW\": 0,\n\t\t\t\"CubicH\": 0,\n\t\t\t\"CubicWeight\": 0,\n\t\t\t\"ServiceTypeName\": \"EN\",\n\t\t\t\"BookPickUP\": false,\n\t\t\t\"AlternateRef\": \"\",\n\t\t\t\"SenderRef1\": \"#200112345\",\n\t\t\t\"SenderRef2\": \"\",\n\t\t\t\"SenderRef3\": \"\",\n\t\t\t\"DeliveryAgentCode\": \"\",\n\t\t\t\"DeliveryRouteCode\": \"\",\n\t\t\t\"BusinessType\": \"B2C\",\n\t\t\t\"EORINumber\": \"\",\n\t\t\t\"VATProcedureCode\": \"F48\",\n\t\t\t\"ShipmentResponseItem\": [\n\t\t\t\t{\n\t\t\t\t\t\"ItemAlt\": \"\",\n\t\t\t\t\t\"ItemNoOfPcs\": 1,\n\t\t\t\t\t\"ItemCubicL\": 0,\n\t\t\t\t\t\"ItemCubicW\": 0,\n\t\t\t\t\t\"ItemCubicH\": 0,\n\t\t\t\t\t\"ItemWeight\": 0.55,\n\t\t\t\t\t\"ItemCubicWeight\": 0,\n\t\t\t\t\t\"ItemDeadWeight\": 0.55,\n\t\t\t\t\t\"ItemDescription\": \"Bluetooth wireless keyboard\",\n\t\t\t\t\t\"ItemCustomValue\": 44,\n\t\t\t\t\t\"ItemCustomCurrencyCode\": \"EUR\",\n\t\t\t\t\t\"ItemGoodsOriginCountryCode\": \"CN\",\n\t\t\t\t\t\"Notes\": \"\",\n\t\t\t\t\t\"Pieces\": [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"HarmonisedCode\": \"8471606000\",\n\t\t\t\t\t\t\t\"GoodsDescription\": \"Bluetooth wireless keyboard\",\n\t\t\t\t\t\t\t\"Content\": \"\",\n\t\t\t\t\t\t\t\"Notes\": \"\",\n\t\t\t\t\t\t\t\"SenderRef1\": \"#200112345\",\n\t\t\t\t\t\t\t\"SenderRef2\": \"\",\n\t\t\t\t\t\t\t\"Reference\": \"K382-2390\",\n\t\t\t\t\t\t\t\"Quantity\": 1,\n\t\t\t\t\t\t\t\"Weight\": 0.55,\n\t\t\t\t\t\t\t\"DeadWeight\": 0.55,\n\t\t\t\t\t\t\t\"ManufactureCountryCode\": \"CN\",\n\t\t\t\t\t\t\t\"OriginCountryCode\": \"CN\",\n\t\t\t\t\t\t\t\"CurrencyCode\": \"EUR\",\n\t\t\t\t\t\t\t\"CustomsValue\": 44,\n\t\t\t\t\t\t\t\"CPCCode\": \"\",\n\t\t\t\t\t\t\t\"MerchantPID\": \"XYZSHOP-K382-2390\",\n\t\t\t\t\t\t\t\"ManufacturerPID\": \"MFR-K382\",\n\t\t\t\t\t\t\t\"StandardisedPID\": \"4006381333931\",\n\t\t\t\t\t\t\t\"PreferenceCode\": \"500\",\n\t\t\t\t\t\t\t\"ProhibitionsRestrictions\": false,\n\t\t\t\t\t\t\t\"ExciseGoods\": false\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t],\n\t\t\t\"CODAmount\": 0,\n\t\t\t\"CODCurrencyCode\": \"EUR\",\n\t\t\t\"Bag\": 0,\n\t\t\t\"Notes\": \"\",\n\t\t\t\"OriginLocCode\": \"\",\n\t\t\t\"BagNumber\": \"\",\n\t\t\t\"DeadWeight\": 0.55,\n\t\t\t\"ReasonExport\": \"\",\n\t\t\t\"DestTaxes\": 0,\n\t\t\t\"Security\": 0,\n\t\t\t\"Surcharge\": 0,\n\t\t\t\"ReceiverTaxID\": \"\",\n\t\t\t\"Incoterms\": \"\",\n\t\t\t\"ClearanceReference\": \"\"\n\t\t},\n\t\t\"PickupDetails\": {\n\t\t\t\"ReadyTime\": \"\",\n\t\t\t\"CloseTime\": \"\",\n\t\t\t\"SpecialInstructions\": \"\",\n\t\t\t\"Address1\": \"\",\n\t\t\t\"Address2\": \"\",\n\t\t\t\"Address3\": \"\",\n\t\t\t\"AddressState\": \"\",\n\t\t\t\"AddressCity\": \"\",\n\t\t\t\"AddressPostalCode\": \"\",\n\t\t\t\"AddressCountryCode\": \"\"\n\t\t}\n\t}\n]",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{baseUrl}}shipments",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"shipments"
							]
						},
						"description": "**Creates a real shipment on your account.** Use a test account where possible.\n\nConsumer sale into the EU (consignment value up to EUR 150), VAT collected under IOSS.\n\n- `VATProcedureCode`: F48 = IOSS, F49 = Special Arrangements, F53 = standard VAT procedure (replaces C07).\n- F48 needs the IOSS number in `SenderReceivingCountryTaxID` (IM + 10 digits); leave it empty for F49 / F53.\n- `CustomValue` is the intrinsic value of the goods (excluding transport and insurance shown separately).\n- One product (each colour / size variant) per `Pieces` entry, each with `HarmonisedCode` (10-digit TARIC where available, minimum 6), `MerchantPID` and `ManufacturerPID`. `StandardisedPID` (EAN/GTIN/UPC/ISBN) where one exists; if empty, Y081 is declared.\n- Agricultural (tariff chapters 1-15), certain hand-made goods and art/antiques (9701-9706) may send `M-PID` / `NS-PID`.\n- `PreferenceCode` defaults to 500; codes starting 2, 3 or 4 are rejected with F48.\n- From 1 November 2026 missing or invalid product identifiers cause the shipment to be rejected.\n- `ThirdPartyToken` uses the `thirdPartyToken` variable; leave it empty if you don't ship through a connected carrier account."
					},
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"// keep the new shipment number for the Tracks request",
									"var res = pm.response.json();",
									"if (Array.isArray(res) && res[0] && res[0].ShipmentNumber) pm.collectionVariables.set(\"trackingNumber\", res[0].ShipmentNumber);",
									"pm.test(\"no ErrMessage\", function () { pm.expect(res[0].ErrMessage || \"\").to.eql(\"\"); });"
								]
							}
						}
					]
				},
				{
					"name": "Integration Shipment (ThirdPartyToken)",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "[\n\t{\n\t\t\"SenderDetails\": {\n\t\t\t\"SenderName\": \"John\",\n\t\t\t\"SenderCompanyName\": \"Frontier Force Technology\",\n\t\t\t\"SenderCountryCode\": \"SG\",\n\t\t\t\"SenderAdd1\": \"338D King George's Avenue\",\n\t\t\t\"SenderAdd2\": \"King George's Building\",\n\t\t\t\"SenderAdd3\": \"\",\n\t\t\t\"SenderAddCity\": \"Singapore\",\n\t\t\t\"SenderAddState\": \"\",\n\t\t\t\"SenderAddPostcode\": \"208573\",\n\t\t\t\"SenderPhone\": \"+6563465333\",\n\t\t\t\"SenderEmail\": \"sales@frontierforce.com\",\n\t\t\t\"SenderFax\": \"+6563456717\",\n\t\t\t\"SenderKycType\": \"Passport\",\n\t\t\t\"SenderKycNumber\": \"P00001\",\n\t\t\t\"SenderReceivingCountryTaxID\": \"\"\n\t\t},\n\t\t\"ReceiverDetails\": {\n\t\t\t\"ReceiverName\": \"May\",\n\t\t\t\"ReceiverCompanyName\": \"Frontier Force Technology (M) Sdn Bhd\",\n\t\t\t\"ReceiverCountryCode\": \"MY\",\n\t\t\t\"ReceiverAdd1\": \"B-08-02, Second Floor, Garden Shoppe @ One City\",\n\t\t\t\"ReceiverAdd2\": \"Jalan USJ 25/1A\",\n\t\t\t\"ReceiverAdd3\": \"\",\n\t\t\t\"ReceiverAddCity\": \"Subang Jaya\",\n\t\t\t\"ReceiverAddState\": \"Selangor\",\n\t\t\t\"ReceiverAddPostcode\": \"47650\",\n\t\t\t\"ReceiverMobile\": \"\",\n\t\t\t\"ReceiverPhone\": \"+60380118166\",\n\t\t\t\"ReceiverEmail\": \"support.my@frontierforce.com\",\n\t\t\t\"ReceiverAddResidential\": \"N\",\n\t\t\t\"ReceiverFax\": \"\",\n\t\t\t\"ReceiverKycType\": \"Passport\",\n\t\t\t\"ReceiverKycNumber\": \"P00005\"\n\t\t},\n\t\t\"PackageDetails\": {\n\t\t\t\"GoodsDescription\": \"a box of shirts\",\n\t\t\t\"CustomValue\": 3,\n\t\t\t\"CustomCurrencyCode\": \"SGD\",\n\t\t\t\"InsuranceValue\": \"0.00\",\n\t\t\t\"InsuranceCurrencyCode\": \"SGD\",\n\t\t\t\"ShipmentTerm\": \"\",\n\t\t\t\"GoodsOriginCountryCode\": \"SG\",\n\t\t\t\"DeliveryInstructions\": \"fragile shipment. please take care.\",\n\t\t\t\"Weight\": 3,\n\t\t\t\"WeightMeasurement\": \"KG\",\n\t\t\t\"NoOfItems\": 1,\n\t\t\t\"CubicL\": 3,\n\t\t\t\"CubicW\": 3,\n\t\t\t\"CubicH\": 3,\n\t\t\t\"CubicWeight\": 0,\n\t\t\t\"ServiceTypeName\": \"EN\",\n\t\t\t\"BookPickUP\": false,\n\t\t\t\"AlternateRef\": \"\",\n\t\t\t\"SenderRef1\": \"test shipment\",\n\t\t\t\"SenderRef2\": \"\",\n\t\t\t\"SenderRef3\": \"\",\n\t\t\t\"DeliveryAgentCode\": \"\",\n\t\t\t\"DeliveryRouteCode\": \"\",\n\t\t\t\"BusinessType\": \"B2B\",\n\t\t\t\"ShipmentResponseItem\": [\n\t\t\t\t{\n\t\t\t\t\t\"ItemAlt\": \"\",\n\t\t\t\t\t\"ItemNoOfPcs\": 1,\n\t\t\t\t\t\"ItemCubicL\": 3,\n\t\t\t\t\t\"ItemCubicW\": 3,\n\t\t\t\t\t\"ItemCubicH\": 3,\n\t\t\t\t\t\"ItemWeight\": 3,\n\t\t\t\t\t\"ItemCubicWeight\": 0,\n\t\t\t\t\t\"ItemDescription\": \"document\",\n\t\t\t\t\t\"ItemCustomValue\": 3,\n\t\t\t\t\t\"ItemCustomCurrencyCode\": \"SGD\",\n\t\t\t\t\t\"Notes\": \"item notes\",\n\t\t\t\t\t\"Pieces\": [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"HarmonisedCode\": \"hs001\",\n\t\t\t\t\t\t\t\"GoodsDescription\": \"shirts\",\n\t\t\t\t\t\t\t\"Content\": \"cotton\",\n\t\t\t\t\t\t\t\"Notes\": \"shirts\",\n\t\t\t\t\t\t\t\"SenderRef1\": \"ref #001\",\n\t\t\t\t\t\t\t\"Quantity\": 3,\n\t\t\t\t\t\t\t\"Weight\": 3,\n\t\t\t\t\t\t\t\"ManufactureCountryCode\": \"SG\",\n\t\t\t\t\t\t\t\"OriginCountryCode\": \"SG\",\n\t\t\t\t\t\t\t\"CurrencyCode\": \"SGD\",\n\t\t\t\t\t\t\t\"CustomsValue\": 3\n\t\t\t\t\t\t}\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t],\n\t\t\t\"CODAmount\": 0,\n\t\t\t\"CODCurrencyCode\": \"SGD\",\n\t\t\t\"Bag\": 0,\n\t\t\t\"Notes\": \"this is sample notes\",\n\t\t\t\"OriginLocCode\": \"\",\n\t\t\t\"BagNumber\": 0,\n\t\t\t\"DeadWeight\": 3,\n\t\t\t\"ReasonExport\": \"\",\n\t\t\t\"DestTaxes\": 0,\n\t\t\t\"Security\": 0,\n\t\t\t\"Surcharge\": 0,\n\t\t\t\"ReceiverTaxID\": \"\",\n\t\t\t\"OrderNumber\": \"\",\n\t\t\t\"Incoterms\": \"CIF\",\n\t\t\t\"ClearanceReference\": \"\"\n\t\t},\n\t\t\"PickupDetails\": {\n\t\t\t\"ReadyTime\": \"{{pickupReadyTime}}\",\n\t\t\t\"CloseTime\": \"{{pickupCloseTime}}\",\n\t\t\t\"SpecialInstructions\": \"Operating hours 9:00am - 6:00pm (Mon - Fri)\",\n\t\t\t\"Address1\": \"338D King George's Avenue\",\n\t\t\t\"Address2\": \"King George's Building\",\n\t\t\t\"Address3\": \"\",\n\t\t\t\"AddressState\": \"\",\n\t\t\t\"AddressCity\": \"Singapore\",\n\t\t\t\"AddressPostalCode\": \"208573\",\n\t\t\t\"AddressCountryCode\": \"SG\"\n\t\t},\n\t\t\"ThirdPartyToken\": \"{{thirdPartyToken}}\",\n\t\t\"IntegrationData\": {}\n\t}\n]",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{baseUrl}}shipments",
							"host": [
								"{{baseUrl}}"
							],
							"path": [
								"shipments"
							]
						},
						"description": "**Creates a real shipment on your account.** Use a test account where possible.\n\nShips through your own carrier account connected in PostShipping.\n\n- Set `thirdPartyToken` to the account token of that integration.\n- `IntegrationData` holds extra fields required by certain carriers only; leave it empty unless the carrier needs it."
					},
					"event": [
						{
							"listen": "test",
							"script": {
								"type": "text/javascript",
								"exec": [
									"// keep the new shipment number for the Tracks request",
									"var res = pm.response.json();",
									"if (Array.isArray(res) && res[0] && res[0].ShipmentNumber) pm.collectionVariables.set(\"trackingNumber\", res[0].ShipmentNumber);",
									"pm.test(\"no ErrMessage\", function () { pm.expect(res[0].ErrMessage || \"\").to.eql(\"\"); });"
								]
							}
						}
					]
				}
			]
		},
		{
			"name": "Tracks",
			"request": {
				"method": "GET",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"url": {
					"raw": "{{baseUrl}}tracks?ReferenceNumber={{trackingNumber}}",
					"host": [
						"{{baseUrl}}"
					],
					"path": [
						"tracks"
					],
					"query": [
						{
							"key": "ReferenceNumber",
							"value": "{{trackingNumber}}"
						}
					]
				},
				"description": "Get tracking events. `trackingNumber` is filled in automatically after a successful Create Shipment, or set it yourself."
			}
		},
		{
			"name": "Book Pickup",
			"request": {
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json"
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n\t\"ThirdPartyToken\": \"\",\n\t\"CompanyName\": \"Frontier Force Technology\",\n\t\"ContactName\": \"Test Contact\",\n\t\"ContactNumber\": \"+6563465333\",\n\t\"Email\": \"sales@frontierforce.com\",\n\t\"CarrierCode\": \"\",\n\t\"CollectionDate\": \"{{collectionDate}}\",\n\t\"ReadyTime\": {\n\t\t\"StartTime\": \"09:00\",\n\t\t\"EndTime\": \"18:00\"\n\t},\n\t\"PickupAddress\": {\n\t\t\"Address1\": \"338D King George's Avenue\",\n\t\t\"Address2\": \"King George's Building\",\n\t\t\"Address3\": \"\",\n\t\t\"AddressState\": \"\",\n\t\t\"AddressCity\": \"Singapore\",\n\t\t\"AddressPostalCode\": \"208573\",\n\t\t\"AddressCountryCode\": \"SG\"\n\t},\n\t\"ReferenceNumbers\": [\n\t\t\"Ref12345\"\n\t],\n\t\"SpecialInstruction\": \"fragile shipment. please take care.\",\n\t\"ServiceType\": \"EN\",\n\t\"GoodsDescription\": \"computer\",\n\t\"NoofItems\": 1,\n\t\"Weight\": 3,\n\t\"WeightMeasure\": \"KG\",\n\t\"CubicLength\": 0,\n\t\"CubicWidth\": 0,\n\t\"CubicHeight\": 0,\n\t\"CubicWeight\": 0,\n\t\"CubicWeightMeasure\": \"KG\",\n\t\"CubicDimensionMeasure\": \"cm\",\n\t\"SenderRef1\": \"Order0001\",\n\t\"SenderRef2\": \"\",\n\t\"SenderRef3\": \"\",\n\t\"RequestVehicle\": \"\",\n\t\"CashValue\": 0\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "{{baseUrl}}pickup",
					"host": [
						"{{baseUrl}}"
					],
					"path": [
						"pickup"
					]
				},
				"description": "**Books a real pickup with the carrier.** Use a test account where possible.\n\nSet `ThirdPartyToken` / `CarrierCode` if booking through a connected carrier account."
			}
		}
	],
	"variable": [
		{
			"key": "baseUrl",
			"value": "https://api.postshipping.com/api2/"
		},
		{
			"key": "apiKey",
			"value": ""
		},
		{
			"key": "thirdPartyToken",
			"value": ""
		},
		{
			"key": "pudoProviderCode",
			"value": ""
		},
		{
			"key": "pudoCode",
			"value": ""
		},
		{
			"key": "trackingNumber",
			"value": ""
		},
		{
			"key": "pickupReadyTime",
			"value": ""
		},
		{
			"key": "pickupCloseTime",
			"value": ""
		},
		{
			"key": "collectionDate",
			"value": ""
		}
	]
}
