Skip to content
ndStill is in development. These docs describe the v2 API as designed; the SDKs and the hosted MCP server are previews and not generally available.
Docs

Disputes API

Cases about a payment, with evidence collected automatically and the right remedy per rail.

7 endpointsGenerated from the typed registry

Base URL https://api.ndstill.com/v2. Send Authorization: Bearer with a key, Ndstill-Version: 2026-11-01, and an Idempotency-Key on every POST. Conventions, scopes and errors are in the API overview and Errors and decline reasons. Examples come from the mock backend; the shapes are the TypeScript types in packages/api.

Create a dispute#

POST/v2/disputes
Request body DisputeCreate
  • intent_idIdrequired
  • reasonstring enumrequired
    "not_as_mandated""wrong_item""not_received""duplicate""fraud""other"
  • reason_textstringrequired
Response Dispute
  • idId
  • object"dispute"
  • org_idId
  • created_atTimestamp
  • updated_atTimestampoptional
  • test_modebooleanoptional

    True for test-mode objects (simulations, sandbox).

  • intent_idId
  • attempt_idId | null
  • agentRef

    Small reference used for denormalized names in lists (no N+1 lookups in tables).

    Ref: 2 fields
    • idId
    • namestring
  • counterpartyRef

    Small reference used for denormalized names in lists (no N+1 lookups in tables).

    Ref: 2 fields
    • idId
    • namestring
  • amountMoney

    An amount: integer minor units + asset.

    Money: 2 fields
    • amountnumber
    • assetAssetCode
      "USD""USDC""EUR""GBP"
  • railRail
    "card""network_token""checkout_token""stablecoin""bank""ai""cloud"
  • opened_byActor

    Who did something.

    One of 4 shapes
    • kind"user"
    • idId
    • namestring
    • kind"agent"
    • idId
    • namestring
    • kind"system"
    • idIdoptional
    • namestring
    • kind"api_key"
    • idId
    • namestring
  • reasonstring enum
    "not_as_mandated""wrong_item""not_received""duplicate""fraud""other"
  • reason_textstring
  • statusDisputeStatus
    "open""submitted""evidence""won""lost""closed"
  • remedy_railstring enum
    null"card_chargeback""spt_refund""seller_refund""x402_refund""escrow"
  • remedy_refstring | null
  • deadlinesobject
    2 fields
    • respond_byTimestamp | null
    • evidence_dueTimestamp | null
  • evidence_pack_idId | null
  • messagesDisputeMessage[]
    DisputeMessage: 6 fields
    • idId
    • fromActor

      Who did something.

      One of 4 shapes
      • kind"user"
      • idId
      • namestring
      • kind"agent"
      • idId
      • namestring
      • kind"system"
      • idIdoptional
      • namestring
      • kind"api_key"
      • idId
      • namestring
    • atTimestamp
    • bodystring
    • channelstring enumoptional

      "seller": visible to the seller through Accept. "internal": your team only. Missing = internal.

      "seller""internal"
    • from_sellerbooleanoptional

      True when the seller wrote it.

  • outcomestring | null
  • seller_on_acceptboolean

    The seller uses ndStill Accept: messages can go to them here, and they can refund directly.

  • network_reason_codestring | null

    Card network reason code for chargebacks ("13.3 Not as described"); null on other rails.

  • resolutionstring enum
    null"won""lost""refunded_by_seller""withdrawn"
  • seller_offerobject | null

    A refund the seller offered through Accept, waiting for you to accept it.

    3 fields
    • amountMoney

      An amount: integer minor units + asset.

      Money: 2 fields
      • amountnumber
      • assetAssetCode
        "USD""USDC""EUR""GBP"
    • atTimestamp
    • notestring
  • timelineDisputeEvent[]
    DisputeEvent: 6 fields
    • idId
    • atTimestamp
    • kindDisputeEventKind
      "submitted""evidence""opened""message""seller_response""outcome"
    • titlestring
    • detailstring | null
    • actorobject | object | object | object | null
      One of 4 shapes
      • kind"user"
      • idId
      • namestring
      • kind"agent"
      • idId
      • namestring
      • kind"system"
      • idIdoptional
      • namestring
      • kind"api_key"
      • idId
      • namestring
