Skip to content

Post Purchase Invoice ​

Purchases an invoice

POST /v1/Invoices/{invoiceGuid}/Purchase

Use the Test or Production base URL configured under Overview.

Request parameters ​

FieldLocationMandatoryDescription
invoiceGuidpathYesstring

Headers and authentication ​

Use OAuth 2.0 Client Credentials and the Authorization header with a Bearer access token, as described under Overview.

Request body fields ​

Field pathMandatoryDescription
purchaseFeeAmountNonumber <double> or null
Purchase fee (will be calculated if omitted)
purchaseFeeCurrencyNostring or null
Currency code of purchase fee
purchaseFeePercentageNonumber <double> or null
Purchase fee in percent
invoiceItemIdNointeger <int32> or null
Sets the invoice item id.
approvedNoboolean or null
Sets if the purchase is approved. Default is true.
recourseDaysNointeger <int32> or null
Purchase invoice with recourse rights
depositAmountNonumber <double> or null
Optional amount kept as deposit until payment from customer
noteNostring or null
Any additional note

Response fields ​

HTTP 202

No response body is returned.

HTTP 400
Field pathDescription
typestring or null
titlestring or null
statusinteger <int32> or null
detailstring or null
instancestring or null
HTTP 401
Field pathDescription
typestring or null
titlestring or null
statusinteger <int32> or null
detailstring or null
instancestring or null
HTTP 403
Field pathDescription
typestring or null
titlestring or null
statusinteger <int32> or null
detailstring or null
instancestring or null
HTTP 404
Field pathDescription
typestring or null
titlestring or null
statusinteger <int32> or null
detailstring or null
instancestring or null
HTTP 408
Field pathDescription
typestring or null
titlestring or null
statusinteger <int32> or null
detailstring or null
instancestring or null