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

PATCH /api/v1/p2p/orders/{id}

Update payment details for a P2P order. The buyer provides their payment information so the seller knows where to send or receive fiat funds.

Authentication

Required. The request must include a valid Bearer token in the Authorization header. Only the order participant (buyer) can update payment details.

Request

ParameterTypeInDescription
idintegerpathThe P2P order ID.
payment_detailsobjectbodyPayment details object (free-form key-value).

Example

curl -X PATCH https://example.com/api/v1/p2p/orders/101 \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"payment_details": {
"bank_name": "Sberbank",
"card_number": "2202 2020 1234 5678",
"holder_name": "Ivan Petrov"
}
}'

Response

200 OK

Returns a success indicator.

{
"success": true
}

Error Responses

StatusCodeDescription
400payment_details is missing or order is not in valid state.
401Missing or invalid authentication token.