Authorization: Bearer ********************
{
"franchiseId": 0,
"name": "string",
"address": {
"street1": "string",
"street2": "string",
"city": "string",
"state": "string",
"countryCode": "string",
"zipCode": "/regex/"
},
"billToAddress": {
"street1": "string",
"street2": "string",
"city": "string",
"state": "string",
"countryCode": "string",
"zipCode": "/regex/"
},
"billToCustomerId": 0,
"phone": "string",
"email": "string",
"shipTo": {
"name": "string",
"address": {
"street1": "string",
"street2": "string",
"city": "string",
"state": "string",
"countryCode": "string",
"zipCode": "/regex/"
},
"phone": "string",
"email": "string"
},
"signatureRequired": true,
"balanceDue": 0,
"creditLimit": 0,
"cashOverDays": true,
"cashOverLimit": true,
"maxDays": 0,
"defaultPayType": "CASH",
"payTypes": [
"CASH"
],
"priceCode": 0,
"taxCode": 0,
"status": "string"
}
curl --location --request POST 'https://mock.apidog.com/m1/365924-0-default/customers' \
--header 'Content-Type: application/json' \
--data-raw '{
"franchiseId": 0,
"name": "string",
"address": {
"street1": "string",
"street2": "string",
"city": "string",
"state": "string",
"countryCode": "string",
"zipCode": "/regex/"
},
"billToAddress": {
"street1": "string",
"street2": "string",
"city": "string",
"state": "string",
"countryCode": "string",
"zipCode": "/regex/"
},
"billToCustomerId": 0,
"phone": "string",
"email": "string",
"shipTo": {
"name": "string",
"address": {
"street1": "string",
"street2": "string",
"city": "string",
"state": "string",
"countryCode": "string",
"zipCode": "/regex/"
},
"phone": "string",
"email": "string"
},
"signatureRequired": true,
"balanceDue": 0,
"creditLimit": 0,
"cashOverDays": true,
"cashOverLimit": true,
"maxDays": 0,
"defaultPayType": "CASH",
"payTypes": [
"CASH"
],
"priceCode": 0,
"taxCode": 0,
"status": "string"
}'
{
"data": {
"customer": {
"id": 1,
"franchiseId": 1,
"name": "string",
"address": {
"street1": "string",
"street2": "string",
"city": "string",
"state": "string",
"countryCode": "string",
"zipCode": "/regex/"
},
"phone": "string",
"email": "string",
"billToAccount": {
"id": 0,
"status": "ACTIVE",
"billToAddress": {
"street1": "string",
"street2": "string",
"city": "string",
"state": "string",
"countryCode": "string",
"zipCode": "/regex/"
},
"balance": 0,
"creditLimit": 0,
"cashOverLimit": false,
"cashOverDays": false,
"ageInDays": 0,
"defaultPayType": "CASH",
"payTypes": [
"CASH"
],
"priceCode": 0,
"taxCode": "string",
"maxDays": 0,
"signatureRequired": false,
"version": 0
},
"shipTo": {
"name": "string",
"address": {
"street1": "string",
"street2": "string",
"city": "string",
"state": "string",
"countryCode": "string",
"zipCode": "/regex/"
},
"phone": "string",
"email": "string"
},
"version": 0
},
"account": {
"id": 0,
"status": "ACTIVE",
"billToAddress": {
"street1": "string",
"street2": "string",
"city": "string",
"state": "string",
"countryCode": "string",
"zipCode": "/regex/"
},
"balance": 0,
"creditLimit": 0,
"cashOverLimit": false,
"cashOverDays": false,
"ageInDays": 0,
"defaultPayType": "CASH",
"payTypes": [
"CASH"
],
"priceCode": 0,
"taxCode": "string",
"maxDays": 0,
"signatureRequired": false,
"version": 0
}
}
}