latestOpenAPI 3.0.0Apache 2.02026-08-06199181.1 MB

e0d144609998

Partners

Create partner

Create a partner

post/partners

Request body

company_idinteger nullable

Company id; required when contact_id is not sent

contact_idinteger nullable

Contact id; required when company_id is not sent

isThirdParty'yes' | 'no' nullable

Example request

{
  "company_id": 45,
  "isThirdParty": "no"
}

Response

Successful operation

messagestring

Example response

{
  "message": "partner has been created.",
  "partner": {
    "id": 12,
    "company_id": 45,
    "isThirdParty": "no",
    "type": "Company",
    "name": "Lexzur LLC",
    "label": "Lexzur LLC"
  }
}