Customers
Update an Account
Partially update Account attributes (not including associated entities)
patch/accounts/public/{accountId}
Request
- Base URLhttps://api.paperlessparts.com/v1
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
accountIdinteger required
The account id
Request body
Example request
{
"name": "Paperless Parts, Inc.",
"credit_line": 10000,
"erp_code": "PPI",
"payment_terms": "Net 30",
"phone": "6176354500",
"purchase_orders_enabled": true,
"salesperson": {
"email": "careers@paperlessparts.com"
},
"sold_to_address": {
"address1": "137 Portland St.",
"address2": "Unit 1",
"city": "Boston",
"country": "USA",
"postal_code": "02114",
"state": "MA",
"erp_code": "B1234"
},
"tax_exempt": true,
"tax_rate": 6.25,
"type": "customer",
"url": "https://paperlessparts.comA"
}Response
Successful response
Example response
{
"billing_addresses": [
{
"address1": "1 City Hall Sq.",
"city": "Boston",
"state": "MA",
"postal_code": "02114",
"country": "USA",
"erp_code": "B1234"
}
],
"name": "Paperless Parts, Inc.",
"created": "2020-08-25T18:00:53+00:00",
"credit_line": 10000,
"erp_code": "PPI",
"id": 17,
"payment_terms": "Net 30",
"payment_terms_period": 30,
"phone": "6176354500",
"purchase_orders_enabled": true,
"sold_to_address": {
"address1": "1 City Hall Sq.",
"city": "Boston",
"state": "MA",
"postal_code": "02114",
"country": "USA",
"erp_code": "B1234"
},
"tax_exempt": true,
"tax_rate": 6.25,
"type": "customer",
"url": "https://www.paperlessparts.com"
}Changes
No recorded changes to this operation across all 1 revision of this API.