1
Get your API key and terminal ID
Contact SmartRetry to receive your credentials. You’ll get:
- API key - passed in the
x-api-keyheader on every request - Terminal ID (
terminal_friendly_id) - a 6-character identifier for your merchant terminal, used as a path parameter on every payment endpoint
Keep both values secure. Your API key authenticates all requests, and your terminal ID identifies the merchant configuration SmartRetry uses for routing and optimization.
2
Send your first sale request
Use the
POST /v1/payments/sale/{terminal_friendly_id} endpoint to charge a card. Replace ABC123 with your terminal ID and YOUR_API_KEY with your API key.The amount field uses major currency units. The example below charges $49.99 USD.3
Handle the response
A successful request returns HTTP
200 with a JSON body. Check the accepted field to confirm the transaction was approved.Success response
4
Test in the sandbox
Before going live, use the SmartRetry sandbox environment to test your integration end to end - including API calls, response handling, and error scenarios - without processing real payments.The sandbox replicates the full production flow. Contact SmartRetry to request sandbox credentials if you don’t already have them.