{
  "info": {
    "name": "Pear Shipping API",
    "description": "Safe starter requests for Pear Shipping. Sample sandbox requests never purchase postage.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    { "key": "baseUrl", "value": "https://app.pearshipping.com" },
    { "key": "apiKey", "value": "pear_test_REPLACE" },
    { "key": "shipmentId", "value": "REPLACE" }
  ],
  "item": [
    { "name": "Health", "request": { "method": "GET", "url": "{{baseUrl}}/health" } },
    { "name": "Capabilities", "request": { "method": "GET", "url": "{{baseUrl}}/v1/capabilities" } },
    { "name": "List sandbox scenarios", "request": { "method": "GET", "url": "{{baseUrl}}/v1/sandbox/scenarios" } },
    { "name": "Run safe three-carrier sample", "request": { "method": "POST", "header": [{ "key": "Content-Type", "value": "application/json" }], "body": { "mode": "raw", "raw": "{\n  \"scenario\": \"happy_path\"\n}" }, "url": "{{baseUrl}}/v1/sandbox/run" } },
    { "name": "Operations overview", "request": { "method": "GET", "header": [{ "key": "Authorization", "value": "Bearer {{apiKey}}" }], "url": "{{baseUrl}}/v1/operations/overview" } },
    { "name": "Carrier readiness", "request": { "method": "GET", "header": [{ "key": "Authorization", "value": "Bearer {{apiKey}}" }], "url": "{{baseUrl}}/v1/operations/carriers" } },
    { "name": "Create shipment", "request": { "method": "POST", "header": [{ "key": "Authorization", "value": "Bearer {{apiKey}}" }, { "key": "Idempotency-Key", "value": "postman-example-1" }, { "key": "Content-Type", "value": "application/json" }], "body": { "mode": "raw", "raw": "{\n  \"mode\": \"merchant\",\n  \"sender\": {\"name\": \"Pear Shipping\", \"address1\": \"2824 Merrywood Drive\", \"city\": \"Sacramento\", \"state\": \"CA\", \"postalCode\": \"95825\", \"country\": \"US\"},\n  \"recipient\": {\"name\": \"Sample Recipient\", \"address1\": \"742 Evergreen Terrace\", \"city\": \"Springfield\", \"state\": \"OR\", \"postalCode\": \"97477\", \"country\": \"US\"},\n  \"parcel\": {\"length\": 14, \"width\": 10, \"height\": 8, \"weight\": 4.5, \"distanceUnit\": \"in\", \"massUnit\": \"lb\"}\n}" }, "url": "{{baseUrl}}/v1/shipments" } }
  ]
}
