Downloading a list of private exchanges (not branded) dedicated for your company.
The response contains a private exchange ID that is required for the subsequent publication request.
GET
/ext/private-exchange-api/v1/exchange
Request Authorization
Every request MUST include a valid access token obtained during the user authorization process, provided using the Bearer token scheme in the Authorization header.
Request
Successful Response
Error Response
Request Header
GET /ext/private-exchange-api/v1/exchange HTTP/1.1
Host: api.platform.trans.eu
Content-Type: application/json
Accept: application/json
Authorization: Bearer {access_token)
Api-key: {unique_app_api-key}Response Fields
| Attribute | Type | Example | Description |
| exchanges | Array of Objects | Container with private exchange description | |
| exchanges.created | String | “2021–09-09T06:06:25+00:00” | Date of creation of the exchange |
| exchanges.id | String | “051d6148-903a-4735-bc57-feebfdd8c900” | Private exchange ID |
| exchanges.name | String | “Private” | Private exchange name |
| has_next_page | Boolean | False | Indicates whether there are subsequent pages |
| page | Int | 1 | Current page number |
| page_size | Int | 1 | Page size |
Response Body
{
"exchanges": [
{
"created": "2021-10-07T11:17:21.000+00:00",
"id": "49b9aa2b-1987-48d9-9a77-147f97594233",
"name": "Prywatna"
}
],
"has_next_page": false,
"page": 1,
"page_size": 1
}Client errors (code 400)
HTTP 4xx status codes indicate client errors, meaning that the request could not be processed due to an issue on the client side. Below is a list of request-specific errors.
Example response 1
No private exchanges
{
"exchanges": [],
"has_next_page": false,
"page": 1,
"page_size": 0
}