Developers
Sign inGet API keys
API reference/Commerce

Invoices and estimates

InvoicesService writes estimates and invoices for customers and records what they pay.

A draft changes freely and posts nothing. Issuing an invoice fixes it and posts it to the ledger: Accounts receivable is debited with the total, and Sales and Sales tax are credited. Each payment debits the Cash Account it went into and credits Accounts receivable. Voiding posts reversing entries. Estimates never post; an accepted estimate becomes a draft invoice.

Customers see a document through its public link, where they can also accept or decline an estimate. Managers, admins and owners use the rest; voiding needs owner or admin.

holygrail.invoices.v1.InvoicesService13 methodsinvoices.read · invoices.write

ListInvoices#

invoices.readRead
POST/holygrail.invoices.v1.InvoicesService/ListInvoices

Request body

Optional filters.

customerIdstringcustomer_id
overdueOnlybooleanoverdue_only

Issued invoices past their due date with a balance.

pageSizeintegerpage_size

Newest first; pass the previous response's next_page_token.

pageTokenstringpage_token

Response

invoicesInvoice[]
nextPageTokenstringnext_page_token
Request
curl https://api.buziin.tech/holygrail.invoices.v1.InvoicesService/ListInvoices \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "kind": "INVOICE_KIND_ESTIMATE",
  "status": "INVOICE_STATUS_DRAFT",
  "pageSize": 50
}'
Response example
{
  "invoices": [
    {
      "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
      "kind": "INVOICE_KIND_ESTIMATE",
      "number": "",
      "status": "INVOICE_STATUS_DRAFT",
      "customerId": "",
      "customerName": "Amina Mushi",
      "customerEmail": "amina@example.co.tz",
      "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
      "issueDate": "2026-12-05",
      "dueDate": "2026-12-05",
      "note": "",
      "orderDiscount": 1,
      "amountPaid": "0",
      "balance": "150000",
      "publicUrl": "",
      "estimateId": "",
      "invoiceId": "",
      "issuedAt": "",
      "respondedAt": "",
      "voidedAt": "",
      "voidReason": "",
      "createdAt": ""
    }
  ],
  "nextPageToken": ""
}

GetInvoice#

invoices.readRead
POST/holygrail.invoices.v1.InvoicesService/GetInvoice

Request body

idstring

Response

invoiceInvoice
Request
curl https://api.buziin.tech/holygrail.invoices.v1.InvoicesService/GetInvoice \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'
Response example
{
  "invoice": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "kind": "INVOICE_KIND_ESTIMATE",
    "number": "",
    "status": "INVOICE_STATUS_DRAFT",
    "customerId": "",
    "customerName": "Amina Mushi",
    "customerEmail": "amina@example.co.tz",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "issueDate": "2026-12-05",
    "dueDate": "2026-12-05",
    "note": "",
    "orderDiscount": 1,
    "amountPaid": "0",
    "balance": "150000",
    "publicUrl": "",
    "estimateId": "",
    "invoiceId": "",
    "issuedAt": "",
    "respondedAt": "",
    "voidedAt": "",
    "voidReason": "",
    "createdAt": ""
  }
}

CreateInvoice#

invoices.writeWrite
POST/holygrail.invoices.v1.InvoicesService/CreateInvoice

Request body

idstring

Client-chosen UUID, so a retried request creates one document.

Response

invoiceInvoice
Request
curl https://api.buziin.tech/holygrail.invoices.v1.InvoicesService/CreateInvoice \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
  "kind": "INVOICE_KIND_ESTIMATE",
  "draft": {
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "issueDate": "2026-12-05",
    "dueDate": "2026-12-05",
    "lines": [
      {
        "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
        "quantity": 1,
        "unitPrice": "150000",
        "discount": 1,
        "taxRateIds": [
          ""
        ],
        "tax": "150000"
      }
    ],
    "orderDiscount": 1
  }
}'
Response example
{
  "invoice": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "kind": "INVOICE_KIND_ESTIMATE",
    "number": "",
    "status": "INVOICE_STATUS_DRAFT",
    "customerId": "",
    "customerName": "Amina Mushi",
    "customerEmail": "amina@example.co.tz",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "issueDate": "2026-12-05",
    "dueDate": "2026-12-05",
    "note": "",
    "orderDiscount": 1,
    "amountPaid": "0",
    "balance": "150000",
    "publicUrl": "",
    "estimateId": "",
    "invoiceId": "",
    "issuedAt": "",
    "respondedAt": "",
    "voidedAt": "",
    "voidReason": "",
    "createdAt": ""
  }
}