Errors
  • 400invalid_request

    A field is missing or invalid; fields names each one.

  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 409conflict

    The object changed or already exists, or the Idempotency-Key was reused with a different body.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X POST "https://api.ndstill.com/v2/disputes" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "intent_id": "pi_01M82XPRNF89TFZB3MJVVT4NCF",
    "reason": "not_as_mandated",
    "reason_text": "example"
  }'
Response 409
{
  "object": "error",
  "type": "conflict",
  "code": "conflict",
  "message": "A held payment can't be disputed.",
  "request_id": "req_38defede36279cfb9b42"
}

The mock answered this sample with an error; its message says why. Adjust the request in Try it below.

Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

List disputes#

GET/v2/disputes
Query parameters all optional
  • statusstring enum
    "open""submitted""evidence""won""lost""closed"
  • agent_idId
  • cursorstring
  • limitnumber

    1–200, default 50.

  • qstring

    Free-text search over names, ids and descriptors.

  • sortstring

    Sort field, prefix "-" for descending ("-created_at" is the default).

  • created_gteTimestamp

    created_at >= (ISO).

  • created_lteTimestamp

    created_at <= (ISO).

Response list of Dispute

Returns a list envelope: object "list", data[], has_more, next_cursor (pass it back as cursor) and total when cheap to count. Items:

The same Dispute object as Create a dispute.

