Create credit card token
https://api.payota.net/api/public/v1/manage/init_partners
ℹ️
The call is required for bookings where the
is_need_credit_card_data
field was passed with the true
value.
The call creates and returns a credit card token for the order payment. The PCI DSS standard guarantees safe and secure processing.
Request example
curl --user '<KEY_ID>:<API_KEY>' 'https://api.payota.net/api/public/v1/manage/init_partners' \
--header 'Content-Type: application/json' \
--data '{
"object_id": "32165487",
"pay_uuid": "797870e3-e1f0-470a-87b3-38694f58bed1",
"init_uuid": "c44ef1ba-595b-437f-ad14-74ce39a0f9ad",
"user_last_name": "LastName",
"cvc": "123",
"is_cvc_required": true,
"credit_card_data_core": {
"year": "18",
"card_number": "4111111111111111",
"card_holder": "TEST",
"month": "01"
},
"user_first_name": "Name"
}'
Request body
Response example
{
"status": "ok"
}
Errors
The error
field has the value specified in the headers below.
body_error
The passed JSON isn’t valid.
validation_error
Not all required field values are passed.
invalid_pay_uuid
The invalid_pay_uuid
field value doesn’t match the pattern.
invalid_init_uuid
The invalid_init_uuid
field value doesn’t match the pattern.
invalid_month
The month is invalid. Try a different one.
invalid_year
The year is invalid. Try a different one.
invalid_cvc
The credit card data is invalid. Try a different one.
invalid_card_number
The credit card data is invalid. Try a different one.
invalid_card_holder
The cardholder name is invalid. Try a different one.
invalid_is_cvc_required
The is_cvc_required
field value is required.
luhn_algorithm_error
The credit card number hasn’t passed the Luhn algorithm check.