UpdateInvoice#

invoices.writeWrite
POST/holygrail.invoices.v1.InvoicesService/UpdateInvoice

UpdateInvoice replaces a draft's contents.

Request body

idstring

Response

invoiceInvoice
Request
curl https://api.buziin.tech/holygrail.invoices.v1.InvoicesService/UpdateInvoice \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
  "draft": {
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "issueDate": "2026-12-05",
    "dueDate": "2026-12-05",
    "lines": [
      {
        "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
        "quantity": 1,
        "unitPrice": "150000",
        "discount": 1,
        "taxRateIds": [
          ""
        ],
        "tax": "150000"
      }
    ],
    "orderDiscount": 1
  }
}'
Response example
{
  "invoice": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "kind": "INVOICE_KIND_ESTIMATE",
    "number": "",
    "status": "INVOICE_STATUS_DRAFT",
    "customerId": "",
    "customerName": "Amina Mushi",
    "customerEmail": "amina@example.co.tz",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "issueDate": "2026-12-05",
    "dueDate": "2026-12-05",
    "note": "",
    "orderDiscount": 1,
    "amountPaid": "0",
    "balance": "150000",
    "publicUrl": "",
    "estimateId": "",
    "invoiceId": "",
    "issuedAt": "",
    "respondedAt": "",
    "voidedAt": "",
    "voidReason": "",
    "createdAt": ""
  }
}

IssueInvoice#

invoices.writeWrite
POST/holygrail.invoices.v1.InvoicesService/IssueInvoice

IssueInvoice finalizes a draft: an invoice posts to the books, an estimate becomes ready for the customer's answer.

Request body

idstring

Response

invoiceInvoice
Request
curl https://api.buziin.tech/holygrail.invoices.v1.InvoicesService/IssueInvoice \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'
Response example
{
  "invoice": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "kind": "INVOICE_KIND_ESTIMATE",
    "number": "",
    "status": "INVOICE_STATUS_DRAFT",
    "customerId": "",
    "customerName": "Amina Mushi",
    "customerEmail": "amina@example.co.tz",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "issueDate": "2026-12-05",
    "dueDate": "2026-12-05",
    "note": "",
    "orderDiscount": 1,
    "amountPaid": "0",
    "balance": "150000",
    "publicUrl": "",
    "estimateId": "",
    "invoiceId": "",
    "issuedAt": "",
    "respondedAt": "",
    "voidedAt": "",
    "voidReason": "",
    "createdAt": ""
  }
}

SendInvoice#

invoices.writeWrite
POST/holygrail.invoices.v1.InvoicesService/SendInvoice

SendInvoice emails the public link, issuing a draft first.

Request body

idstring
emailstring

Defaults to the customer's email.

Response

invoiceInvoice
Request
curl https://api.buziin.tech/holygrail.invoices.v1.InvoicesService/SendInvoice \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
  "email": "amina@example.co.tz"
}'
Response example
{
  "invoice": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "kind": "INVOICE_KIND_ESTIMATE",
    "number": "",
    "status": "INVOICE_STATUS_DRAFT",
    "customerId": "",
    "customerName": "Amina Mushi",
    "customerEmail": "amina@example.co.tz",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "issueDate": "2026-12-05",
    "dueDate": "2026-12-05",
    "note": "",
    "orderDiscount": 1,
    "amountPaid": "0",
    "balance": "150000",
    "publicUrl": "",
    "estimateId": "",
    "invoiceId": "",
    "issuedAt": "",
    "respondedAt": "",
    "voidedAt": "",
    "voidReason": "",
    "createdAt": ""
  }
}

RecordPayment#

invoices.writeWrite
POST/holygrail.invoices.v1.InvoicesService/RecordPayment

Request body

idstring

Client-chosen UUID, so a retried request records one payment.

invoiceIdstringinvoice_id
cashAccountIdstringcash_account_id
amountint64 string
paidAtstringpaid_at

RFC 3339; defaults to now.

referencestring

Response

invoiceInvoice
Request
curl https://api.buziin.tech/holygrail.invoices.v1.InvoicesService/RecordPayment \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
  "amount": "150000"
}'
Response example
{
  "invoice": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "kind": "INVOICE_KIND_ESTIMATE",
    "number": "",
    "status": "INVOICE_STATUS_DRAFT",
    "customerId": "",
    "customerName": "Amina Mushi",
    "customerEmail": "amina@example.co.tz",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "issueDate": "2026-12-05",
    "dueDate": "2026-12-05",
    "note": "",
    "orderDiscount": 1,
    "amountPaid": "0",
    "balance": "150000",
    "publicUrl": "",
    "estimateId": "",
    "invoiceId": "",
    "issuedAt": "",
    "respondedAt": "",
    "voidedAt": "",
    "voidReason": "",
    "createdAt": ""
  }
}

