ReDesk
NewProposals drafted by ReDesk AI in under four minutesSee what's new
Case studySunfield EPC cut feasibility turnaround from 3.4 days to 6 hoursRead the story
Pricing
Sign inSchedule a demo
Documentation

Build on the ReDesk stack

Guides, references and webhooks for every product. Pick the platform you are integrating with — the whole library follows.

Platform
ReDesk AI › Milestones

Milestones

A milestone is a payment released against a verified step, with its receipt. Milestones are created from the project's payment plan.

The milestone object

FieldTypeDescription
idstringUnique id, prefixed mls_.
projectstringThe project it pays against.
stepstringThe SOP step that unlocks it.
amountintegerAmount in paise.
statusenumlocked, due, released or failed.
receipt_urlstringHosted receipt, once released.
milestone object
{
  "id": "mls_8Pz3",
  "object": "milestone",
  "project": "prj_71Ka",
  "step": "stp_4Rm2",
  "amount": 64350000,
  "currency": "inr",
  "status": "released",
  "receipt_url": "https://pay.redesk.ai/r/mls_8Pz3"
}

List milestones

GET/v1/milestones

A project's payment milestones in plan order.

ParameterDescription
project
query · stringrequired
The project.
limit
query · integer
Page size, 1–100. Defaults to 20.
starting_after
query · string
Cursor: the id of the last item on the previous page.
Request
curl https://api.redesk.ai/v1/milestones \
  -H "Authorization: Bearer sk_test_..."
Response
{
  "object": "list",
  "data": [
    {
      "id": "mls_8Pz3",
      "object": "milestone",
      "project": "prj_71Ka",
      "step": "stp_4Rm2",
      "amount": 64350000,
      "currency": "inr",
      "status": "released",
      "receipt_url": "https://pay.redesk.ai/r/mls_8Pz3"
    }
  ],
  "has_more": false
}

Release a milestone

POST/v1/milestones/{id}/release

Releases a due milestone. Returns 409 if its step isn't verified yet.

ParameterDescription
id
path · stringrequired
The milestone's id.
Request
curl -X POST https://api.redesk.ai/v1/milestones/mls_8Pz3/release \
  -H "Authorization: Bearer sk_test_..."
Response
{
  "id": "mls_8Pz3",
  "object": "milestone",
  "project": "prj_71Ka",
  "step": "stp_4Rm2",
  "amount": 64350000,
  "currency": "inr",
  "status": "released",
  "receipt_url": "https://pay.redesk.ai/r/mls_8Pz3"
}