PUT /customers/{id}.json
Path parameters
-
Numeric ID of the instance
Minimum value is
1
.
Body Required
-
accountsEmail string | null
Accounts email
-
companyCode string | null
Company code
Maximum length is
30
. -
createdAt string(date-time)
Created at
-
Email
-
fax string | null
Fax
Maximum length is
30
. -
firstName string | null
First name
-
id integer(int32)
Id
-
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
-
updatedAt string(date-time)
Updated at
-
userId integer(int32) | null
User
-
xeroId string | null
Xero
PUT /customers/{id}.json
curl \
-X PUT http://api.example.com/v1/customers/{id}.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"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"}'
Request example
{
"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"
}