5. Increase Balance

You can increase the balances of the cards you have created.

Card - Increase Balance

POST {{Base Address}}/api/paywall/card/production/balance/increase

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 - Increase Balance' service, you need to send the 'apikeyprivate' and 'apiclientprivate' parameters in the 'Header' section. PaymentAPI Address

The header information that needs to be sent to the service is as follows:

ParameterTypeMandatoryDescription

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:

ParameterTypeMandatoryDescription

CardId

int

Yes

The card's ID information in PayWall. Returned at the time of creation.

Amount

decimal

Yes

Balance amount.

{
    "CardId": 144353,
    "Amount": 10
}

The response from the service:

ParameterTypeDescription

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.

{
    "ErrorCode": 0,
    "Result": true,
    "Message": "",
    "Body": null
}

Last updated