3. Activate
You can activate your cards.
Activate Card
PUT
{{Base Address}}/api/paywall/card/production/enable
Simply making a request to the address provided above will suffice. You can use the 'Base Address' as you wish for both the Test environment and the Production environment.
The header information that needs to be sent to the service is as follows:
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:
CardId
int
Yes
The Id information of the card in Paywall. It is returned at creation.
{
"CardId": 12
}
The response returned from the service:
Body
object
It returns null. No details provided.
ErrorCode
int
Error code. If the transaction is successful, it returns a value of '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 message specified for the error, providing language support based on the 'locale' parameter.
{
"ErrorCode": 0,
"Result": true,
"Message": "",
"Body": null
}
Last updated