Run a Test Payment in the API Reference
Use the sandbox API Reference to create a test payment directly from your browser.
This is useful when you want to confirm that your Payments API key, merchant ID, terminal ID, and request body are working before building the request in your own application.
Before you start
You need:
A sandbox Payments API key
A sandbox merchant ID
A sandbox terminal ID for that merchant
The Payments API key is sent as a request header. Do not add the API key to the request body or URL.
What you will do
In this guide, you will:
Open the
POST /Payments/cryptoendpoint in the sandbox API ReferenceOpen the test request panel
Add your
X-Api-KeyheaderPaste a sample JSON request body
Update the merchant ID and terminal ID
Send the request
Copy the hosted payment URL from the response
Step 1: Open the payment endpoint
Go directly to the sandbox API Reference page for creating a payment:
Find the POST /Payments/crypto endpoint.
Step 2: Open the test request panel

Select Test Request.
This opens the interactive API Client, where you can add headers, paste a JSON request body, and send the request.
Step 3: Add your API key header

In the API Client, expand Headers.
Add a new header:
X-Api-Key
Your sandbox Payments API key
The API Client may display the header as x-api-key after it is added. That is okay. In your own code, use the canonical header name X-Api-Key.
Keep the existing JSON headers:
Content-Type
application/json
Accept
application/json
If the Authentication section says no authentication is selected, that is okay for this test. The API key is being added directly as a request header.
Step 4: Paste the request body

In Request Body, choose JSON.
Paste the sample request body below.
Replace:
TERMINAL_ID_HEREwith your sandbox terminal IDMERCHANT_ID_HEREwith your sandbox merchant ID
Before sending, confirm:
The terminal ID has been replaced
The merchant ID has been replaced
The JSON does not include a trailing comma
The API key header has been added
[Screenshot placeholder: Show the API Client with the X-Api-Key header, request body, and Send button]
Step 5: Send the request

Select Send.
A successful request returns a 200 OK response with payment details.
The response includes:
trackingIdpaymentPageIdpaymentUrls
Example response:
Copy the first value in paymentUrls and open it in a browser to view the hosted payment page.
[Screenshot placeholder: Show the response pane with 200 OK, trackingId, and paymentUrls]
Troubleshooting
401 Unauthorized
Confirm that:
The
X-Api-Keyheader was addedThe full sandbox Payments API key value was used
The API key matches the sandbox environment
The API key was not added to the request body or URL
Validation error
Confirm that:
The merchant ID and terminal ID are valid sandbox values
The request body is valid JSON
The request does not include a trailing comma
The customer fields are complete for the payment flow you are testing
Hosted payment URL does not load
Confirm that:
You copied a URL from the
paymentUrlsarrayThe response was successful
The terminal is configured for the tender types you are testing
Related pages
Last updated