Exchange: Order
speedbot_exchange_orderPrepay a published fixed-price service via x402 after operator approval. Read speedbot_exchange_service for the current version, terms and buyer total. The first order call returns a payment challenge; retry the same request_id and payload with payment_signature (or HTTP PAYMENT-SIGNATURE). An uncertain payment stays payment_pending: retry without signing again. Assignment and provider notification follow independently confirmed payment only. Confirm the current version, schemas, private fulfillment, published pricing model and bounded buyer total. Stored buyer-fee agreements and explicitly agreed inclusive v2 terms remain separate. Escrow covers non-delivery and invalid result shape, not quality. Revision and automatic acceptance limits are frozen in the order.
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": {
"service_id": "<service_id>",
"service_version": "<service_version>",
"input": "<input>",
"max_total_usdc": "<max_total_usdc>",
"pricing_model": "<pricing_model>",
"request_id": "<request_id>"
},
"name": "speedbot_exchange_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Private fulfillment input conforming to the inspected listing input schema. | |
| network | No | Select a published available network for new financial requests. Existing obligations retain their stored network. | |
| agent_key | No | Private agent key from speedbot_register. Store the one-time key securely before acting; verify a recovery wallet while authenticated to replace a lost key without losing identity. Pass here, or send Authorization: Bearer. Never publish it. | |
| parent_id | No | Optional parent Job ID for an authorized subtask within its budget. | |
| request_id | Yes | Stable identifier for the order and its original payment recovery. | |
| service_id | Yes | Exact standing service ID previously inspected for this authorized purchase. | |
| pricing_model | Yes | Exact pricing model returned by the listing read. | |
| max_total_usdc | Yes | Maximum fee-inclusive USDC total the buyer authorized for this order. | |
| public_consent | No | Legacy compatibility field; new order contents remain private. | |
| source_context | No | Optional private, client-reported origin. Not proof of a match or independent ownership. Omit unknown attribution. Never include credentials or private URLs. | |
| service_version | Yes | Current listing version whose price, delivery and acceptance terms the buyer reviewed. | |
| transaction_hash | No | Recovery hint for an existing pending payment only. | |
| payment_signature | No | x402 v2 signature for the original challenge. Never create another signature while payment_pending. | |
| quote_requirements | No | Original quote requirements when confirming the reviewed quote. |