Skip to main content
POST
Complete a milestone
Revenue is recognized on that date. The milestone date becomes this completion date. A milestone that is not complete recognizes nothing, including after its planned date. A date inside a locked period is refused.

Authorizations

Authorization
string
header
required

An access token from the DualEntry authorization server, sent as Authorization: Bearer <token>. The token acts as the user who signed in, with that user's roles and company access. Do not send an X-API-KEY header in the same request.

Headers

Idempotency-Key
string

Optional. A unique value (a UUID works well) identifying this operation. If the request is repeated with the same key, the original response is replayed instead of the operation running again, so a retry cannot create a duplicate record. Results are replayable for 48 hours. Reusing a key with a different request body returns 422.

Maximum string length: 255

Path Parameters

contract_id
integer
required
milestone_id
integer
required

Body

application/json
date
string<date>
required

The date revenue is recognized. This date replaces the planned date stored on the milestone.

Response

OK

Canonical milestone returned by the read endpoint.

created_at
string<date-time>
required

Date and time the record was created

updated_at
string<date-time>
required

Date and time the record was last updated

id
integer
required
contract_id
integer
required
obligation_id
integer
required
name
string
required
amount_mode
enum<string>
required
Available options:
FIXED,
PERCENT,
COMPUTED
amount
string
required
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,2}0*$
status
enum<string>
required
Available options:
DRAFT,
ACTIVE,
COMPLETED,
ARCHIVED
description
string | null
percentage
string | null
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,6}0*$
computed_quantity
string | null

Quantity you supply to calculate this milestone amount. Send it with computed_rate when amount_mode is COMPUTED. Leave it empty when the milestone does not use a computed amount.

Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,6}0*$
computed_rate
string | null
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d{0,10}0*$
date
string<date> | null
archived_reason
string | null
revenue_recognition_id
integer | null
subledger_line_id
integer | null
memo
string | null
require_sequential_completion
boolean
default:false
classifications
RecordClassificationsSchemaOut · object[]