Set the type field to extd_wallet and provide the exact wallet payment type expected by your payment gateway in the extendedPaymentMethodType field to create Saved Payment Method (SPM) for a wallet payment method.
Sample JSON request
{
"merchantAccountId": "8zbSM0000000F8jYAE",
"referenceOwnerId": "001SM00000FwMhEYAV",
"paymentGatewayId": "0b0SM0000002oLhYAI",
"Status": "Active",
"usageType": "OFFSESSION",
"Name": "AmazonPay...001",
"GatewayReference": "cus_TEGn3J3WI5onpb",
"gatewayToken": "pm_1SHoagRO2MG01L0jLSbc4sdm",
"last4": "1234",
"type": "extd_wallet",
"Checksum": "UNIQUE_GATEWAY_HASH_Wallet_10001",
"ExtendedPaymentMethodType": "amazon_pay"
}
Sample JSON response
{
"id": "12qSM000000qfS6YAI",
"success": true,
"errors": []
}