Skip to main content
You’ll need a Sandbox App ID and API key. See Authentication for how to get them.
1

Save your credentials

Put your credentials in environment variables so they stay out of your code and shell history.
2

List your customers

Every request sends both headers. This one returns the first page of customers.
You get the customers and a meta object for paging through the rest:
Amounts are integers in cents, so 113996 is $1,139.96.If you get a 401, check that both headers are set and that you’re using Sandbox credentials with the Sandbox URL.
3

Create a customer

Send the customer’s details inside a customer object.
A 201 returns the new customer, including its uuid. Use the uuid to look up, update or invoice the customer later.

Next steps

Handle errors

What each status code means and what to do about it.

Set up webhooks

Hear about payments instead of polling for them.