Skip to main content

List Expected Vendor Deposit Milestones

GET 

/api/purchase-orders/:purchase_order/expected-vendor-deposit-milestones

List the expected payment milestones for a purchase order, derived from its payment-term deposit schedule.

Required scope: purchase-orders:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Returns one row per schedule line. Per-shipment lines fan out into one row per inbound shipment (key line-{n}-shipment-{id}), plus a line-{n}-remainder row for PO value not yet assigned to a shipment. If the payment term has no schedule, a single synthesized Final Invoice Balance milestone (key synthesized-final-balance) covers the un-deposited remainder.

Each milestone's status is one of:

  • expected — planned but the trigger event has not happened yet
  • ready_to_create — the trigger has been reached; the milestone can be turned into a vendor deposit
  • created — a vendor deposit is already linked (linked_vendor_deposit_id)
  • out_of_sync — the linked deposit no longer matches the schedule (amount, due date, trigger, or shipment changed); see status_reasons

Use the key value with Create Vendor Deposit from Milestone to materialize a ready_to_create milestone.

Read-only. Requires the purchase-orders:read token scope.

Request

Responses

OK

Response Headers
    Content-Type