Postman collection for the Tax Quote API

Learn how to set up a Postman collection for the Tax Quote API

The Postman collection for the Reach Tax Quote API includes ready-made requests for creating tax quotes, so you can try the API before you build your integration.

Import the Reach Tax Quote API collection

First, import the Postman collection file in JSON format by completing the following steps:

  1. Download the JSON file. Click the button to open the file in Google Drive.

  2. In Postman, click Use resources or import, then select Import.
  3. In the Use Resources window in Postman, click files under the Drop anywhere to import section.
  4. Select the Tax Quote API collection file from your computer.

Alternatively, open the following and copy the collection file. Paste it into the text box on the Use Resources window

Tax quote API collection file
{
  "info": {
    "_postman_id": "0702a95e-7906-42f8-aa29-71fb6a3cc05b",
    "name": "Tax Quote API",
    "description": "API to interact with Reach's Tax Quote\n\nCalculate tax for a cart with Reach's Tax Quote API. When the customer pays, send the quote `Id` as `TaxQuoteId` in your `/checkout`, `/order`, or `/session` request so Reach records the quoted tax.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Create a new tax quote - minimal",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"Currency\": \"CAD\",\n  \"Items\": [\n    {\n      \"Amount\": 45.9,\n      \"Sku\": \"SKU-1\"\n    }\n  ],\n  \"ShippingAddress\": {\n    \"Street\": \"86170 Mayer Ford\",\n    \"City\": \"Micahfort\",\n    \"Region\": \"AB\",\n    \"Country\": \"CA\",\n    \"Postcode\": \"T2T 1G6\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{apiBaseUrl}}/v1/tax/quote",
          "host": [
            "{{apiBaseUrl}}"
          ],
          "path": [
            "v1",
            "tax",
            "quote"
          ]
        },
        "description": "Use the Reach Tax Quote API to request a tax quote based on customers' items and state/country. The response contains the calculated tax amount due for the order. Requests should not exceed the [limit](https://docs.withreach.com/docs/reach-tax-quote-api#tax-quote-rate-limiting) of 10 requests per second.\n\nFor more details, review the [Reach Tax Quote API](https://docs.withreach.com/docs/reach-tax-quote-api) page.\n\n**Minimum request:** Only `Currency`, `Items`, and `ShippingAddress` are required. `Region` and `Postcode` are optional, but include them for an accurate rate in Canada and the US. For physical goods, also include `WarehouseAddress`."
      },
      "response": [
        {
          "name": "201 Created Quote - minimal",
          "originalRequest": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"Currency\": \"CAD\",\n  \"Items\": [\n    {\n      \"Amount\": 45.9,\n      \"Sku\": \"SKU-1\"\n    }\n  ],\n  \"ShippingAddress\": {\n    \"Street\": \"86170 Mayer Ford\",\n    \"City\": \"Micahfort\",\n    \"Region\": \"AB\",\n    \"Country\": \"CA\",\n    \"Postcode\": \"T2T 1G6\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{apiBaseUrl}}/v1/tax/quote",
              "host": [
                "{{apiBaseUrl}}"
              ],
              "path": [
                "v1",
                "tax",
                "quote"
              ]
            }
          },
          "status": "Created",
          "code": 201,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": ":status",
              "value": "201"
            },
            {
              "key": "content-type",
              "value": "application/json"
            },
            {
              "key": "vary",
              "value": "Origin, Access-Control-Request-Method, Access-Control-Request-Headers"
            },
            {
              "key": "x-content-type-options",
              "value": "nosniff"
            },
            {
              "key": "x-xss-protection",
              "value": "0"
            },
            {
              "key": "cache-control",
              "value": "no-cache, no-store, max-age=0, must-revalidate"
            },
            {
              "key": "pragma",
              "value": "no-cache"
            },
            {
              "key": "expires",
              "value": "0"
            },
            {
              "key": "strict-transport-security",
              "value": "max-age=31536000 ; includeSubDomains"
            },
            {
              "key": "x-frame-options",
              "value": "DENY"
            },
            {
              "key": "referrer-policy",
              "value": "no-referrer"
            },
            {
              "key": "content-security-policy",
              "value": "default-src 'self' https:; font-src 'self' https: data:; img-src 'self' https: data:; object-src 'none'; script-src https:; style-src 'self' https: 'unsafe-inline'"
            },
            {
              "key": "x-download-options",
              "value": "noopen"
            },
            {
              "key": "x-permitted-cross-domain-policies",
              "value": "none"
            }
          ],
          "cookie": [],
          "body": "{\n  \"Id\": \"11111111-2222-3333-4444-555555555555\",\n  \"Amount\": 45.9,\n  \"TaxAmount\": 0,\n  \"Currency\": \"CAD\",\n  \"Items\": [\n    {\n      \"Id\": \"11111111-2222-3333-4444-000000000001\",\n      \"TaxAmount\": 0,\n      \"Tax\": [\n        {\n          \"Name\": \"CA GST\",\n          \"Type\": \"Output\",\n          \"TaxAmount\": 0\n        }\n      ],\n      \"Sku\": \"SKU-1\",\n      \"TaxCode\": \"P0000000\",\n      \"TaxIncluded\": false,\n      \"Amount\": 45.9,\n      \"WarehouseAddress\": {\n        \"Street\": \"86170 Mayer Ford\",\n        \"City\": \"Micahfort\",\n        \"Region\": \"AB\",\n        \"Country\": \"CA\",\n        \"Postcode\": \"T2T 1G6\"\n      }\n    }\n  ],\n  \"ShippingAddress\": {\n    \"Street\": \"86170 Mayer Ford\",\n    \"City\": \"Micahfort\",\n    \"Region\": \"AB\",\n    \"Country\": \"CA\",\n    \"Postcode\": \"T2T 1G6\"\n  }\n}"
        },
        {
          "name": "400 Bad Request",
          "originalRequest": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Basic <credentials>",
                "description": "Added as a part of security scheme: basic"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"Currency\": \"CAD\",\n  \"Items\": [\n    {\n      \"Amount\": 45.9,\n      \"Sku\": \"\"\n    },\n    {\n      \"Amount\": 0,\n      \"Sku\": \"SKU-2\"\n    }\n  ],\n  \"ShippingAddress\": {\n    \"Street\": \"86170 Mayer Ford\",\n    \"City\": \"\",\n    \"Region\": \"AB\",\n    \"Country\": \"CA\",\n    \"Postcode\": \"T2T 1G6\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{apiBaseUrl}}/v1/tax/quote",
              "host": [
                "{{apiBaseUrl}}"
              ],
              "path": [
                "v1",
                "tax",
                "quote"
              ]
            }
          },
          "status": "Bad Request",
          "code": 400,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "cookie": [],
          "body": "{\n    \"Code\": \"VALIDATION_ERROR\",\n    \"FieldErrors\": [\n        {\n            \"Code\": \"VALIDATION_ERROR\",\n            \"Field\": \"Items[1].Amount\",\n            \"Message\": \"must be greater than 0\"\n        },\n        {\n            \"Code\": \"FIELD_MISSING\",\n            \"Field\": \"Items[0].Sku\",\n            \"Message\": \"must not be blank\"\n        },\n        {\n            \"Code\": \"FIELD_MISSING\",\n            \"Field\": \"ShippingAddress.City\",\n            \"Message\": \"must not be blank\"\n        }\n    ],\n    \"Message\": \"invalid request syntax\"\n}"
        },
        {
          "name": "401 Unauthorized",
          "originalRequest": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Basic <credentials>",
                "description": "Added as a part of security scheme: basic"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"Currency\": \"CAD\",\n  \"Items\": [\n    {\n      \"Amount\": 45.9,\n      \"Sku\": \"SKU-1\"\n    }\n  ],\n  \"ShippingAddress\": {\n    \"Street\": \"86170 Mayer Ford\",\n    \"City\": \"Micahfort\",\n    \"Region\": \"AB\",\n    \"Country\": \"CA\",\n    \"Postcode\": \"T2T 1G6\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{apiBaseUrl}}/v1/tax/quote",
              "host": [
                "{{apiBaseUrl}}"
              ],
              "path": [
                "v1",
                "tax",
                "quote"
              ]
            }
          },
          "status": "Unauthorized",
          "code": 401,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "cookie": [],
          "body": "{\n  \"Code\": \"NOT_AUTHORIZED\",\n  \"Message\": \"user is not permitted to access this resource\"\n}"
        },
        {
          "name": "404 Not Found",
          "originalRequest": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Basic <credentials>",
                "description": "Added as a part of security scheme: basic"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"Currency\": \"CAD\",\n  \"Items\": [\n    {\n      \"Amount\": 45.9,\n      \"Sku\": \"SKU-1\"\n    }\n  ],\n  \"ShippingAddress\": {\n    \"Street\": \"86170 Mayer Ford\",\n    \"City\": \"Micahfort\",\n    \"Region\": \"AB\",\n    \"Country\": \"CA\",\n    \"Postcode\": \"T2T 1G6\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{apiBaseUrl}}/v1/tax/quote",
              "host": [
                "{{apiBaseUrl}}"
              ],
              "path": [
                "v1",
                "tax",
                "quote"
              ]
            }
          },
          "status": "Not Found",
          "code": 404,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "cookie": [],
          "body": "{\n  \"Code\": \"ENTITY_NOT_FOUND\",\n  \"Message\": \"merchant tax config not found or is not active for MerchantId 00000000-0000-4000-8000-000000000000\"\n}"
        },
        {
          "name": "500 Internal Server Error",
          "originalRequest": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Basic <credentials>",
                "description": "Added as a part of security scheme: basic"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"Currency\": \"CAD\",\n  \"Items\": [\n    {\n      \"Amount\": 45.9,\n      \"Sku\": \"SKU-1\"\n    }\n  ],\n  \"ShippingAddress\": {\n    \"Street\": \"86170 Mayer Ford\",\n    \"City\": \"Micahfort\",\n    \"Region\": \"AB\",\n    \"Country\": \"CA\",\n    \"Postcode\": \"T2T 1G6\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{apiBaseUrl}}/v1/tax/quote",
              "host": [
                "{{apiBaseUrl}}"
              ],
              "path": [
                "v1",
                "tax",
                "quote"
              ]
            }
          },
          "status": "Internal Server Error",
          "code": 500,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "cookie": [],
          "body": "{\n  \"Code\": \"INTERNAL_SERVER_ERROR\",\n  \"Message\": \"an unexpected error occurred\"\n}"
        },
        {
          "name": "503 Service Unavailable",
          "originalRequest": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Basic <credentials>",
                "description": "Added as a part of security scheme: basic"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"Currency\": \"CAD\",\n  \"Items\": [\n    {\n      \"Amount\": 45.9,\n      \"Sku\": \"SKU-1\"\n    }\n  ],\n  \"ShippingAddress\": {\n    \"Street\": \"86170 Mayer Ford\",\n    \"City\": \"Micahfort\",\n    \"Region\": \"AB\",\n    \"Country\": \"CA\",\n    \"Postcode\": \"T2T 1G6\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{apiBaseUrl}}/v1/tax/quote",
              "host": [
                "{{apiBaseUrl}}"
              ],
              "path": [
                "v1",
                "tax",
                "quote"
              ]
            }
          },
          "status": "Service Unavailable",
          "code": 503,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "cookie": [],
          "body": "{\n  \"Code\": \"SERVICE_UNAVAILABLE\",\n  \"Message\": \"Tax service is temporarily unavailable due to a configuration issue on our side. Please contact support.\"\n}"
        }
      ]
    },
    {
      "name": "Create a new tax quote - complete",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"Currency\": \"CAD\",\n  \"BusinessIdentificationNumber\": \"123456789RT0001\",\n  \"CustomerCode\": \"CUST-1001\",\n  \"Items\": [\n    {\n      \"Amount\": 105.1,\n      \"Sku\": \"SKU-1\",\n      \"TaxCode\": \"PS081282\",\n      \"Description\": \"Description of Item 1\",\n      \"TaxIncluded\": false\n    },\n    {\n      \"Amount\": 45.9,\n      \"Sku\": \"SKU-2\",\n      \"Description\": \"Description of Item 2\",\n      \"TaxIncluded\": false,\n      \"WarehouseAddress\": {\n        \"Street\": \"512 Kuhn Ridge\",\n        \"City\": \"East Marisa\",\n        \"Region\": \"ON\",\n        \"Country\": \"CA\",\n        \"Postcode\": \"M5V 2T6\"\n      }\n    }\n  ],\n  \"WarehouseAddress\": {\n    \"Street\": \"344 Maria Crest\",\n    \"City\": \"South Crishaven\",\n    \"Region\": \"NL\",\n    \"Country\": \"CA\",\n    \"Postcode\": \"A1B 1J1\"\n  },\n  \"ShippingAddress\": {\n    \"Street\": \"86170 Mayer Ford\",\n    \"City\": \"Micahfort\",\n    \"Region\": \"NB\",\n    \"Country\": \"CA\",\n    \"Postcode\": \"E4L 0R6\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{apiBaseUrl}}/v1/tax/quote",
          "host": [
            "{{apiBaseUrl}}"
          ],
          "path": [
            "v1",
            "tax",
            "quote"
          ]
        },
        "description": "Use the Reach Tax Quote API to request a tax quote based on customers' items and state/country. The response contains the calculated tax amount due for the order. Requests should not exceed the [limit](https://docs.withreach.com/docs/reach-tax-quote-api#tax-quote-rate-limiting) of 10 requests per second.\n\nFor more details, review the [Reach Tax Quote API](https://docs.withreach.com/docs/reach-tax-quote-api) page.\n\n**Full request:** Adds a business identification number, your customer code, item descriptions, and warehouse addresses (include for physical goods; not needed for digital goods). The first item ships from the cart's `WarehouseAddress`. The second item ships from its own `WarehouseAddress`."
      },
      "response": [
        {
          "name": "201 Created Quote - complete",
          "originalRequest": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"Currency\": \"CAD\",\n  \"BusinessIdentificationNumber\": \"123456789RT0001\",\n  \"CustomerCode\": \"CUST-1001\",\n  \"Items\": [\n    {\n      \"Amount\": 105.1,\n      \"Sku\": \"SKU-1\",\n      \"TaxCode\": \"PS081282\",\n      \"Description\": \"Description of Item 1\",\n      \"TaxIncluded\": false\n    },\n    {\n      \"Amount\": 45.9,\n      \"Sku\": \"SKU-2\",\n      \"Description\": \"Description of Item 2\",\n      \"TaxIncluded\": false,\n      \"WarehouseAddress\": {\n        \"Street\": \"512 Kuhn Ridge\",\n        \"City\": \"East Marisa\",\n        \"Region\": \"ON\",\n        \"Country\": \"CA\",\n        \"Postcode\": \"M5V 2T6\"\n      }\n    }\n  ],\n  \"WarehouseAddress\": {\n    \"Street\": \"344 Maria Crest\",\n    \"City\": \"South Crishaven\",\n    \"Region\": \"NL\",\n    \"Country\": \"CA\",\n    \"Postcode\": \"A1B 1J1\"\n  },\n  \"ShippingAddress\": {\n    \"Street\": \"86170 Mayer Ford\",\n    \"City\": \"Micahfort\",\n    \"Region\": \"NB\",\n    \"Country\": \"CA\",\n    \"Postcode\": \"E4L 0R6\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{apiBaseUrl}}/v1/tax/quote",
              "host": [
                "{{apiBaseUrl}}"
              ],
              "path": [
                "v1",
                "tax",
                "quote"
              ]
            }
          },
          "status": "Created",
          "code": 201,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": ":status",
              "value": "201"
            },
            {
              "key": "content-type",
              "value": "application/json"
            },
            {
              "key": "vary",
              "value": "Origin, Access-Control-Request-Method, Access-Control-Request-Headers"
            },
            {
              "key": "x-content-type-options",
              "value": "nosniff"
            },
            {
              "key": "x-xss-protection",
              "value": "0"
            },
            {
              "key": "cache-control",
              "value": "no-cache, no-store, max-age=0, must-revalidate"
            },
            {
              "key": "pragma",
              "value": "no-cache"
            },
            {
              "key": "expires",
              "value": "0"
            },
            {
              "key": "strict-transport-security",
              "value": "max-age=31536000 ; includeSubDomains"
            },
            {
              "key": "x-frame-options",
              "value": "DENY"
            },
            {
              "key": "referrer-policy",
              "value": "no-referrer"
            },
            {
              "key": "content-security-policy",
              "value": "default-src 'self' https:; font-src 'self' https: data:; img-src 'self' https: data:; object-src 'none'; script-src https:; style-src 'self' https: 'unsafe-inline'"
            },
            {
              "key": "x-download-options",
              "value": "noopen"
            },
            {
              "key": "x-permitted-cross-domain-policies",
              "value": "none"
            }
          ],
          "cookie": [],
          "body": "{\n  \"Id\": \"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee\",\n  \"Amount\": 151,\n  \"TaxAmount\": 0,\n  \"Currency\": \"CAD\",\n  \"Items\": [\n    {\n      \"Id\": \"aaaaaaaa-bbbb-cccc-dddd-000000000001\",\n      \"TaxAmount\": 0,\n      \"Tax\": [\n        {\n          \"Name\": \"CA GST\",\n          \"Type\": \"Output\",\n          \"TaxAmount\": 0\n        }\n      ],\n      \"Sku\": \"SKU-1\",\n      \"Description\": \"Description of Item 1\",\n      \"TaxCode\": \"PS081282\",\n      \"TaxIncluded\": false,\n      \"Amount\": 105.1,\n      \"WarehouseAddress\": {\n        \"Street\": \"344 Maria Crest\",\n        \"City\": \"South Crishaven\",\n        \"Region\": \"NL\",\n        \"Country\": \"CA\",\n        \"Postcode\": \"A1B 1J1\"\n      }\n    },\n    {\n      \"Id\": \"aaaaaaaa-bbbb-cccc-dddd-000000000002\",\n      \"TaxAmount\": 0,\n      \"Tax\": [\n        {\n          \"Name\": \"CA GST\",\n          \"Type\": \"Output\",\n          \"TaxAmount\": 0\n        }\n      ],\n      \"Sku\": \"SKU-2\",\n      \"Description\": \"Description of Item 2\",\n      \"TaxCode\": \"P0000000\",\n      \"TaxIncluded\": false,\n      \"Amount\": 45.9,\n      \"WarehouseAddress\": {\n        \"Street\": \"512 Kuhn Ridge\",\n        \"City\": \"East Marisa\",\n        \"Region\": \"ON\",\n        \"Country\": \"CA\",\n        \"Postcode\": \"M5V 2T6\"\n      }\n    }\n  ],\n  \"ShippingAddress\": {\n    \"Street\": \"86170 Mayer Ford\",\n    \"City\": \"Micahfort\",\n    \"Region\": \"NB\",\n    \"Country\": \"CA\",\n    \"Postcode\": \"E4L 0R6\"\n  },\n  \"WarehouseAddress\": {\n    \"Street\": \"344 Maria Crest\",\n    \"City\": \"South Crishaven\",\n    \"Region\": \"NL\",\n    \"Country\": \"CA\",\n    \"Postcode\": \"A1B 1J1\"\n  },\n  \"BusinessIdentificationNumber\": \"123456789RT0001\",\n  \"CustomerCode\": \"CUST-1001\"\n}"
        }
      ]
    }
  ],
  "auth": {
    "type": "basic",
    "basic": [
      {
        "key": "username",
        "value": "{USERNAME}",
        "type": "string"
      },
      {
        "key": "password",
        "value": "{{password}}",
        "type": "string"
      }
    ]
  },
  "event": [
    {
      "listen": "test",
      "script": {
        "exec": [
          "pm.test('Quote created', () => pm.expect(pm.response.code).to.be.oneOf([200, 201]));\r",
          "const d = pm.response.json();\r",
          "if (d.Id) { pm.environment.set('quoteId', d.Id); console.log('Saved quoteId =', d.Id, ' TaxAmount =', d.TaxAmount); }"
        ],
        "type": "text/javascript"
      }
    }
  ]
}

