Payment Invoice | Baack docs
Payment Invoice
Endpoints
CreatePOST/n/v1/paymentinvoice/
Endpoint for managing payment invoices, both payable and receivable
Baack allocates the URN and returns it in the response.
Request body: Payment Invoice
Responses
- 201 Created
- returns Payment Invoice
CREATE_SUCCESS - 400 Bad request
- returns Error
INVALID_REPRESENTATION
ReadGET/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}UpdatePUT/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.
Request body: Payment Invoice
Responses
- 202
- returns Payment Invoice
UPDATE_SUCCESS - 400 Bad request
- returns Error
REPRESENTATION_MISSING_REQUIRED_FIELD
DeleteDELETE/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
- 202
DELETE_SUCCESS
Webhook
POSTyour destination URL
Subject: PAYMENT_INVOICE
Webhook for payment / invoice update events like the payment status changes
The payment / invoice webhook allows listening to state changes in the payment invoice. This can be used to drive experiences like triggering an email notification for the remitter or updating the customer profile of the recipient.
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| owner | Company | Required on create. . |
| remitter | Remitter | |
| identifiers | array of Payment Invoice Identifier | Ignored on update. |
| discount | Money | |
| tax | Money | |
| remittances | array of Payment Invoice Remittance | Ignored on update. |
| subTotal | Money | |
| fullyPaidTimestamp | string (date-time) | |
| updatedTimestamp | string (date-time) | |
| url | string (uri) | |
| urn | string (uuid) | |
| lineItemTax | string | One of: |
| total | Money | |
| paid | Money | |
| recipient | Recipient | |
| issuedTimestamp | string (date-time) | |
| refunded | Money | |
| lines | array of Payment Invoice Line | Ignored on update. |
| dueTimestamp | string (date-time) | |
| currencyCode | string | One of: |
| status | string | One of: |
Used by: Deal, Message Thread, Payment Invoice Line, Payment Invoice Remittance, Search Item
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
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