This endpoint allows Company to Supplier a company.
To call any
/companies
endpoints, you need to use a JWT token or an intent token for authorization.
supplier_company_reference
required
{
"supplier_company_reference": "string"
}
{
"code": 201,
"message": "Created; supplier and company were linked.",
"data": {
"id": "int",
"supplier_id": "int",
"supplier_company_reference": "string",
"company_id": "int"
},
"links": {},
"errors": []
}
201
Created; Supplier and company were linked.
404
Company does not exist.
404
Supplier does not exist.
409
Error while inserting new Supplier-Company binding.