Update customer
Partially update a customer record by ID in Alvys, changing only the supplied fields such as billing address, credit terms, contacts, or default rates.
ETag in an If-Match header. The token is returned on the ETag response header of a GET, and in the body of a create/update response. If the token does not match the current record the request fails with 412 Precondition Failed; refetch with GET to obtain a fresh value and retry.
Request Parameters
The following parameters are required in the URL path:Request Body
All fields are optional. Provide only the fields you want to change.Example CURL Request
YOUR_ACCESS_TOKEN with your actual Bearer token and If-Match with the customer’s current ETag.
Response Fields
A successful request returns the updated customer. The new optimistic-concurrency token is returned on theETag response header and in the ETag body field.
Example Response
200 OKStatus Codes
Rate Limits
All endpoints are subject to rate limits to protect the API from traffic spikes. For detailed information on rate limits, please refer to the Rate Limits section. This page is interactive, allowing you to try a request by completing the fields for the parameters below. As you fill out the parameters, the CURL command on the right side of the page will be automatically updated.Authorizations
OAuth 2.0 client-credentials access token. Obtain one from https://auth.alvys.com/oauth/token (grant_type=client_credentials, audience=https://api.alvys.com/public/), then paste it here. The playground sends it as Authorization: Bearer <token>.
Headers
The customer's current ETag (from a prior GET response header, or the ETag field of a create/update response), for optimistic concurrency. Required; if omitted the request is rejected with 428, and if it does not match the current record with 412.
Path Parameters
API version (e.g., 1.0)
"1.0"
Body
Response
OK