curl -i -X POST \
https://www.rebilly.com/_mock/catalog/all/customers \
-H 'Content-Type: application/json' \
-H 'REB-APIKEY: YOUR_API_KEY_HERE' \
-d '{
"websiteId": "web_0YV7DE4Z26DQSA1AC92FBJ7SEG",
"paymentToken": "string",
"defaultPaymentInstrument": {
"method": "payment-card",
"paymentInstrumentId": "inst_0YVB8KPKNXCBR9EDX7JHSED75N"
},
"customFields": {
"foo": "bar"
},
"primaryAddress": {
"firstName": "Benjamin",
"lastName": "Franklin",
"organization": "Rebilly",
"address": "36 Craven St",
"address2": "string",
"city": "Austin",
"region": "Texas",
"country": "GB",
"postalCode": "WC2N 5NF",
"phoneNumbers": [
{
"label": "main",
"value": "512-710-1640",
"primary": true
}
],
"emails": [
{
"label": "main",
"value": "rebilly@example.com",
"primary": true
}
],
"dob": "1980-04-01",
"jobTitle": "CEO"
},
"isEddRequired": false,
"taxNumbers": [
{
"type": "eu-vat",
"value": "GB980780684",
"isDefault": true
}
]
}'