Create Supplier

POST https://api.codat.io/companies/:companyId/connections/:connectionId/push/suppliers

In Codat a Supplier is a person or organization that provides a product or service, sync for expenses uses these to track all purchase and refund related activity against.
You can either add the id of an existing customer from the accounting software or you can create a new customer and use the id returned from the pushOperationsEndpoint.

Request Body

{"supplierName"=>"{{$randomCompanyName}}", "contactName"=>"{{$randomFirstName}}", "emailAddress"=>"{{$randomEmail}}", "phone"=>"{{$randomPhoneNumber}}", "registrationNumber"=>"string", "taxNumber"=>"string", "status"=>"Active", "modifiedDate"=>"{{$isoTimestamp}}", "sourceModifiedDate"=>"{{$isoTimestamp}}"}

RESPONSES

status: OK

{"changes":[],"data":{"supplierName":"Gutkowski and Sons","contactName":"Jarrett","emailAddress":"Tod54@gmail.com","phone":"691-879-3201","addresses":[],"registrationNumber":"string","taxNumber":"string","status":"Active","modifiedDate":"2023-02-02T10:18:54.482Z","sourceModifiedDate":"2023-02-02T10:18:54.482Z"},"dataType":"suppliers","companyId":"bf1e0242-5b7a-418b-a307-9e09dbf9f39a","pushOperationKey":"8ef98a6a-3d0a-4eff-b2c8-a605778701bb","dataConnectionKey":"77238676-7bb7-49c5-b17d-b2bcc862614a","requestedOnUtc":"2023-02-02T10:18:54.8414361Z","status":"Pending","statusCode":202}