VoidPayment#

invoices.writeWrite
POST/holygrail.invoices.v1.InvoicesService/VoidPayment

Request body

invoiceIdstringinvoice_id
paymentIdstringpayment_id

Response

invoiceInvoice
Request
curl https://api.buziin.tech/holygrail.invoices.v1.InvoicesService/VoidPayment \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "invoice": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "kind": "INVOICE_KIND_ESTIMATE",
    "number": "",
    "status": "INVOICE_STATUS_DRAFT",
    "customerId": "",
    "customerName": "Amina Mushi",
    "customerEmail": "amina@example.co.tz",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "issueDate": "2026-12-05",
    "dueDate": "2026-12-05",
    "note": "",
    "orderDiscount": 1,
    "amountPaid": "0",
    "balance": "150000",
    "publicUrl": "",
    "estimateId": "",
    "invoiceId": "",
    "issuedAt": "",
    "respondedAt": "",
    "voidedAt": "",
    "voidReason": "",
    "createdAt": ""
  }
}

VoidInvoice#

invoices.writeWrite
POST/holygrail.invoices.v1.InvoicesService/VoidInvoice

VoidInvoice cancels an estimate, or an invoice with no live payments.

Request body

idstring
reasonstring

Response

invoiceInvoice
Request
curl https://api.buziin.tech/holygrail.invoices.v1.InvoicesService/VoidInvoice \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'
Response example
{
  "invoice": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "kind": "INVOICE_KIND_ESTIMATE",
    "number": "",
    "status": "INVOICE_STATUS_DRAFT",
    "customerId": "",
    "customerName": "Amina Mushi",
    "customerEmail": "amina@example.co.tz",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "issueDate": "2026-12-05",
    "dueDate": "2026-12-05",
    "note": "",
    "orderDiscount": 1,
    "amountPaid": "0",
    "balance": "150000",
    "publicUrl": "",
    "estimateId": "",
    "invoiceId": "",
    "issuedAt": "",
    "respondedAt": "",
    "voidedAt": "",
    "voidReason": "",
    "createdAt": ""
  }
}

SetEstimateResponse#

invoices.writeWrite
POST/holygrail.invoices.v1.InvoicesService/SetEstimateResponse

SetEstimateResponse records the customer's answer given in person.

Request body

idstring
acceptedboolean

Response

invoiceInvoice
Request
curl https://api.buziin.tech/holygrail.invoices.v1.InvoicesService/SetEstimateResponse \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01"
}'
Response example
{
  "invoice": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "kind": "INVOICE_KIND_ESTIMATE",
    "number": "",
    "status": "INVOICE_STATUS_DRAFT",
    "customerId": "",
    "customerName": "Amina Mushi",
    "customerEmail": "amina@example.co.tz",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "issueDate": "2026-12-05",
    "dueDate": "2026-12-05",
    "note": "",
    "orderDiscount": 1,
    "amountPaid": "0",
    "balance": "150000",
    "publicUrl": "",
    "estimateId": "",
    "invoiceId": "",
    "issuedAt": "",
    "respondedAt": "",
    "voidedAt": "",
    "voidReason": "",
    "createdAt": ""
  }
}

ConvertEstimate#

invoices.writeWrite
POST/holygrail.invoices.v1.InvoicesService/ConvertEstimate

ConvertEstimate makes a draft invoice from an issued or accepted estimate.

Request body

invoiceIdstringinvoice_id

Client-chosen id for the new invoice.

estimateIdstringestimate_id

Response

invoiceInvoice
Request
curl https://api.buziin.tech/holygrail.invoices.v1.InvoicesService/ConvertEstimate \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "invoice": {
    "id": "4f1c2e9a-8b3d-4e57-9a10-2c6f7d8e9b01",
    "kind": "INVOICE_KIND_ESTIMATE",
    "number": "",
    "status": "INVOICE_STATUS_DRAFT",
    "customerId": "",
    "customerName": "Amina Mushi",
    "customerEmail": "amina@example.co.tz",
    "locationId": "0193a4f2-0b10-7f62-a4c9-6d1e2b3c4f70",
    "issueDate": "2026-12-05",
    "dueDate": "2026-12-05",
    "note": "",
    "orderDiscount": 1,
    "amountPaid": "0",
    "balance": "150000",
    "publicUrl": "",
    "estimateId": "",
    "invoiceId": "",
    "issuedAt": "",
    "respondedAt": "",
    "voidedAt": "",
    "voidReason": "",
    "createdAt": ""
  }
}

