# 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[​](#charge-the-token "Enlace directo al 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](https://docs.monei.com/apis/rest/payments-create/)

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[​](#request "Enlace directo al request")

## Responses[​](#responses "Enlace directo al Responses")

* 200
* 400
* 401
* 403

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

The body or card is invalid, or the merchant is unknown, cannot process payments, or is in a different mode from the caller. All merchant failures return the same error.

The `Authorization` header is missing or malformed, the key is unknown or revoked, or the caller account cannot access the API.

The key lacks the `ucpTokens:create` scope, the account is not a MONEI-approved AI agent platform, the credential has no API key ID, or the caller account is blocked or cannot process payments.
