payment_link
payment_link
Use this request to get a link to the payment page. You can pass the payment method, order description, item list, and amount in the request.
If a list of items is passed, the payer will see them on the payment page.
Endpoint
api/v1/payment_link
Request parameters
| Name | Mandatory | Type | Description |
|---|---|---|---|
amount_details | + | object | Payment amount details |
amount | + | int | Payment amount in minor currency units. To send 100 EUR, write 10000 |
currency | + | string | ISO 4217 currency code. Case insensitive |
customer | - | object | Data about the customer in your system |
reference | + | string | Customer identifier in your system |
payment_methods | - | array | Payment method details. Do not pass the array if you want the user to have access to all payment methods enabled for you. To offer only certain payment methods, pass them. Example: "payment_methods": [{"type": "faster_payment_system"}, {"type": "card"}] |
type | + | string | Payment method name. Options: - faster_payment_system—payment via the Faster Payment System - card—payment by card |
payment_options | - | object | Additional payment parameters |
return_url | - | string | URL by which the user can return to the site at any time |
success_return_url | - | string | URL to which the user is redirected after the payment is successfully completed |
failure_return_url | - | string | URL to which the user is redirected if an error occurs during the payment |
link_options | - | object | Additional payment page parameters |
lang | - | string | Payment page language. Options: en, ru. Default value: en |
theme | - | string | Payment page theme. Options: dark, light. Default value: light |
is_recurrent | - | boolean | Specifies whether the payment page offers the option to agree to recurring payments. If is_recurrent = true, a dedicated checkbox for recurring charges will be shown on the page |
metadata | - (mandatory for submerchants) | * | Any additional information. If the transaction is processed by a submerchant, specify the payment site: "metadata": {"submerchant": "https://website.com"} |
description | + | string | Text to be displayed to the user on the payment page. Example: Order number 345 |
items | - | array | List of purchased items (up to 20 items) |
id | + | string | Product item UUID in your system |
name | + | string | Item name (up to 200 characters) |
quantity | + | int | Quantity of items |
category_code | - (mandatory for MoR) | string | Product item category. Always: general |
description | - (mandatory for MoR) | string | Product description (up to 500 characters) |
amount_details | + | object | Amount details |
amount | + | int | Item price. The total amount for all the items must match the total of the transaction |
currency | + | string | Item price currency. The currency must match the currency of the transaction |
Request example
curl -X POST \
https://demo.smart-glocal.com/api/v1/payment_link \
-H 'content-type: application/json' \
-H 'X-PARTNER-PROJECT: your_project_name' \
-H 'X-PARTNER-SIGN: signature' \
-d '{
"amount_details": {
"amount": 10000,
"currency": "eur"
},
"customer": {
"reference": "customer"
},
"payment_methods": [{
"type": "faster_payment_system"
}],
"payment_options": {
"success_return_url": "https://test.dev",
"failure_return_url": "https://test.dev"
},
"items": [{
"amount_details": {
"amount": 10000,
"currency": "eur"
},
"id": "5179a750-c0b0-4211-b3b1-12a72242b1a4",
"name": "Premium Pro subscription",
"quantity": 1
}],
"metadata": {
"internal_id": "x-123-456",
"extra": "z-aaa-bbb"
},
"description": "Payment #x-123-456 by shop1.com"
}'
Response parameters
| Name | Mandatory | Type | Description |
|---|---|---|---|
order | + | object | Order details |
order_id | - | string | Payment link ID |
payment_page_url | - | string | Payment link |
active_to | - | dateTime | Payment link expiration date in ISO 8601 format |
error | - | object | Error description |
Response example
{
"order": {
"order_id": "B0k84Lo",
"payment_page_url": "https://checkout-demo.smart-glocal.com/pay/ceMjRsrRNRcU4p3G4qLkqx",
"active_to": "2026-04-24T14:39:43.000000Z"
}
}