Passa al contenuto principale

OneClickResponse

Successful response with one OneClick

errorintegerrequired

Always 0 in a successful response

Constant value: 0
messagestring | nullnullablerequired

Always null in a successful response

data objectrequired

One-Click payment method: a card or an account saved by the customer, used for One-Click payments and automatic renewals

one_click_idintegerrequired
payment_methodstringrequired

Name of the payment method, in Italian, for example Carta di credito or PayPal

descriptionstring | nullnullablerequired

Description of the method: the name of the payment method followed by the card (brand, last digits and expiry) or the email of the account

method_typestring | nullnullablerequired

Type of the method: VISA, MASTERCARD, MAESTRO, AMERICAN_EXPRESS, PAYPAL, APPLEPAY, GOOGLEPAY, AMAZONPAY or SATISPAY; null when unknown

creditcard_panstring | nullnullablerequired

Number of the card, masked or reduced to the last digits; null for the methods without a card

date_expirydatenullablerequired

Expiry of the method: the expiry of the card or, without a card, four years after the activation

date_createddate-timerequired
metarequired

Always null: only the paginated lists have a meta

Constant value: null
OneClickResponse
{
"error": 0,
"message": "string",
"data": {
"one_click_id": 0,
"payment_method": "string",
"description": "string",
"method_type": "string",
"creditcard_pan": "string",
"date_expiry": "2024-07-29",
"date_created": "2024-07-29T15:51:28.071Z"
}
}