Create buy order
curl --request POST \
--url https://api.mannco.store/item/buyorder \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"itemid": 12345,
"value": 15000,
"amount": 3
}
'import requests
url = "https://api.mannco.store/item/buyorder"
payload = {
"itemid": 12345,
"value": 15000,
"amount": 3
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({itemid: 12345, value: 15000, amount: 3})
};
fetch('https://api.mannco.store/item/buyorder', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"err": false,
"success": true,
"content": {
"details": "Inserted"
}
}{
"err": true,
"success": false,
"content": "Error message"
}{
"err": true,
"success": false,
"content": "forbidden"
}{
"err": true,
"success": false,
"content": "Internal server error"
}Buy Orders
Create buy order
Creates a buy order for a specific item at a specified price. Only one buy order per item per user. The total (value x amount) is reserved from your balance.
Permission: Connected + API.
POST
/
item
/
buyorder
Create buy order
curl --request POST \
--url https://api.mannco.store/item/buyorder \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"itemid": 12345,
"value": 15000,
"amount": 3
}
'import requests
url = "https://api.mannco.store/item/buyorder"
payload = {
"itemid": 12345,
"value": 15000,
"amount": 3
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({itemid: 12345, value: 15000, amount: 3})
};
fetch('https://api.mannco.store/item/buyorder', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"err": false,
"success": true,
"content": {
"details": "Inserted"
}
}{
"err": true,
"success": false,
"content": "Error message"
}{
"err": true,
"success": false,
"content": "forbidden"
}{
"err": true,
"success": false,
"content": "Internal server error"
}Authorizations
JWT obtained from POST /user/login
Body
application/json
Response
Buy order created
Standard Mannco.store response envelope. err and success flag the outcome; the payload (or error message) is always under content.