Customers
Delete Customer
API Reference
- Customers
- Products
- Plans
- Contracts
- Invoices
- Measurements
- Auth
- Events
- Reports
- Integrations
- Credits
- Webhooks
Customers
Delete Customer
Delete a Customer by id.
DELETE
/
customers
/
{customerId}
curl --request DELETE \
--url https://connect.withvayu.com/customers/{customerId} \
--header 'Authorization: Bearer <token>'
{
"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",
"deletedAt": "<string>"
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Response
200
application/json
RequestSuccess
The name of the customer
Minimum length:
1
The aliases of the customer used to match events to the customer.
The external ID of the customer
Minimum length:
1
curl --request DELETE \
--url https://connect.withvayu.com/customers/{customerId} \
--header 'Authorization: Bearer <token>'
{
"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",
"deletedAt": "<string>"
}
}