Skip to main content
This page creates one individual customer in sandbox and reads it back. It does not open an account or move money.

Before you start

You need a sandbox API key (sk_test_…) on a business client. See authentication if you do not have one yet.

1. Create the customer

Eight fields are required for an individual: type, jurisdiction, externalReference, email, phoneNumber, address, firstName, and lastName. Within address, line1, city, and country are required. Everything else is optional.
A 201 returns the stored customer:

2. Check three things

This is the part worth ten minutes.
  1. id is the identifier from here on. Store it. It is opaque; never construct or parse one.
  2. The response is the stored form, not your input. Send "email": "Ada@Example.com " and you get back ada@example.com. Text is trimmed, email is lowercased, jurisdiction and address.country are uppercased. Compare against the response.
  3. name and displayName were composed for you. You sent first and last names; Sakawave joined them.

3. Read it back

Or find it by the reference you chose, without having stored the ID:

If it failed

Next