toip.tools

settle/payment/receipt

https://toip.tools/spec/settle/payment/receipt/0.1

After settlement, the payee sends the payer a signed receipt credential (SettlePaymentReceipt). It ties together the terms hash, the escrow address, the settlement transaction, the amount paid and the purpose. The payer verifies it and keeps it.

Sent
payee's party payer's party
Kind
One-way. No response is expected; any answer is a separate message.
Envelope
Signed by the issuer, addressed to one recipient, timestamped, and encrypted in a TSP Direct message. The signature and recipient binding prevent its use as a bearer token.
Defined in
projects/settle/src/protocol/specs.ts:18 as PAYMENT_RECEIPT
Handled in
projects/settle/src/agents/party.ts
Design
7. The Trust Tasks in projects/settle/docs/design.md

Payload

TypeScriptpackages/trust-core/src/credentials.ts:12
export interface Credential {
  "@context": string[];
  id: string;
  type: string[];
  issuer: string;
  validFrom: string;
  validUntil?: string;
  credentialSubject: { id: string; [k: string]: unknown };
  credentialStatus?: { type: "BitstringStatusListEntry"; statusListIndex: number; statusListCredential: string };
  proof?: Proof;
}

Document envelope

Every Trust Task uses this envelope. Replace payload with the structure shown above.

JSONShape of a document of this type
{
  "id": "urn:uuid:…",
  "type": "https://toip.tools/spec/settle/payment/receipt/0.1",
  "issuer": "did:key:… (the sender)",
  "recipient": "did:key:… (the receiver)",
  "issuedAt": "2026-11-06T18:00:00.000Z",
  "payload": { … },
  "proof": {
    "type": "DataIntegrityProof",
    "cryptosuite": "eddsa-jcs-2022",
    "verificationMethod": "did:key:…#…",
    "proofPurpose": "assertionMethod",
    "proofValue": "z…"
  }
}