Errors
  • 400invalid_request

    A query parameter is invalid.

  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X GET "https://api.ndstill.com/v2/disputes?limit=2" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "object": "list",
  "data": [
    {
      "id": "dsp_01M7Z2P9A7ARCBXGDYER2MEDQG",
      "object": "dispute",
      "org_id": "org_A99F918124609C9DAAACB209D8",
      "created_at": "2026-11-21T12:53:22.887Z",
      "intent_id": "pi_01M7WG9JA7B8FV7WMVYVAFXVBK",
      "attempt_id": "pa_01M7WG9JGFM0NZFA7JD0471QHE",
      "agent": {
        "id": "agt_01M1AA0QRET9XZDEKY0GD5DSZ6",
        "name": "Office supplies"
      },
      "counterparty": {
        "id": "cpy_01JZVEZAME97KNRYHQSK8ZTK22",
        "name": "Amazon Business"
      },
      "amount": {
        "amount": 21008,
        "asset": "USD"
      },
      "rail": "checkout_token",
      "opened_by": {
        "kind": "user",
        "id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
        "name": "Elena Petrova"
      },
      "reason": "wrong_item",
      "reason_text": "The agent bought the 24-pack of toner; the mandate asked for the 12-pack.",
      "status": "open",
      "remedy_rail": "seller_refund",
      "remedy_ref": null,
      "deadlines": {
        "respond_by": "2026-11-29T00:43:11.374Z",
        "evidence_due": "2026-11-27T00:43:11.374Z"
      },
      "evidence_pack_id": null,
      "messages": [
        {
          "id": "ev_01M7Z38K87M7GTMZJ8DDH47A8D",
          "from": {
            "kind": "user",
            "id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
            "name": "Elena Petrova"
          },
          "at": "2026-11-21T13:03:22.887Z",
          "body": "The agent bought the 24-pack of toner; the mandate asked for the 12-pack.",
          "channel": "internal"
        },
        {
          "id": "ev_01M7Z3TX67A1Y3GTJPDDH8BHCR",
          "from": {
            "kind": "user",
            "id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
            "name": "Elena Petrova"
          },
          "at": "2026-11-21T13:13:22.887Z",
          "body": "Hi, our purchasing agent bought the wrong item on this order. Can you take it back or refund it?",
          "channel": "seller"
        },
        {
          "id": "ev_01M7ZCZW67TFW5D4WVVCPCCYG8",
          "from": {
            "kind": "system",
            "name": "Amazon Business (via Accept)"
          },
          "at": "2026-11-21T15:53:22.887Z",
          "body": "Thanks for flagging it. We can refund the full $210.08 once the item is back with us. Accept the refund here and we'll send the return label.",
          "channel": "seller",
          "from_seller": true
        }
      ],
      "outcome": null,
      "seller_on_accept": true,
      "network_reason_code": null,
      "resolution": null,
      "seller_offer": {
        "amount": {
          "amount": 21008,
          "asset": "USD"
        },
        "at": "2026-11-21T15:53:22.887Z",
        "note": "Full refund once the item is returned."
      },
      "timeline": [
        {
          "id": "dse_74f002cdfd4fb055537d41",
          "at": "2026-11-21T12:53:22.887Z",
          "kind": "opened",
          "title": "Dispute opened: wrong item",
          "detail": "The agent bought the 24-pack of toner; the mandate asked for the 12-pack.",
          "actor": {
            "kind": "user",
            "id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
            "name": "Elena Petrova"
          }
        },
        {
          "id": "dse_f522def3578852fd6aa53f",
          "at": "2026-11-21T15:53:22.887Z",
          "kind": "seller_response",
          "title": "Amazon Business replied",
          "detail": "Thanks for flagging it. We can refund the full $210.08 once the item is back with us. Accept the refund here and we'll send the return label.",
          "actor": {
            "kind": "system",
            "name": "Amazon Business (via Accept)"
          }
        }
      ]
    },
    {
      "id": "dsp_01M74QJYDXC9S7AZFYFGE0XYEQ",
      "object": "dispute",
      "org_id": "org_A99F918124609C9DAAACB209D8",
      "created_at": "2026-11-11T07:19:03.869Z",
      "intent_id": "pi_01M6X0CSDXX4HP1GGTGSHYBH64",
      "attempt_id": "pa_01M6X0CSM5748RDABETPR8P912",
      "agent": {
        "id": "agt_01KTGQE08EZ4VT9QRAZH131H64",
        "name": "Hotel booker"
      },
      "counterparty": {
        "id": "cpy_01JZVEZAMECS25QEKATPHGWXVP",
        "name": "Hilton"
      },
      "amount": {
        "amount": 25200,
        "asset": "USD"
      },
      "rail": "card",
      "opened_by": {
        "kind": "user",
        "id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
        "name": "Elena Petrova"
      },
      "reason": "not_as_mandated",
      "reason_text": "The mandate said Friday; the agent booked Saturday.",
      "status": "open",
      "remedy_rail": "card_chargeback",
      "remedy_ref": null,
      "deadlines": {
        "respond_by": "2026-11-28T00:43:11.374Z",
        "evidence_due": "2026-11-26T00:43:11.374Z"
      },
      "evidence_pack_id": "pack_01M76KASMEKFNY4A5X10HN23X3",
      "messages": [
        {
          "id": "ev_01M74V0T1X51895GXQXVW9V12P",
          "from": {
            "kind": "user",
            "id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
            "name": "Elena Petrova"
          },
          "at": "2026-11-11T08:19:03.869Z",
          "body": "The mandate said Friday; the agent booked Saturday.",
          "channel": "internal"
        }
      ],
      "outcome": null,
      "seller_on_accept": false,
      "network_reason_code": "13.3 Not as described",
      "resolution": null,
      "seller_offer": null,
      "timeline": [
        {
          "id": "dse_8c447f2e544cc1752f3a96",
          "at": "2026-11-11T07:19:03.869Z",
          "kind": "opened",
          "title": "Dispute opened: not what the mandate said",
          "detail": "The mandate said Friday; the agent booked Saturday.",
          "actor": {
            "kind": "user",
            "id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
            "name": "Elena Petrova"
          }
        },
        {
          "id": "dse_885d179e15167fe18d42b7",
          "at": "2026-11-12T00:43:11.374Z",
          "kind": "evidence",
          "title": "Evidence pack built",
          "detail": "1,780 signed events: mandate, decision trace, approval signature and receipts",
          "actor": {
            "kind": "user",
            "id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
            "name": "Elena Petrova"
          }
        }
      ]
    }
  ],
  "has_more": true,
  "next_cursor": "Mg==",
  "total": 4
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Retrieve a dispute#

GET/v2/disputes/{id}
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Response Dispute

The same Dispute object as Create a dispute.

