Update a customer
Update details of a specific customer identified by its uinque customer ID, and receive the updated details in return.
Path parameters
-
A unique identifier for the customer within 24SevenOffice CRM.
Body Required
-
name string | null
A human-readable name or label for a customer, making it easily identifiable to users.
-
person object
The first and the last name of a customer if the customer is a person.
Additional properties are allowed.
-
isSupplier boolean
A flag variable indicating whether the customer is also a supplier (true) or not (false).
-
organizationNumber string | null
The organization number issued by authorities, like a VAT number, of the customer if the customer is a company.
-
address object
Addresses for the customer.
Additional properties are allowed.
-
email object
Email addresses for the customer.
Additional properties are allowed.
-
phone string | null
A phone number for contacting the customer.
PATCH /customers/{id}
curl \
-X PATCH https://rest.api.24sevenoffice.com/v1/customers/{id} \
-H "Content-Type: application/json" \
-H "Authorization: string" \
-d '{"name":"ABC Corporation","person":{"firstName":"John","lastName":"Doe"},"isSupplier":false,"organizationNumber":"123456789","address":{"visit":{"countryCode":"NO","street":"Hovedgata 1","postalCode":"0123","postalArea":"Fornebu","countrySubdivision":"Viken"},"postal":{"street":"Hovedgata 1","postalCode":"0123","postalArea":"Fornebu","countrySubdivision":"Viken"},"billing":{"name":"ABC Corporation","countryCode":"NO","street":"Hovedgata 1","postalCode":"0123","postalArea":"Fornebu","countrySubdivision":"Viken"},"delivery":{"name":"ABC Corporation","countryCode":"NO","street":"Hovedgata 1","postalCode":"0123","postalArea":"Fornebu","countrySubdivision":"Viken"}},"email":{"contact":"contact@example.com","billing":"billing@example.com"},"phone":"+47-12345678"}'
Request examples
# Headers
Authorization: string
# Payload
{
"name": "ABC Corporation",
"person": {
"firstName": "John",
"lastName": "Doe"
},
"isSupplier": false,
"organizationNumber": "123456789",
"address": {
"visit": {
"countryCode": "NO",
"street": "Hovedgata 1",
"postalCode": "0123",
"postalArea": "Fornebu",
"countrySubdivision": "Viken"
},
"postal": {
"street": "Hovedgata 1",
"postalCode": "0123",
"postalArea": "Fornebu",
"countrySubdivision": "Viken"
},
"billing": {
"name": "ABC Corporation",
"countryCode": "NO",
"street": "Hovedgata 1",
"postalCode": "0123",
"postalArea": "Fornebu",
"countrySubdivision": "Viken"
},
"delivery": {
"name": "ABC Corporation",
"countryCode": "NO",
"street": "Hovedgata 1",
"postalCode": "0123",
"postalArea": "Fornebu",
"countrySubdivision": "Viken"
}
},
"email": {
"contact": "contact@example.com",
"billing": "billing@example.com"
},
"phone": "+47-12345678"
}
Response examples (200)
# Headers
Access-Control-Allow-Origin: string
Access-Control-Allow-Credentials: string
X-Trace-Id: string
# Payload
{
"id": 12345,
"name": "ABC Corporation",
"person": {
"firstName": "John",
"lastName": "Doe"
},
"isCompany": true,
"isSupplier": false,
"organizationNumber": "123456789",
"address": {
"visit": {
"countryCode": "NO",
"street": "Hovedgata 1",
"postalCode": "0123",
"postalArea": "Fornebu",
"countrySubdivision": "Viken"
},
"postal": {
"street": "Hovedgata 1",
"postalCode": "0123",
"postalArea": "Fornebu",
"countrySubdivision": "Viken"
},
"billing": {
"name": "ABC Corporation",
"countryCode": "NO",
"street": "Hovedgata 1",
"postalCode": "0123",
"postalArea": "Fornebu",
"countrySubdivision": "Viken"
},
"delivery": {
"name": "ABC Corporation",
"countryCode": "NO",
"street": "Hovedgata 1",
"postalCode": "0123",
"postalArea": "Fornebu",
"countrySubdivision": "Viken"
}
},
"email": {
"contact": "contact@example.com",
"billing": "billing@example.com"
},
"phone": "+47-12345678",
"createdAt": "2022-01-01 18:00:00.000Z",
"modifiedAt": "2023-12-31 18:00:00.000Z"
}