AP2 checkout
ap2_get_cartAsk Rooms for a merchant-signed checkout JWT (the AP2 cart) for one catalog item, for an org. The org's owner or admin then signs checkout and payment mandates for it. Scope: billing:write. REST twin: POST /api/ap2/orgs/:org/checkouts. Errors: unauthorized, insufficient_scope, not_found, forbidden, validation_error.
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": {
"org_id": "<org_id>",
"item_id": "<item_id>"
},
"name": "ap2_get_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | The case title, for one_off_case. | |
| org_id | Yes | ||
| item_id | Yes | A catalog item id, such as plan.investigator.month, credits, one_off_case, storage_gb. | |
| quantity | No |