Purchase ### Purchase order This method is used to purchase the order, you need to send the _order_id_, _overall_ *(Is total_price, based on user currency)* from [v2/cart/order](/apidocs/cart/order) to this endpoint to purchase the order. Cart

A list of all publicly available methods for interacting with the API.

PUT

Cart purchase Purchase ### Purchase order This method is used to purchase the order, you need to send the _order_id_, _overall_ *(Is total_price, based on user currency)* from [v2/cart/order](/apidocs/cart/order) to this endpoint to purchase the order. Cart -/cart/purchase

Query method

PUThttps://api.stableproxy.com/v2/cart/purchase

Query parameters

IdentifierRegulationsExample
order_idrequiredstring"bbb940d1-3263-4dd3-ae93-9e2d31e2e0ce"
overallrequirednumeric3.34

Code examples

async function putCartPurchase() {
   const baseUrl = 'https://api.stableproxy.com/v2';
   const req = await fetch(baseUrl + '/cart/purchase', {
         method: 'PUT',
         headers: {
            'Authorization': 'API-Token [YOUR TOKEN]',
            'Content-Type': 'application/json'
         },
         body: JSON.stringify({
            "order_id": "bbb940d1-3263-4dd3-ae93-9e2d31e2e0ce",
            "overall": 3.34
         }),
      }
   );
   
   const res = await req.json();
}

Examples of answers