cURL
curl --request POST \ --url https://api.pocketflows.com/sync/businesses/{business_id}/customers/batch \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data ' { "customers": [ { "id": "<string>", "external_id": "<string>", "phone_number": "<string>", "email_address": "<string>", "metadata": {}, "full_name": "<string>" } ] } '
{ "customers": [ { "id": "<string>", "external_id": "<string>", "email_address": "<string>", "phone_number": "<string>", "full_name": "<string>", "metadata": {}, "unsubscribed": "future" } ], "errors": [ "<unknown>" ] }
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
The customers to sync
Show child attributes
The customers that were synced
The customers that were synced. Will be null for customers that had errors
null
The errors that occurred during the sync