Import the Reach environments

Second, import the Reach environments. There are two environment files. Use the Reach Sandbox environment to test, and the Reach Production environment to send requests to your live account.

Each file contains your API username and password, as well as the URLs used by the requests in the collection.

Test with the Reach Sandbox environment

Test with the Reach Sandbox environment first. Requests sent with the Reach Production environment go to your live Reach account.

  1. Download the Sandbox environment file by clicking the button to open the file in Google Drive.

  2. In Postman, click Use resources or import, then select Import.
  3. In the Use Resources window, click files under the Drop anywhere to import section.
  4. Select the file from your computer.
  5. Replace <your-username> and <your-password> with the API username and password for that environment from your Reach representative. The collection doesn't use the other placeholders, so you can leave them as they are.
  6. Repeat steps 1-4 to import the Production environment file.

Alternatively, you can copy and paste the file directly from this page into the Import text field on the Use Resources window in Postman.

Reach environment collection files
{
  "id": "25179582-0482-4884-b90f-9b0ffaa58a01",
  "name": "Reach Sandbox",
  "values": [
    {
      "key": "checkoutBaseUrl",
      "value": "https://checkout.rch.how/v2.22",
      "type": "default",
      "enabled": true
    },
    {
      "key": "apiBaseUrl",
      "value": "https://api.sandbox.withreach.com",
      "type": "default",
      "enabled": true
    },
    {
      "key": "merchantId",
      "value": "<your-merchant-id>",
      "type": "default",
      "enabled": true
    },
    {
      "key": "merchantSecret",
      "value": "<your-hmac-secret>",
      "type": "secret",
      "enabled": true
    },
    {
      "key": "businessPartner",
      "value": "<your-business-partner>",
      "type": "default",
      "enabled": true
    },
    {
      "key": "username",
      "value": "<your-username>",
      "type": "default",
      "enabled": true
    },
    {
      "key": "password",
      "value": "<your-password>",
      "type": "secret",
      "enabled": true
    },
    {
      "key": "payload",
      "value": "",
      "type": "default",
      "enabled": true
    },
    {
      "key": "payloadSignature",
      "value": "",
      "type": "default",
      "enabled": true
    },
    {
      "key": "cardDetails",
      "value": "",
      "type": "default",
      "enabled": true
    },
    {
      "key": "deviceFingerprint",
      "value": "",
      "type": "default",
      "enabled": true
    },
    {
      "key": "merchantReference",
      "value": "",
      "type": "default",
      "enabled": true
    },
    {
      "key": "sessionId",
      "value": "",
      "type": "default",
      "enabled": true
    },
    {
      "key": "orderId",
      "value": "",
      "type": "default",
      "enabled": true
    },
    {
      "key": "refundId",
      "value": "",
      "type": "default",
      "enabled": true
    },
    {
      "key": "quoteId",
      "value": "",
      "type": "default",
      "enabled": true
    },
    {
      "key": "billingProfileId",
      "value": "",
      "type": "default",
      "enabled": true
    },
    {
      "key": "billingProfileReference",
      "value": "",
      "type": "default",
      "enabled": true
    },
    {
      "key": "pspTransactionId",
      "value": "",
      "type": "default",
      "enabled": true
    }
  ],
  "_postman_variable_scope": "environment",
  "_postman_exported_using": "Reach API collections"
}
{
  "id": "96544eef-8987-4a93-ad1f-dc8a989311d4",
  "name": "Reach Production",
  "values": [
    {
      "key": "checkoutBaseUrl",
      "value": "https://checkout.rch.io/v2.22",
      "type": "default",
      "enabled": true
    },
    {
      "key": "apiBaseUrl",
      "value": "https://api.withreach.com",
      "type": "default",
      "enabled": true
    },
    {
      "key": "merchantId",
      "value": "<your-merchant-id>",
      "type": "default",
      "enabled": true
    },
    {
      "key": "merchantSecret",
      "value": "<your-hmac-secret>",
      "type": "secret",
      "enabled": true
    },
    {
      "key": "businessPartner",
      "value": "<your-business-partner>",
      "type": "default",
      "enabled": true
    },
    {
      "key": "username",
      "value": "<your-username>",
      "type": "default",
      "enabled": true
    },
    {
      "key": "password",
      "value": "<your-password>",
      "type": "secret",
      "enabled": true
    },
    {
      "key": "payload",
      "value": "",
      "type": "default",
      "enabled": true
    },
    {
      "key": "payloadSignature",
      "value": "",
      "type": "default",
      "enabled": true
    },
    {
      "key": "cardDetails",
      "value": "",
      "type": "default",
      "enabled": true
    },
    {
      "key": "deviceFingerprint",
      "value": "",
      "type": "default",
      "enabled": true
    },
    {
      "key": "merchantReference",
      "value": "",
      "type": "default",
      "enabled": true
    },
    {
      "key": "sessionId",
      "value": "",
      "type": "default",
      "enabled": true
    },
    {
      "key": "orderId",
      "value": "",
      "type": "default",
      "enabled": true
    },
    {
      "key": "refundId",
      "value": "",
      "type": "default",
      "enabled": true
    },
    {
      "key": "quoteId",
      "value": "",
      "type": "default",
      "enabled": true
    },
    {
      "key": "billingProfileId",
      "value": "",
      "type": "default",
      "enabled": true
    },
    {
      "key": "billingProfileReference",
      "value": "",
      "type": "default",
      "enabled": true
    },
    {
      "key": "pspTransactionId",
      "value": "",
      "type": "default",
      "enabled": true
    }
  ],
  "_postman_variable_scope": "environment",
  "_postman_exported_using": "Reach API collections"
}

