Post Apply Credit Invoice
Applies a credit invoice
POST /v1/Invoices/{invoiceGuid}/ApplyCreditInvoice
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 |
|---|---|---|
| creditInvoiceGuid | No | string or null Credit invoice guid |
| deductionOrder | No | string or null Deduction order |
| placements | No | array of object or null List of invoices that the credit invoice should be placed against |
| placements[].invoiceGuid | No | string or null Guid referring to an invoice |
| placements[].amount | Yes | number <double> Amount (in credit invoice's currency) that should be placed on the invoice the guid is referring to |
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 |
