API / Company
Use case / Master data sync
Update Company
Changed onput/v1/companies/company/{id}
Request
- Base URL: https://api.qargo.com
- URL: https://api.qargo.com/v1/companies/company/{id}
- Auth: OAuth 2 (client credentials, token URL /v1/auth/token)
Path parameters
idstring uuid required
Request body
Example request
{
"archived_customer": false,
"archived_subcontractor": false,
"billing_location": {
"address": "Gaston Crommenlaan 4",
"city": "Ghent",
"country": "BE",
"name": "Acme Logistics HQ",
"postal_code": "9050"
},
"code": "ACME-001",
"contacts": [
{
"email": "invoicing@acme.example",
"name": "Jane Doe",
"phone_number": "+32485123456",
"roles": [
"BILLING"
]
}
],
"currency": "EUR",
"is_buyer_or_seller": false,
"is_customer": true,
"is_subcontractor": true,
"legal_name": "Acme Logistics NV",
"locale": "nl-BE",
"name": "Acme Logistics",
"note": "Created through the API",
"purchase": {
"payment_term": {
"code": "END_OF_MONTH_2"
},
"status": "APPROVED"
},
"sales": {
"payment_term": {
"code": "END_OF_MONTH_2"
},
"status": "APPROVED"
},
"tax_type": "VAT",
"vat_number": "BE0123.456.789"
}Response
Successful Response
Example response
{
"currency": "EUR",
"name": "John Doe",
"legal_name": "John Doe",
"vat_number": "BE1234.123.123",
"accounting_code": "1234",
"billing_location": {
"code": "LOC123",
"display_name": "Main Office",
"address": "Gaston Crommenlaan 4",
"city": "Ghent",
"country": "BE",
"postal_code": "9050",
"name": "Qargo HQ"
},
"locale": "en",
"credit_policy": {
"limit": 10000
},
"default_invoice_customer": {
"name": "John Doe",
"code": "CUST-001"
},
"contacts": [
{
"name": "John Doe",
"phone_number": "+32485123456"
}
],
"credit_limit_total": 12000
}Changes
- warning
added the new
UK_REVERSE_CHARGEenum value to the/response property for the response status - info
added the new
UK_REVERSE_CHARGEenum value to the request property/
- warning
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info