Create the payment on your server
POST /v2/payments returns paymentUrl and a payment ID. Store the ID against your order reference. Check that SBP is enabled for the shop before using it in checkout.
Easily connect payment acceptance to your service via the API. Payments, receipts, subscriptions, balances and payouts — in one REST API.
curl -X POST https://urlpay.io/api/v2/payments \ -H "Authorization: Bearer <API-key>" \ -H "Content-Type: application/json" \ -d '{ "currency": "rub", "amount": "1000.50", "uuid": "invoice_123", "shopId": 5, "description": "Покупка булочек", "items": [{ "description": "Покупка булочек", "quantity": 1, "price": 1000.50, "vat_code": 0, "payment_subject": 1, "payment_mode": 4 }], "sign": "<sha1>" }'
sign = sha1("rub" + "1000.50" + "5" + "<secret_key>"){
"success": true,
"paymentUrl": "https://urlpay.io/payment/widget/…",
"id": 1
}If a notification URL is set in your shop settings, UrlPay sends it a POST request with the payment status: success — paid, cancel — canceled.
{
"id": 12345,
"amount": 100.50,
"currency": "RUB",
"uuid": "external-uuid-123",
"payment_status": "success"
}POST /v2/payments returns paymentUrl and a payment ID. Store the ID against your order reference. Check that SBP is enabled for the shop before using it in checkout.
When SBP is enabled, the customer selects it on the hosted page and opens the bank app via the QR code or payment button. The amount is tied to the payment you created.
Use the payment notification or retrieve the payment with GET /v2/payments/{id}. Match the reference and amount to your order before confirming purchase.
All methods, parameters and responses — from the OpenAPI specification.
Loading the reference…