Overview
User management
- Users
- User regulatory status
- User e-money
User verification
- User data format
- KYC documents
- UBO declarations
Wallets
- User wallets
- Client wallets
Cards
- Card registrations
- Cards
- Metadata
- Card validations
Card pay-ins
- Direct card pay-ins
- Recurring card pay-ins
- Preauthorizations
- Deposit preauthorizations
- Web card pay-ins
Banking pay-ins
- Bank wires
- Virtual IBAN
- Direct debits
- Web direct debits
APM pay-ins
- Apple Pay
- Bancontact
- BLIK
- Giropay
- Google Pay
- iDEAL
- Klarna
- MB WAY
- Multibanco
- Payconiq
- PayPal
- Satispay
- Swish
- TWINT
Transfers
- Transfers
Refunds
- Refunds
Disputes
- Disputes
- Dispute documents
- Repudiations
- Dispute settlement
Payouts
- Bank accounts
- Payouts
FX conversions
- Conversion rates
- Quotes
- Conversions
Transactions
- Transactions
Helpers
- API responses
- Country authorizations
- Webhooks
- Events
- Reports
Platform account
- Client
- Dashboard permissions
Update a Card Registration
{
"RegistrationData": "data=acIcnwwLleiAvlZUea5VxZlDBkf07H6B9-N7SrRv5Vv7oSLc1hhCdoFX4JxfZL2iUkLIQL3o9ehAOeaXCbc1KFWnr4ySDvkZ--mJxxdF-vw-gzLNe3lvG2loJvmwrDyRNx0xgKTVnyDj15oG8jR88g",
"CardHolderName": "Alex Smith"
}
{
"Id": "cardreg_wt_11ed4694-d244-4bd1-92fb-dc473c99a9d4",
"Tag": null,
"CreationDate": 1726239226,
"UserId": "user_m_01J7KACBPAV7XAF8AH9BDCJPRS",
"AccessKey": "ehvrHoPE6FpjCCAgmNvg",
"PreregistrationData": "lhOJ6CFiDJPCXViyHjfcayh92nouB3AAaB5yqiLCBT6yjkLPCptmxsUdfffAc6EE4uj9AuSfmwbdfKN3BMechzUU3Gz8ectEx70TDeupudr",
"RegistrationData": "data=acIcnwwLleiAvlZUea5VxYT1eCIn3MER8jyZXr-p8Bzb4Rm8GIA0MQtPs2NL7zPzPO_I7EjQm-m92V909JUL6KT-PmPzJfAQZV_8PIz6wKvjorGNaNd8Mg1rqN6eBpS5Nx0xgKTVnyDj15oG8jR875",
"CardId": "card_m_NioQspdYckEoRlzd",
"CardType": "CB_VISA_MASTERCARD",
"CardRegistrationURL": "https://pci.sandbox.mangopay.com/api/mangopay/vault/tokenize/eyJjbGllbnQiOiJhbnRob255aF90ZXN0MSIsInRva2VuIjoiUlBQTVdJR1hrd0ZJSGFacyJ9",
"ResultCode": "000000",
"ResultMessage": "Success",
"Currency": "EUR",
"Status": "VALIDATED"
}
This call is used to add the string acquired from the tokenization to the Card Registration object in the parameter RegistrationData
, thereby validating the registration.
As a result, the Card object is created and the corresponding CardId
returned.
Platforms should also send the cardholder’s name as it appears on the payment card. The CardHolderName
parameter is sent on this call but not returned in the response; it is added to the Card object.
Path parameters
The unique identifier of the Card Registration object.
Body parameters
The string returned by the tokenization server on the POST Tokenize the card endpoint.
Min. length: 2 characters; max. length: 45 characters passed to card network, 255 accepted by the API
The cardholder’s name shown on the payment card. This value is passed to the card network for use in transaction risk analysis.
The value should only contain unmarked alphabetic characters (A-Z, a-z), hyphens (-), apostrophes (‘), and spaces. Letters with diacritics (e.g. É, Ü, ẞ), honorifics (e.g. MRS.) and other special characters are not recommended.
The CardHolderName
is not returned in the Card Registration object; it is added to the Card object.
Responses
The unique identifier of the Card Registration object.
Custom data that can be added to this object.
In the case of the Card Registration, this parameter can be used to facilitate the link between the User object and its equivalent on your platform for instance. This value will be inherited by the Card object Tag
parameter and will not be editable.
The date and time at which the object was created.
The unique identifier of the user the card belongs to.
The secure value to use when tokenizing the card via the dedicated endpoint.
The secure value to identify the registration when tokenizing the card via the dedicated endpoint.
The string returned by the tokenization server, which must be sent in full as the RegistrationData
on the PUT Update a Card Registration endpoint to create the Card object.
The unique identifier of the Card object, which is returned after updating the Card Registration object with the RegistrationData
.
Returned values: CB_VISA_MASTERCARD
, AMEX
, MAESTRO
, BCMC
Default value: CB_VISA_MASTERCARD
The type of the card. If not supplied, the default value will be taken into account.
The URL to make the card tokenization call.
Caution: This variable URL is specific to each card registration. You must rely on the returned URL in full (host, path, and queries) and not hardcode any part of it.
The code indicating the result of the operation. This information is mostly used to handle errors or for filtering purposes.
The explanation of the result code.
Returned values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).
The currency of the card.
Returned values: CREATED
, VALIDATED
, ERROR
The status of the card registration:
CREATED
– The card registration has been created, but noRegistrationData
has been entered yet and theCardId
value isnull
.VALIDATED
– The card registration has been successfully updated with theRegistrationData
from the tokenization server.ERROR
– The card registration couldn’t be updated with theRegistrationData
and noCardId
was generated. For more information, refer to theResultCode
(105206, 105299) andResultMessage
.
The unique identifier of the Card Registration object.
Custom data that can be added to this object.
In the case of the Card Registration, this parameter can be used to facilitate the link between the User object and its equivalent on your platform for instance. This value will be inherited by the Card object Tag
parameter and will not be editable.
The date and time at which the object was created.
The unique identifier of the user the card belongs to.
The secure value to use when tokenizing the card via the dedicated endpoint.
The secure value to identify the registration when tokenizing the card via the dedicated endpoint.
The string returned by the tokenization server, which must be sent in full as the RegistrationData
on the PUT Update a Card Registration endpoint to create the Card object.
The unique identifier of the Card object, which is returned after updating the Card Registration object with the RegistrationData
.
Returned values: CB_VISA_MASTERCARD
, AMEX
, MAESTRO
, BCMC
Default value: CB_VISA_MASTERCARD
The type of the card. If not supplied, the default value will be taken into account.
The URL to make the card tokenization call.
Caution: This variable URL is specific to each card registration. You must rely on the returned URL in full (host, path, and queries) and not hardcode any part of it.
The code indicating the result of the operation. This information is mostly used to handle errors or for filtering purposes.
The explanation of the result code.
Returned values: The three-letter ISO 4217 code (EUR, GBP, etc.) of a supported currency (depends on feature, contract, and activation settings).
The currency of the card.
Returned values: CREATED
, VALIDATED
, ERROR
The status of the card registration:
CREATED
– The card registration has been created, but noRegistrationData
has been entered yet and theCardId
value isnull
.VALIDATED
– The card registration has been successfully updated with theRegistrationData
from the tokenization server.ERROR
– The card registration couldn’t be updated with theRegistrationData
and noCardId
was generated. For more information, refer to theResultCode
(105206, 105299) andResultMessage
.
{
"Message": "One or several required parameters are missing or incorrect. An incorrect resource ID also raises this kind of error.",
"Type": "param_error",
"Id": "a241d282-377f-4415-ab81-5dc11c63f972",
"Date": 1723543647.0,
"errors": {
"CardHolderName": "The field CardHolderName must be between 2 and 255 characters long."
}
}
{
"Id": "cardreg_wt_11ed4694-d244-4bd1-92fb-dc473c99a9d4",
"Tag": null,
"CreationDate": 1726239226,
"UserId": "user_m_01J7KACBPAV7XAF8AH9BDCJPRS",
"AccessKey": "ehvrHoPE6FpjCCAgmNvg",
"PreregistrationData": "lhOJ6CFiDJPCXViyHjfcayh92nouB3AAaB5yqiLCBT6yjkLPCptmxsUdfffAc6EE4uj9AuSfmwbdfKN3BMechzUU3Gz8ectEx70TDeupudr",
"RegistrationData": "data=acIcnwwLleiAvlZUea5VxYT1eCIn3MER8jyZXr-p8Bzb4Rm8GIA0MQtPs2NL7zPzPO_I7EjQm-m92V909JUL6KT-PmPzJfAQZV_8PIz6wKvjorGNaNd8Mg1rqN6eBpS5Nx0xgKTVnyDj15oG8jR875",
"CardId": "card_m_NioQspdYckEoRlzd",
"CardType": "CB_VISA_MASTERCARD",
"CardRegistrationURL": "https://pci.sandbox.mangopay.com/api/mangopay/vault/tokenize/eyJjbGllbnQiOiJhbnRob255aF90ZXN0MSIsInRva2VuIjoiUlBQTVdJR1hrd0ZJSGFacyJ9",
"ResultCode": "000000",
"ResultMessage": "Success",
"Currency": "EUR",
"Status": "VALIDATED"
}
{
"RegistrationData": "data=acIcnwwLleiAvlZUea5VxZlDBkf07H6B9-N7SrRv5Vv7oSLc1hhCdoFX4JxfZL2iUkLIQL3o9ehAOeaXCbc1KFWnr4ySDvkZ--mJxxdF-vw-gzLNe3lvG2loJvmwrDyRNx0xgKTVnyDj15oG8jR88g",
"CardHolderName": "Alex Smith"
}
Was this page helpful?
{
"RegistrationData": "data=acIcnwwLleiAvlZUea5VxZlDBkf07H6B9-N7SrRv5Vv7oSLc1hhCdoFX4JxfZL2iUkLIQL3o9ehAOeaXCbc1KFWnr4ySDvkZ--mJxxdF-vw-gzLNe3lvG2loJvmwrDyRNx0xgKTVnyDj15oG8jR88g",
"CardHolderName": "Alex Smith"
}
{
"Id": "cardreg_wt_11ed4694-d244-4bd1-92fb-dc473c99a9d4",
"Tag": null,
"CreationDate": 1726239226,
"UserId": "user_m_01J7KACBPAV7XAF8AH9BDCJPRS",
"AccessKey": "ehvrHoPE6FpjCCAgmNvg",
"PreregistrationData": "lhOJ6CFiDJPCXViyHjfcayh92nouB3AAaB5yqiLCBT6yjkLPCptmxsUdfffAc6EE4uj9AuSfmwbdfKN3BMechzUU3Gz8ectEx70TDeupudr",
"RegistrationData": "data=acIcnwwLleiAvlZUea5VxYT1eCIn3MER8jyZXr-p8Bzb4Rm8GIA0MQtPs2NL7zPzPO_I7EjQm-m92V909JUL6KT-PmPzJfAQZV_8PIz6wKvjorGNaNd8Mg1rqN6eBpS5Nx0xgKTVnyDj15oG8jR875",
"CardId": "card_m_NioQspdYckEoRlzd",
"CardType": "CB_VISA_MASTERCARD",
"CardRegistrationURL": "https://pci.sandbox.mangopay.com/api/mangopay/vault/tokenize/eyJjbGllbnQiOiJhbnRob255aF90ZXN0MSIsInRva2VuIjoiUlBQTVdJR1hrd0ZJSGFacyJ9",
"ResultCode": "000000",
"ResultMessage": "Success",
"Currency": "EUR",
"Status": "VALIDATED"
}