Skip to main content
Version: 1.0.0

Permanent Links API

To get a list of permanent links, you need to send a POST request with the following data.

Production url: https://****.procard-ltd.com/permanent-links/list

POST parameters:

ParameterTypeRequiredDescriptionValue
merchant_idString+Merchant ID
signatureString+Control signature.
The merchant_id parameter is subject to HMAC_SHA512 using the merchant's SecretKey

The following parameters are received in response:

Successful

ParameterTypeDescriptionValue
resultIntegerResponse Status0
permanent_linksArrayArray of objects (permanent links)

Unsuccessful

ParameterTypeDescriptionValue
codeIntegerError code
messageString / ArrayDescription of the error

Array element permanent_links

ParameterTypeDescriptionValue
merchant_idStringMerchant ID
idStringPermanent link ID
nameStringPermanent link name
permanent_linkStringPermanent link
kindIntegerType of link0 - fixed amount (default)
1 - arbitrary amount
enable_counterIntegerQuantity Control.
The payment form will display an amount and a quantity control that allows you to increase the payment amount by multiples of the selected quantity
0 - disabled
1 - enabled
amountStringSum.
One or more separated by “;” (semicolon)
100; 200; 300
descriptionStringDescription of payment
custom_amountFloatAdditional amount.
The amount that will be added to the accumulated amount.
target_amountFloatTarget amount
show_total_amountIntegerDisplay information about accumulation.
Display the amount of accumulated funds and the target amount on the payment page, if it is specified
0 - disabled
1 - enabled
languageStringPayment page languageukr
en
ru

Example request:

{
"signature":"d1345960ee7fdd52fd323685d69af86e",
"merchant_id":"TEST_TRADER_2"
}

Example of a success response:

{
"result":0,
"permanent_links":[
{
"merchant_id":"TEST_TRADER_2",
"id":"TzrBX6Tgas",
"name":"Фіксована с кількістю",
"permanent_link":"https://front.dev/TzrBX6Tgas",
"kind":0,
"enable_counter":1,
"amount":"100.34",
"description":"Платіж фіксована с кількістю",
"custom_amount":0,
"target_amount":0,
"show_total_amount":0,
"language":"ukr"
},
{
"merchant_id":"TEST_TRADER_2",
"id":"lguYXHGDb2",
"name":"Фіксована без кількості",
"permanent_link":"https://front.dev/lguYXHGDb2",
"kind":0,
"enable_counter":0,
"amount":"10.55",
"description":"Платіж фіксована без кількості",
"custom_amount":0,
"target_amount":0,
"show_total_amount":0,
"language":"ukr"
},
{
"merchant_id":"TEST_TRADER_2",
"id":"7LbWunScwD",
"name":"Довільна без рекомендованої",
"permanent_link":"https://front.dev/7LbWunScwD",
"kind":1,
"enable_counter":0,
"amount":"",
"description":"Платіж довільна без рекомендованої",
"custom_amount":0,
"target_amount":0,
"show_total_amount":0,
"language":"ukr"
}
]
}

Example of a request processing refusal response:

{
"code": -13,
"message": "Parameter signature not found"
}

Other error codes see Dictionary. System Error Codes

Production url: https://****.procard-ltd.com/permanent-links/create

To create a permanent link, you need to send a POST request with the following data.

POST parameters:

ParameterTypeRequiredDescriptionValue
merchant_idString+Merchant ID
operationString+Type of operationPurchase
P2Pin
card_number2StringRecipient's card number
Required for operation = P2Pin!
nameString+The name of the permanent link
kindIntegerType of link0 - fixed amount (by default)
1 - arbitrary amount
enable_counterIntegerQuantity control.
The payment form will display an amount and a quantity control that allows you to increase the payment amount by multiples of the selected quantity
0 - disabled
1 - enabled
amountString+Amount.
One or more separated by “;” (semicolon)
Can be an empty String if kind = 1
100;200;300
descriptionString+Description of payment
custom_amountFloatAdditional amount.
The amount that will be added to the accumulated amount. Fill in the field as needed, or leave it blank if there is no need for correction.
target_amountFloatTarget amount
show_total_amountIntegerDisplay savings information. Display the amount of accumulated funds and the target amount, if specified, on the payment page0 - disabled
1 - enabled
languageString+Payment page languageukr
en
ru
signatureString+Control signature.
A String of concatenated parameters merchant_id, operation, amount, language separated by “;” (semicolon) in UTF-8 encoding is subject to HMAC_SHA512 using the merchant's SecretKey.
Order of parameters during concatenation is important!

The following parameters are received in response:

Successful

ParameterTypeDescriptionValue
resultIntegerResponse Status0
idStringPermanent link ID
permanent_linkStringPermanent link

Unsuccessful

ParameterTypeDescriptionValue
codeIntegerError code
messageString / ArrayDescription of the error

An example of a request to create a permanent link with the type of operations Purchase for a fixed amount with the ability to choose the amount:

{
"merchant_id": "BO_c329e89e362aba4",
"operation": "Purchase",
"kind": 0,
"amount": "1.10",
"enable_counter": 1,
"signature": "41f3c91852e13b856fdff9fe92feea1b",
"name": "Назва постійного посилання",
"description": "Призначення платежу",
"language": "ukr"
}

Example of a request to create a permanent link with the type of operations Purchase for an arbitrary amount with accumulation:

