Update a customer
Update details of a specific customer identified by its uinque customer ID, and receive the updated details in return.
      
  
    
  
        Body
      
    Required
 
    
  
  - 
    
  A human-readable name or label for a customer, making it easily identifiable to users. 
- 
    
  The first and the last name of a customer if the customer is a person. 
- 
    
  A flag variable indicating whether the customer is also a supplier (true) or not (false). 
- 
    
  The organization number issued by authorities, like a VAT number, of the customer if the customer is a company. 
- 
    
  Addresses for the customer. 
- 
    
  Email addresses for the customer. 
- 
    
  A phone number for contacting the customer. 
        PATCH
    /customers/{id}
  
  curl \
 --request PATCH 'https://rest.api.24sevenoffice.com/v1/customers/{id}' \
 --header "Content-Type: application/json" \
 --header "Authorization: string" \
 --data '{"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"
}