GetPublicInvoice#

invoices.readRead
POST/holygrail.invoices.v1.InvoicesService/GetPublicInvoice

Public: the customer's view through the link, no sign-in.

Request body

tokenstring

Response

Request
curl https://api.buziin.tech/holygrail.invoices.v1.InvoicesService/GetPublicInvoice \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "invoice": {
    "businessName": "Amina Mushi",
    "currencyCode": "TZS",
    "kind": "INVOICE_KIND_ESTIMATE",
    "number": "",
    "status": "INVOICE_STATUS_DRAFT",
    "customerName": "Amina Mushi",
    "issueDate": "2026-12-05",
    "dueDate": "2026-12-05",
    "note": "",
    "amountPaid": "0",
    "balance": "150000"
  }
}

RespondToEstimate#

invoices.writeWrite
POST/holygrail.invoices.v1.InvoicesService/RespondToEstimate

Request body

tokenstring
acceptedboolean

Response

Request
curl https://api.buziin.tech/holygrail.invoices.v1.InvoicesService/RespondToEstimate \
  -H "Authorization: Bearer $LUMORA_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
Response example
{
  "invoice": {
    "businessName": "Amina Mushi",
    "currencyCode": "TZS",
    "kind": "INVOICE_KIND_ESTIMATE",
    "number": "",
    "status": "INVOICE_STATUS_DRAFT",
    "customerName": "Amina Mushi",
    "issueDate": "2026-12-05",
    "dueDate": "2026-12-05",
    "note": "",
    "amountPaid": "0",
    "balance": "150000"
  }
}

Types

The messages and enums these methods use. Field names are lowerCamelCase in JSON; the snake_case names work too. Enum values are sent as their names.

ListInvoicesRequest

holygrail.invoices.v1.ListInvoicesRequest

Optional filters.

customerIdstringcustomer_id
overdueOnlybooleanoverdue_only

Issued invoices past their due date with a balance.

pageSizeintegerpage_size

Newest first; pass the previous response's next_page_token.

pageTokenstringpage_token

ListInvoicesResponse

holygrail.invoices.v1.ListInvoicesResponse

invoicesInvoice[]
nextPageTokenstringnext_page_token

GetInvoiceRequest

holygrail.invoices.v1.GetInvoiceRequest

idstring

GetInvoiceResponse

holygrail.invoices.v1.GetInvoiceResponse

invoiceInvoice

CreateInvoiceRequest

holygrail.invoices.v1.CreateInvoiceRequest

idstring

Client-chosen UUID, so a retried request creates one document.

CreateInvoiceResponse

holygrail.invoices.v1.CreateInvoiceResponse

invoiceInvoice

UpdateInvoiceRequest

holygrail.invoices.v1.UpdateInvoiceRequest

idstring

UpdateInvoiceResponse

holygrail.invoices.v1.UpdateInvoiceResponse

invoiceInvoice

IssueInvoiceRequest

holygrail.invoices.v1.IssueInvoiceRequest

idstring

IssueInvoiceResponse

holygrail.invoices.v1.IssueInvoiceResponse

invoiceInvoice

SendInvoiceRequest

holygrail.invoices.v1.SendInvoiceRequest

idstring
emailstring

Defaults to the customer's email.

SendInvoiceResponse

holygrail.invoices.v1.SendInvoiceResponse

invoiceInvoice

RecordPaymentRequest

holygrail.invoices.v1.RecordPaymentRequest

idstring

Client-chosen UUID, so a retried request records one payment.

invoiceIdstringinvoice_id
cashAccountIdstringcash_account_id
amountint64 string
paidAtstringpaid_at

RFC 3339; defaults to now.

referencestring

RecordPaymentResponse

holygrail.invoices.v1.RecordPaymentResponse

invoiceInvoice

VoidPaymentRequest

holygrail.invoices.v1.VoidPaymentRequest

invoiceIdstringinvoice_id
paymentIdstringpayment_id

VoidPaymentResponse

holygrail.invoices.v1.VoidPaymentResponse

invoiceInvoice

VoidInvoiceRequest

holygrail.invoices.v1.VoidInvoiceRequest

idstring
reasonstring

VoidInvoiceResponse

holygrail.invoices.v1.VoidInvoiceResponse

invoiceInvoice

SetEstimateResponseRequest

