get
https://sandbox-api.viantinc.com/{basePath}/deal/getAllExchanges
Returns the IDs of all exchanges that support PMP deals. You will need to reference the appropriate exchange ID when setting up a new deal.
Request
GET /deal/getAllExchanges
Response
| JSON Fields | Type | Description |
|---|---|---|
| messages | Object Array | An array of any error messages. |
| messages[].level | String | Error level. |
| messages[].code | String | Error code. |
| messages[].message | String | Error message. |
| entity | Object Array | An array of exchange objects. |
| entity[].id | Number | Exchange ID. |
| entity[].name | String | Exchange name. |
Example
Request
curl -u <user>:<password> https://sandbox-api.viant.com/v1/deal/getAllExchanges
Response
{
"messages": [],
"entity": [
{
"id": 3,
"name": "Big Exchange"
},
{
"id": 4,
"name": "Little Exchange"
}
]
}