Making requests on-behalf of accounts

You can make an API call on-behalf of an account by passing their Account ID into requests in the Yorlet-Account header.

Create a customer on-behalf of an account

curl https://api.yorlet.com/v1/customers \
-H "Authorization: Bearer {{API_KEY}}" \
-H "Content-Type: application/json" \
-H "Yorlet-Account: {{ACCOUNT_ID}}" \
-d '{
"email": "[email protected]"
}'