Payment Invoice Line | Baack docs
Payment Invoice Line
Endpoints
CreatePOST/n/v1/invoiceline/
Payment invoice line item used to capture a row in an invoice or product pricing model. This can also be used to capture draft invoices for concepts like building a cart.
Baack allocates the URN and returns it in the response.
Request body: Payment Invoice Line
Responses
- 201 Created
- returns Payment Invoice Line
CREATE_SUCCESS - 400 Bad request
- returns Error
REPRESENTATION_MISSING_REQUIRED_FIELD
ReadGET/n/v1/invoiceline/{urn}
Payment invoice line item used to capture a row in an invoice or product pricing model. This can also be used to capture draft invoices for concepts like building a cart.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Payment Invoice Line
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/invoiceline/{urn}UpdatePUT/n/v1/invoiceline/{urn}
Payment invoice line item used to capture a row in an invoice or product pricing model. This can also be used to capture draft invoices for concepts like building a cart.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Payment Invoice Line
Responses
- 202
- returns Payment Invoice Line
UPDATE_SUCCESS - 400 Bad request
- returns Error
INVALID_REPRESENTATION
DeleteDELETE/n/v1/invoiceline/{urn}
Payment invoice line item used to capture a row in an invoice or product pricing model. This can also be used to capture draft invoices for concepts like building a cart.
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_LINE
Webhook for changes to payment invoice line items like creation, ordering or removal.
The payment invoice line item webhook allows a subscriber to listen to changes in the collection of payment invoice line items. This can be used for advanced integrations like checking the tax calculation or flagging stock inventory in demand.
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| unitPrice | number (double) | |
| discountRate | number (double) | |
| quantity | number (double) | |
| itemCode | string | Up to 256 characters. |
| discountPrice | Money | |
| description | string | Up to 4096 characters. |
| tax | Money | |
| taxability | string | One of: |
| taxName | string | |
| urn | string (uuid) | |
| price | Money | |
| paymentInvoice | Payment Invoice | Required on create. . |
| lineNumber | integer (int32) |
Used by: Payment Invoice