AccountingAccounts ReceivableCustomers
Create a new customer
POST
Scopes: customer:create
OAuth2ClientCredentialsBearer customer:createheader
AuthorizationBearer <token>Scope: customer:create
business_id*Business IdThe id of the business
Format
biz_stringapplication/json- body
external_id?|The external ID of the customer
name*NameThe name of the customer
Length
length <= 255email?|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
Successful Response
application/json- response
data*curl -X POST 'https://api.sandbox.getasset.com/v0/business/biz_GA6EG2qFxA97NZHtxeLPUy/customers' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'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 }}