customer
PATCH {{url}}/{{environment}}/api/v2.0/companies({{companyId}})/customers({{customerId}})?tenant={{tenant}}
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
tenant | string |
Request Body
{"displayName"=>"Otter Company 2", "type"=>"Company", "addressLine1"=>"192 Market Square", "addressLine2"=>"", "city"=>"Atlanta", "state"=>"GA", "country"=>"US", "postalCode"=>"31772", "phoneNumber"=>"", "email"=>"robert.townes@contoso.com", "website"=>"", "taxLiable"=>false, "taxAreaId"=>"00000000-0000-0000-0000-000000000000", "taxRegistrationNumber"=>"", "currencyId"=>"00000000-0000-0000-0000-000000000000", "currencyCode"=>"USD", "paymentTermsId"=>"00000000-0000-0000-0000-000000000000", "shipmentMethodId"=>"00000000-0000-0000-0000-000000000000", "paymentMethodId"=>"00000000-0000-0000-0000-000000000000", "blocked"=>" "}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
If-Match | string |
RESPONSES
status: OK
{"@odata.context":"http://educator:7048/BC/api/v2.0/$metadata#companies(f592399f-021d-ed11-9db9-000d3aa935da)/customers/$entity","@odata.etag":"W/\"JzE5OzQ3MDEyOTk4MjAzMDI3Mzk5MDExOzAwOyc=\"","id":"9b530e85-e023-ed11-88e7-f2834877f72d","number":"C00020","displayName":"Otter Company 2","type":"Company","addressLine1":"192 Market Square","addressLine2":"","city":"Atlanta","state":"GA","country":"US","postalCode":"31772","phoneNumber":"","email":"robert.townes@contoso.com","website":"","salespersonCode":"","balanceDue":0,"creditLimit":0,"taxLiable":false,"taxAreaId":"00000000-0000-0000-0000-000000000000","taxAreaDisplayName":"","taxRegistrationNumber":"","currencyId":"00000000-0000-0000-0000-000000000000","currencyCode":"USD","paymentTermsId":"00000000-0000-0000-0000-000000000000","shipmentMethodId":"00000000-0000-0000-0000-000000000000","paymentMethodId":"00000000-0000-0000-0000-000000000000","blocked":"_x0020_","lastModifiedDateTime":"2022-08-24T19:13:26.307Z"}