Skip to Content
AccountingAccounts ReceivableCustomers

Update a customer

PATCH
/v0/business/{business_id}/customers/{customer_id}

Scopes: customer:update

Authorization

OAuth2ClientCredentialsBearer customer:update
headerAuthorizationBearer <token>

Scope: customer:update

Path Parameters

customer_id*Customer Id
Formatcus_string
business_id*Business Id

The id of the business

Formatbiz_string

Request Body

application/json
  1. body
name?|

The name of the customer

external_id?|

The external ID of the customer

email?|

The email address of the customer

billing_address?|

The billing address of the customer

shipping_address?|

The shipping address of the customer

phone_number?|

The phone number of the customer

is_disabled?|

Whether the customer is disabled. Set to false to re-enable a disabled customer.

Response Body

Successful Response

application/json
  1. response
data*
Example Request
curl -X PATCH 'https://api.sandbox.getasset.com/v0/business/biz_GA6EG2qFxA97NZHtxeLPUy/customers/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "data": {    "external_id": "string",    "name": "string",    "email": "string",    "billing_address": {      "street_1": "string",      "street_2": "string",      "city": "string",      "state": "string",      "postal_code": "string",      "country": "string"    },    "shipping_address": {      "street_1": "string",      "street_2": "string",      "city": "string",      "state": "string",      "postal_code": "string",      "country": "string"    },    "phone_number": "string",    "id": "string",    "is_disabled": true  }}