Retrieve an invoice milestone

Operation ID: getInvoiceMilestone

Group: Accounting › Invoice Milestones

Open in the interactive reference

GET /accounting/invoice-milestones/{id}

Read-only: Reads and returns; changes nothing.

Retrieves an invoice milestone with the sales order product lines it bills and the share of its amount each line carries.

A milestone is 'open' until it is released for invoicing, 'released' while its invoice is planned on invoiceDate but not created yet, and 'invoiced' once the invoice exists. Released and invoiced milestones cannot be changed; unrelease a released one with POST accounting/invoice-milestones/:id/unrelease to change it again.

Parameters

Name In Type Required Description
Api-Version header string · v1 yes The API version this request targets, named by its public identifier. Required on every request; omitting it, or naming a version this company does not have, is answered with 400. This document describes version v1.
id path string yes The unique identifier of the invoice milestone you want to retrieve. Example: "4b8f2d61-0c3e-4f7a-9a15-6e2d8c90b7a4".

Response

200 Success

Under data (getInvoiceMilestoneOutput):

Field Type Required Description
id string yes The unique identifier for the invoice milestone. Example: "4b8f2d61-0c3e-4f7a-9a15-6e2d8c90b7a4".
salesOrderId string no The sales order whose product lines the milestone bills. Absent when the milestone bills no product line. Example: "0e6a7c15-93d2-4b48-8f61-2c5b9a3d7e10".
description string no What the milestone stands for, as it appears on the invoice line. Example: "Go-live".
orderSequence number no The milestone's position among the sales order's milestones. Example: 2.
percentage decimal no The share of the sales order the milestone bills, in percent. A number, not an amount. Example: "40".
projectedDate date no When the milestone is expected to be reached. Format YYYY-MM-DD. Example: "2026-12-01".
currency string no The currency of the milestone amounts, as a 3-letter ISO 4217 code. It governs amount and every allocatedAmount. Absent when the milestone bills no product line. Example: "USD".
amount decimal no The amount the milestone bills, in the milestone currency (see currency). Absent when the milestone bills no product line. Example: "4000.00".
status string yes Where the milestone is in invoicing. One of: "open" (Not released for invoicing. The milestone can be changed.), "released" (Released for invoicing on invoiceDate; the invoice is not created yet. The milestone can't be changed until it is unreleased.), "invoiced" (Invoiced. The milestone can't be changed or unreleased.). Example: "released".
invoiceDate date no The planned invoice date of a released milestone, or the invoice date of an invoiced one. Absent while the milestone is open. Format YYYY-MM-DD. Example: "2026-12-15".
invoiceId string no The invoice that billed the milestone. Present only when status is 'invoiced'.
invoiceNumber string no The number of the invoice that billed the milestone. Present only when status is 'invoiced'.
productLines array<object> yes The sales order product lines the milestone bills, each with the part of amount it carries. Example: [{"salesOrderProductLineId":"9d1f6b34-2e7a-4c58-b0a9-71c3e5f28d46","allocatedAmount":"4000.00"}].
productLines[].salesOrderProductLineId string yes The sales order product line.
productLines[].allocatedAmount decimal yes The part of the milestone amount billed on this line, in the milestone currency (see currency).
lastModifiedDate date-time yes The date and time the milestone last changed, in UTC. ISO 8601 UTC (YYYY-MM-DDTHH:mm:ss.sssZ). Example: "2026-11-16T09:30:00.000Z".
{
  "data": {
    "id": "4b8f2d61-0c3e-4f7a-9a15-6e2d8c90b7a4",
    "salesOrderId": "0e6a7c15-93d2-4b48-8f61-2c5b9a3d7e10",
    "description": "Go-live",
    "orderSequence": 2,
    "percentage": "40",
    "projectedDate": "2026-12-01",
    "currency": "USD",
    "amount": "4000.00",
    "status": "released",
    "invoiceDate": "2026-12-15",
    "invoiceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "invoiceNumber": "<invoiceNumber>",
    "productLines": [
      {
        "salesOrderProductLineId": "9d1f6b34-2e7a-4c58-b0a9-71c3e5f28d46",
        "allocatedAmount": "4000.00"
      }
    ],
    "lastModifiedDate": "2026-11-16T09:30:00.000Z"
  },
  "diagnostics": [
    {
      "code": "<code>",
      "message": "<message>",
      "severity": "error",
      "path": [
        "<path>"
      ],
      "details": "<details>"
    }
  ]
}

Errors

Code Status
NOT_FOUND 400

Statuses