6. Restart Recurring

Restart Recurring Payment

PUT {{Base Adres}}/api/paywall/recurring/resubscribe

Important: To use the payment service, you need to send the 'apikeypublic' and 'apiclientpublic' parameters in the 'Header' section. PaymentAPI Address

When you want to restart the subscription, there must be an active card within the recurring payment membership. If the existing card has been deleted, PayWall returns an error message.

ParameterTypeMandatoryDescription

apikeypublic

string

Yes

The Public Key obtained from the merchant panel.

apiclientpublic

string

Yes

The Public Client obtained from the merchant panel.

The parameters that need to be sent to the service are as follows:

ParameterTypeMandatoryDescription

SubscriptionMerchantCode

string

Yes

The unique tracking number provided by your side for the recurring payment

Sample to be sent to the service JSON and sample codes is as follows

{
    "SubscriptionMerchantCode": "tesat2merchantcode"
}

The returned parameters from the service are as follows:

ParameterTypeDescription

ErrorCode

int

If the operation is successful, it returns a value of '0'.

Result

bool

It returns a 'true' value if the operation is successful or 'false' if it is not

Message

string

If the operation fails, this is the specified error message

Body

object

No details are returned

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

Last updated