Add customer payment to wallet
POST /api/customers/v1/wallet
Adds new payment method to wallet. Either X-CUSTOMER-AUTH header or external_id param is required.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Customer id in your platform
Request Body
Section titled “Request Body ”object
URL where callback will be sent in case of successful or unsuccessful card confirmation
Required for hosted mode.
Based on your choice in the type field, one of the fields becomes required too.
Required for direct mode.
object
Decoded information about tokenized card from card widget.
object
Card token received from widget or payment response
Card mask received from widget or payment response
Card expire date received from widget or payment response
Example
2027-01-02T15:04:05Flag that indicates necessity of the 3ds confirmation.
The 3ds confirmation will be skipped if set false
Encoded string containing info returned by card widget.
object
Encoded string returned by card widget.
Flag that indicates necessity of the 3ds confirmation.
The 3ds confirmation will be skipped if set false
Payment method type
URL where user will be redirected from the checkout in case if mode set to hosted
Automatically set new payment method as default in wallet, if it was confirmed.
Describes the way of the integration:
hosted- returns checkout page, where user can enter his payment details.direct- requirespayment_methoddetails in request. Usually returns url for second factor (3DS or other).
object
Callbacks
Section titled “ Callbacks ”WalletAddPaymentConfirmation
Section titled “WalletAddPaymentConfirmation”Returns status of operation after accepting/rejecting on the 3ds page.
Callback won’t be sent in case when original request returned success or failure status
Request Body
Section titled “Request Body ”object
Object which contains information about required post-request action. Will be null if action not required.
object
Action value. Usually it’s a checkout url or 3ds verification url.
Flag that indicates necessity of the post-request action (fill data on the checkout, 3ds confirmation, etc.)
object
object
Card expire date
Card mask
Card token
Card number
Bank short name
Payment system
id of added card. Can be used for payments with wallet payment type.
Optional card name set by user.
Type of the performed operation
object
User identifier on your platform
Responses
Section titled “ Responses ”Shows that callback was accepted. No further callback after this response.
Responses
Section titled “ Responses ”object
Object which contains information about required post-request action. Will be null if action not required.
object
Action value. Usually it’s a checkout url or 3ds verification url.
Flag that indicates necessity of the post-request action (fill data on the checkout, 3ds confirmation, etc.)
object
object
Card expire date
Card mask
Card token
Card number
Bank short name
Payment system
id of added card. Can be used for payments with wallet payment type.
Optional card name set by user.
Type of the performed operation
object
User identifier on your platform
object
Too Many Requests.
object
Headers
Section titled “Headers ”Request limit per second.
The number of requests left for the time window.
Seconds needed for full regeneration.