Baack

Payment Invoice Line

Browse the docs

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 LineCREATE_SUCCESS
    400 Bad request
    returns ErrorREPRESENTATION_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 LineREAD_SUCCESS
    404 Not found
    returns ErrorNOT_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 LineUPDATE_SUCCESS
    400 Bad request
    returns ErrorINVALID_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

Payment Invoice Line fields
FieldTypeDescription
unitPricenumber (double)
discountRatenumber (double)
quantitynumber (double)
itemCodestring

Up to 256 characters.

discountPriceMoney
descriptionstring

Up to 4096 characters.

taxMoney
taxabilitystring

One of: TAXABLE, NON_TAXABLE, TAX_EXEMPT, PARTIALLY_TAXABLE, NOT_APPLICABLE

taxNamestring
urnstring (uuid)
priceMoney
paymentInvoicePayment Invoice

Required on create.

.

lineNumberinteger (int32)

Used by: Payment Invoice