Purchase
A list of all publicly available methods for interacting with the API.
PUT
Cart purchase -/cart/purchase
Query method
PUThttps://api.stableproxy.com/v2/cart/purchase
Query parameters
| Identifier | Regulations | Example |
|---|---|---|
| order_id | requiredstring | "bbb940d1-3263-4dd3-ae93-9e2d31e2e0ce" |
| overall | requirednumeric | 3.34 |
Code examples
JavaScript
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();
}