Errors
  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 404not_found

    No object with that id in this org.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X GET "https://api.ndstill.com/v2/disputes/dsp_01M7Z2P9A7ARCBXGDYER2MEDQG" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "id": "dsp_01M7Z2P9A7ARCBXGDYER2MEDQG",
  "object": "dispute",
  "org_id": "org_A99F918124609C9DAAACB209D8",
  "created_at": "2026-11-21T12:53:22.887Z",
  "intent_id": "pi_01M7WG9JA7B8FV7WMVYVAFXVBK",
  "attempt_id": "pa_01M7WG9JGFM0NZFA7JD0471QHE",
  "agent": {
    "id": "agt_01M1AA0QRET9XZDEKY0GD5DSZ6",
    "name": "Office supplies"
  },
  "counterparty": {
    "id": "cpy_01JZVEZAME97KNRYHQSK8ZTK22",
    "name": "Amazon Business"
  },
  "amount": {
    "amount": 21008,
    "asset": "USD"
  },
  "rail": "checkout_token",
  "opened_by": {
    "kind": "user",
    "id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
    "name": "Elena Petrova"
  },
  "reason": "wrong_item",
  "reason_text": "The agent bought the 24-pack of toner; the mandate asked for the 12-pack.",
  "status": "open",
  "remedy_rail": "seller_refund",
  "remedy_ref": null,
  "deadlines": {
    "respond_by": "2026-11-29T00:43:11.374Z",
    "evidence_due": "2026-11-27T00:43:11.374Z"
  },
  "evidence_pack_id": null,
  "messages": [
    {
      "id": "ev_01M7Z38K87M7GTMZJ8DDH47A8D",
      "from": {
        "kind": "user",
        "id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
        "name": "Elena Petrova"
      },
      "at": "2026-11-21T13:03:22.887Z",
      "body": "The agent bought the 24-pack of toner; the mandate asked for the 12-pack.",
      "channel": "internal"
    },
    {
      "id": "ev_01M7Z3TX67A1Y3GTJPDDH8BHCR",
      "from": {
        "kind": "user",
        "id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
        "name": "Elena Petrova"
      },
      "at": "2026-11-21T13:13:22.887Z",
      "body": "Hi, our purchasing agent bought the wrong item on this order. Can you take it back or refund it?",
      "channel": "seller"
    },
    {
      "id": "ev_01M7ZCZW67TFW5D4WVVCPCCYG8",
      "from": {
        "kind": "system",
        "name": "Amazon Business (via Accept)"
      },
      "at": "2026-11-21T15:53:22.887Z",
      "body": "Thanks for flagging it. We can refund the full $210.08 once the item is back with us. Accept the refund here and we'll send the return label.",
      "channel": "seller",
      "from_seller": true
    }
  ],
  "outcome": null,
  "seller_on_accept": true,
  "network_reason_code": null,
  "resolution": null,
  "seller_offer": {
    "amount": {
      "amount": 21008,
      "asset": "USD"
    },
    "at": "2026-11-21T15:53:22.887Z",
    "note": "Full refund once the item is returned."
  },
  "timeline": [
    {
      "id": "dse_74f002cdfd4fb055537d41",
      "at": "2026-11-21T12:53:22.887Z",
      "kind": "opened",
      "title": "Dispute opened: wrong item",
      "detail": "The agent bought the 24-pack of toner; the mandate asked for the 12-pack.",
      "actor": {
        "kind": "user",
        "id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
        "name": "Elena Petrova"
      }
    },
    {
      "id": "dse_f522def3578852fd6aa53f",
      "at": "2026-11-21T15:53:22.887Z",
      "kind": "seller_response",
      "title": "Amazon Business replied",
      "detail": "Thanks for flagging it. We can refund the full $210.08 once the item is back with us. Accept the refund here and we'll send the return label.",
      "actor": {
        "kind": "system",
        "name": "Amazon Business (via Accept)"
      }
    }
  ]
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Message the other party#

POST/v2/disputes/{id}/messages
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Request body JSON
  • bodystringrequired
Response Dispute

The same Dispute object as Create a dispute.

Errors
  • 400invalid_request

    A field is missing or invalid; fields names each one.

  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 404not_found

    No object with that id in this org.

  • 409conflict

    The object changed or already exists, or the Idempotency-Key was reused with a different body.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X POST "https://api.ndstill.com/v2/disputes/dsp_01M74QJYDXC9S7AZFYFGE0XYEQ/messages" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "body": "Checking the API from the docs"
  }'
