Skip to main content

TokenizeUcpRequest

credential objectrequired

A UCP card credential.

typestringrequired

Possible values: [pan]

numberstringrequired

The card number. It must pass the Luhn check.

Possible values: Value must match regular expression ^[0-9]{13,19}$

Example: 4111111111111111
expiry_monthintegerrequired

Possible values: >= 1 and <= 12

Example: 9
expiry_yearintegerrequired

Possible values: >= 2000 and <= 2099

Example: 2030
cvcstringrequired

The card security code.

Possible values: Value must match regular expression ^[0-9]{3,5}$

Example: 123
nameCardholderName

The cardholder's name, as stated in the credit card.

Example: John Doe
binding objectrequired

The checkout binding. MONEI ignores unknown members.

typestringrequired

A reverse-DNS binding type. Unknown types that match this format are accepted.

Possible values: Value must match regular expression ^[a-z](?:[a-z0-9-]*[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9_-]*[a-z0-9_])?)+$

Example: dev.ucp.shopping.checkout
idstringrequired

The opaque checkout identifier.

Possible values: non-empty and <= 255 characters

Example: chk_abc123
identity objectrequired
access_tokenAccountIdrequired

The merchant's MONEI account ID. The merchant must be in the same mode as the caller.

Example: aa9333ba-82de-400c-9ae7-087b9f8d2242
usage_limits objectrequired

A MONEI handler field defining the maximum charge and its currency.

max_amountintegerrequired

The maximum amount the merchant can charge, in the smallest currency unit.

Possible values: >= 1

Example: 4990
currencyPayment-Currencyrequired

The currency the merchant must use to charge this token.

Example: EUR
signals object

Buyer session signals. Send dev.ucp.buyer_ip and dev.ucp.user_agent with every card: 3D Secure needs them, and when the issuer asks for authentication a charge without them fails with E304.

dev.ucp.buyer_ipstring

The buyer's IP address.

Example: 203.0.113.42
dev.ucp.user_agentUserAgent

Full user agent string of the browser session.

Example: Mozilla/5.0 (Windows NT 10.0; Win64; x64) ...
TokenizeUcpRequest
{
"credential": {
"type": "pan",
"number": "4111111111111111",
"expiry_month": 9,
"expiry_year": 2030,
"cvc": "123",
"name": "John Doe"
},
"binding": {
"type": "dev.ucp.shopping.checkout",
"id": "chk_abc123"
},
"identity": {
"access_token": "aa9333ba-82de-400c-9ae7-087b9f8d2242"
},
"usage_limits": {
"max_amount": 4990,
"currency": "EUR"
},
"signals": {
"dev.ucp.buyer_ip": "203.0.113.42",
"dev.ucp.user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) ..."
}
}