This API endpoint allows you to create a new trucking company.
Code | Description |
---|---|
400 | Bad Request. |
404 | Not Found. |
500 | Internal Server Error. |
curl "https://app.octopi.co/api/v1/trucking_companies.json" -X POST -d '{ "name" : "FC UNITED", "general_ledger_id": "SL1231", "contact_person": "Joe Jones", "address": "123 Main St", "email": "joe@example.com", "code": "111", "vat_number": "223"}' -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Token token=YOUR TOKEN HERE"
{ "trucking_company" : { "email" : "joe@example.com", "id" : 353388, "general_ledger_id" : "SL1231", "phone" : "786-111-1111", "code" : "SCAC", "vat_number" : "223", "address" : "123 Main St", "contact_person" : "Joe Jones", "name" : "FC UNITED" } }