holygrail.invoices.v1.SetEstimateResponseRequest

idstring
acceptedboolean

SetEstimateResponseResponse

holygrail.invoices.v1.SetEstimateResponseResponse

invoiceInvoice

ConvertEstimateRequest

holygrail.invoices.v1.ConvertEstimateRequest

invoiceIdstringinvoice_id

Client-chosen id for the new invoice.

estimateIdstringestimate_id

ConvertEstimateResponse

holygrail.invoices.v1.ConvertEstimateResponse

invoiceInvoice

GetPublicInvoiceRequest

holygrail.invoices.v1.GetPublicInvoiceRequest

tokenstring

GetPublicInvoiceResponse

holygrail.invoices.v1.GetPublicInvoiceResponse

RespondToEstimateRequest

holygrail.invoices.v1.RespondToEstimateRequest

tokenstring
acceptedboolean

RespondToEstimateResponse

holygrail.invoices.v1.RespondToEstimateResponse

Invoice

holygrail.invoices.v1.Invoice

Amounts are integer minor units in the organization's currency.

idstring
numberstring

"INV-0001" or "EST-0001", assigned on creation.

customerIdstringcustomer_id
customerNamestringcustomer_name
customerEmailstringcustomer_email
locationIdstringlocation_id
issueDatestringissue_date

YYYY-MM-DD.

dueDatestringdue_date

Payment due date for an invoice, valid-until date for an estimate.

notestring
orderDiscountint64 stringorder_discount
totalsTotals
amountPaidint64 stringamount_paid
balanceint64 string
publicUrlstringpublic_url

The customer's link.

estimateIdstringestimate_id

For an invoice made from an estimate, and for the estimate, the invoice.

invoiceIdstringinvoice_id
issuedAtstringissued_at
respondedAtstringresponded_at
voidedAtstringvoided_at
voidReasonstringvoid_reason
createdAtstringcreated_at

InvoiceDraft

holygrail.invoices.v1.InvoiceDraft

What a draft contains; used to create and to update.

customerIdstringcustomer_id
locationIdstringlocation_id
issueDatestringissue_date
dueDatestringdue_date
notestring
orderDiscountint64 stringorder_discount

PublicInvoice

holygrail.invoices.v1.PublicInvoice

What the customer sees.

businessNamestringbusiness_name
currencyCodestringcurrency_code
numberstring
customerNamestringcustomer_name
issueDatestringissue_date
dueDatestringdue_date
notestring
totalsTotals
amountPaidint64 stringamount_paid
balanceint64 string

InvoiceLine

holygrail.invoices.v1.InvoiceLine

idstring
variantIdstringvariant_id

The catalog variant it was picked from, if any.

descriptionstring
quantityinteger
unitPriceint64 stringunit_price
discountint64 string

Discount on this line (all units).

taxRateIdsstring[]tax_rate_ids

Tax rates to apply. In responses, taxes holds the rates as they were.

grossint64 string

Computed: quantity × unit price, then less discounts, and the tax on it.

netint64 string
taxint64 string

Totals

holygrail.orders.v1.Totals

subtotalint64 string

Sum of (unit price + modifiers) × quantity.

discountint64 string

Line and order discounts.

taxint64 string

All tax, inclusive and exclusive.

inclusiveTaxint64 stringinclusive_tax

Tax already inside prices (part of subtotal).

totalint64 string

What the customer owes before tips: subtotal - discount + exclusive tax.

InvoicePayment

holygrail.invoices.v1.InvoicePayment

idstring
cashAccountIdstringcash_account_id
amountint64 string
paidAtstringpaid_at
referencestring
voidedboolean

LineTax

holygrail.orders.v1.LineTax

taxRateIdstringtax_rate_id
namestring
rateBpintegerrate_bp
inclusiveboolean

InvoiceKind enum

holygrail.invoices.v1.InvoiceKind

INVOICE_KIND_UNSPECIFIED
INVOICE_KIND_ESTIMATE
INVOICE_KIND_INVOICE

InvoiceStatus enum

holygrail.invoices.v1.InvoiceStatus

INVOICE_STATUS_UNSPECIFIED
INVOICE_STATUS_DRAFT
INVOICE_STATUS_ISSUED

Invoice: posted and waiting for payment. Estimate: waiting for an answer.

INVOICE_STATUS_ACCEPTED
INVOICE_STATUS_DECLINED
INVOICE_STATUS_PAID
INVOICE_STATUS_VOID

Base URL https://api.buziin.tech. Every method is POST with a JSON body; see Making requests.