Saltar al contenido principal

Tokenize a UCP Card

POST 

/ucp/tokenize

Exchanges a UCP card credential for a single-use token valid for 15 minutes. Only MONEI-approved AI agent platform accounts can call this endpoint.

The agent platform sends its scoped API key in Authorization and the merchant's MONEI account ID in identity.access_token. The token is bound to the merchant, the checkout, and the currency in usage_limits. The merchant can charge up to usage_limits.max_amount.

Charge the token​

Send the returned token as paymentToken to Create Payment with amount, currency, orderId, sessionId, and callbackUrl. To derive sessionId, join binding.type and binding.id with |, hash the UTF-8 bytes with SHA-256, encode the digest as unpadded base64url, and prefix the first 36 characters with ucp_. Create Payment

Use one stable orderId per checkout and a checkout lock to run at most one Complete request at a time for card or Bizum. Omit generatePaymentToken and sequence for agent tokens. For Bizum payments, omit sessionId.

While the checkout is complete_in_progress, also poll GET /v1/payments/{id}. The final EXPIRED status sends no webhook.

Request​

Responses​

A single-use payment token for the specified merchant and checkout.