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
| Parameter | Type | In | Description |
|---|---|---|---|
id | integer | path | The P2P order ID. |
payment_details | object | body | Payment 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
| Status | Code | Description |
|---|---|---|
| 400 | — | payment_details is missing or order is not in valid state. |
| 401 | — | Missing or invalid authentication token. |