Send a request

The collection has two requests:

  • Create a new tax quote - minimal: sends only the required fields.
  • Create a new tax quote - complete: adds optional fields, such as warehouse addresses, a customer code, and a tax code.

To send a request, complete the following steps:

  1. In Postman, select the Reach Sandbox environment.
  2. In the Tax Quote API collection, open Create a new tax quote - minimal or Create a new tax quote - complete.
  3. Optional: In the Body tab, change the values to match a cart you want to test, such as the Amount or the ShippingAddress.
  4. Click Send.

If Reach creates the quote, Postman shows a 201 Created response with the calculated TaxAmount, and the Test Results tab shows that the Quote created test passed.

When you're ready to use your live account, select the Reach Production environment instead.

Use the quote ID

The collection saves the quote's Id to the quoteId environment variable. When the customer pays, send that value as TaxQuoteId in your /checkout, /order, or /session request so Reach records the quoted tax.

Quotes don't expire, and Reach records the quoted tax as it is, so request a new quote whenever the cart changes.

View example responses

Each request includes saved example responses. To view them, expand the request in the sidebar and click an example. The minimal request also includes examples of error responses.

Troubleshoot a request

The following table documents the actions you can take if you run into errors:

Troubleshooting your test request
ResultWhat to do
Postman can't send the request, and the URL still shows {{apiBaseUrl}}Select an environment.
401 with NOT_AUTHORIZEDCheck the username and password values in the selected environment.
400 with VALIDATION_ERRORFix each field listed in FieldErrors.
400 with COUNTRY_NOT_CONFIGUREDAdd a Country to ShippingAddress, or use a country that Reach files tax in for your account.
404 with ENTITY_NOT_FOUNDYour account isn't set up for tax quotes. Contact Reach support.

For further information, see the API reference page or Reach Tax Quote API page.

For additional assistance or inquiries,

contact your Reach representative or our support team at [email protected].