Create order

post
createOrder

https://api.roskassa.net/createOrder
Use this method to get a direct link to pay for your order.
Request
Response
Request
Headers
Authorization
required
string
Request signature
Body Parameters
shop_id
required
string
Shop ID
nonce
required
integer
Unique request number
currency
required
string
Payment currency, RUB/USD/EUR etc
amount
required
number
Payment amount
order_id
required
string
Order number in your store
payment_system
required
integer
Payment system ID
fields
required
array
Buyer details
receipt
optional
array
Shopping cart data
Response
200: OK
{
"type":"success",
"desc":"",
"data":{
"id":755555,
"url":"https://pay.roskassa.net/complete/755555/7f259f856e7682a6e98179036a623696/"
}
}

Sample request with all required fields

{
"shop_id":"1913EA935149B1E5D852A",
"nonce":1613435880,
"currency":"RUB",
"amount":1200,
"order_id":"test order",
"payment_system":5,
"fields":{
"email":"[email protected]",
"phone":"79111231212"
},
"receipt":{
"items":[
{
"name":"test item 1",
"count":1,
"price":600
},
{
"name":"test item 2",
"count":1,
"price":600
}
]
}
}