Skip to main content
This guide walks you through making your first API request with SmartRetry. You’ll send a sale transaction and handle the response - all in a few minutes.
1

Get your API Secret and terminal ID

Contact SmartRetry to receive your credentials. You’ll get:
  • API Secret - used to sign every request. You send the resulting x-timestamp and x-signature headers, never the secret itself
  • 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 Secret signs 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. Replace UNIX_TIMESTAMP and SIGNATURE with the values you compute by following Authentication.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. accepted: true means SmartRetry accepted the transaction for processing - it does not confirm issuer approval.
Success response
Store both transaction_id and order_id in your system. You’ll need them to perform follow-up operations like capture, refund, or void.
Fetch transaction status using the returned transaction_id to find out whether the issuer approved or declined the payment.
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.
Never use real card numbers in the sandbox. Use test card values provided by SmartRetry during onboarding.