POST /api/v1/p2p/orders/{id}/confirm-paid
Buyer confirms that fiat payment has been sent. This sets the buyer_paid_at timestamp on the order and transitions the order status to paid_by_buyer. After this step, the seller should verify receipt of funds and confirm accordingly.
Authentication​
Required. The request must include a valid Bearer token in the Authorization header. Only the buyer of the order can call this endpoint.
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/confirm-paid \
-H "Authorization: Bearer <token>"
Response​
200 OK​
Returns a success indicator.
{
"success": true
}
Error Responses​
| Status | Code | Description |
|---|---|---|
| 401 | — | Missing or invalid authentication token. |
| 500 | — | Failed to confirm payment (plain text error with details). |