Get your first checkout created in minutes. This guide walks you from account creation to your first API call.
This guide takes you from zero to a working checkout link. You’ll register an account, verify your email, obtain an access token, create an API key, and make your first checkout request.
All examples use the base URL https://api.syncgrampay.com. Replace this with your actual API base URL if different.
1
Create an account
Register by sending your name, email, password, and country.Before registering, you must first obtain a short-lived signup token:
curl -X POST https://api.syncgrampay.com/api/v1/auth/signup/init
Store the access_token — you’ll need it to create an API key in the next step.
3
Get an access token (subsequent logins)
On future logins, authentication is a two-step process: submit your credentials to receive a 2FA challenge, then verify the challenge to get tokens.Step 3a — Initialize and submit credentials:
# Get a login token firstcurl -X POST https://api.syncgrampay.com/api/v1/auth/login/init
# Submit credentials with the login tokencurl -X POST https://api.syncgrampay.com/api/v1/auth/login \ -H "Content-Type: application/json" \ -d '{ "email": "you@example.com", "password": "yourpassword", "login_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." }'
The key value is shown only once. Copy it and store it securely (for example, in an environment variable or secrets manager). You cannot retrieve it again.
Your API key starts with sk_ — use it as a Bearer token for all subsequent API requests.
5
Create your first checkout
With your API key, you can now create a checkout and get a hosted payment URL to share with your customer.