cURL
curl --request POST \ --url https://api.pocketflows.com/businesses/{id}/customers/batch \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data ' { "customers": [ { "email_address": "<string>", "phone_number": "<string>", "metadata": {} } ] } '
{ "customers": [ { "id": "<string>", "external_id": "<string>", "email_address": "<string>", "phone_number": "<string>", "metadata": {}, "unsubscribed": "future" } ], "errors": [ { "message": "<string>", "path": "<string>" } ] }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
The ID of the business
An array of customer data to create
Show child attributes
An array of created Customer objects
Customer
An array of created Customer objects (null for entries that failed)
An array of errors