Signed AP2 cart for a fixed-price product
create_cart_mandateCreates an AP2-style CartMandate for one fixed-price product, signed by MDJ (ES256 JWS, public key at https://app.mydailyjourneys.com/.well-known/mdj-ap2-jwks.json). Valid for 30 minutes. Payment is completed on the normal store checkout page in checkout_url, never through this server. Ground services cannot be put in a cart.
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>"
},
"name": "create_cart_mandate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes | An id from list_products. | |
| variant_id | No | Required for products with variants (custom-trip-itinerary-planning). |