POST /customers.json
Body Required
-
accountsEmail string | null
Accounts email
-
companyCode string | null
Company code
Maximum length is
30
. -
Email
-
fax string | null
Fax
Maximum length is
30
. -
firstName string | null
First name
-
lastName string | null
Last name
-
name string | null
Name
-
notes string | null
Notes
-
orderEmail string | null
Order email
-
phone string | null
Phone
Maximum length is
30
. -
priceListId integer(int32) | null
Price list
-
quickbooksId string | null
Quickbooks
-
resellerId integer(int32) | null
Reseller
-
returnsEmail string | null
Returns email
-
saleNotes string | null
Sale notes
-
Status
Values are
active
ordisabled
. Default value isactive
. -
stripeId string | null
Stripe
-
taxNumber string | null
Tax number
Maximum length is
30
. -
token string | null
Token
-
userId integer(int32) | null
User
-
xeroId string | null
Xero
POST
/customers.json
curl \
-X POST http://api.example.com/v1/customers.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"accountsEmail":"string","companyCode":"string","email":"string","fax":"string","firstName":"string","lastName":"string","name":"string","notes":"string","orderEmail":"string","phone":"string","priceListId":42,"quickbooksId":"string","resellerId":42,"returnsEmail":"string","saleNotes":"string","status":"active","stripeId":"string","tags":["string"],"taxNumber":"string","token":"string","userId":42,"xeroId":"string"}'
Request example
{
"accountsEmail": "string",
"companyCode": "string",
"email": "string",
"fax": "string",
"firstName": "string",
"lastName": "string",
"name": "string",
"notes": "string",
"orderEmail": "string",
"phone": "string",
"priceListId": 42,
"quickbooksId": "string",
"resellerId": 42,
"returnsEmail": "string",
"saleNotes": "string",
"status": "active",
"stripeId": "string",
"tags": [
"string"
],
"taxNumber": "string",
"token": "string",
"userId": 42,
"xeroId": "string"
}
Response examples (200)
{
"accountsEmail": "string",
"companyCode": "string",
"createdAt": "2024-05-04T09:42:00+00:00",
"email": "string",
"fax": "string",
"firstName": "string",
"id": 42,
"lastName": "string",
"name": "string",
"notes": "string",
"orderEmail": "string",
"phone": "string",
"priceListId": 42,
"quickbooksId": "string",
"resellerId": 42,
"returnsEmail": "string",
"saleNotes": "string",
"status": "active",
"stripeId": "string",
"tags": [
"string"
],
"taxNumber": "string",
"token": "string",
"updatedAt": "2024-05-04T09:42:00+00:00",
"userId": 42,
"xeroId": "string"
}