customer

POST {{url}}/{{environment}}/api/v2.0/companies({{companyId}})/customers?tenant={{tenant}}

Request Params

KeyDatatypeRequiredDescription
tenantstring

Request Body

{"displayName"=>"Otter Company", "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"=>" "}

RESPONSES

status: Created

{"@odata.context":"http://educator:7048/BC/api/v2.0/$metadata#companies(f592399f-021d-ed11-9db9-000d3aa935da)/customers/$entity","@odata.etag":"W/\"JzIwOzE2NTI2MjA0MDE1NDAzNDU2NTU3MTswMDsn\"","id":"9b530e85-e023-ed11-88e7-f2834877f72d","number":"C00020","displayName":"Otter Company","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:11:14.057Z"}