UPP Docs
Exchange

Exchange concluded

Sent when an exchange completes (completed) or fails (failed), including pooled exchanges that complete on confirmation. For failed, the held amount is back in the available balance and no fee is charged. Not sent while pending. data has the same shape as GET /exchanges/{exchangeId}.

Request Body

application/json
  1. body
id*string

Event ID (starts with evt_), unchanged across retries

type*string
created_at*string
Formatdate-time
data*

Response Body

Received by the merchant; any 2xx is a success

Example Requests
POST/exchange.status_changed
Request Body
application/json
{  "id": "string",  "type": "exchange.status_changed",  "created_at": "2019-08-24T14:15:22Z",  "data": {    "id": "string",    "quote_id": "string",    "status": "pending",    "sell_amount": "string",    "sell_currency": "string",    "buy_amount": "string",    "buy_currency": "string",    "rate": "string",    "fee": "string",    "fee_currency": "string",    "failure_reason": "string",    "created_at": "2019-08-24T14:15:22Z",    "completed_at": "2019-08-24T14:15:22Z"  }}