{"openapi":"3.1.0","info":{"title":"Atelier Velune UCP shopping service","version":"2026-08-25","description":"UCP 2026-08-25 REST binding (canonical description: https://ucp.dev/2026-08-25/services/shopping/rest.openapi.json). Amounts are EUR minor units and the server prices everything. Adyen TEST only. Errors use UCP's error_response; 401 and 403 carry a Bearer challenge with the issuer as realm. Agents whose browser cannot reach a callback can sign in with the device grant (urn:ietf:params:oauth:grant-type:device_code) at https://agentic.payments-playground.com/oauth/device_authorization."},"servers":[{"url":"https://agentic.payments-playground.com/ucp/v1"}],"security":[{},{"oauth":[]}],"components":{"securitySchemes":{"oauth":{"type":"oauth2","description":"PKCE S256. Discovery: /.well-known/oauth-authorization-server.","flows":{"authorizationCode":{"authorizationUrl":"https://agentic.payments-playground.com/oauth/authorize","tokenUrl":"https://agentic.payments-playground.com/oauth/token","refreshUrl":"https://agentic.payments-playground.com/oauth/token","scopes":{"dev.ucp.shopping.cart:manage":"Create, update and cancel carts for you. Signed out, an agent can still build a guest cart.","dev.ucp.shopping.checkout:manage":"Create, update and cancel checkouts for you, with your delivery details. Signed out, an agent can still check out as a guest.","ucp:pay":"Pay with your saved card, within the spend limit you set. Only the saved card needs it: an agent's own network token, or the shopper at continue_url, pays without it.","dev.ucp.shopping.order:read":"Read the orders it placed for you. Every order read needs it.","profile":"Read your name and email address. Shopping works without it; orders then show no buyer."}}}}},"parameters":{"ucp_agent":{"name":"UCP-Agent","in":"header","required":true,"description":"The agent's UCP profile.","schema":{"type":"string"},"example":"profile=\"https://agent.example/.well-known/ucp\""},"request_id":{"name":"Request-Id","in":"header","required":true,"description":"Echoed on the response.","schema":{"type":"string"}},"idempotency_key":{"name":"Idempotency-Key","in":"header","required":true,"description":"A fresh UUID per distinct attempt; reuse it to retry safely.","schema":{"type":"string","format":"uuid"}},"id":{"name":"id","in":"path","required":true,"schema":{"type":"string"}}},"schemas":{"checkout":{"$ref":"https://ucp.dev/2026-08-25/schemas/shopping/checkout.json"},"cart":{"$ref":"https://ucp.dev/2026-08-25/schemas/shopping/cart.json"},"order":{"$ref":"https://ucp.dev/2026-08-25/schemas/shopping/order.json"},"catalog_search_request":{"$ref":"https://ucp.dev/2026-08-25/schemas/shopping/catalog_search.json#/$defs/search_request"},"catalog_search_response":{"$ref":"https://ucp.dev/2026-08-25/schemas/shopping/catalog_search.json#/$defs/search_response"},"catalog_lookup_request":{"$ref":"https://ucp.dev/2026-08-25/schemas/shopping/catalog_lookup.json#/$defs/lookup_request"},"catalog_lookup_response":{"$ref":"https://ucp.dev/2026-08-25/schemas/shopping/catalog_lookup.json#/$defs/lookup_response"},"catalog_get_product_request":{"$ref":"https://ucp.dev/2026-08-25/schemas/shopping/catalog_lookup.json#/$defs/get_product_request"},"catalog_get_product_response":{"$ref":"https://ucp.dev/2026-08-25/schemas/shopping/catalog_lookup.json#/$defs/get_product_response"},"error_response":{"$ref":"https://ucp.dev/2026-08-25/schemas/common/types/error_response.json"}}},"paths":{"/catalog/search":{"post":{"operationId":"search_catalog","summary":"Search the catalogue","description":"A token is optional.","security":[{},{"oauth":[]}],"parameters":[{"$ref":"#/components/parameters/ucp_agent"},{"$ref":"#/components/parameters/request_id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/catalog_search_request"},"example":{"query":"leather","filters":{"categories":["bags"],"price":{"max":20000}}}}}},"responses":{"200":{"description":"UCP response; or, when the platform profile shares no capability the operation needs, an error body with capabilities_incompatible","content":{"application/json":{"schema":{"$ref":"#/components/schemas/catalog_search_response"}}}},"400":{"description":"UCP-Agent missing or naming a refused profile URL (invalid_profile_url), no Request-Id, a body that is not a JSON object, or invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"invalid_profile_url","content":"UCP-Agent: profile=\"<url>\" is required","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"401":{"description":"An invalid or expired token was sent","headers":{"WWW-Authenticate":{"description":"Bearer realm=\"<issuer>\", resource_metadata=\"…\"; error and scope when they apply","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"identity_required","content":"The access token is invalid or expired; sign in again.","severity":"requires_buyer_review"}]}}}},"422":{"description":"The platform profile is malformed (profile_malformed) or names another UCP version (version_unsupported)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"version_unsupported","content":"This business implements 2026-08-25","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"424":{"description":"The platform profile could not be fetched: an error status, a redirect or a timeout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"profile_unreachable","content":"The profile URL answered 404","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"429":{"description":"Rate limited","headers":{"Retry-After":{"schema":{"type":"integer"}}}}}}},"/catalog/lookup":{"post":{"operationId":"lookup_catalog","summary":"Look up products or variants by id","description":"A token is optional.","security":[{},{"oauth":[]}],"parameters":[{"$ref":"#/components/parameters/ucp_agent"},{"$ref":"#/components/parameters/request_id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/catalog_lookup_request"},"example":{"ids":["velune-crossbody-black-one-size"]}}}},"responses":{"200":{"description":"UCP response; or, when the platform profile shares no capability the operation needs, an error body with capabilities_incompatible","content":{"application/json":{"schema":{"$ref":"#/components/schemas/catalog_lookup_response"}}}},"400":{"description":"UCP-Agent missing or naming a refused profile URL (invalid_profile_url), no Request-Id, a body that is not a JSON object, or invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"invalid_profile_url","content":"UCP-Agent: profile=\"<url>\" is required","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"401":{"description":"An invalid or expired token was sent","headers":{"WWW-Authenticate":{"description":"Bearer realm=\"<issuer>\", resource_metadata=\"…\"; error and scope when they apply","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"identity_required","content":"The access token is invalid or expired; sign in again.","severity":"requires_buyer_review"}]}}}},"422":{"description":"The platform profile is malformed (profile_malformed) or names another UCP version (version_unsupported)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"version_unsupported","content":"This business implements 2026-08-25","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"424":{"description":"The platform profile could not be fetched: an error status, a redirect or a timeout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"profile_unreachable","content":"The profile URL answered 404","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"429":{"description":"Rate limited","headers":{"Retry-After":{"schema":{"type":"integer"}}}}}}},"/catalog/product":{"post":{"operationId":"get_product","summary":"Get one product with its variants","description":"A token is optional.","security":[{},{"oauth":[]}],"parameters":[{"$ref":"#/components/parameters/ucp_agent"},{"$ref":"#/components/parameters/request_id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/catalog_get_product_request"},"example":{"id":"velune-crossbody"}}}},"responses":{"200":{"description":"UCP response; or, when the platform profile shares no capability the operation needs, an error body with capabilities_incompatible","content":{"application/json":{"schema":{"$ref":"#/components/schemas/catalog_get_product_response"}}}},"400":{"description":"UCP-Agent missing or naming a refused profile URL (invalid_profile_url), no Request-Id, a body that is not a JSON object, or invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"invalid_profile_url","content":"UCP-Agent: profile=\"<url>\" is required","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"401":{"description":"An invalid or expired token was sent","headers":{"WWW-Authenticate":{"description":"Bearer realm=\"<issuer>\", resource_metadata=\"…\"; error and scope when they apply","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"identity_required","content":"The access token is invalid or expired; sign in again.","severity":"requires_buyer_review"}]}}}},"422":{"description":"The platform profile is malformed (profile_malformed) or names another UCP version (version_unsupported)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"version_unsupported","content":"This business implements 2026-08-25","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"424":{"description":"The platform profile could not be fetched: an error status, a redirect or a timeout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"profile_unreachable","content":"The profile URL answered 404","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"429":{"description":"Rate limited","headers":{"Retry-After":{"schema":{"type":"integer"}}}}}}},"/carts":{"post":{"operationId":"create_cart","summary":"Create a cart","description":"A token is optional; one that is sent must carry dev.ucp.shopping.cart:manage.","security":[{},{"oauth":["dev.ucp.shopping.cart:manage"]}],"parameters":[{"$ref":"#/components/parameters/ucp_agent"},{"$ref":"#/components/parameters/request_id"},{"$ref":"#/components/parameters/idempotency_key"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/cart"},"example":{"line_items":[{"item":{"id":"velune-crossbody-black-one-size"},"quantity":1}]}}}},"responses":{"200":{"description":"The platform profile shares no capability this operation needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"capabilities_incompatible","content":"No compatible capability","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"201":{"description":"UCP response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/cart"}}}},"400":{"description":"UCP-Agent missing or naming a refused profile URL (invalid_profile_url), no Request-Id, a body that is not a JSON object, or invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"invalid_profile_url","content":"UCP-Agent: profile=\"<url>\" is required","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"401":{"description":"An invalid or expired token was sent","headers":{"WWW-Authenticate":{"description":"Bearer realm=\"<issuer>\", resource_metadata=\"…\"; error and scope when they apply","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"identity_required","content":"The access token is invalid or expired; sign in again.","severity":"requires_buyer_review"}]}}}},"403":{"description":"The token lacks the operation's scope","headers":{"WWW-Authenticate":{"description":"Bearer realm=\"<issuer>\", resource_metadata=\"…\"; error and scope when they apply","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"insufficient_scope","content":"This operation requires scopes: dev.ucp.shopping.cart:manage","severity":"requires_buyer_review"}]}}}},"409":{"description":"This Idempotency-Key was used with another body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"idempotency_key_reused","content":"This Idempotency-Key was used with another request body","severity":"requires_buyer_review"}]}}}},"422":{"description":"The platform profile is malformed (profile_malformed) or names another UCP version (version_unsupported)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"version_unsupported","content":"This business implements 2026-08-25","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"424":{"description":"The platform profile could not be fetched: an error status, a redirect or a timeout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"profile_unreachable","content":"The profile URL answered 404","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"429":{"description":"Rate limited","headers":{"Retry-After":{"schema":{"type":"integer"}}}}}}},"/carts/{id}":{"get":{"operationId":"get_cart","summary":"Get a cart","description":"A token is optional.","security":[{},{"oauth":[]}],"parameters":[{"$ref":"#/components/parameters/ucp_agent"},{"$ref":"#/components/parameters/request_id"},{"$ref":"#/components/parameters/id"}],"responses":{"200":{"description":"UCP response; or, when the platform profile shares no capability the operation needs, an error body with capabilities_incompatible","content":{"application/json":{"schema":{"$ref":"#/components/schemas/cart"}}}},"400":{"description":"UCP-Agent missing or naming a refused profile URL (invalid_profile_url), no Request-Id, a body that is not a JSON object, or invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"invalid_profile_url","content":"UCP-Agent: profile=\"<url>\" is required","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"401":{"description":"An invalid or expired token was sent","headers":{"WWW-Authenticate":{"description":"Bearer realm=\"<issuer>\", resource_metadata=\"…\"; error and scope when they apply","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"identity_required","content":"The access token is invalid or expired; sign in again.","severity":"requires_buyer_review"}]}}}},"404":{"description":"Unknown id, or one that belongs to another agent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"}}}},"422":{"description":"The platform profile is malformed (profile_malformed) or names another UCP version (version_unsupported)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"version_unsupported","content":"This business implements 2026-08-25","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"424":{"description":"The platform profile could not be fetched: an error status, a redirect or a timeout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"profile_unreachable","content":"The profile URL answered 404","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"429":{"description":"Rate limited","headers":{"Retry-After":{"schema":{"type":"integer"}}}}}},"put":{"operationId":"update_cart","summary":"Replace a cart's lines","description":"A token is optional; one that is sent must carry dev.ucp.shopping.cart:manage.","security":[{},{"oauth":["dev.ucp.shopping.cart:manage"]}],"parameters":[{"$ref":"#/components/parameters/ucp_agent"},{"$ref":"#/components/parameters/request_id"},{"$ref":"#/components/parameters/idempotency_key"},{"$ref":"#/components/parameters/id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/cart"}}}},"responses":{"200":{"description":"UCP response; or, when the platform profile shares no capability the operation needs, an error body with capabilities_incompatible","content":{"application/json":{"schema":{"$ref":"#/components/schemas/cart"}}}},"400":{"description":"UCP-Agent missing or naming a refused profile URL (invalid_profile_url), no Request-Id, a body that is not a JSON object, or invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"invalid_profile_url","content":"UCP-Agent: profile=\"<url>\" is required","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"401":{"description":"An invalid or expired token was sent","headers":{"WWW-Authenticate":{"description":"Bearer realm=\"<issuer>\", resource_metadata=\"…\"; error and scope when they apply","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"identity_required","content":"The access token is invalid or expired; sign in again.","severity":"requires_buyer_review"}]}}}},"403":{"description":"The token lacks the operation's scope","headers":{"WWW-Authenticate":{"description":"Bearer realm=\"<issuer>\", resource_metadata=\"…\"; error and scope when they apply","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"insufficient_scope","content":"This operation requires scopes: dev.ucp.shopping.cart:manage","severity":"requires_buyer_review"}]}}}},"404":{"description":"Unknown id, or one that belongs to another agent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"}}}},"409":{"description":"This Idempotency-Key was used with another body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"idempotency_key_reused","content":"This Idempotency-Key was used with another request body","severity":"requires_buyer_review"}]}}}},"422":{"description":"The platform profile is malformed (profile_malformed) or names another UCP version (version_unsupported)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"version_unsupported","content":"This business implements 2026-08-25","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"424":{"description":"The platform profile could not be fetched: an error status, a redirect or a timeout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"profile_unreachable","content":"The profile URL answered 404","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"429":{"description":"Rate limited","headers":{"Retry-After":{"schema":{"type":"integer"}}}}}}},"/carts/{id}/cancel":{"post":{"operationId":"cancel_cart","summary":"Cancel a cart","description":"A token is optional; one that is sent must carry dev.ucp.shopping.cart:manage.","security":[{},{"oauth":["dev.ucp.shopping.cart:manage"]}],"parameters":[{"$ref":"#/components/parameters/ucp_agent"},{"$ref":"#/components/parameters/request_id"},{"$ref":"#/components/parameters/idempotency_key"},{"$ref":"#/components/parameters/id"}],"responses":{"200":{"description":"UCP response; or, when the platform profile shares no capability the operation needs, an error body with capabilities_incompatible","content":{"application/json":{"schema":{"$ref":"#/components/schemas/cart"}}}},"400":{"description":"UCP-Agent missing or naming a refused profile URL (invalid_profile_url), no Request-Id, a body that is not a JSON object, or invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"invalid_profile_url","content":"UCP-Agent: profile=\"<url>\" is required","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"401":{"description":"An invalid or expired token was sent","headers":{"WWW-Authenticate":{"description":"Bearer realm=\"<issuer>\", resource_metadata=\"…\"; error and scope when they apply","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"identity_required","content":"The access token is invalid or expired; sign in again.","severity":"requires_buyer_review"}]}}}},"403":{"description":"The token lacks the operation's scope","headers":{"WWW-Authenticate":{"description":"Bearer realm=\"<issuer>\", resource_metadata=\"…\"; error and scope when they apply","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"insufficient_scope","content":"This operation requires scopes: dev.ucp.shopping.cart:manage","severity":"requires_buyer_review"}]}}}},"404":{"description":"Unknown id, or one that belongs to another agent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"}}}},"409":{"description":"This Idempotency-Key was used with another body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"idempotency_key_reused","content":"This Idempotency-Key was used with another request body","severity":"requires_buyer_review"}]}}}},"422":{"description":"The platform profile is malformed (profile_malformed) or names another UCP version (version_unsupported)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"version_unsupported","content":"This business implements 2026-08-25","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"424":{"description":"The platform profile could not be fetched: an error status, a redirect or a timeout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"profile_unreachable","content":"The profile URL answered 404","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"429":{"description":"Rate limited","headers":{"Retry-After":{"schema":{"type":"integer"}}}}}}},"/checkout-sessions":{"post":{"operationId":"create_checkout","summary":"Create a checkout; the server prices it","description":"A token is optional; one that is sent must carry dev.ucp.shopping.checkout:manage.","security":[{},{"oauth":["dev.ucp.shopping.checkout:manage"]}],"parameters":[{"$ref":"#/components/parameters/ucp_agent"},{"$ref":"#/components/parameters/request_id"},{"$ref":"#/components/parameters/idempotency_key"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/checkout"},"example":{"line_items":[{"item":{"id":"velune-crossbody-black-one-size"},"quantity":1}],"buyer":{"email":"shopper@example.com"}}}}},"responses":{"200":{"description":"The platform profile shares no capability this operation needs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"capabilities_incompatible","content":"No compatible capability","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"201":{"description":"UCP response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/checkout"}}}},"400":{"description":"UCP-Agent missing or naming a refused profile URL (invalid_profile_url), no Request-Id, a body that is not a JSON object, or invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"invalid_profile_url","content":"UCP-Agent: profile=\"<url>\" is required","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"401":{"description":"An invalid or expired token was sent","headers":{"WWW-Authenticate":{"description":"Bearer realm=\"<issuer>\", resource_metadata=\"…\"; error and scope when they apply","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"identity_required","content":"The access token is invalid or expired; sign in again.","severity":"requires_buyer_review"}]}}}},"403":{"description":"The token lacks the operation's scope","headers":{"WWW-Authenticate":{"description":"Bearer realm=\"<issuer>\", resource_metadata=\"…\"; error and scope when they apply","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"insufficient_scope","content":"This operation requires scopes: dev.ucp.shopping.checkout:manage","severity":"requires_buyer_review"}]}}}},"409":{"description":"This Idempotency-Key was used with another body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"idempotency_key_reused","content":"This Idempotency-Key was used with another request body","severity":"requires_buyer_review"}]}}}},"422":{"description":"The platform profile is malformed (profile_malformed) or names another UCP version (version_unsupported)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"version_unsupported","content":"This business implements 2026-08-25","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"424":{"description":"The platform profile could not be fetched: an error status, a redirect or a timeout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"profile_unreachable","content":"The profile URL answered 404","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"429":{"description":"Rate limited","headers":{"Retry-After":{"schema":{"type":"integer"}}}}}}},"/checkout-sessions/{id}":{"get":{"operationId":"get_checkout","summary":"Get a checkout","description":"A token is optional.","security":[{},{"oauth":[]}],"parameters":[{"$ref":"#/components/parameters/ucp_agent"},{"$ref":"#/components/parameters/request_id"},{"$ref":"#/components/parameters/id"}],"responses":{"200":{"description":"UCP response; or, when the platform profile shares no capability the operation needs, an error body with capabilities_incompatible","content":{"application/json":{"schema":{"$ref":"#/components/schemas/checkout"}}}},"400":{"description":"UCP-Agent missing or naming a refused profile URL (invalid_profile_url), no Request-Id, a body that is not a JSON object, or invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"invalid_profile_url","content":"UCP-Agent: profile=\"<url>\" is required","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"401":{"description":"An invalid or expired token was sent","headers":{"WWW-Authenticate":{"description":"Bearer realm=\"<issuer>\", resource_metadata=\"…\"; error and scope when they apply","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"identity_required","content":"The access token is invalid or expired; sign in again.","severity":"requires_buyer_review"}]}}}},"404":{"description":"Unknown id, or one that belongs to another agent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"}}}},"422":{"description":"The platform profile is malformed (profile_malformed) or names another UCP version (version_unsupported)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"version_unsupported","content":"This business implements 2026-08-25","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"424":{"description":"The platform profile could not be fetched: an error status, a redirect or a timeout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"profile_unreachable","content":"The profile URL answered 404","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"429":{"description":"Rate limited","headers":{"Retry-After":{"schema":{"type":"integer"}}}}}},"put":{"operationId":"update_checkout","summary":"Update a checkout's lines or buyer","description":"A token is optional; one that is sent must carry dev.ucp.shopping.checkout:manage.","security":[{},{"oauth":["dev.ucp.shopping.checkout:manage"]}],"parameters":[{"$ref":"#/components/parameters/ucp_agent"},{"$ref":"#/components/parameters/request_id"},{"$ref":"#/components/parameters/idempotency_key"},{"$ref":"#/components/parameters/id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/checkout"}}}},"responses":{"200":{"description":"UCP response; or, when the platform profile shares no capability the operation needs, an error body with capabilities_incompatible","content":{"application/json":{"schema":{"$ref":"#/components/schemas/checkout"}}}},"400":{"description":"UCP-Agent missing or naming a refused profile URL (invalid_profile_url), no Request-Id, a body that is not a JSON object, or invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"invalid_profile_url","content":"UCP-Agent: profile=\"<url>\" is required","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"401":{"description":"An invalid or expired token was sent","headers":{"WWW-Authenticate":{"description":"Bearer realm=\"<issuer>\", resource_metadata=\"…\"; error and scope when they apply","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"identity_required","content":"The access token is invalid or expired; sign in again.","severity":"requires_buyer_review"}]}}}},"403":{"description":"The token lacks the operation's scope","headers":{"WWW-Authenticate":{"description":"Bearer realm=\"<issuer>\", resource_metadata=\"…\"; error and scope when they apply","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"insufficient_scope","content":"This operation requires scopes: dev.ucp.shopping.checkout:manage","severity":"requires_buyer_review"}]}}}},"404":{"description":"Unknown id, or one that belongs to another agent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"}}}},"409":{"description":"This Idempotency-Key was used with another body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"idempotency_key_reused","content":"This Idempotency-Key was used with another request body","severity":"requires_buyer_review"}]}}}},"422":{"description":"The platform profile is malformed (profile_malformed) or names another UCP version (version_unsupported)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"version_unsupported","content":"This business implements 2026-08-25","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"424":{"description":"The platform profile could not be fetched: an error status, a redirect or a timeout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"profile_unreachable","content":"The profile URL answered 404","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"429":{"description":"Rate limited","headers":{"Retry-After":{"schema":{"type":"integer"}}}}}}},"/checkout-sessions/{id}/complete":{"post":{"operationId":"complete_checkout","summary":"Pay with a saved card or the agent's own network token, or with no instrument hand the checkout to the shopper","description":"A token is optional; one that is sent must carry dev.ucp.shopping.checkout:manage.","security":[{},{"oauth":["dev.ucp.shopping.checkout:manage"]}],"parameters":[{"$ref":"#/components/parameters/ucp_agent"},{"$ref":"#/components/parameters/request_id"},{"$ref":"#/components/parameters/idempotency_key"},{"$ref":"#/components/parameters/id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/checkout"},"example":{"payment":{"instruments":[{"id":"card_0123456789abcdef0123","handler_id":"saved_card","type":"card"}]}}}}},"responses":{"200":{"description":"UCP response; or, when the platform profile shares no capability the operation needs, an error body with capabilities_incompatible","content":{"application/json":{"schema":{"$ref":"#/components/schemas/checkout"},"examples":{"completed":{"value":{"status":"completed","order":{"id":"ord_…","permalink_url":"https://…/orders/ord_…"}}},"requires_escalation":{"value":{"status":"requires_escalation","continue_url":"https://…/checkout/chk_…","messages":[{"type":"error","code":"spend_limit_exceeded","content":"Total 14900 exceeds the remaining agent budget of 10000 EUR minor units; the shopper must approve at continue_url, or raise this agent's limit at https://…/account#agent-gr_… and the agent completes again.","severity":"requires_buyer_review"}]}}}}}},"400":{"description":"UCP-Agent missing or naming a refused profile URL (invalid_profile_url), no Request-Id, a body that is not a JSON object, or invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"invalid_profile_url","content":"UCP-Agent: profile=\"<url>\" is required","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"401":{"description":"An invalid or expired token was sent","headers":{"WWW-Authenticate":{"description":"Bearer realm=\"<issuer>\", resource_metadata=\"…\"; error and scope when they apply","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"identity_required","content":"The access token is invalid or expired; sign in again.","severity":"requires_buyer_review"}]}}}},"403":{"description":"The token lacks the operation's scope","headers":{"WWW-Authenticate":{"description":"Bearer realm=\"<issuer>\", resource_metadata=\"…\"; error and scope when they apply","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"insufficient_scope","content":"This operation requires scopes: dev.ucp.shopping.checkout:manage","severity":"requires_buyer_review"}]}}}},"404":{"description":"Unknown id, or one that belongs to another agent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"}}}},"409":{"description":"This Idempotency-Key was used with another body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"idempotency_key_reused","content":"This Idempotency-Key was used with another request body","severity":"requires_buyer_review"}]}}}},"422":{"description":"The platform profile is malformed (profile_malformed) or names another UCP version (version_unsupported)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"version_unsupported","content":"This business implements 2026-08-25","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"424":{"description":"The platform profile could not be fetched: an error status, a redirect or a timeout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"profile_unreachable","content":"The profile URL answered 404","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"429":{"description":"Rate limited","headers":{"Retry-After":{"schema":{"type":"integer"}}}}}}},"/checkout-sessions/{id}/cancel":{"post":{"operationId":"cancel_checkout","summary":"Cancel a checkout","description":"A token is optional; one that is sent must carry dev.ucp.shopping.checkout:manage.","security":[{},{"oauth":["dev.ucp.shopping.checkout:manage"]}],"parameters":[{"$ref":"#/components/parameters/ucp_agent"},{"$ref":"#/components/parameters/request_id"},{"$ref":"#/components/parameters/idempotency_key"},{"$ref":"#/components/parameters/id"}],"responses":{"200":{"description":"UCP response; or, when the platform profile shares no capability the operation needs, an error body with capabilities_incompatible","content":{"application/json":{"schema":{"$ref":"#/components/schemas/checkout"}}}},"400":{"description":"UCP-Agent missing or naming a refused profile URL (invalid_profile_url), no Request-Id, a body that is not a JSON object, or invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"invalid_profile_url","content":"UCP-Agent: profile=\"<url>\" is required","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"401":{"description":"An invalid or expired token was sent","headers":{"WWW-Authenticate":{"description":"Bearer realm=\"<issuer>\", resource_metadata=\"…\"; error and scope when they apply","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"identity_required","content":"The access token is invalid or expired; sign in again.","severity":"requires_buyer_review"}]}}}},"403":{"description":"The token lacks the operation's scope","headers":{"WWW-Authenticate":{"description":"Bearer realm=\"<issuer>\", resource_metadata=\"…\"; error and scope when they apply","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"insufficient_scope","content":"This operation requires scopes: dev.ucp.shopping.checkout:manage","severity":"requires_buyer_review"}]}}}},"404":{"description":"Unknown id, or one that belongs to another agent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"}}}},"409":{"description":"This Idempotency-Key was used with another body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"idempotency_key_reused","content":"This Idempotency-Key was used with another request body","severity":"requires_buyer_review"}]}}}},"422":{"description":"The platform profile is malformed (profile_malformed) or names another UCP version (version_unsupported)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"version_unsupported","content":"This business implements 2026-08-25","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"424":{"description":"The platform profile could not be fetched: an error status, a redirect or a timeout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"profile_unreachable","content":"The profile URL answered 404","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"429":{"description":"Rate limited","headers":{"Retry-After":{"schema":{"type":"integer"}}}}}}},"/orders/{id}":{"get":{"operationId":"get_order","summary":"Get an order this agent placed","description":"Needs a token with dev.ucp.shopping.order:read.","security":[{"oauth":["dev.ucp.shopping.order:read"]}],"parameters":[{"$ref":"#/components/parameters/ucp_agent"},{"$ref":"#/components/parameters/request_id"},{"$ref":"#/components/parameters/id"}],"responses":{"200":{"description":"UCP response; or, when the platform profile shares no capability the operation needs, an error body with capabilities_incompatible","content":{"application/json":{"schema":{"$ref":"#/components/schemas/order"}}}},"400":{"description":"UCP-Agent missing or naming a refused profile URL (invalid_profile_url), no Request-Id, a body that is not a JSON object, or invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"invalid_profile_url","content":"UCP-Agent: profile=\"<url>\" is required","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"401":{"description":"No token, or an invalid or expired one","headers":{"WWW-Authenticate":{"description":"Bearer realm=\"<issuer>\", resource_metadata=\"…\"; error and scope when they apply","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"identity_required","content":"The access token is invalid or expired; sign in again.","severity":"requires_buyer_review"}]}}}},"403":{"description":"The token lacks the operation's scope","headers":{"WWW-Authenticate":{"description":"Bearer realm=\"<issuer>\", resource_metadata=\"…\"; error and scope when they apply","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"insufficient_scope","content":"This operation requires scopes: dev.ucp.shopping.order:read","severity":"requires_buyer_review"}]}}}},"404":{"description":"Unknown id, or one that belongs to another agent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"}}}},"422":{"description":"The platform profile is malformed (profile_malformed) or names another UCP version (version_unsupported)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"version_unsupported","content":"This business implements 2026-08-25","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"424":{"description":"The platform profile could not be fetched: an error status, a redirect or a timeout","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error_response"},"example":{"ucp":{"version":"2026-08-25","status":"error"},"messages":[{"type":"error","code":"profile_unreachable","content":"The profile URL answered 404","severity":"unrecoverable"}],"continue_url":"https://agentic.payments-playground.com/shop"}}}},"429":{"description":"Rate limited","headers":{"Retry-After":{"schema":{"type":"integer"}}}}}}}}}