mutation

attachCardToCustomer

Link payment card to a user account for seamless transactions. Upon successful linking, the card becomes associated with the user's profile, enabling secure and convenient payments.
Arguments
attachCardRequestInput
AttachCardRequestInput
A card request to be attached to the customer.
Response
data
JSON!
Required
List of cards of customer.
message
String
Human readable message.
success
Boolean!
Required
Response is successful or not.
Mutation
1mutation attachCardToCustomer($attachCardRequestInput: AttachCardRequestInput) {
2 attachCardToCustomer(attachCardRequestInput: $attachCardRequestInput) {
3 data
4 message
5 success
6 }
7}
Try it
Input Variables
1{
2 "attachCardRequestInput": {
3 "card_id": "card_id",
4 "name_on_card": "name_on_card",
5 "nickname": "nickname",
6 "refresh": true
7 }
8}
Response
1{
2 "attachCardToCustomer": {
3 "data": {},
4 "message": "message",
5 "success": true
6 }
7}