https://your-exchange/api/v3. Replace your-exchange with the domain of the exchanger you connect to.
Connect to the API
Get API access
Create a token and a signing secret from your exchanger account.
Sign a request
Build the HMAC v2 headers and verify the signature.
Make your first request
Check the API address and credentials without creating an order.
Make your first request with an SDK
The publicGET /api/v3/ping checks whether the API is reachable and requires no key. Set EXCHANGER_API_ORIGIN to your exchanger’s address, such as https://your-exchange, before running the example.
- Go
- PHP
Install the Go SDK, copy the example into
main.go, and run go run ..main.go
Orders and payments
Select a route and get a quote
Get the terms, validate the order fields, and preserve the quote snapshot.
Create an order
Submit the agreed order details and record the order ID.
Show payment details and check payment
Retrieve payment instructions and check if the provider confirmed receipt.
Receive a webhook
Verify the event signature and handle repeat deliveries.