P2P Order Review (p2p_order_review)

Creates a review for the specified order.

Auth Scope(s): payments

p2p_order_review(order_id: str, rating: int, recommended: Optional[int] = None, passthrough: Optional[Any] = None, req_id: Optional[int] = None) → int
Parameters:
  • order_id (str) – The order identification number.
  • rating (int) – Rating for the transaction, 1 to 5.
  • recommended (Optional[int]) – [Optional] 1 if the counterparty is recommendable to others, otherwise 0.
  • passthrough (Optional[Any]) – [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.
  • req_id (Optional[int]) – [Optional] Used to map request to response.
Returns:

req_id

Return type:

int

Example

binary.api.p2p_order_review(
    order_id='1234'
    rating=4
    recommended=1
)