Receipts API
Receipts signed by buyer, seller and ndStill, and their verification.
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.
List receipts#
/v2/receipts- intent_idId
- seller_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).
Returns a list envelope: object "list", data[], has_more, next_cursor (pass it back as cursor) and total when cheap to count. Items:
- idId
- object"receipt"
- org_idId
- created_atTimestamp
- updated_atTimestampoptional
- test_modebooleanoptional
True for test-mode objects (simulations, sandbox).
- intent_idId | null
- seller_idId | null
- seller_namestring
- buyerobject
2 fields
- org_namestring
- agent_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" - request_hashstring
- response_hashstring
- mandate_hashstring | null
- signaturesobject[]
3 fields
- partystring enum
"seller""buyer""ndstill" - kidstring
- validboolean
- evidence_event_idId | null
- checkout_idId | nulloptional
- proofVerifiedFlags | nulloptional
Evidence proof for the ndStill countersignature (signature, chain, anchor).
VerifiedFlags: 8 fields
- signatureboolean
Event signature checks out against the published key.
- chainboolean
prev_hash links continuously to the previous event.
- anchorboolean | null
Included in an anchored Merkle root; null while the hourly anchor is pending.
- evidence_event_idIdoptional
- kidstringoptional
- event_hashstringoptional
- anchor_idId | nulloptional
- anchored_atTimestamp | nulloptional
- 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.
curl -X GET "https://api.ndstill.com/v2/receipts?limit=2" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"object": "list",
"data": [
{
"id": "rcpt_01M82WYY422QQ2657T37T7TGZZ",
"object": "receipt",
"org_id": "org_443B247B2FC3D2A13FAC0AEF86",
"created_at": "2026-11-23T00:42:12.610Z",
"intent_id": "pi_01M82WYY422QQ2657T37T7TGZZ",
"seller_id": null,
"seller_name": "Uber",
"buyer": {
"org_name": "Northwind Labs",
"agent_name": "Ground transport"
},
"amount": {
"amount": 4621,
"asset": "USD"
},
"rail": "card",
"request_hash": "sha256:0d1c952cfdcaf5db6c6bf9d25aa4d7593594570856b2546f4758c88e0365e2fd",
"response_hash": "sha256:0f1c9852a87f0513276764d4475ed739eced64ce6acead77f608ef80508b813d",
"mandate_hash": "sha256:941979c25688e4fd361357bae3f5e255cb5208d261f20c2df53b6c2a45ee5525",
"signatures": [
{
"party": "buyer",
"kid": "northwind-labs-ground_transport-fe822b",
"valid": true
},
{
"party": "ndstill",
"kid": "ndstill-us1-evidence-2026-10",
"valid": true
}
],
"evidence_event_id": "evt_01M82XNTHJ0EB1NCF93JPDE62E",
"checkout_id": null,
"proof": {
"signature": true,
"chain": true,
"anchor": null,
"evidence_event_id": "evt_01M82XNTHJ0EB1NCF93JPDE62E",
"kid": "ndstill-us1-evidence-2026-10",
"event_hash": "sha256:ebd3f7a8b3da16d3991f7c32194110d9b7be8a6c25460957625efc26e50176cd",
"anchor_id": null,
"anchored_at": null
}
},
{
"id": "rcpt_01M82RE97245R9409SS0WN70VW",
"object": "receipt",
"org_id": "org_443B247B2FC3D2A13FAC0AEF86",
"created_at": "2026-11-23T00:42:12.610Z",
"intent_id": "pi_01M82RE97245R9409SS0WN70VW",
"seller_id": null,
"seller_name": "Staples",
"buyer": {
"org_name": "Northwind Labs",
"agent_name": "Procurement bot"
},
"amount": {
"amount": 4901,
"asset": "USD"
},
"rail": "checkout_token",
"request_hash": "sha256:06c426721322a5bf05e48e48f750b4797a9573f643d0aae3dbdc21ec3eacc86d",
"response_hash": "sha256:04c4234cac118787361a0566e268b7590a235370d5e0504be7d3044aa9d9406d",
"mandate_hash": "sha256:a47138bf56f6ce61878c5d23843acfdd23dfef67bc980ab9c207f5ab8fec1f15",
"signatures": [
{
"party": "buyer",
"kid": "northwind-labs-procurement_bot-b8e1b2",
"valid": true
},
{
"party": "ndstill",
"kid": "ndstill-us1-evidence-2026-10",
"valid": true
}
],
"evidence_event_id": "evt_01M82XNAXJAY06SJ47VF910CRB",
"checkout_id": null,
"proof": {
"signature": true,
"chain": true,
"anchor": null,
"evidence_event_id": "evt_01M82XNAXJAY06SJ47VF910CRB",
"kid": "ndstill-us1-evidence-2026-10",
"event_hash": "sha256:84ed3d1aba41f02b881bfbd0e2c0120152a2511e7ecb927763ca08a4a1fa63bd",
"anchor_id": null,
"anchored_at": null
}
}
],
"has_more": true,
"next_cursor": "Mg==",
"total": 458
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Retrieve a receipt#
/v2/receipts/{id}- idIdrequired
A prefixed ID from this org.
The same Receipt object as List receipts.
- 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.
curl -X GET "https://api.ndstill.com/v2/receipts/rcpt_01M82WYY422QQ2657T37T7TGZZ" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01"{
"id": "rcpt_01M82WYY422QQ2657T37T7TGZZ",
"object": "receipt",
"org_id": "org_443B247B2FC3D2A13FAC0AEF86",
"created_at": "2026-11-23T00:42:12.610Z",
"intent_id": "pi_01M82WYY422QQ2657T37T7TGZZ",
"seller_id": null,
"seller_name": "Uber",
"buyer": {
"org_name": "Northwind Labs",
"agent_name": "Ground transport"
},
"amount": {
"amount": 4621,
"asset": "USD"
},
"rail": "card",
"request_hash": "sha256:0d1c952cfdcaf5db6c6bf9d25aa4d7593594570856b2546f4758c88e0365e2fd",
"response_hash": "sha256:0f1c9852a87f0513276764d4475ed739eced64ce6acead77f608ef80508b813d",
"mandate_hash": "sha256:941979c25688e4fd361357bae3f5e255cb5208d261f20c2df53b6c2a45ee5525",
"signatures": [
{
"party": "buyer",
"kid": "northwind-labs-ground_transport-fe822b",
"valid": true
},
{
"party": "ndstill",
"kid": "ndstill-us1-evidence-2026-10",
"valid": true
}
],
"evidence_event_id": "evt_01M82XNTHJ0EB1NCF93JPDE62E",
"checkout_id": null,
"proof": {
"signature": true,
"chain": true,
"anchor": null,
"evidence_event_id": "evt_01M82XNTHJ0EB1NCF93JPDE62E",
"kid": "ndstill-us1-evidence-2026-10",
"event_hash": "sha256:ebd3f7a8b3da16d3991f7c32194110d9b7be8a6c25460957625efc26e50176cd",
"anchor_id": null,
"anchored_at": null
}
}Runs against the in-browser mock with a test key. Nothing leaves your browser.
Verify a receipt#
/v2/receipts/{id}/verify- idIdrequired
A prefixed ID from this org.
- object"receipt_check"
- receipt_idId
- checked_atTimestamp
- okboolean
- checksobject[]
4 fields
- keystring
- labelstring
- okboolean
- detailstring
- 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.
curl -X POST "https://api.ndstill.com/v2/receipts/rcpt_01M82WYY422QQ2657T37T7TGZZ/verify" \
-H "Authorization: Bearer $NDSTILL_API_KEY" \
-H "Ndstill-Version: 2026-11-01" \
-H "Idempotency-Key: $(uuidgen)"{
"object": "receipt_check",
"receipt_id": "rcpt_01M82WYY422QQ2657T37T7TGZZ",
"checked_at": "2026-11-23T00:43:13.658Z",
"ok": false,
"checks": [
{
"key": "buyer_signature",
"label": "Buyer signature",
"ok": true,
"detail": "Valid for key northwind-labs-ground_transport-fe822b"
},
{
"key": "seller_signature",
"label": "Seller signature",
"ok": false,
"detail": "Seller didn't sign this receipt"
},
{
"key": "ndstill_signature",
"label": "ndStill signature",
"ok": true,
"detail": "Valid for key ndstill-us1-evidence-2026-10"
}
]
}Runs against the in-browser mock with a test key. Nothing leaves your browser.