Skip to content
Public API
Esc
↑↓navigate↵open⌘Jpreview

Update a customer

Every field is optional. The address lists replace the stored ones, they are not merged.

PUT/customer/{id}
Authorization
AuthorizationAPI key · headerrequired

The Incoming Secret value (<secretId>.<random>), with or without a Bearer prefix.

Path parameters
idstringrequired
Request body
application/json
emailstring

Customer email.

firstNamestring

First name.

lastNamestring

Last name.

accountTypestring

Account type.

customIdstring

Custom customer id.

phonestring

Phone number.

departmentstring

Department.

companyNamestring

Company name.

profitCenterNamestring

Name of an existing profit center.

customerStatusNamestring

Name of an existing customer status.

customerGroupNamestring

Name of an existing customer group.

billingAddressesobject[]

Billing addresses.

Show properties
Array of object
firstNamestringrequired

First name.

lastNamestringrequired

Last name.

addressstringrequired

Street address.

addressSecondLinestringrequired

Second address line.

citystringrequired

City.

telephonestringrequired

Telephone.

emailstringrequired

Email.

companyNamestring

Company name.

postCodestring

Post code.

countryNamestring

Country name.

countryISOstring

ISO country code.

shippingAddressesobject[]

Shipping addresses.

Show properties
Array of object
firstNamestringrequired

First name.

lastNamestringrequired

Last name.

addressstringrequired

Street address.

addressSecondLinestringrequired

Second address line.

citystringrequired

City.

telephonestringrequired

Telephone.

emailstringrequired

Email.

companyNamestring

Company name.

postCodestring

Post code.

countryNamestring

Country name.

countryISOstring

ISO country code.

regionsinteger[]

Quotation form region ids.

Responses
200

OK. Returns only the id — fetch the full Customer with the corresponding GET.

idinteger | stringrequired

Id of the updated Customer.

Show properties
One of:
integer
integer
string
string
401

Authentication failed. All causes return this identical response.

codeinteger
messagestring
typestring
default

Downstream errors pass through verbatim; x-error-source names the failing service.

codeinteger
messagestring
typestring
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PUT 'https://next.amfg.ai/engine-service/public-api/v1/customer/string' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "string",
  "firstName": "string",
  "lastName": "string",
  "accountType": "string",
  "customId": "string",
  "phone": "string",
  "department": "string",
  "companyName": "string",
  "profitCenterName": "string",
  "customerStatusName": "string",
  "customerGroupName": "string",
  "billingAddresses": [
    {
      "firstName": "string",
      "lastName": "string",
      "address": "string",
      "addressSecondLine": "string",
      "city": "string",
      "telephone": "string",
      "email": "string",
      "companyName": "string",
      "postCode": "string",
      "countryName": "string",
      "countryISO": "string"
    }
  ],
  "shippingAddresses": [
    {
      "firstName": "string",
      "lastName": "string",
      "address": "string",
      "addressSecondLine": "string",
      "city": "string",
      "telephone": "string",
      "email": "string",
      "companyName": "string",
      "postCode": "string",
      "countryName": "string",
      "countryISO": "string"
    }
  ],
  "regions": [
    0
  ]
}'
Response
{
  "id": 0
}