Payment Invoice – Baack docs
Payment Invoice
Representation of a payment invoice
Endpoints
GET/n/v1/paymentinvoice/{urn}
Endpoint for managing payment invoices, both payable and receivable
Parameters
urn(path, required)- String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Payment Invoice
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/paymentinvoice/{urn}
Fields
| Field | Type | Description |
|---|---|---|
| owner | Company | Required on create. |
| remitter | Remitter | |
| identifiers | array of Payment Invoice Identifier | Ignored on update. |
| discount | string | |
| tax | string | |
| subTotal | string | |
| fullyPaidTimestamp | string (date-time) | |
| updatedTimestamp | string (date-time) | |
| url | string (uri) | |
| urn | string (uuid) | |
| lineItemTax | string | One of: |
| total | string | |
| paid | string | |
| recipient | Recipient | |
| issuedTimestamp | string (date-time) | |
| refunded | string | |
| lines | array of Payment Invoice Line | Ignored on update. |
| dueTimestamp | string (date-time) | |
| currencyCode | string | One of: |
| status | string | One of: |
Used by: Message Thread
Payment Invoice Identifier
Payment invoice identifier e.g. invoice ID
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | |
| domain | string | |
| token | string |
Used by: Payment Invoice
Payment Invoice Line
Payment invoice line item
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | |
| unitPrice | number (double) | |
| discountRate | number (double) | |
| quantity | number (double) | |
| price | string | |
| itemCode | string | Up to 256 characters. |
| discountPrice | string | |
| description | string | Up to 4096 characters. |
| tax | string | |
| taxability | string | One of: |
| lineNumber | integer (int32) | |
| taxName | string |
Used by: Payment Invoice
Recipient
The recipient representation is used to model a payment invoice recipient either as a company or identity.
Fields
Used by: Payment Invoice
Remitter
The remitter or payee is the company or identity which is making the payment in the context of a payment or invoice
Fields
Used by: Payment Invoice