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:

ParameterTypeMandatoryDescriptionValue
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
resultintResponse Status0
permanent_linksarrayArray of objects (permanent links)

Unsuccessful

ParameterTypeDescriptionValue
codeintError code
messagestring / arrayDescription of the error

Array element permanent_links

ParameterTypeDescriptionValue
merchant_idstringMerchant ID
idstringPermanent link ID
namestringPermanent link name
permanent_linkstringPermanent link
kindintType of link0 - fixed amount (default)
1 - arbitrary amount
enable_counterintQuantity 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_amountintDisplay 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:

ParameterTypeMandatoryDescriptionValue
merchant_idstring+Merchant ID
operationstring+Type of operationPurchase
P2Pin
card_number2stringRecipient's card number
Mandatory for operation = P2Pin!
namestring+The name of the permanent link
kindintType of link0 - fixed amount (by default)
1 - arbitrary amount
enable_counterintQuantity 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_amountintDisplay 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
resultintResponse Status0
idstringPermanent link ID
permanent_linkstringPermanent link

Unsuccessful

ParameterTypeDescriptionValue
codeintError 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:

ParameterTypeMandatoryDescriptionValue
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_amountintDisplay 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
resultintResponse Status0

Unsuccessful

ParameterTypeDescriptionValue
codeintError 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:

ParameterTypeMandatoryDescriptionValue
merchant_idstring+Merchant ID
idstring+Permanent link ID
per_pageintNumber of operations on pageDefault: 100
pageintPage 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
resultintResponse Status0
operationsarrayAn array of objects (operations) related to this link in APPROVED and WAITING-AUTH status.
Default: the most recent 100 operations performed
per_pageintNumber of operations on page
pageintPage number
totalintTotal number of operations

Unsuccessful

ParameterTypeDescriptionValue
codeintError code
messagestring / arrayDescription of the error

An element of the operations array

ParameterTypeDescriptionValue
merchant_idstringMerchant ID
idintOperation 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