API Documentation
API Reference
- Customers
- Contracts
- Invoices
- Measurements
- Auth
- Events
- Credits
- Product Consumption
- Webhooks
Customers
Update Customer
Update a Customer by id.
PUT
/
customers
/
{customerId}
Copy
curl --request PUT \
--url https://connect.withvayu.com/customers/{customerId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"aliases": [],
"address": {
"country": "<string>",
"city": "<string>",
"addressText": "<string>",
"state": "<string>",
"postalCode": "<string>"
},
"contacts": [
{
"name": "<string>",
"email": "jsmith@example.com",
"receiveInvoiceEmail": true
}
],
"externalId": "<string>"
}'
Copy
{
"customer": {
"name": "<string>",
"aliases": [],
"address": {
"country": "<string>",
"city": "<string>",
"addressText": "<string>",
"state": "<string>",
"postalCode": "<string>"
},
"contacts": [
{
"name": "<string>",
"email": "jsmith@example.com",
"receiveInvoiceEmail": true
}
],
"externalId": "<string>",
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
application/json
Response
200
application/json
RequestSuccess
The response is of type object
.
Copy
curl --request PUT \
--url https://connect.withvayu.com/customers/{customerId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"aliases": [],
"address": {
"country": "<string>",
"city": "<string>",
"addressText": "<string>",
"state": "<string>",
"postalCode": "<string>"
},
"contacts": [
{
"name": "<string>",
"email": "jsmith@example.com",
"receiveInvoiceEmail": true
}
],
"externalId": "<string>"
}'
Copy
{
"customer": {
"name": "<string>",
"aliases": [],
"address": {
"country": "<string>",
"city": "<string>",
"addressText": "<string>",
"state": "<string>",
"postalCode": "<string>"
},
"contacts": [
{
"name": "<string>",
"email": "jsmith@example.com",
"receiveInvoiceEmail": true
}
],
"externalId": "<string>",
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}
Assistant
Responses are generated using AI and may contain mistakes.