Skip to content

Create Payment

Create a payment and obtain a payment link.

Request Endpoint

POST/payin/create

Request Body

NameTypeRequiredDescription
order_idstringYesPayment ID
amountnumberYesPayment amount (e.g. 10.00)
currencystringYesPayment currency (e.g. USD)
client_emailstringYesCustomer email
client_idstringYesCustomer ID in your system
url_returnstringNoURL to redirect the user after payment
lifetimeintegerNoPayment link lifetime in minutes. Allowed: 30–4320 (default: 1440)

Important

For Telegram bots and services using Telegram authentication, the client_email field may be passed in the format [email protected].

Response Body

NameTypeDescription
statusbooleanRequest processing result
msgstringError description or empty string
dataobjectPayment data object
data.idintegerPayment ID in our system
data.urlstringPayment link
data.expire_atintegerLink expiration time (Unix timestamp)
data.uidstringUnique payment identifier

Response Example

json
{
	"status": true,
	"msg": "",
	"data": {
		"id": 123,
		"url": "https://severpay.io/pay/link123",
		"expire_at": 1735675200,
		"uid": "01KBCWM19JEQW53ZR1GKYQ6MN7"
	}
}

SeverPay.io API Documentation