BIN Lookup
Identify the issuing bank, country, network, and card type from any 4 to 8 digit Bank Identification Number (BIN).
Errors:
400 Bad Request— prefix is not 4–8 digits.
Decline Code Lookup
Translate any gateway-specific decline code into Revtain’s canonical taxonomy with a plain-English explanation.{gateway} must be one of: stripe, braintree, adyen, checkout, authnet, dlocal, worldpay, razorpay, paystack, cybersource, paypal, gocardless, mollie.
Example:
Full Decline Code Dictionary
Pull the entire decline-code dictionary in one call — 500+ codes across 13 gateways, grouped by canonical category.Use cases
- Internal debug dashboards — show your support team a plain-English meaning for every decline the gateway returned.
- Customer support scripts — let agents type in a raw code from a transaction log and immediately see what to tell the customer.
- Fraud / risk screens — enrich a transaction view with
issuerNameandissuerCountrywithout integrating a paid BIN service. - Engineering — wire the canonical decline taxonomy into your own retry logic if you don’t use Revtain for everything.
Rate limits
There are no per-key rate limits on these endpoints (they take no auth). We ask that you cache responses where reasonable — the underlying data updates infrequently:- BIN responses can be safely cached for 24 hours per prefix.
- Decline-code responses can be safely cached indefinitely; the dictionary changes only when we add new gateway support.