Update Customer
Update a Customer by id.
Authorization
BearerAuthorizer In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
The name of the customer
The aliases of the customer used to match events to the customer.
The contacts of the customer. Contact marked as primary is the target for invoice sharing.
The source of the customer
The legal name of the customer
The tax IDs of the customer
External integration links for the customer. Each entry links the customer to an external provider entity by its id.
The tax ID of the customer (deprecated, use taxIds instead)
Cloud provider settings for the customer
The external ID of the customer
The ID of the customer in the ERP system
The address of the customer
The ID of the customer in the Salesforce system
The due days of the customer
The billing currency of the customer
Custom fields from CRM systems (Salesforce, HubSpot, etc.)
The name of the subsidiary of the customer
Total outstanding amount across all unpaid invoices (in USD)
Total amount of invoices with no billing status set (in USD)
Total amount of overdue invoices (in USD)
Total amount of invoices pending payment (in USD)
Total amount of paid invoices (in USD)
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/customers/string" \ -H "Content-Type: application/json" \ -d '{}'{ "customer": { "name": "string", "aliases": [], "contacts": [ { "name": "string", "email": "string", "title": "string", "phone": "string", "receiveInvoiceEmail": true } ], "source": "Stripe", "legalName": "string", "taxIds": [], "externalIntegration": [ { "type": "NetSuite", "id": "string", "name": "string" } ], "taxId": "string", "cloudProviderSettings": { "cloudProvider": "AWS", "cloudProviderMarketplaceId": "string", "customerIdentifier": "string" }, "externalId": "string", "customerErpId": "string", "address": { "country": "string", "city": "string", "addressText": "string", "state": "string", "postalCode": "string" }, "salesForceAccountId": "string", "dueDays": "END_OF_MONTH", "currency": "USD", "customFields": [ { "integrationSource": "NetSuite", "integrationEntityType": "Account", "fieldPath": "string", "vayuCustomFieldName": "string", "valueType": "String", "value": null } ], "subsidiary": "string", "totalOutstandingAmount": 0, "openAmount": 0, "overdueAmount": 0, "pendingPaymentAmount": 0, "paidAmount": 0, "id": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}{ "type": "invalid_request_error", "code": "string", "message": "string", "param": "string", "params": [ { "param": "string", "message": "string" } ]}{ "type": "authentication_error", "code": "authentication_failed", "message": "string"}{ "type": "invalid_request_error", "code": "resource_not_found", "message": "string"}{ "type": "rate_limit_error", "code": "rate_limit_exceeded", "message": "string"}{ "type": "api_error", "code": "internal_error", "message": "string"}
