Order Creation


   POST https://tegro.money/api/createOrder/
      

Use this method to obtain a direct payment link for an order

Request

Header
Authorization string Request signature
Body
shop_id string Shop ID
nonce integer Unique request number
currency string Payment currency, RUB/USD/EUR etc
amount number Payment amount
order_id string Your store's order number
payment_system integer Payment system ID
fields array Buyer's information
receipt array Shopping cart information

Response


   {
      "type": "success",
      "desc": "",
      "data": {
         "id": 755555,
         "url": "https://tegro.money/pay/complete/755555/7f259f856e7682a6e98179036a623696/"
      }
   }

Request Example


   {
      "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
            }
         ]
      }
   }