Перейти к основному содержимому

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

ParameterTypeInDescription
idintegerpathThe 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

StatusCodeDescription
401Missing or invalid authentication token.
500Failed to confirm payment (plain text error with details).