Create or update customer

Use this endpoint to create a new customer or update an existing customer.

Body Params

Create customer and update customer attributes

string

Specify the email ID of the customer that you want to create or whose details you want to update. Ensure that the email that you provide in this field does not contain more than 64 characters.

string

Specify the customer ID of the customer that you want to create or whose details you want to update.

string

Specify the phone number of the customer that you want to create or whose details you want to update. Ensure that it includes the country code, starts with a +, follows the E.164 standard, does not start with a 0, and contains 6 to 14 characters.

subscription_groups
array of objects

Specify the user's subscription preferences.

subscription_groups
string

Specify the firstname of the customer that you want to create or whose details you want to update.

string

Specify the lastname of the customer that you want to create or whose details you want to update.

string

Specify the gender (if required) of the customer that you want to create or whose details you want to update.

Responses

400

Bad request - The request was invalid or cannot be otherwise served. An accompanying error message will explain further.

404

Resource not found - Can happen due to resource conflicts. Re-try with exponential backoff. Contact us on [email protected] if the issue persists.

409

Conflict error, please retry - The request could not be completed due to a conflict with the current state of the target resource, re-try with exponential backoff.

413

You can upload maximum 50 users in one api call - The server is refusing to process a request because the request payload is larger than the server is willing or able to process.

429

Rate limit exceeded - Too many requests. Contact us on [email protected] for recommended throughput.

500

Internal Server Error - Please contact blueshift for more information.

502

Service unavailable, please retry - Bad Gateway, re-try with exponential backoff.

503

Service unavailable, please retry - Service Unavailable, re-try with exponential backoff.

504

Service unavailable, please retry - Gateway Timeout, please re-try with exponential backoff.

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json