Response 200
{
  "id": "dsp_01M74QJYDXC9S7AZFYFGE0XYEQ",
  "object": "dispute",
  "org_id": "org_A99F918124609C9DAAACB209D8",
  "created_at": "2026-11-11T07:19:03.869Z",
  "intent_id": "pi_01M6X0CSDXX4HP1GGTGSHYBH64",
  "attempt_id": "pa_01M6X0CSM5748RDABETPR8P912",
  "agent": {
    "id": "agt_01KTGQE08EZ4VT9QRAZH131H64",
    "name": "Hotel booker"
  },
  "counterparty": {
    "id": "cpy_01JZVEZAMECS25QEKATPHGWXVP",
    "name": "Hilton"
  },
  "amount": {
    "amount": 25200,
    "asset": "USD"
  },
  "rail": "card",
  "opened_by": {
    "kind": "user",
    "id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
    "name": "Elena Petrova"
  },
  "reason": "not_as_mandated",
  "reason_text": "The mandate said Friday; the agent booked Saturday.",
  "status": "open",
  "remedy_rail": "card_chargeback",
  "remedy_ref": null,
  "deadlines": {
    "respond_by": "2026-11-28T00:43:11.374Z",
    "evidence_due": "2026-11-26T00:43:11.374Z"
  },
  "evidence_pack_id": "pack_01M76KASMEKFNY4A5X10HN23X3",
  "messages": [
    {
      "id": "ev_01M74V0T1X51895GXQXVW9V12P",
      "from": {
        "kind": "user",
        "id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
        "name": "Elena Petrova"
      },
      "at": "2026-11-11T08:19:03.869Z",
      "body": "The mandate said Friday; the agent booked Saturday.",
      "channel": "internal"
    },
    {
      "id": "ev_01M82XPRTAEP4Z99RR4HX00YGN",
      "from": {
        "kind": "user",
        "id": "usr_01K7WYQ6MEYNYVHTQCVYZCTCDX",
        "name": "Dana Whitfield"
      },
      "at": "2026-11-23T00:43:13.610Z",
      "body": "Checking the API from the docs",
      "channel": "internal"
    }
  ],
  "outcome": null,
  "seller_on_accept": false,
  "network_reason_code": "13.3 Not as described",
  "resolution": null,
  "seller_offer": null,
  "timeline": [
    {
      "id": "dse_8c447f2e544cc1752f3a96",
      "at": "2026-11-11T07:19:03.869Z",
      "kind": "opened",
      "title": "Dispute opened: not what the mandate said",
      "detail": "The mandate said Friday; the agent booked Saturday.",
      "actor": {
        "kind": "user",
        "id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
        "name": "Elena Petrova"
      }
    },
    {
      "id": "dse_885d179e15167fe18d42b7",
      "at": "2026-11-12T00:43:11.374Z",
      "kind": "evidence",
      "title": "Evidence pack built",
      "detail": "1,780 signed events: mandate, decision trace, approval signature and receipts",
      "actor": {
        "kind": "user",
        "id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
        "name": "Elena Petrova"
      }
    }
  ],
  "updated_at": "2026-11-23T00:43:13.610Z"
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Add an internal note#

POST/v2/disputes/{id}/notes
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Request body JSON
  • bodystringrequired
Response Dispute

The same Dispute object as Create a dispute.

Errors
  • 400invalid_request

    A field is missing or invalid; fields names each one.

  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 404not_found

    No object with that id in this org.

  • 409conflict

    The object changed or already exists, or the Idempotency-Key was reused with a different body.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X POST "https://api.ndstill.com/v2/disputes/dsp_01M74QJYDXC9S7AZFYFGE0XYEQ/notes" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "body": "Checking the API from the docs"
  }'
