Best practices
Sending data
Section titled “Sending data”-
Send every field you have. The more data you provide, the more effective the subscribed solutions are. Fields such as
card_bin,order_number,ip_addressandaddressesare especially important. -
Use batch upload for large volumes. Instead of sending one transaction per request, group up to 1000 transactions on the
/transactions/batchendpoint to reduce network overhead. -
Keep
external_sourceandexternal_idconsistent. These fields are used for duplicate detection. Use unique and stable identifiers from your source system. -
Send transactions as soon as possible. The closer to the moment of sale, the better the coverage of the prevention solutions.
Data format
Section titled “Data format”-
transaction_datein ISO 8601. Use the full format with timezone (e.g.2026-04-01T15:30:00Z). -
currencyin uppercase. Use the 3-letter uppercase ISO 4217 code (e.g.USD,BRL,EUR). -
card_last4as a string. Send it as a string of exactly 4 digits (e.g."0042", not42). -
merchant_idas a UUID. Use the merchant UUID as returned by the API or the dashboard.
Security
Section titled “Security”-
Never expose your
client_secret. Treat it like a password. Do not include it in frontend code, public repositories or logs. -
Always use HTTPS. Every request must be made over HTTPS.
-
Implement retry with progressive backoff. On a 500 error (internal error), wait before trying again: 1s, 2s and then 4s between attempts. On a
429there is no need to guess: the response carries theRetry-Afterheader with the exact seconds until the window resets (see Rate limit).
Response handling
Section titled “Response handling”-
Single transaction: check the
datafield for the created transaction data andwarningsfor notices. -
Batch upload: iterate over
results(successes withtx_idandwarnings) anderrors(failures withexternal_id,statusand message). -
Pay attention to
warnings. They do not block creation, but they point to missing fields that affect how effective the solutions are. -
Store the returned
id. You will need it to retrieve, update or delete the transaction.
Immutability
Section titled “Immutability”- Fix mistakes before the first query. Transactions used by the solutions (e.g. queried by Prevention) become immutable. Use PATCH to fix data while the transaction has not been used yet.