| Query Parameter | Required | Description |
|---|---|---|
userReference | O | The reference for the user. With this parameter specified, you can retrieve all the payment method(s) stored for the user. |
token | O | The token value for a specific stored payment method. With this parameter specified, you can retrieve the specific payment method stored with this token value. |
paymentMethodList array in the response contains the user's stored payment method(s).expiryDate and holderName of a card, and the userReference, vaultID, and tokenValidDays of the token. The gateway token value remains the same when you update these details. If the user updates with a new card number, you need to store it as a new gateway token.userReference and vaultID can be updated./g2/v1/payment/mer/{sid}/paymentMethod| Query Parameter | Required | Description |
|---|---|---|
| token | M | The token value for the stored payment method to be updated. |
| Body Parameter | Required | Description |
|---|---|---|
paymentMethod | M | - For E-Wallet updates: Specify paymentMethod.type as e-wallet with userInfo.reference and/or paymentMethod.e-wallet.vaultID that you are going to update.- For Card updates: Specify paymentMethod.type as card with paymentMethod.card.cardInfo.expiryDate, paymentMethod.card.cardInfo.holderName, userInfo.reference, paymentMethod.card.vaultID, and/or paymentMethod.card.tokenValidDays that you are going to update. For tokenValidDays, specify 0 to set the token as permanently valid, or 1-365 to extend the valid time by 1-365 days from the request date. |
metadata | O | A self-defined reference information that you can specify in the request and will be echoed back in the response. |
paymentMethod object to show the updated token information:| Query Parameter | Required | Description |
|---|---|---|
userReference | O | The reference for the user. With this parameter specified, you can disable all payment method(s) stored for the specific user. |
token | O | The token value for a specific stored payment method. With this parameter specified, you can disable the specific payment method stored with this token value. |
| Body Parameter | Required | Description |
|---|---|---|
metadata | O | A self-defined reference information that you can specify in the request and will be echoed back in the response. |
initiatingReason | O | You can state the reason for the request in this field, which is required when the user is trying to delete the token for WeChat Pay. |
userReference will be ignored.paymentMethodList array to show the deleted token information.