Skip to main content
GET
/
invoices
/
{invoice_id}
/
versions
List all invoice versions
curl --request GET \
  --url https://api.salesbricks.com/api/v2/invoices/{invoice_id}/versions \
  --header 'X-SALESBRICKS-KEY: <api-key>'
{
  "versions": [
    {
      "invoice_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "invoice_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "invoice_number": "<string>",
      "amount": 123,
      "generated_pdf_url": "<string>",
      "created_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.salesbricks.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-SALESBRICKS-KEY
string
header
required

API key for authentication

Path Parameters

invoice_id
string
required
Pattern: ^([a-zA-Z\d\-]+)$

Response

Response serializer for listing invoice versions.

Returns an array of past invoice versions.

versions
object[]
required

Array of past invoice versions, ordered by created_at descending (newest first)