Customers
Update Customer
Update the details of one of your Customers.
PUT
/
customers
/
{id}
Header
Path
Body
curl --request PUT \
--url https://eu.sequencehq.com/api/customers/{id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"address": {
"country": "GB",
"line1": "Flat 1",
"postCode": "AB1 2EF",
"town": "London"
},
"email": "john@example.com",
"legalName": "John Doe",
"taxStatus": "TAXED"
}'
{
"address": {
"country": "GB",
"line1": "Flat 1",
"line2": "123 Fake Street",
"postCode": "AB1 2EF",
"town": "London"
},
"billingEmail": "exampleCorpInvoices@example.com",
"billingEmails": [
"exampleCorpInvoices@example.com"
],
"contactName": "John Doe",
"createdAt": "2022-06-28T16:47:00Z",
"email": "john@example.com",
"id": "e309e948-088e-4d77-b654-cd85498f1555",
"label": "Example customer",
"legalName": "John Doe",
"linkedServices": [
{
"externalId": "ID",
"externalService": "Xero",
"syncTime": "2022-06-28T16:47:00Z"
}
],
"paymentReference": "Example reference",
"sequenceAccountId": "25b3c342-6fa6-4375-9ed3-616f05abb77a",
"taxStatus": "TAXED",
"telephone": "02010001000",
"url": "https://example.com/"
}
Headers
Authorizationrequired
string
Your API credentials. Eg. Basic {credentials}
.
Idempotency-Key
string
Specifying a unique ID for this request here lets you retry it without risk of performing the same operation twice.
Path Parameters
idrequired
string
Customer ID
Body
application/json
addressrequired
object
billingEmail
string
contactName
string
customerAliases
string[]
emailrequired
string
externalIds
any[]
label
string
legalNamerequired
string
paymentReference
string
taxStatusrequired
enum<string>
Available options:
TAXED
, TAX_EXEMPT
, REVERSE_CHARGED
telephone
string
url
string
Response
200 - application/json
addressrequired
object
billingEmail
string
billingEmailsrequired
string[]
contactName
string
createdAtrequired
string
emailrequired
string
idrequired
string
label
string
legalNamerequired
string
linkedServicesrequired
object[]
paymentReference
string
sequenceAccountIdrequired
string
taxStatusrequired
enum<string>
Available options:
TAXED
, TAX_EXEMPT
, REVERSE_CHARGED
telephone
string
url
string
curl --request PUT \
--url https://eu.sequencehq.com/api/customers/{id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"address": {
"country": "GB",
"line1": "Flat 1",
"postCode": "AB1 2EF",
"town": "London"
},
"email": "john@example.com",
"legalName": "John Doe",
"taxStatus": "TAXED"
}'
{
"address": {
"country": "GB",
"line1": "Flat 1",
"line2": "123 Fake Street",
"postCode": "AB1 2EF",
"town": "London"
},
"billingEmail": "exampleCorpInvoices@example.com",
"billingEmails": [
"exampleCorpInvoices@example.com"
],
"contactName": "John Doe",
"createdAt": "2022-06-28T16:47:00Z",
"email": "john@example.com",
"id": "e309e948-088e-4d77-b654-cd85498f1555",
"label": "Example customer",
"legalName": "John Doe",
"linkedServices": [
{
"externalId": "ID",
"externalService": "Xero",
"syncTime": "2022-06-28T16:47:00Z"
}
],
"paymentReference": "Example reference",
"sequenceAccountId": "25b3c342-6fa6-4375-9ed3-616f05abb77a",
"taxStatus": "TAXED",
"telephone": "02010001000",
"url": "https://example.com/"
}