POST /api/v1/p2p/orders/{id}/call-operator
Call an operator for dispute resolution on a P2P order. This sets the operator_called flag on the order and notifies the support team to intervene. Use this when there is a disagreement between buyer and seller (e.g., payment sent but not acknowledged).
Authentication​
Required. The request must include a valid Bearer token in the Authorization header. Only a participant of the order can call an operator.
Request​
| Parameter | Type | In | Description |
|---|---|---|---|
id | integer | path | The P2P order ID. |
No request body is required.
Example​
curl -X POST https://example.com/api/v1/p2p/orders/101/call-operator \
-H "Authorization: Bearer <token>"
Response​
200 OK​
Returns a success indicator.
{
"success": true
}
Error Responses​
| Status | Code | Description |
|---|---|---|
| 401 | UNAUTHORIZED | Missing or invalid authentication token. |
| 403 | FORBIDDEN | User is not a participant in this order. |
| 404 | ORDER_NOT_FOUND | The specified order does not exist. |