To activate a pre-order, you need to send a request with the raketa_order_uuid that you passed to the iframe. raketa_order_uuid is the UUID of the 4th version, which is created in advance for this order. Order activation means that the order will be activated in our system and a courier will be assigned to it.

SERVER_HOST:

Prod: https://server.raketa.city

Dev: https://dev-server.raketa.city

Make a request using the POST method to the link:

{SERVER_HOST}/api-gate/v0/deliveries/confirm-raketa-order-uuid

Headers:

-header 'Authorization: JWT {Token}' \\
-header 'Content-Type: application/json' \\

Body:

{
   "raketa_order_uuid": "16e00878-ec97-4e28-8ec4-0dcd05dd3152",
   "product_name": "iPhone XR;Macbook Pro 15;Apple Ait Tag", 
	 "items": [ 
		    { 
		        "title": "iPhone XR", 
		        "price": 270300, 
		        "count": 1 
		    }, 
		    { 
		        "title": "Macbook Pro 15", 
		        "price": 450000, 
		        "count": 1 
		    },
				{ 
		        "title": "Apple Air Tag", 
		        "price": 15000, 
		        "count": 3 
		    }
		],
	 "amount_to_accept_payment": 765300
}

Response:

Status: 200 Ok

Data: