Quick Start
This guide walks you through making your first payment charge using the Strictly API. You'll be processing a test transaction in under 5 minutes.
Prerequisites
- A Strictly merchant account (or use the sandbox credentials)
- An HTTP client (curl, Postman, or any language SDK)
-
Get your credentials
You'll need two things to authenticate:
- Merchant credentials โ your account email and password
- Key hash โ an API key issued to your integration
These are sent on every request. See Authentication for how to encode them.
:::tip Testing? Use sandbox credentials
Email:
integration@strictlyzero.comPassword:demo123*Key-hash:BL2H6LGNEUGSXTBARA59:::
-
Charge a credit card
Send a
POSTto/public/payment/chargewith your card details and amount. Theamountis in the smallest currency unit (cents for USD).cURLJavaScript (fetch) -
Handle the response
A successful charge returns HTTP
200with adataobject containing the transaction details:CodeIf the charge is declined or invalid, the API returns a
400with an error body. Always check the HTTP status code and theresponse.codefield. See Error Handling.:::warning Declined transactions
A declined card returns HTTP
400. Theresponse.codetells you the reason โ for example, code300means "Transaction was rejected by gateway.":::
-
What's next
Now that you've made your first charge, explore the rest of the API:
- Customer vault โ save cards to avoid collecting them on every payment
- Subscriptions โ set up recurring billing
- Refunds โ reverse a transaction with
POST /public/payment/refund - Webhooks โ get notified when a payment status changes
Try it in the API playground
You can try any endpoint directly from the browser in the API Reference. The playground supports Basic auth โ enter your email/password and key-hash to send live requests.