|
2 | 2 | "x402": { |
3 | 3 | "verb": "authorize", |
4 | 4 | "version": "1.0.0", |
5 | | - "request_id": "req-auth-2025-12-07-0001", |
6 | | - "network": "eip155:1" |
| 5 | + "idempotency_key": "auth-demo-001" |
7 | 6 | }, |
8 | 7 | "trace": { |
9 | | - "trace_id": "trace-auth-0001", |
10 | | - "started_at": "2025-12-07T18:40:00Z", |
11 | | - "completed_at": "2025-12-07T18:40:01Z", |
12 | | - "duration_ms": 870, |
13 | | - "provider": "commandlayer-demo", |
14 | | - "region": "us-east-1", |
15 | | - "model": "authorize-engine-001", |
16 | | - "tags": ["authorize", "example", "v1.0.0"] |
| 8 | + "trace_id": "01JAG7S5Z3J1D4K7W9R2X8MNVQ", |
| 9 | + "span_id": "SPAN-001" |
17 | 10 | }, |
18 | 11 | "status": "success", |
19 | 12 | "result": { |
20 | | - "authorization_id": "auth_9a8b7c", |
| 13 | + "authorization_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV", |
21 | 14 | "status": "authorized", |
22 | 15 | "amount": { |
23 | | - "value": "100.00", |
24 | | - "asset": "USDC", |
25 | | - "pricing_tier": "standard", |
26 | | - "metadata": { |
27 | | - "currency": "USD" |
28 | | - } |
| 16 | + "value": "10.50", |
| 17 | + "asset": "USDC" |
29 | 18 | }, |
30 | 19 | "settlement": { |
31 | 20 | "chain": "eip155:1", |
32 | | - "recipient": "merchant.eth", |
33 | | - "refund_address": "buyer.eth", |
34 | | - "merchant_id": "m_001", |
35 | | - "metadata": { |
36 | | - "channel": "online", |
37 | | - "country": "US" |
38 | | - } |
| 21 | + "recipient": "0x0000000000000000000000000000000000000001" |
39 | 22 | }, |
40 | | - "expires_at": "2025-12-10T00:00:00Z", |
| 23 | + "expires_at": "2026-12-31T23:59:59Z", |
41 | 24 | "metadata": { |
42 | | - "psp": "stripe", |
43 | | - "network": "visa", |
44 | | - "auth_method": "3DS" |
| 25 | + "note": "example valid authorize receipt" |
45 | 26 | } |
46 | | - }, |
47 | | - "usage": { |
48 | | - "tokens": 1500, |
49 | | - "input_tokens": 900, |
50 | | - "output_tokens": 600, |
51 | | - "total_tokens": 1500, |
52 | | - "cost": 0.0042 |
53 | 27 | } |
54 | 28 | } |
0 commit comments