{
"merchant_id": "BO_c329e89e362aba4",
"operation": "Purchase",
"kind": 1,
"amount": "",
"signature": "12ed9cd9e82df7d1afd5460cd8e8041f",
"show_total_amount": 1,
"custom_amount": 100.55,
"target_amount": 10000,
"name": "Назва постійного посилання",
"description": "Призначення платежу",
"language": "en"
}

Example of a request to create a permanent link with the operation type P2Pin:

{
"merchant_id": "TEST_TRADER_2",
"operation": "P2Pin",
"amount": "1.12",
"card_number2": "4000000000000000",
"signature": "85a92a58919ec58d1716a449f6338231",
"name": "Назва постійного посилання",
"description": "Призначення платежу",
"language": "ukr"
}

Example of a success response:

{
"result": 0,
"id": "yqqNCgWLkD",
"permanent_link": "https://front.dev/yqqNCgWLkD"
}

Example of a rejection response:

{
"code": -13,
"message": "Parameter signature not found"
}

Other error codes see Dictionary. System Error Codes

Production url: https://****.procard-ltd.com/permanent-links/update

To edit a permanent link, you must send a POST request with the following data.

POST parameters:

ParameterTypeRequiredDescriptionValue
merchant_idString+Merchant ID
idString+Permanent link ID
nameString+The name of the permanent link
amountString+Amount.
One or more separated by “;” (semicolon)
Can be an empty String if kind = 1
100;200;300
descriptionString+Purpose of payment
custom_amountFloatAdditional amount.
The amount that will be added to the accumulated amount.
Fill in the field as needed, or leave it blank if no correction is needed.
target_amountFloatTarget amount
show_total_amountIntegerDisplay information about accumulation.
Display the amount of accumulated funds and the target amount, if it is specified, on the payment page
0 - disabled
1 - enabled
languageString+Payment page languageukr
en
ru
signatureString+Control signature.
A String of concatenated parameters merchant_id, id, amount, language separated by “;” (semicolon) in UTF-8 encoding is subject to HMAC_SHA512 using the merchant's `SecretKey'.
Order of parameters during concatenation is important!

The following parameters are received in response:

Successful

ParameterTypeDescriptionValue
resultIntegerResponse Status0

Unsuccessful

ParameterTypeDescriptionValue
codeIntegerError code
messageString / ArrayDescription of the error

Example request:

{
"merchant_id": "TEST_TRADER_2",
"id": "yqqNCgWLkD",
"custom_amount": 546.54,
"amount": "100;200;500;1000;3500",
"target_amount": 10000,
"signature": "46f9bf919ea2f0e0ce8772c5698eb54e",
"show_total_amount": 1,
"name": "Назва постійного посилання",
"description": "Призначення платежу",
"language": "en"
}

Example of a success response:

{
"result": 0
}

Example of a rejection response:

{
"code": -13,
"message": "Parameter signature not found"
}

Other error codes see Dictionary. System Error Codes

Production url: https://****.procard-ltd.com/permanent-links/operations

To get a list of operations performed on the specified permanent link, you need to send a POST request with the following data.

POST parameters:

ParameterTypeRequiredDescriptionValue
merchant_idString+Merchant ID
idString+Permanent link ID
per_pageIntegerNumber of operations on pageDefault: 100
pageIntegerPage numberDefault: 1
signatureString+Control signature.
A String of concatenated parameters merchant_id, id separated by “;” (semicolon) in UTF-8 encoding is subject to HMAC_SHA512 using the merchant's SecretKey.
Order of parameters during concatenation is important!

The following parameters are received in response:

Successful

ParameterTypeDescriptionValue
resultIntegerResponse Status0
operationsArrayAn Array of objects (operations) related to this link in APPROVED and WAITING-AUTH status.
Default: the most recent 100 operations performed
per_pageIntegerNumber of operations on page
pageIntegerPage number
totalIntegerTotal number of operations

Unsuccessful

ParameterTypeDescriptionValue
codeIntegerError code
messageString / ArrayDescription of the error

An element of the operations Array

ParameterTypeDescriptionValue
merchant_idStringMerchant ID
idIntegerOperation ID
dateStringDate of operation
amountStringAmount
total_amountStringFinal amount
feeStringCommission amount
statusStringOperation Status (see Dictionary. Payment Statuses)
card_numberStringMasked card number
order_idStringOrder ID
descriptionStringPurpose of payment
STANStringTransaction number

Example request:

{
"merchant_id": "TEST_TRADER_2",
"id": "yqqNCgWLkD",
"per_page": 2,
"page": 2,
"signature": "d77dadde9b9bfee8137ab2904b33bd0d"
}

Example of a success response:

{
"result": 0,
"operations": [
{
"merchant_id": "TEST_TRADER_2",
"id": 78,
"date": "2023-07-12 17:07:40",
"amount": "1.00",
"total_amount": "-0.01",
"fee": "1.01",
"status": "APPROVED",
"card_number": "401200******3010",
"order_id": "64aeb3acb85418.20210539",
"description": "Довільна с багатьма рекомендованими сумами",
"STAN": "3081634"
},
{
"merchant_id": "TEST_TRADER_2",
"id": 79,
"date": "2023-07-12 17:07:41",
"amount": "200.55",
"total_amount": "197.54",
"fee": "3.01",
"status": "APPROVED",
"card_number": "401200******3010",
"order_id": "64aeb3ad465bc7.92402800",
"description": "Довільна с багатьма рекомендованими сумами",
"STAN": "3081632"
}
],
"per_page": 2,
"page": 2,
"total": 5
}

Example of a rejection response:

{
"code": -13,
"message": "Parameter signature not found"
}

Other error codes see Dictionary. System Error Codes