get_ucp_quote
Price a cart the UCP way: pass cart with line_items, and optionally request_id, function_id, routing_preference, currency, stage (quote, cart, checkout or order), checkout, order, payment, context and agentid_token. It routes the cart through the pricing network and answers a UCP quote. Pass agentid_token (an AgentID ID token issued for Last Price) to be recorded as a verified buying agent; the answer then names you, marked verified. Needs a Last Price credential with price compute scope. Needs a claimed workspace: a sandbox key from self-registration is refused (403) until a person claims the workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart | Yes | The cart to price. | |
| order | No | Order details. | |
| stage | No | Where in the funnel the quote is for. Defaults to quote. | |
| context | No | Anything that shapes the price: product type, country, channel. | |
| payment | No | Payment details. | |
| checkout | No | Checkout details. | |
| currency | No | The currency to price in. | |
| request_id | No | Your id for this request. | |
| function_id | No | The pricing function to use. | |
| agentid_token | No | Optional: your AgentID ID token (from auth.agentid.com, issued for Last Price), sent as the AgentID-Token header so the quote records you as a verified buying agent. Leave it out to buy unverified. | |
| routing_preference | No | How to pick a function when none is named. |