Skip to main content
PATCH
/
v0
/
business
/
{business_id}
/
customers
/
{customer_id}
Update a customer
curl --request PATCH \
  --url https://api.sandbox.getasset.com/v0/business/{business_id}/customers/{customer_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "email": "<string>",
  "billing_address": {
    "street_1": "<string>",
    "city": "<string>",
    "state": "<string>",
    "postal_code": "<string>",
    "country": "<string>",
    "street_2": "<string>"
  },
  "shipping_address": {
    "street_1": "<string>",
    "city": "<string>",
    "state": "<string>",
    "postal_code": "<string>",
    "country": "<string>",
    "street_2": "<string>"
  },
  "phone_number": "<string>"
}
'
{
  "data": {
    "name": "<string>",
    "id": "<string>",
    "external_id": "<string>",
    "email": "<string>",
    "billing_address": {
      "street_1": "<string>",
      "city": "<string>",
      "state": "<string>",
      "postal_code": "<string>",
      "country": "<string>",
      "street_2": "<string>"
    },
    "shipping_address": {
      "street_1": "<string>",
      "city": "<string>",
      "state": "<string>",
      "postal_code": "<string>",
      "country": "<string>",
      "street_2": "<string>"
    },
    "phone_number": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.getasset.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

business_id
string<biz_string>
required
customer_id
string<cus_string>
required

Body

application/json
name
string | null

The name of the customer

Maximum string length: 255
email
string | null

The email address of the customer

Maximum string length: 255
billing_address
Address · object

The billing address of the customer

shipping_address
Address · object

The shipping address of the customer

phone_number
string | null

The phone number of the customer

Maximum string length: 32

Response

Successful Response

data
Customer · object
required