Purchase
dmd_purchaseStart a purchase with the chosen payment option.
did_registration: returns a payable quote (the same as dmd_create_did_payment_quote).
Add-ons for a DID-LLM (bottybotty_entry, bottybotty_standard, bottybotty_premium): returns
a payable quote for details.did; for a higher BottyBotty tier than the one owned, it
charges the difference.
Pay it, wait for dmd_get_payment_status to say "settled", then dmd_complete_purchase.
Donations (inference_donation, USDC on Base through x402): call with the amount; it
fails with the x402 payment requirements. Sign them with your wallet and call again
with the same details and x402_payment. The answer is the donation with a receipt
signed by DebitMyData, or its status_url while the payment confirms. Sending the same
payment again returns the same donation.Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"product_id": "<product_id>",
"preferred_payment_option": "<preferred_payment_option>",
"details": "<details>"
},
"name": "dmd_purchase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| details | Yes | Product-specific fields. For did_registration: display_name, participant_type, controller_public_key and/or controller_wallet_address (with optional controller_network), and optionally metadata. For a donation (inference_donation): amount_usd, and optionally donor_name and donor_did. For an add-on (such as bottybotty_entry): did, the DID-LLM it is for | |
| product_id | Yes | Product ID from dmd_catalog | |
| x402_payment | No | Donations only: your signed PaymentPayload (x402 version 2) answering the payment requirements this tool returned. It may also be sent in the request's _meta['x402/payment']. | |
| idempotency_key | No | did_registration only: optional random key (16-128 characters) for safe retries | |
| preferred_payment_option | Yes | Payment option ID |