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
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.