Response 200
{
  "id": "dsp_01M74QJYDXC9S7AZFYFGE0XYEQ",
  "object": "dispute",
  "org_id": "org_A99F918124609C9DAAACB209D8",
  "created_at": "2026-11-11T07:19:03.869Z",
  "intent_id": "pi_01M6X0CSDXX4HP1GGTGSHYBH64",
  "attempt_id": "pa_01M6X0CSM5748RDABETPR8P912",
  "agent": {
    "id": "agt_01KTGQE08EZ4VT9QRAZH131H64",
    "name": "Hotel booker"
  },
  "counterparty": {
    "id": "cpy_01JZVEZAMECS25QEKATPHGWXVP",
    "name": "Hilton"
  },
  "amount": {
    "amount": 25200,
    "asset": "USD"
  },
  "rail": "card",
  "opened_by": {
    "kind": "user",
    "id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
    "name": "Elena Petrova"
  },
  "reason": "not_as_mandated",
  "reason_text": "The mandate said Friday; the agent booked Saturday.",
  "status": "open",
  "remedy_rail": "card_chargeback",
  "remedy_ref": null,
  "deadlines": {
    "respond_by": "2026-11-28T00:43:11.374Z",
    "evidence_due": "2026-11-26T00:43:11.374Z"
  },
  "evidence_pack_id": "pack_01M76KASMEKFNY4A5X10HN23X3",
  "messages": [
    {
      "id": "ev_01M74V0T1X51895GXQXVW9V12P",
      "from": {
        "kind": "user",
        "id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
        "name": "Elena Petrova"
      },
      "at": "2026-11-11T08:19:03.869Z",
      "body": "The mandate said Friday; the agent booked Saturday.",
      "channel": "internal"
    },
    {
      "id": "ev_01M82XPRTAEP4Z99RR4HX00YGN",
      "from": {
        "kind": "user",
        "id": "usr_01K7WYQ6MEYNYVHTQCVYZCTCDX",
        "name": "Dana Whitfield"
      },
      "at": "2026-11-23T00:43:13.610Z",
      "body": "Checking the API from the docs",
      "channel": "internal"
    },
    {
      "id": "ev_01M82XPRTB2KFDW8Q5JYD6ADXP",
      "from": {
        "kind": "user",
        "id": "usr_01K7WYQ6MEYNYVHTQCVYZCTCDX",
        "name": "Dana Whitfield"
      },
      "at": "2026-11-23T00:43:13.611Z",
      "body": "Checking the API from the docs",
      "channel": "internal"
    }
  ],
  "outcome": null,
  "seller_on_accept": false,
  "network_reason_code": "13.3 Not as described",
  "resolution": null,
  "seller_offer": null,
  "timeline": [
    {
      "id": "dse_8c447f2e544cc1752f3a96",
      "at": "2026-11-11T07:19:03.869Z",
      "kind": "opened",
      "title": "Dispute opened: not what the mandate said",
      "detail": "The mandate said Friday; the agent booked Saturday.",
      "actor": {
        "kind": "user",
        "id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
        "name": "Elena Petrova"
      }
    },
    {
      "id": "dse_885d179e15167fe18d42b7",
      "at": "2026-11-12T00:43:11.374Z",
      "kind": "evidence",
      "title": "Evidence pack built",
      "detail": "1,780 signed events: mandate, decision trace, approval signature and receipts",
      "actor": {
        "kind": "user",
        "id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
        "name": "Elena Petrova"
      }
    }
  ],
  "updated_at": "2026-11-23T00:43:13.611Z"
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Resolve a dispute#

POST/v2/disputes/{id}/resolve
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Request body DisputeResolveBody
  • resolutionstring enumrequired

    accept_refund: take the seller's refund and close the case. withdraw: drop the case.

    "accept_refund""withdraw"
  • notestring
Response Dispute

The same Dispute object as Create a dispute.

Errors
  • 400invalid_request

    A field is missing or invalid; fields names each one.

  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 404not_found

    No object with that id in this org.

  • 409conflict

    The object changed or already exists, or the Idempotency-Key was reused with a different body.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X POST "https://api.ndstill.com/v2/disputes/dsp_01M74QJYDXC9S7AZFYFGE0XYEQ/resolve" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "resolution": "accept_refund"
  }'
Response 409
{
  "object": "error",
  "type": "conflict",
  "code": "no_offer",
  "message": "The seller hasn't offered a refund on this case.",
  "request_id": "req_e19d32484bebee1f9214"
}

The mock answered this sample with an error; its message says why. Adjust the request in Try it below.

Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Submit a dispute#

POST/v2/disputes/{id}/submit
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Response Dispute

The same Dispute object as Create a dispute.

Errors
  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 404not_found

    No object with that id in this org.

  • 409conflict

    The object changed or already exists, or the Idempotency-Key was reused with a different body.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X POST "https://api.ndstill.com/v2/disputes/dsp_01M7Z2P9A7ARCBXGDYER2MEDQG/submit" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01" \
  -H "Idempotency-Key: $(uuidgen)"
