6. Decrease Balance
You can decrease the balances of the cards you have created.
Card - Decrease Balance
POST
{{Base Address}}/api/paywall/card/production/balance/decrease
Sending a request to the provided address above will be sufficient. You can use the 'Base Address' as you wish for both the test environment and the production environment.
Important: In order to use the 'Card - Decrease Balance' service, you need to send the 'apikeyprivate' and 'apiclientprivate' parameters in the 'Header' field. PaymentAPI Address
The header information that needs to be sent to the service is as follows:
Parameter | Type | Mandatory | Description |
---|---|---|---|
apikeyprivate | string | Yes | The Private Key obtained from the merchant panel. |
apiclientprivate | string | Yes | The Private Client obtained from the merchant panel. |
The parameters that need to be sent to the service are as follows:
Parameter | Type | Mandatory | Description |
---|---|---|---|
CardId | int | Yes | The ID information of the card in PayWall. Returned at the time of creation. |
Amount | decimal | Yes | The balance amount. |
The response from the service:
Parameter | Type | Description |
---|---|---|
Body | object | It returns null. Does not provide details. |
ErrorCode | int | Error code. If the transaction is successful, it returns '0'. |
Result | bool | It returns either true or false. If the transaction is successful, it returns 'true'. |
Message | string | If the transaction is unsuccessful, this is the error message provided, with language support according to the 'locale' parameter. |
Last updated