Post Purchase Invoice
Purchases an invoice
POST /v1/Invoices/{invoiceGuid}/Purchase
Use the Test or Production base URL configured under Overview.
Request parameters
| Field | Location | Mandatory | Description |
|---|---|---|---|
| invoiceGuid | path | Yes | string |
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 path | Mandatory | Description |
|---|---|---|
| purchaseFeeAmount | No | number <double> or null Purchase fee (will be calculated if omitted) |
| purchaseFeeCurrency | No | string or null Currency code of purchase fee |
| purchaseFeePercentage | No | number <double> or null Purchase fee in percent |
| invoiceItemId | No | integer <int32> or null Sets the invoice item id. |
| approved | No | boolean or null Sets if the purchase is approved. Default is true. |
| recourseDays | No | integer <int32> or null Purchase invoice with recourse rights |
| depositAmount | No | number <double> or null Optional amount kept as deposit until payment from customer |
| note | No | string or null Any additional note |
Response fields
HTTP 202
No response body is returned.
HTTP 400
| Field path | Description |
|---|---|
| type | string or null |
| title | string or null |
| status | integer <int32> or null |
| detail | string or null |
| instance | string or null |
HTTP 401
| Field path | Description |
|---|---|
| type | string or null |
| title | string or null |
| status | integer <int32> or null |
| detail | string or null |
| instance | string or null |
HTTP 403
| Field path | Description |
|---|---|
| type | string or null |
| title | string or null |
| status | integer <int32> or null |
| detail | string or null |
| instance | string or null |
HTTP 404
| Field path | Description |
|---|---|
| type | string or null |
| title | string or null |
| status | integer <int32> or null |
| detail | string or null |
| instance | string or null |
HTTP 408
| Field path | Description |
|---|---|
| type | string or null |
| title | string or null |
| status | integer <int32> or null |
| detail | string or null |
| instance | string or null |
