Tokenize Card Temporarily
POST/temporary-payment-tokens
Creates a temporary card token for the duration of the session.
Request
- application/json
Body
required
Processing entityId provided by Nuvei.
80aef199-b89a-4d59-ba0c-f2cd3c25d5cdpaymentOption
object
required
card
object
required
The cardholder name.
Possible values: <= 70 characters
Jada PinkettThe full credit card number.
Possible values: >= 6 characters and <= 20 characters
5113981660016597The card expiration month.
Possible values: Value must match regular expression ^(0[1-9]|1[0-2])$
06The card expiration year.
Possible values: Value must match regular expression ^(\d{4}|\d{2})$
2022The CVV/CVC security code.
Possible values: <= 4 characters
591{"hello":"world"}Responses
- 201
- 400
- 401
- 403
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
temporaryPaymentToken
object
1eaf1356-a9a2-4a16-a0c1-290ba2265257paymentOption
object
required
card
object
The cardholder name.
Possible values: <= 70 characters
Jada PinkettThe masked credit card number.
Possible values: <= 20 characters
5***6597The first six or eight digits from the credit card number for identifying the processing bank. The rest of the number is not displayed.
Possible values: <= 8 characters
546221The card expiration month.
Possible values: Value must match regular expression ^(0[1-9]|1[0-2])$
06The card expiration year.
Possible values: Value must match regular expression ^(\d{4}|\d{2})$
2022The type of card used in the transaction.
Possible values: [Credit, Debit]
The card brand used in the transaction.
The card brand used in the transaction.
The card brand used in the transaction.
Indicates if the card is prepaid or not.
Possible values: >= 2 characters and <= 2 characters
result
object
required
Possible values: [success, error]
errors
object
If an error occurred on the request side, an error code is returned in this parameter.
Possible values: <= 11 characters
7000.1000If an error occurred on the request side, then an error reason is returned in this parameter.
Possible values: <= 400 characters
Unexpected errorInternal reference for troubleshooting
Possible values: <= 400 characters
{
"temporaryPaymentToken": {
"paymentTokenId": "1eaf1356-a9a2-4a16-a0c1-290ba2265257",
"paymentOption": {}
},
"result": {
"status": "success",
"errors": {
"code": "7000.1000",
"reason": "Unexpected error",
"reference": "string"
}
}
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
temporaryPaymentToken
object
1eaf1356-a9a2-4a16-a0c1-290ba2265257paymentOption
object
required
card
object
The cardholder name.
Possible values: <= 70 characters
Jada PinkettThe masked credit card number.
Possible values: <= 20 characters
5***6597The first six or eight digits from the credit card number for identifying the processing bank. The rest of the number is not displayed.
Possible values: <= 8 characters
546221The card expiration month.
Possible values: Value must match regular expression ^(0[1-9]|1[0-2])$
06The card expiration year.
Possible values: Value must match regular expression ^(\d{4}|\d{2})$
2022The type of card used in the transaction.
Possible values: [Credit, Debit]
The card brand used in the transaction.
The card brand used in the transaction.
The card brand used in the transaction.
Indicates if the card is prepaid or not.
Possible values: >= 2 characters and <= 2 characters
result
object
required
Possible values: [success, error]
errors
object
If an error occurred on the request side, an error code is returned in this parameter.
Possible values: <= 11 characters
7000.1000If an error occurred on the request side, then an error reason is returned in this parameter.
Possible values: <= 400 characters
Unexpected errorInternal reference for troubleshooting
Possible values: <= 400 characters
{
"temporaryPaymentToken": {
"paymentTokenId": "1eaf1356-a9a2-4a16-a0c1-290ba2265257",
"paymentOption": {}
},
"result": {
"status": "success",
"errors": {
"code": "7000.1000",
"reason": "Unexpected error",
"reference": "string"
}
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
temporaryPaymentToken
object
1eaf1356-a9a2-4a16-a0c1-290ba2265257paymentOption
object
required
card
object
The cardholder name.
Possible values: <= 70 characters
Jada PinkettThe masked credit card number.
Possible values: <= 20 characters
5***6597The first six or eight digits from the credit card number for identifying the processing bank. The rest of the number is not displayed.
Possible values: <= 8 characters
546221The card expiration month.
Possible values: Value must match regular expression ^(0[1-9]|1[0-2])$
06The card expiration year.
Possible values: Value must match regular expression ^(\d{4}|\d{2})$
2022The type of card used in the transaction.
Possible values: [Credit, Debit]
The card brand used in the transaction.
The card brand used in the transaction.
The card brand used in the transaction.
Indicates if the card is prepaid or not.
Possible values: >= 2 characters and <= 2 characters
result
object
required
Possible values: [success, error]
errors
object
If an error occurred on the request side, an error code is returned in this parameter.
Possible values: <= 11 characters
7000.1000If an error occurred on the request side, then an error reason is returned in this parameter.
Possible values: <= 400 characters
Unexpected errorInternal reference for troubleshooting
Possible values: <= 400 characters
{
"temporaryPaymentToken": {
"paymentTokenId": "1eaf1356-a9a2-4a16-a0c1-290ba2265257",
"paymentOption": {}
},
"result": {
"status": "success",
"errors": {
"code": "7000.1000",
"reason": "Unexpected error",
"reference": "string"
}
}
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
temporaryPaymentToken
object
1eaf1356-a9a2-4a16-a0c1-290ba2265257paymentOption
object
required
card
object
The cardholder name.
Possible values: <= 70 characters
Jada PinkettThe masked credit card number.
Possible values: <= 20 characters
5***6597The first six or eight digits from the credit card number for identifying the processing bank. The rest of the number is not displayed.
Possible values: <= 8 characters
546221The card expiration month.
Possible values: Value must match regular expression ^(0[1-9]|1[0-2])$
06The card expiration year.
Possible values: Value must match regular expression ^(\d{4}|\d{2})$
2022The type of card used in the transaction.
Possible values: [Credit, Debit]
The card brand used in the transaction.
The card brand used in the transaction.
The card brand used in the transaction.
Indicates if the card is prepaid or not.
Possible values: >= 2 characters and <= 2 characters
result
object
required
Possible values: [success, error]
errors
object
If an error occurred on the request side, an error code is returned in this parameter.
Possible values: <= 11 characters
7000.1000If an error occurred on the request side, then an error reason is returned in this parameter.
Possible values: <= 400 characters
Unexpected errorInternal reference for troubleshooting
Possible values: <= 400 characters
{
"temporaryPaymentToken": {
"paymentTokenId": "1eaf1356-a9a2-4a16-a0c1-290ba2265257",
"paymentOption": {}
},
"result": {
"status": "success",
"errors": {
"code": "7000.1000",
"reason": "Unexpected error",
"reference": "string"
}
}
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
temporaryPaymentToken
object
1eaf1356-a9a2-4a16-a0c1-290ba2265257paymentOption
object
required
card
object
The cardholder name.
Possible values: <= 70 characters
Jada PinkettThe masked credit card number.
Possible values: <= 20 characters
5***6597The first six or eight digits from the credit card number for identifying the processing bank. The rest of the number is not displayed.
Possible values: <= 8 characters
546221The card expiration month.
Possible values: Value must match regular expression ^(0[1-9]|1[0-2])$
06The card expiration year.
Possible values: Value must match regular expression ^(\d{4}|\d{2})$
2022The type of card used in the transaction.
Possible values: [Credit, Debit]
The card brand used in the transaction.
The card brand used in the transaction.
The card brand used in the transaction.
Indicates if the card is prepaid or not.
Possible values: >= 2 characters and <= 2 characters
result
object
required
Possible values: [success, error]
errors
object
If an error occurred on the request side, an error code is returned in this parameter.
Possible values: <= 11 characters
7000.1000If an error occurred on the request side, then an error reason is returned in this parameter.
Possible values: <= 400 characters
Unexpected errorInternal reference for troubleshooting
Possible values: <= 400 characters
{
"temporaryPaymentToken": {
"paymentTokenId": "1eaf1356-a9a2-4a16-a0c1-290ba2265257",
"paymentOption": {}
},
"result": {
"status": "success",
"errors": {
"code": "7000.1000",
"reason": "Unexpected error",
"reference": "string"
}
}
}