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>", "email_address": "<string>", "phone_number": "<string>", "metadata": {} } ] }
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 created Customer objects
Customer
The response is of type object.
object