Skip to main content

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​

NameMandatoryTypeDescription
amount_details+objectPayment amount details
  amount+intPayment amount in minor currency units. To send 100 EUR, write 10000
  currency+stringISO 4217 currency code. Case insensitive
customer-objectData about the customer in your system
  reference+stringCustomer identifier in your system
payment_methods-arrayPayment 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+stringPayment method name. Options:
- faster_payment_system—payment via the Faster Payment System
- card—payment by card
payment_options-objectAdditional payment parameters
  return_url-stringURL by which the user can return to the site at any time
  success_return_url-stringURL to which the user is redirected after the payment is successfully completed
  failure_return_url-stringURL to which the user is redirected if an error occurs during the payment
link_options-objectAdditional payment page parameters
  lang-stringPayment page language. Options: en, ru. Default value: en
  theme-stringPayment page theme. Options: dark, light. Default value: light
  is_recurrent-booleanSpecifies 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+stringText to be displayed to the user on the payment page. Example: Order number 345
items-arrayList of purchased items (up to 20 items)
  id+stringProduct item UUID in your system
  name+stringItem name (up to 200 characters)
  quantity+intQuantity of items
  category_code- (mandatory for MoR)stringProduct item category. Always: general
  description- (mandatory for MoR)stringProduct description (up to 500 characters)
  amount_details+objectAmount details
    amount+intItem price. The total amount for all the items must match the total of the transaction
    currency+stringItem 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​

NameMandatoryTypeDescription
order+objectOrder details
  order_id-stringPayment link ID
  payment_page_url-stringPayment link
  active_to-dateTimePayment link expiration date in ISO 8601 format
error-objectError 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"
}
}