Learn how to set up a Postman collection for the Drop-In API
The Postman collection for the Reach Drop-In API includes ready-made requests to test sending your tax and transaction data to Reach. Import the Drop-In API collection file and the environment collection files to try the API before building your integration.
Import the Drop-In API collection
First, import the Postman collection file in JSON format by completing the following steps:
-
Click the button to open the JSON file in Google Drive and download the file.
- In Postman, click Use resources or import, then select Import.
- In the Use Resources window in Postman, click files under the Drop anywhere to import section.
- Select the Drop-In 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
Drop-In API collection file
{
"info": {
"_postman_id": "44f24b89-b274-4ea3-8201-70e5d00eafa6",
"name": "Reach Drop-in API",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"description": "Reach **Drop-In API** \u2014 the Session API + Order API behind the Drop-In checkout UI.\n\n**Auth:** HTTP Basic (`username` / `password`), set at the collection level and inherited by every request.\n\n**Setup:** select the *Reach Sandbox* environment. Typical flow: Create Session -> hand `SessionId` to the Drop-In front-end -> shopper pays -> poll Retrieve Session / receive webhook.\n\nBase URL comes from `{{apiBaseUrl}}`."
},
"auth": {
"type": "basic",
"basic": [
{
"key": "username",
"value": "{USERNAME}",
"type": "string"
},
{
"key": "password",
"value": "{{password}}",
"type": "string"
}
]
},
"item": [
{
"name": "Session API",
"description": "Server-side Session API used by the Drop-In UI. Create a session, then hand the `SessionId` to the Drop-In front-end (rch.js).",
"item": [
{
"name": "Create Session",
"request": {
"method": "POST",
"header": [
{
"key": "Reach-Merchant-Id",
"value": "{{merchantId}}",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"url": {
"raw": "{{apiBaseUrl}}/v1/session",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"v1",
"session"
]
},
"description": "Creates a checkout session. Returns a `SessionId` (saved to `{{sessionId}}`) that the Drop-In UI uses. `CompleteUrl`/`CancelUrl` support a `{SessionId}` token.",
"body": {
"mode": "raw",
"raw": "{\n \"MerchantReference\": \"{{merchantReference}}\",\n \"Currency\": \"USD\",\n \"Items\": [\n {\n \"Name\": \"Item 1\",\n \"Amount\": 10,\n \"Quantity\": 1\n }\n ],\n \"BillingProfile\": {\n \"Name\": \"First Last\",\n \"Email\": \"[email protected]\",\n \"Address\": {\n \"Street\": \"123 Main St\",\n \"City\": \"Los Angeles\",\n \"Region\": \"CA\",\n \"Country\": \"US\",\n \"Postcode\": \"90001\",\n \"Phone\": \"4031234567\"\n }\n },\n \"AutoCapture\": true,\n \"CompleteUrl\": \"https://example.com/complete/{SessionId}\",\n \"CancelUrl\": \"https://example.com/cancel/{SessionId}\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [
{
"name": "200 OK",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Reach-Merchant-Id",
"value": "{{merchantId}}",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"url": {
"raw": "{{apiBaseUrl}}/v1/session",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"v1",
"session"
]
},
"description": "Creates a checkout session. Returns a `SessionId` (saved to `{{sessionId}}`) that the Drop-In UI uses. `CompleteUrl`/`CancelUrl` support a `{SessionId}` token.",
"body": {
"mode": "raw",
"raw": "{\n \"MerchantReference\": \"{{merchantReference}}\",\n \"Currency\": \"USD\",\n \"Items\": [\n {\n \"Name\": \"Item 1\",\n \"Amount\": 10,\n \"Quantity\": 1\n }\n ],\n \"BillingProfile\": {\n \"Name\": \"First Last\",\n \"Email\": \"[email protected]\",\n \"Address\": {\n \"Street\": \"123 Main St\",\n \"City\": \"Los Angeles\",\n \"Region\": \"CA\",\n \"Country\": \"US\",\n \"Postcode\": \"90001\",\n \"Phone\": \"4031234567\"\n }\n },\n \"AutoCapture\": true,\n \"CompleteUrl\": \"https://example.com/complete/{SessionId}\",\n \"CancelUrl\": \"https://example.com/cancel/{SessionId}\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [],
"body": "{\n \"SessionId\": \"f06d06f7-35de-4677-8b6f-0829f4dee957\",\n \"State\": \"CREATED\",\n \"MerchantReference\": \"ex-20899\",\n \"Currency\": \"USD\",\n \"TotalAmount\": 10.0,\n \"Items\": [\n {\n \"Name\": \"Item 1\",\n \"Amount\": 10.0,\n \"Quantity\": 1\n }\n ],\n \"BillingProfile\": {\n \"BillingProfileId\": \"8dec918d-be66-405b-99da-d3e1193b2ede\",\n \"Name\": \"First Last\",\n \"Email\": \"[email protected]\",\n \"Address\": {\n \"Street\": \"123 Main St\",\n \"City\": \"Los Angeles\",\n \"Region\": \"CA\",\n \"Country\": \"US\",\n \"Postcode\": \"90001\"\n }\n },\n \"AutoCapture\": true,\n \"ViaAgent\": false,\n \"CompleteUrl\": \"https://example.com/c/f06d06f7-35de-4677-8b6f-0829f4dee957\",\n \"CancelUrl\": \"https://example.com/x/f06d06f7-35de-4677-8b6f-0829f4dee957\"\n}"
}
],
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
"// Generate a unique MerchantReference for each run.",
"pm.environment.set('merchantReference', 'mref-' + Date.now());"
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test('Status code is 200', () => pm.response.to.have.status(200));",
"const d = pm.response.json();",
"if (d.SessionId) { pm.environment.set('sessionId', d.SessionId); console.log('Saved sessionId =', d.SessionId); }",
"if (d.BillingProfile && d.BillingProfile.BillingProfileId) { pm.environment.set('billingProfileId', d.BillingProfile.BillingProfileId); }"
]
}
}
]
},
{
"name": "Retrieve Session",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{apiBaseUrl}}/v1/session/{{sessionId}}",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"v1",
"session",
"{{sessionId}}"
]
},
"description": "Returns the current state of a session. When `State` is `COMPLETED` the response also embeds the resulting `Order`."
},
"response": [
{
"name": "200 OK - completed",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{apiBaseUrl}}/v1/session/{{sessionId}}",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"v1",
"session",
"{{sessionId}}"
]
},
"description": "Returns the current state of a session. When `State` is `COMPLETED` the response also embeds the resulting `Order`."
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [],
"body": "{\n \"SessionId\": \"f06d06f7-35de-4677-8b6f-0829f4dee957\",\n \"State\": \"COMPLETED\",\n \"MerchantReference\": \"ex-20899\",\n \"Currency\": \"USD\",\n \"TotalAmount\": 10.0,\n \"Items\": [\n {\n \"Name\": \"Item 1\",\n \"Amount\": 10.0,\n \"Quantity\": 1\n }\n ],\n \"BillingProfile\": {\n \"BillingProfileId\": \"8dec918d-be66-405b-99da-d3e1193b2ede\",\n \"Name\": \"First Last\",\n \"Email\": \"[email protected]\",\n \"Address\": {\n \"Street\": \"123 Main St\",\n \"City\": \"Los Angeles\",\n \"Region\": \"CA\",\n \"Country\": \"US\",\n \"Postcode\": \"90001\"\n }\n },\n \"AutoCapture\": true,\n \"ViaAgent\": false,\n \"CompleteUrl\": \"https://example.com/c/f06d06f7-35de-4677-8b6f-0829f4dee957\",\n \"CancelUrl\": \"https://example.com/x/f06d06f7-35de-4677-8b6f-0829f4dee957\",\n \"Order\": {\n \"OrderId\": \"211eda17-5e0e-4615-a54d-7b10fb58b694\",\n \"State\": \"PROCESSED\"\n },\n \"PaymentMethod\": \"VISA\",\n \"PaymentDate\": \"2026-06-15T21:55:00Z\"\n}"
}
]
},
{
"name": "Update Session",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"url": {
"raw": "{{apiBaseUrl}}/v1/session/{{sessionId}}",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"v1",
"session",
"{{sessionId}}"
]
},
"description": "Updates a session (only allowed while `State` is `CREATED`).",
"body": {
"mode": "raw",
"raw": "{\n \"MerchantReference\": \"{{merchantReference}}\",\n \"Currency\": \"USD\",\n \"Items\": [\n {\n \"Name\": \"Item 1\",\n \"Amount\": 10,\n \"Quantity\": 1\n },\n {\n \"Name\": \"Item 2\",\n \"Amount\": 5.5,\n \"Quantity\": 2\n }\n ],\n \"BillingProfile\": {\n \"Name\": \"First Last\",\n \"Email\": \"[email protected]\",\n \"Address\": {\n \"Street\": \"123 Main St\",\n \"City\": \"Los Angeles\",\n \"Region\": \"CA\",\n \"Country\": \"US\",\n \"Postcode\": \"90001\",\n \"Phone\": \"4031234567\"\n }\n },\n \"AutoCapture\": true,\n \"CompleteUrl\": \"https://example.com/complete/{SessionId}\",\n \"CancelUrl\": \"https://example.com/cancel/{SessionId}\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [
{
"name": "200 OK",
"originalRequest": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"url": {
"raw": "{{apiBaseUrl}}/v1/session/{{sessionId}}",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"v1",
"session",
"{{sessionId}}"
]
},
"description": "Updates a session (only allowed while `State` is `CREATED`).",
"body": {
"mode": "raw",
"raw": "{\n \"MerchantReference\": \"{{merchantReference}}\",\n \"Currency\": \"USD\",\n \"Items\": [\n {\n \"Name\": \"Item 1\",\n \"Amount\": 10,\n \"Quantity\": 1\n },\n {\n \"Name\": \"Item 2\",\n \"Amount\": 5.5,\n \"Quantity\": 2\n }\n ],\n \"BillingProfile\": {\n \"Name\": \"First Last\",\n \"Email\": \"[email protected]\",\n \"Address\": {\n \"Street\": \"123 Main St\",\n \"City\": \"Los Angeles\",\n \"Region\": \"CA\",\n \"Country\": \"US\",\n \"Postcode\": \"90001\",\n \"Phone\": \"4031234567\"\n }\n },\n \"AutoCapture\": true,\n \"CompleteUrl\": \"https://example.com/complete/{SessionId}\",\n \"CancelUrl\": \"https://example.com/cancel/{SessionId}\"\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [],
"body": "{\n \"SessionId\": \"f06d06f7-35de-4677-8b6f-0829f4dee957\",\n \"State\": \"CREATED\",\n \"MerchantReference\": \"ex-20899\",\n \"Currency\": \"USD\",\n \"TotalAmount\": 10.0,\n \"Items\": [\n {\n \"Name\": \"Item 1\",\n \"Amount\": 10.0,\n \"Quantity\": 1\n }\n ],\n \"BillingProfile\": {\n \"BillingProfileId\": \"8dec918d-be66-405b-99da-d3e1193b2ede\",\n \"Name\": \"First Last\",\n \"Email\": \"[email protected]\",\n \"Address\": {\n \"Street\": \"123 Main St\",\n \"City\": \"Los Angeles\",\n \"Region\": \"CA\",\n \"Country\": \"US\",\n \"Postcode\": \"90001\"\n }\n },\n \"AutoCapture\": true,\n \"ViaAgent\": false,\n \"CompleteUrl\": \"https://example.com/c/f06d06f7-35de-4677-8b6f-0829f4dee957\",\n \"CancelUrl\": \"https://example.com/x/f06d06f7-35de-4677-8b6f-0829f4dee957\"\n}"
}
]
},
{
"name": "Cancel Session",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{apiBaseUrl}}/v1/session/{{sessionId}}/cancel",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"v1",
"session",
"{{sessionId}}",
"cancel"
]
},
"description": "Cancels a session. Returns 204 No Content on success."
},
"response": [
{
"name": "204 No Content",
"originalRequest": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{apiBaseUrl}}/v1/session/{{sessionId}}/cancel",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"v1",
"session",
"{{sessionId}}",
"cancel"
]
},
"description": "Cancels a session. Returns 204 No Content on success."
},
"status": "No Content",
"code": 204,
"_postman_previewlanguage": "text",
"header": [
{
"key": "Content-Type",
"value": "text/plain"
}
],
"cookie": [],
"body": ""
}
]
}
]
},
{
"name": "Order API",
"description": "Direct server-to-server Order API. `Payment.Card.StashId` comes from tokenizing a card with the Reach front-end library; replace the placeholder before sending Create Order.",
"item": [
{
"name": "Create Order",
"request": {
"method": "POST",
"header": [
{
"key": "Reach-Merchant-Id",
"value": "{{merchantId}}",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"url": {
"raw": "{{apiBaseUrl}}/v1/orders",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"v1",
"orders"
]
},
"description": "Creates and authorizes an order. Requires a `Payment` block (or a `ContractId`). The `StashId` is obtained by tokenizing the card client-side. Saves `OrderId` to `{{orderId}}`.",
"body": {
"mode": "raw",
"raw": "{\n \"MerchantReference\": \"{{merchantReference}}\",\n \"Currency\": \"USD\",\n \"Items\": [\n {\n \"Name\": \"Item 1\",\n \"Amount\": 10,\n \"Quantity\": 1\n }\n ],\n \"BillingProfile\": {\n \"BillingProfileReference\": \"merchant-billing-ref-1\",\n \"Name\": \"First Last\",\n \"Email\": \"[email protected]\",\n \"Address\": {\n \"Street\": \"123 Main St\",\n \"City\": \"Los Angeles\",\n \"Region\": \"CA\",\n \"Country\": \"US\",\n \"Postcode\": \"90001\"\n }\n },\n \"Payment\": {\n \"Type\": \"CARD\",\n \"Method\": \"VISA\",\n \"ReturnUrl\": \"https://example.com/return\",\n \"Card\": {\n \"StashId\": \"REPLACE_WITH_STASH_ID\"\n }\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [
{
"name": "200 OK",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Reach-Merchant-Id",
"value": "{{merchantId}}",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"url": {
"raw": "{{apiBaseUrl}}/v1/orders",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"v1",
"orders"
]
},
"description": "Creates and authorizes an order. Requires a `Payment` block (or a `ContractId`). The `StashId` is obtained by tokenizing the card client-side. Saves `OrderId` to `{{orderId}}`.",
"body": {
"mode": "raw",
"raw": "{\n \"MerchantReference\": \"{{merchantReference}}\",\n \"Currency\": \"USD\",\n \"Items\": [\n {\n \"Name\": \"Item 1\",\n \"Amount\": 10,\n \"Quantity\": 1\n }\n ],\n \"BillingProfile\": {\n \"BillingProfileReference\": \"merchant-billing-ref-1\",\n \"Name\": \"First Last\",\n \"Email\": \"[email protected]\",\n \"Address\": {\n \"Street\": \"123 Main St\",\n \"City\": \"Los Angeles\",\n \"Region\": \"CA\",\n \"Country\": \"US\",\n \"Postcode\": \"90001\"\n }\n },\n \"Payment\": {\n \"Type\": \"CARD\",\n \"Method\": \"VISA\",\n \"ReturnUrl\": \"https://example.com/return\",\n \"Card\": {\n \"StashId\": \"REPLACE_WITH_STASH_ID\"\n }\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [],
"body": "{\n \"OrderId\": \"211eda17-5e0e-4615-a54d-7b10fb58b694\",\n \"SessionId\": \"c47fd55e-f6ca-43df-b45e-77d757755e27\",\n \"MerchantReference\": \"YourUniqueReference\",\n \"Currency\": \"USD\",\n \"State\": \"PaymentAuthorized\",\n \"UnderReview\": false,\n \"Chargeback\": false,\n \"Payment\": {\n \"Type\": \"CARD\",\n \"Method\": \"VISA\",\n \"Card\": {}\n },\n \"Action\": {\n \"Redirect\": null,\n \"Challenge\": null,\n \"Display\": null\n },\n \"AdminUrl\": \"https://sandbox.withreach.com/?txn=482c5ca4-2f6e-4e8f-af37-07d106833570\"\n}"
},
{
"name": "400 Bad Request - missing card stash",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Reach-Merchant-Id",
"value": "{{merchantId}}",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"url": {
"raw": "{{apiBaseUrl}}/v1/orders",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"v1",
"orders"
]
},
"description": "Creates and authorizes an order. Requires a `Payment` block (or a `ContractId`). The `StashId` is obtained by tokenizing the card client-side. Saves `OrderId` to `{{orderId}}`.",
"body": {
"mode": "raw",
"raw": "{\n \"MerchantReference\": \"{{merchantReference}}\",\n \"Currency\": \"USD\",\n \"Items\": [\n {\n \"Name\": \"Item 1\",\n \"Amount\": 10,\n \"Quantity\": 1\n }\n ],\n \"BillingProfile\": {\n \"BillingProfileReference\": \"merchant-billing-ref-1\",\n \"Name\": \"First Last\",\n \"Email\": \"[email protected]\",\n \"Address\": {\n \"Street\": \"123 Main St\",\n \"City\": \"Los Angeles\",\n \"Region\": \"CA\",\n \"Country\": \"US\",\n \"Postcode\": \"90001\"\n }\n },\n \"Payment\": {\n \"Type\": \"CARD\",\n \"Method\": \"VISA\",\n \"ReturnUrl\": \"https://example.com/return\",\n \"Card\": {\n \"StashId\": \"REPLACE_WITH_STASH_ID\"\n }\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [],
"body": "{\n \"Code\": \"ORDER_FAILED\",\n \"Message\": \"Order attempt failed.\"\n}"
}
],
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
"// Generate a unique MerchantReference for each run.",
"pm.environment.set('merchantReference', 'mref-' + Date.now());"
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test('Order created', () => pm.expect(pm.response.code).to.be.oneOf([200, 201]));",
"const d = pm.response.json();",
"if (d.OrderId) { pm.environment.set('orderId', d.OrderId); console.log('Saved orderId =', d.OrderId); }"
]
}
}
]
},
{
"name": "Retrieve Order",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{apiBaseUrl}}/v1/orders/{{orderId}}",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"v1",
"orders",
"{{orderId}}"
]
},
"description": "Returns full order details and state."
},
"response": [
{
"name": "200 OK",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{apiBaseUrl}}/v1/orders/{{orderId}}",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"v1",
"orders",
"{{orderId}}"
]
},
"description": "Returns full order details and state."
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [],
"body": "{\n \"OrderId\": \"211eda17-5e0e-4615-a54d-7b10fb58b694\",\n \"SessionId\": \"c47fd55e-f6ca-43df-b45e-77d757755e27\",\n \"MerchantReference\": \"YourUniqueReference\",\n \"Currency\": \"USD\",\n \"State\": \"PROCESSED\",\n \"UnderReview\": false,\n \"Chargeback\": false,\n \"Payment\": {\n \"Type\": \"CARD\",\n \"Method\": \"VISA\",\n \"Card\": {}\n },\n \"Action\": {\n \"Redirect\": null,\n \"Challenge\": null,\n \"Display\": null\n },\n \"AdminUrl\": \"https://sandbox.withreach.com/?txn=482c5ca4-2f6e-4e8f-af37-07d106833570\"\n}"
}
]
},
{
"name": "Capture Order",
"request": {
"method": "POST",
"header": [],
"url": {
"raw": "{{apiBaseUrl}}/v1/orders/{{orderId}}/capture",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"v1",
"orders",
"{{orderId}}",
"capture"
]
},
"description": "Captures an authorized order. Returns `{ OrderState }`."
},
"response": [
{
"name": "200 OK",
"originalRequest": {
"method": "POST",
"header": [],
"url": {
"raw": "{{apiBaseUrl}}/v1/orders/{{orderId}}/capture",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"v1",
"orders",
"{{orderId}}",
"capture"
]
},
"description": "Captures an authorized order. Returns `{ OrderState }`."
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [],
"body": "{\n \"OrderState\": \"PROCESSED\"\n}"
}
]
},
{
"name": "Cancel Order",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{apiBaseUrl}}/v1/orders/{{orderId}}/cancel",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"v1",
"orders",
"{{orderId}}",
"cancel"
]
},
"description": "Cancels an order that has not yet been captured. Returns 204 No Content."
},
"response": [
{
"name": "204 No Content",
"originalRequest": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{apiBaseUrl}}/v1/orders/{{orderId}}/cancel",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"v1",
"orders",
"{{orderId}}",
"cancel"
]
},
"description": "Cancels an order that has not yet been captured. Returns 204 No Content."
},
"status": "No Content",
"code": 204,
"_postman_previewlanguage": "text",
"header": [
{
"key": "Content-Type",
"value": "text/plain"
}
],
"cookie": [],
"body": ""
}
]
}
]
},
{
"name": "Refunds",
"description": "Refund operations on an order. An order must be PROCESSED (captured) to be refunded.",
"item": [
{
"name": "Create Refund",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"url": {
"raw": "{{apiBaseUrl}}/v1/orders/{{orderId}}/refunds",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"v1",
"orders",
"{{orderId}}",
"refunds"
]
},
"description": "Creates a refund on an order. `Amount` must be <= order total minus prior refunds. Saves `RefundId` to `{{refundId}}`.",
"body": {
"mode": "raw",
"raw": "{\n \"RefundReference\": \"merchant-refund-ref-1\",\n \"Amount\": 1.23\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"response": [
{
"name": "200 OK",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"url": {
"raw": "{{apiBaseUrl}}/v1/orders/{{orderId}}/refunds",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"v1",
"orders",
"{{orderId}}",
"refunds"
]
},
"description": "Creates a refund on an order. `Amount` must be <= order total minus prior refunds. Saves `RefundId` to `{{refundId}}`.",
"body": {
"mode": "raw",
"raw": "{\n \"RefundReference\": \"merchant-refund-ref-1\",\n \"Amount\": 1.23\n}",
"options": {
"raw": {
"language": "json"
}
}
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [],
"body": "{\n \"RefundId\": \"d6ebf380-6dd5-422f-8ae9-e028f9e6da05\",\n \"RefundReference\": \"merchant-refund-ref-1\",\n \"State\": \"INPROGRESS\",\n \"Amount\": 1.23,\n \"Times\": {\n \"Created\": \"2026-06-15T15:22:32.782Z\"\n }\n}"
}
],
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test('Refund created', () => pm.response.to.have.status(200));",
"const d = pm.response.json();",
"if (d.RefundId) { pm.environment.set('refundId', d.RefundId); console.log('Saved refundId =', d.RefundId); }"
]
}
}
]
},
{
"name": "Get Refund List",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{apiBaseUrl}}/v1/orders/{{orderId}}/refunds",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"v1",
"orders",
"{{orderId}}",
"refunds"
]
},
"description": "Returns an array of all refunds on the order."
},
"response": [
{
"name": "200 OK",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{apiBaseUrl}}/v1/orders/{{orderId}}/refunds",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"v1",
"orders",
"{{orderId}}",
"refunds"
]
},
"description": "Returns an array of all refunds on the order."
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [],
"body": "[\n {\n \"RefundId\": \"d6ebf380-6dd5-422f-8ae9-e028f9e6da05\",\n \"RefundReference\": \"merchant-refund-ref-1\",\n \"State\": \"INPROGRESS\",\n \"Amount\": 1.23,\n \"Times\": {\n \"Created\": \"2026-06-15T15:22:32.782Z\"\n }\n },\n {\n \"RefundId\": \"b7008b5c-8f5c-4343-9494-8dc2289fcdee\",\n \"RefundReference\": \"merchant-refund-ref-2\",\n \"State\": \"SUCCEEDED\",\n \"Amount\": 3.21,\n \"Times\": {\n \"Created\": \"2026-06-15T17:04:59.163Z\"\n }\n }\n]"
}
]
},
{
"name": "Get Refund By Id",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{apiBaseUrl}}/v1/orders/{{orderId}}/refunds/{{refundId}}",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"v1",
"orders",
"{{orderId}}",
"refunds",
"{{refundId}}"
]
},
"description": "Returns a single refund by id."
},
"response": [
{
"name": "200 OK",
"originalRequest": {
"method": "GET",
"header": [],
"url": {
"raw": "{{apiBaseUrl}}/v1/orders/{{orderId}}/refunds/{{refundId}}",
"host": [
"{{apiBaseUrl}}"
],
"path": [
"v1",
"orders",
"{{orderId}}",
"refunds",
"{{refundId}}"
]
},
"description": "Returns a single refund by id."
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [],
"body": "{\n \"RefundId\": \"d6ebf380-6dd5-422f-8ae9-e028f9e6da05\",\n \"RefundReference\": \"merchant-refund-ref-1\",\n \"State\": \"INPROGRESS\",\n \"Amount\": 1.23,\n \"Times\": {\n \"Created\": \"2026-06-15T15:22:32.782Z\"\n }\n}"
}
]
}
]
}
]
}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 first. Requests sent with the Reach Production environment go to your live Reach account.
-
Download the Sandbox environment file by clicking the button to open the file in Google Drive.
- In Postman, click Use resources or import, then select Import.
- In the Use Resources window, click files under the Drop anywhere to import section.
- Select the file from your computer.
- 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. -
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 11 requests in three folders:
- Session API: creates and manages the checkout session that the Drop-In UI uses.
- Order API: creates and manages an order from your server, using a card tokenized in the browser.
- Refunds: refunds a captured order and checks the refund.
Some requests save an ID that later requests use:
For sandbox test card numbers, contact Reach Support at [email protected].
Test a Drop-In session
- Send Create Session.
- On your web page, pass the session's ID to the Drop-In (
rch.js) and pay. For how to load the Drop-In, see the Drop-In rch.js guide. - Send Retrieve Session. When
StateisCOMPLETED, the response includes theOrderand itsOrderId. - To send Order API or Refunds requests for this order, copy
Order.OrderIdinto theorderIdvariable of the Reach Sandbox environment.
Test the Order API
- Get a
StashIdby stashing a card from the shopper's browser. See Stash. - In the body of Create Order, replace
REPLACE_WITH_STASH_IDwith yourStashId. - Send Create Order.
- Send Capture Order to capture the order.
Refund an order
- Check that
orderIdholds the order you want to refund. The order'sStatemust bePROCESSED. - Send Create Refund. The sample body refunds an
Amountof1.23. The amount can't be more than the order total minus earlier refunds. - Send Get Refund By Id to see the refund.