Response 200
{
  "id": "dsp_01M7Z2P9A7ARCBXGDYER2MEDQG",
  "object": "dispute",
  "org_id": "org_A99F918124609C9DAAACB209D8",
  "created_at": "2026-11-21T12:53:22.887Z",
  "intent_id": "pi_01M7WG9JA7B8FV7WMVYVAFXVBK",
  "attempt_id": "pa_01M7WG9JGFM0NZFA7JD0471QHE",
  "agent": {
    "id": "agt_01M1AA0QRET9XZDEKY0GD5DSZ6",
    "name": "Office supplies"
  },
  "counterparty": {
    "id": "cpy_01JZVEZAME97KNRYHQSK8ZTK22",
    "name": "Amazon Business"
  },
  "amount": {
    "amount": 21008,
    "asset": "USD"
  },
  "rail": "checkout_token",
  "opened_by": {
    "kind": "user",
    "id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
    "name": "Elena Petrova"
  },
  "reason": "wrong_item",
  "reason_text": "The agent bought the 24-pack of toner; the mandate asked for the 12-pack.",
  "status": "submitted",
  "remedy_rail": "seller_refund",
  "remedy_ref": "rr_71ee5de8e87d4a",
  "deadlines": {
    "respond_by": null,
    "evidence_due": null
  },
  "evidence_pack_id": "pack_01M82XPRT87SFK1B4CKGZ74QPD",
  "messages": [
    {
      "id": "ev_01M7Z38K87M7GTMZJ8DDH47A8D",
      "from": {
        "kind": "user",
        "id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
        "name": "Elena Petrova"
      },
      "at": "2026-11-21T13:03:22.887Z",
      "body": "The agent bought the 24-pack of toner; the mandate asked for the 12-pack.",
      "channel": "internal"
    },
    {
      "id": "ev_01M7Z3TX67A1Y3GTJPDDH8BHCR",
      "from": {
        "kind": "user",
        "id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
        "name": "Elena Petrova"
      },
      "at": "2026-11-21T13:13:22.887Z",
      "body": "Hi, our purchasing agent bought the wrong item on this order. Can you take it back or refund it?",
      "channel": "seller"
    },
    {
      "id": "ev_01M7ZCZW67TFW5D4WVVCPCCYG8",
      "from": {
        "kind": "system",
        "name": "Amazon Business (via Accept)"
      },
      "at": "2026-11-21T15:53:22.887Z",
      "body": "Thanks for flagging it. We can refund the full $210.08 once the item is back with us. Accept the refund here and we'll send the return label.",
      "channel": "seller",
      "from_seller": true
    }
  ],
  "outcome": null,
  "seller_on_accept": true,
  "network_reason_code": null,
  "resolution": null,
  "seller_offer": {
    "amount": {
      "amount": 21008,
      "asset": "USD"
    },
    "at": "2026-11-21T15:53:22.887Z",
    "note": "Full refund once the item is returned."
  },
  "timeline": [
    {
      "id": "dse_74f002cdfd4fb055537d41",
      "at": "2026-11-21T12:53:22.887Z",
      "kind": "opened",
      "title": "Dispute opened: wrong item",
      "detail": "The agent bought the 24-pack of toner; the mandate asked for the 12-pack.",
      "actor": {
        "kind": "user",
        "id": "usr_01KBNZCZMEJ4J4XDKT3YA99REX",
        "name": "Elena Petrova"
      }
    },
    {
      "id": "dse_f522def3578852fd6aa53f",
      "at": "2026-11-21T15:53:22.887Z",
      "kind": "seller_response",
      "title": "Amazon Business replied",
      "detail": "Thanks for flagging it. We can refund the full $210.08 once the item is back with us. Accept the refund here and we'll send the return label.",
      "actor": {
        "kind": "system",
        "name": "Amazon Business (via Accept)"
      }
    },
    {
      "id": "dse_a63dfae9a4ce3bed389c98",
      "at": "2026-11-23T00:43:13.608Z",
      "kind": "evidence",
      "title": "Evidence pack built",
      "detail": "8 signed events, built on submit",
      "actor": {
        "kind": "user",
        "id": "usr_01K7WYQ6MEYNYVHTQCVYZCTCDX",
        "name": "Dana Whitfield"
      }
    }
  ],
  "updated_at": "2026-11-23T00:43:13.608Z"
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.