Download the collection
Postman Collection
Open in Postman workspace or download the collection JSON.
Environment Template
Pre-configured environment with sandbox and production variables.
Quick start
Import the collection
Click the Run in Postman button above, or download the JSON and import it via File > Import in Postman.
Set up your environment
Create a new environment with these variables:
| Variable | Description | Example |
|---|---|---|
base_url | API base URL | https://api.smartretry.com |
api_key | Your API key | sk_test_... |
terminal_id | Your terminal ID | ABC123 |
Collection structure
The collection mirrors the API reference structure:Environment variables
The collection uses variables for easy switching between sandbox and production:| Variable | Sandbox | Production |
|---|---|---|
base_url | https://api.smartretry.com | https://api.smartretry.com |
api_key | sk_test_... | sk_live_... |
terminal_id | Your sandbox terminal | Your production terminal |
Pre-request scripts
The collection includes pre-request scripts that automatically:- Generate unique
Idempotency-Keyheaders for POST requests - Set timestamps for request logging
- Populate
merchant_transaction_idwith unique values
Test scripts
Each request includes test scripts that:- Validate response status codes
- Extract and save
transaction_idfor use in subsequent requests - Check for required response fields
Request chaining
The collection supports request chaining for multi-step flows:Pre-auth → Capture flow
- Run Pre-authorization - saves
transaction_idandorder_idto environment - Run Capture - automatically uses saved IDs
Recurring flow
- Run Recurring > Initialize - saves
recurring_idto environment - Run Recurring > Charge - uses saved
recurring_id - Run Recurring > Status - checks series state
Importing via URL
Import directly from URL in Postman:Insomnia
Prefer Insomnia? Import the same collection:- Open Insomnia
- Go to Application > Preferences > Data
- Click Import Data > From URL
- Enter:
https://api.smartretry.com/postman/collection.json
Need help?
- Check the API reference for endpoint details
- Review authentication for API key setup
- Contact support for collection issues