Skip to content

Update Purchase Invoice (Deprecated)
deprecated

Request

(deprecated, use /purchase-invoice/{id} instead)

Security
oAuth2ClientCredentials
Path
idstring, (uuid)(Id)required
Bodyapplication/jsonrequired
custom_fieldsobject(Custom Fields)

User defined additional fields.

PATCH
/v1/accounting/purchase_invoice/{id}
{ "custom_fields": {} }

Responses

Successful Response

Bodyapplication/json
idstring or null(Id)
Any of:

Technical id within the Qargo system

string (uuid)
namestring(Name)required

Reference from invoicing party

external_namestring(External Name)required

Reference from invoicing party

datestring, (date)(Date)required
due_datestring, (date)(Due Date)required
booking_datestring or null(Booking Date)
Any of:

booking date needs to be enabled else this will default to the date field

string (date)
currencystring(Currency)required
exchange_rateExchangeRate (object) or null
Any of:
total_excl_taxstring(Total Excl Tax)required
total_incl_taxstring(Total Incl Tax)required
total_taxstring(Total Tax)required
custom_fieldsobject(Custom Fields)
Default:{}
supplierobject(CompanySummaryOutput)required
customer_reference_numbersArray of strings(Customer Reference Numbers)
line_itemsArray of objects(Line Items)required
billing_entityobject(BillingEntity)required

Billing entity linked to this invoice.

Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "Credit-Note-0001", "external_name": "string", "date": "2022-01-01", "due_date": "2022-01-01", "booking_date": "2021-12-22", "currency": "EUR", "exchange_rate": { "rate_date": "2022-01-01", "rate": 1, "inverse_rate": 1 }, "total_excl_tax": "100", "total_incl_tax": "121", "total_tax": "21", "custom_fields": {}, "supplier": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "code": "", "currency": "EUR", "custom_fields": {}, "is_customer": false, "is_subcontractor": false, "is_buyer_or_seller": true, "name": "John Doe", "legal_name": "John Doe", "vat_number": "BE1234.123.123", "note": "", "tax_type": "VAT", "status": "PROSPECT", "accounting_code": "1234", "billing_location": {}, "payment_term": {}, "is_blocked": false }, "customer_reference_numbers": [ "12345" ], "line_items": [ {} ], "billing_entity": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "legal_name": "Qargo BV", "vat_number": "NL123456789B01", "code": "QARGO", "company_registration_number": "12345678", "is_default": false } }