curl --request POST \
--url https://api.erlcrussia.xyz/v2/moscowroleplay/civops/businesses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"userId": "760966468715937814",
"username": "ttunku_pal",
"name": "Roma Aeterna",
"form": "ООО",
"channelId": "1432651696210841760"
}
'{
"success": true,
"requestId": "req_123",
"status": "pending",
"message": "Request created, awaiting approval"
}Economy API POST Endpoints
Business Operations
Manage businesses, employees, products, and finances.
Available actions:
request- create business request (userId, username, name, form, channelId).approve- approve request (requestId, approverId, +business fields).cancelRequest- cancel/delete pending request (requestId).create- direct business creation (businessData).delete- delete business (businessId).addMoney- add money to business (businessId, amount).removeMoney- remove money from business (businessId, amount).withdraw- withdraw business money to user (businessId, amount, targetUserId).transfer- transfer between businesses (fromBusinessId, toBusinessId, amount, reason, authorId).addEmployee- add employee (businessId, userId, username, position).removeEmployee- fire employee (businessId, userId).addProduct- add product (businessName, item).removeProduct- remove product (businessName, itemName).buyProduct- buy product from business (userId, businessName, itemName, quantity).returnMoney- refund money for transaction (businessId, transactionId).
POST
/
moscowroleplay
/
civops
/
businesses
curl --request POST \
--url https://api.erlcrussia.xyz/v2/moscowroleplay/civops/businesses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"userId": "760966468715937814",
"username": "ttunku_pal",
"name": "Roma Aeterna",
"form": "ООО",
"channelId": "1432651696210841760"
}
'{
"success": true,
"requestId": "req_123",
"status": "pending",
"message": "Request created, awaiting approval"
}Authorizations
API key for accessing CivOps endpoints.
Passed in the Authorization: Bearer <key> header.
REQUIRED FOR ALL CIVOPS ENDPOINTS (except /health).
Query Parameters
Operation type.
Available options:
request, approve, cancelRequest, create, delete, addMoney, removeMoney, withdraw, transfer, addEmployee, removeEmployee, addProduct, removeProduct, buyProduct, returnMoney Body
application/json
The body is of type object.
Response
Operation successfully completed.
The response is of type object.
Was this page helpful?