4. Update Card
It is recommended to perform the process of updating a saved card only through your servers (Back-End). Direct access from your applications (End User) is not advised.
Update Saved Card
PUT
{{Base Adres}}/paywall/card/insurance
It will be sufficient to send the request to the address provided above. You can use the 'Base Address' as desired for both the test environment and the production environment.
The parameters to be sent to the service (HEADERS) are as follows:
apikeyprivate
string
Yes
The Private Key obtained from the merchant's admin panel.
apiclientprivate
string
Yes
The Private Client obtained from the merchant's admin panel.
The parameters to be sent to the service (BODY) are as follows:
RelationalId1
string
Yes
The unique information associated with the card.
RelationalId2
string
No
The second unique information associated with the card.
RelationalId3
string
No
The third unique information associated with the card.
UniqueCode
string
Yes
The unique information (identity) of the saved card.
Month
int
Yes
The expiration month (Month) of the saved card that is to be updated.
Year
int
Yes
The expiration year (Year) of the saved card that is to be updated.
{
"RelationalId1": "003",
"RelationalId2": "004",
"RelationalId3": "",
"UniqueCode": "921245xQN85D0+Zuf7oAJv5@@@@@G86eN7RA4cX8L4hHo7Ma3hg7AW7Bq232yPyw2iVPkrt1qEw==",
"Month": 12,
"Year": 2030
}
The parameters related to the response message sent by the service after the transaction are as follows:
ErrorCode
int
It indicates the result of the transaction. If the transaction is successful, it returns '0'; if not, it returns '1'.
Result
string
If the transaction is successful, it returns 'true'; otherwise, it returns 'false'.
Message
string
It provides the result message of the transaction.
Body
object
If the transaction is erroneous, this is the detailed object related to the error.
Example Code:
{
"ErrorCode": 0,
"Result": true,
"Message": "",
"Body": ""
}
Last updated