{"info":{"_postman_id":"c117c921-379f-4ea6-73ba-291799ff93c7","name":"Microsite API - Latest public version","description":"<h5>Introduction</h5>\n\nThis API offers the possibility to access the microsite's endpoints.\n\n<h5>Response format</h5>\n\nResponses will always be in JSON format and might have a prefix.\n\n<h5>Authentication</h5>\n\nMost of the endpoints in this API are accessible without any authentication in place. However, in order to place bets or accept offers, customers will need to be authenticated. All endpoints requiring authentication have been marked with \\[Auth\\].\n\nThe exact implementation of this endpoint will change from microsite to microsite, please contact us to get the exact implementation in your case. The example in this documentation works against our whitelabel API.\n\n<h5>Units</h5>\n\nSometimes, in API responses, you'll see some reference to \"units\" values. \"units\" are a fitticious value that we use to manage monetary values in a currency-agnostic way.  \nUnits usually need to be converted into currency-specific values before being shown to customers. In this API you'll find exact instructions on how to deal with these values.","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"1. Pools","item":[{"name":"Sport Events","item":[{"name":"Sport Events","id":"8c92e226-5427-4806-b5a3-dbdd6806e08a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{microsite_api_url}}/sport_events","description":"Returns a list of all sport events.\n\nAuthentication is not required.\n\nRequest parameters:\n* `page` optional, INT, page num for pagination\n\n* `per` optional, INT, amount of items returned per page\n\n* `venue_id`, optional, INT, an ID for a venue you want specific sport events for\n\n* `date`, optional, DATE, to specify a date to return sport events for, based on their scheduled start dates.\n"},"response":[],"_postman_id":"8c92e226-5427-4806-b5a3-dbdd6806e08a"},{"name":"Market Results","id":"35689fd4-2a4e-4e92-a94e-51feadf9857b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{microsite_api_url}}/sport_events/market_results","description":"Returns a list of sport events with market results information and a list of market results with counts.\n\nAuthentication is not required.\n\nRequest parameters:\n* `market_type` required, STRING, market type code to specify which sport events the data is returned for\n\n* `venue_id` required, INT, the ID of the venue the sport events are returned for.\n\n* `date`, required, DATE, to specify a date to return sport events for, based on their scheduled start dates."},"response":[],"_postman_id":"35689fd4-2a4e-4e92-a94e-51feadf9857b"}],"id":"dad108f0-e04f-4641-a4cb-b4669f9e1267","_postman_id":"dad108f0-e04f-4641-a4cb-b4669f9e1267"},{"name":"Pools","event":[{"listen":"prerequest","script":{"id":"1fadb1a7-e33b-43a9-9eb8-938a5806e59b","exec":[""],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"test","script":{"id":"00f0f38d-529d-4087-83f4-c606bcca44db","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"bd2ccaf7-73ca-3ce4-7ad6-ce15ec67989c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"url":{"raw":"{{microsite_api_url}}/pools?ungrouped=true&currency=GBP&no_serializer=true&filters[]statuses=NOT_STARTED","host":["{{microsite_api_url}}"],"path":["pools"],"query":[{"key":"ungrouped","value":"true"},{"key":"currency","value":"GBP"},{"key":"no_serializer","value":"true"},{"key":"filters[]statuses","value":"NOT_STARTED","type":"text"}]},"description":"Retrieves the list of pools available at the moment.\n\nParameters:\n* `no_serializer` required with TRUE value, BOOLEAN, default: false\n  * `no_serializer=true` returns a faster response\n  * support for `no_serializer=false`  was removed\n* `currency` optional (recommended), STRING, 3 letter ISO 4217, returns `stake_sizes` and `fx_rates` for the requested currency only\n* `includes` optional (recommended - empty), STRING, default: `includes=legs.sport_event`, comma separated list of `VALUE(.NESTED_VALUE)`*, used for speeding up the request if not all pool information is needed\n  * `includes=` left empty will return pool without the nested elements\n* `filters` optional, HASH (key value pair), default: {}, flags for the pools\n  *  `sport_codes` optional, array of STRING (see full list of SPORT_CODES at end of API document)\n  *  `type_codes` optional, STRING, array of STRINGs (see full list of TYPE_CODES at end of API document)\n  *  `leg_nums` optional, array of INT\n  *  `statuses` optional, array of STRINGs\n  *  `ids` optional, array of INT\n  *  `start_date` optional\n  *  `end_date` optional\n* `ungrouped` optional, BOOLEAN, default: false\n  *   `ungrouped=true` generates an array of pools\n  *   `ungrouped=false` generates a nested list of arrays\n\n<h6>Response example</h6>\n<pre><code>\n[\n  {\n    \"id\": 27003,\n    \"name\": \"Pick 3\",\n    \"type_code\": \"CORRECT_SCORE\",\n    \"headline_prize\": \"2500.0\",\n    \"status\": \"VOID\",\n    \"sched_start\": \"2017-01-31T18:00:00.000Z\",\n    \"sched_next\": null,\n    \"stake_sizes\": [\n        {\n            \"currency\": \"GBP\",\n            \"country\": \"00\",\n            \"stakes\": [\n                \"2.0\",\n                \"1.0\",\n                \"0.5\",\n                \"0.2\"\n            ],\n            \"min_stake\": \"0.01\",\n            \"max_stake\": \"2.1\",\n            \"min_cost\": \"0.01\",\n            \"max_cost\": \"100000000.0\"\n        }\n        ],\n    \"leg_num\": 3,\n    \"sport_code\": \"FOOTBALL\",\n    \"has_sport_event_in_progress\": false,\n    \"sport_sub_code\": \"GBFPREM\",\n    \"show_sub_code\": false,\n    \"fx_rates\": [\n        {\n            \"currency\": \"GBP\",\n            \"rate\": \"2.0\"\n        }\n    ],\n    \"available_syndicates\": 0,\n    \"has_offers\": false,\n    \"currency\": \"GBP\",\n    \"legs\": [\n      {\n        \"type_code\": \"POINT_MARGIN\",\n        \"display_order\": 1,\n        \"sport_event\": {\n          \"sport_code\": \"NFL\",\n          \"sport_sub_code\": \"US_NFL\",\n          \"sched_start\": \"2016-10-06T17:00:00.000Z\",\n          \"add_info_json\": {\n            \"home_id\": 943,\n            \"home_name\": \"CLE Browns\",\n            \"home_colour\": null,\n            \"home_score\": 0,\n            \"away_id\": 941,\n            \"away_name\": \"HOU Texans\",\n            \"away_colour\": null,\n            \"away_score\": 5,\n            \"current_score\": \"0-5\",\n            \"half_time_score\": null,\n            \"result_code\": \"Away\",\n            \"current_event_code\": \"GOAL\"\n          }\n        }\n      },\n      ...\n    ]\n  },\n  ...\n]\n</code></pre>\n\n<h6>Additional response info</h6>\n\n<table>\n  <tr>\n    <th>Field name</th>\n    <th>Note</th>\n  </tr>\n  <tr>\n    <td>type_code</td>\n    <td>See <a href=\"#599df66f-ebb6-b5c8-bb95-4a7db4418799\">Pool Type Codes</a></td>\n  </tr>\n  <tr>\n    <td>headline_prize</td>\n    <td>This value is based on \"currency\"</td>\n  </tr>\n  <tr>\n    <td>status</td>\n    <td>See <a href=\"#599df66f-ebb6-b5c8-bb95-4a7db4418799\">Pool Status Codes </a></td>\n  </tr>\n  <tr>\n    <td>sched_start</td>\n    <td>In pool, Kick-off time of the first match in the pool. In sport_event, Kick-off time of that particular match</td>\n  </tr>\n  <tr>\n    <td>sched_next</td>\n    <td>Kick-off time of the next match in the pool (null if all matches started)</td>\n  </tr>\n  <tr>\n    <td>sport_code</td>\n    <td>See <a href=\"#599df66f-ebb6-b5c8-bb95-4a7db4418799\">Sport codes</a></td>\n  </tr>\n  <tr>\n    <td>display_order</td>\n    <td>Number indicating in which order the legs should be displayed</td>\n  </tr>\n  <tr>\n    <td>add_info_json</td>\n    <td>Dynamic set of data changing based on the (sport code, sport sub code) pair</td>\n  </tr>\n</table>"},"response":[],"_postman_id":"bd2ccaf7-73ca-3ce4-7ad6-ce15ec67989c"},{"name":"Pool","event":[{"listen":"prerequest","script":{"id":"4f70d659-6a10-4e9d-838f-24a954137e23","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b91fa176-2d7b-4ed2-8489-f9fff5158136","type":"text/javascript","exec":["data = JSON.parse(responseBody);","var ToteTests = eval(globals.loadToteTests);","","ToteTests.checkPoolSerializer(data);"]}}],"id":"885faca6-8aa5-d64b-7006-63bc99668978","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{microsite_api_url}}/pools/{{pool_id}}?no_serializer=true&currency=GBP","host":["{{microsite_api_url}}"],"path":["pools","{{pool_id}}"],"query":[{"key":"no_serializer","value":"true"},{"key":"currency","value":"GBP"}]},"description":"Retrieves a pool with a specific id.\n\nParameters:\n* `pool_id` required\n* `no_serializer` required with TRUE value, BOOLEAN, default: false\n  * `no_serializer=true` returns a faster response\n  * `no_serializer=false` is DEPRECATED\n* `currency` optional (recommended), STRING, 3 letter ISO 4217, returns `stake_sizes` and `fx_rates` for the requested currency only\n* `includes` optional (recommended - empty), STRING, default: `includes=prizes,fx_rates,smart_pick_perms,history.sport_event_history,legs.sport_event.competitors,sport_event.sport_event_competitors,legs.sport_event.venue,legs.sport_event.history,legs.sport_event.sport_code_sub_code,legs.sport_event.selections.unit_distributions`, comma separated list of `VALUE(.NESTED_VALUE)`*, used for speeding up the request if not all pool information is needed\n  * `includes=` left empty will return pool without the nested elements \n\n<h6>Response example</h6>\n<pre><code>\n{\n    \"name\": \"Race Winner Pick 7\",\n    \"type_code\": \"RACE_WIN\",\n    \"status\": \"OPEN\",\n    \"settlement_status\": \"NOT_READY\",\n    \"sched_start\": \"2018-02-27T12:00:00.000Z\",\n    \"sched_next\": \"2018-02-27T12:00:00.000Z\",\n    \"num_units\": \"0.0\",\n    \"headline_prize\": \"250000.0\",\n    \"in_rollback_mode\": false,\n    \"stake_sizes\": [\n        {\n            \"currency\": \"GBP\",\n            \"country\": \"00\",\n            \"stakes\": [\n                \"2.0\",\n                \"1.0\",\n                \"0.5\",\n                \"0.2\"\n            ],\n            \"min_stake\": \"0.01\",\n            \"max_stake\": \"2.1\",\n            \"min_cost\": \"0.01\",\n            \"max_cost\": \"100000000.0\"\n        }\n    ],\n    \"sport_code\": \"HORSE_RACING\",\n    \"leg_num\": 7,\n    \"sport_sub_code\": \"HORSERACING\",\n    \"show_sub_code\": false,\n    \"fx_rates\": [\n        {\n            \"currency\": \"GBP\",\n            \"rate\": \"2.0\"\n        }\n    ],\n    \"smart_pick_perms\": [],\n    \"free_play_only\": true,\n    \"available_syndicates\": 0,\n    \"has_offers\": false,\n    \"currency\": \"GBP\",\n    \"prizes\": [\n        {\n            \"prize_type_code\": \"WIN\",\n            \"amount\": \"250000.0\",\n            \"guarantee\": \"250000.0\",\n            \"carry_in\": \"0.0\",\n            \"pay_out\": \"0.0\",\n            \"win_units\": \"0.0\"\n        }\n    ],\n    \"legs\": [\n        {\n            \"id\": 94097,\n            \"type_code\": \"RACE_WIN\",\n            \"official\": false,\n            \"display_order\": 1,\n            \"leg_order\": 1,\n            \"winning_selections\": [],\n            \"sport_event\": {\n                \"id\": 84197,\n                \"name\": \"Cheltenham\",\n                \"status\": \"NOT_STARTED\",\n                \"sport_code\": \"HORSE_RACING\",\n                \"sport_sub_code\": \"HORSERACING\",\n                \"sport_sub_code_desc\": null,\n                \"period\": null,\n                \"add_info_json\": {\n                    \"max_runners\": 0,\n                    \"advanced_going\": null,\n                    \"handicap\": false,\n                    \"track_type\": null,\n                    \"race_type\": null,\n                    \"eligibility\": null,\n                    \"distance\": null\n                },\n                \"sched_start\": \"2018-02-27T12:00:00.000Z\",\n                \"competitors\": [\n                    {\n                        \"id\": 2353,\n                        \"name\": \"Bel Ayr Bay\",\n                        \"sport_code\": \"HORSE_RACING\",\n                        \"sport_sub_code\": \"HORSERACING\",\n                        \"colour\": \"FFFFFF\",\n                        \"add_info_json\": null\n                    },\n                    ...\n                ],\n                \"sport_event_competitors\": [\n                    {\n                        \"id\": 172523,\n                        \"sport_event_id\": 84197,\n                        \"competitor_id\": 2353,\n                        \"cloth_number\": 2,\n                        \"name\": \"Bel Ayr Bay\",\n                        \"status\": null,\n                        \"withdrawn\": false,\n                        \"result\": null,\n                        \"favourite\": false,\n                        \"probability\": null,\n                        \"fractional_probability\": null,\n                        \"add_info_json\": {\n                            \"form_figure_type\": null,\n                            \"form_figure_text\": null,\n                            \"age\": 0,\n                            \"weight\": null,\n                            \"trainer_id\": null,\n                            \"trainer_name\": null,\n                            \"jockey_id\": null,\n                            \"jockey_name\": null,\n                            \"jockey_color_desc\": null,\n                            \"jockey_color_url\": null,\n                            \"allowance\": null\n                        }\n                    },\n                    ...\n                ],\n                \"history\": [],\n                \"venue\": {\n                    \"code\": \"che\",\n                    \"name\": \"Cheltenham\",\n                    \"country\": \"England\"\n                }\n            },\n            \"selections\": [\n                {\n                    \"id\": 1360837,\n                    \"competitor_id\": 2353,\n                    \"sport_event_competitor_id\": 172523,\n                    \"bin\": 2,\n                    \"name\": \"Bel Ayr Bay\",\n                    \"price\": \"6.0\",\n                    \"display_order\": 2,\n                    \"add_info_json\": null,\n                    \"unit_distributions\": []\n                },\n                ...\n            ]\n        },\n        ...\n    ],\n    \"history\": [],\n    \"id\": 29531\n}\n\n</code></pre>"},"response":[],"_postman_id":"885faca6-8aa5-d64b-7006-63bc99668978"},{"name":"Pools Menu","event":[{"listen":"prerequest","script":{"id":"71ddea68-39ac-40bf-a589-b172aab8b957","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"ebe298ac-d479-4aa6-a533-02d19b1787cc","type":"text/javascript","exec":["data = JSON.parse(responseBody);","var ToteTests = eval(globals.loadToteTests);","","ToteTests.checkPoolMenuSerializer(data);",""]}}],"id":"66fd4c18-37b5-cc1c-4a87-77378d8d3cab","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{microsite_api_url}}/pools/menu?currency=GBP&no_serializer=true","host":["{{microsite_api_url}}"],"path":["pools","menu"],"query":[{"key":"currency","value":"GBP","description":"required, three letter ISO currency code"},{"key":"no_serializer","value":"true"}]},"description":"Retrieves the list of pools\n\nParameters:\n* `no_serializer` required with TRUE value, BOOLEAN, default: false\n  * `no_serializer=true` returns a faster response\n  * `no_serializer=false` is DEPRECATED\n* `currency` optional (recommended), STRING, 3 letter ISO 4217, returns `stake_sizes` and `fx_rates` for the requested currency only\n* `includes` optional (recommended - empty), STRING, default: `includes=legs.sport_event`, comma separated list of `VALUE(.NESTED_VALUE)`*, used for speeding up the request if not all pool information is needed\n  * `includes=` left empty will return pool without the nested elements\n\n\n<h6>Response example</h6>\n<pre><code>\n{\n  \"running_pools\": [\n    6640,\n    6545,\n    ...\n  ],\n  \"up_next\": [\n    6649,\n    6563,\n    6571,\n    6599\n  ],\n  \"official_pools\": [\n    6485,\n    6507,\n    ...\n  ],\n  \"display_groups\": [\n    {\n      \"id\": 6,\n      \"display_group_name\": \"Big Jackpots\",\n      \"display_group_order\": 10,\n      \"pools\": [\n        6563,\n        6571,\n        ...\n      ],\n      \"groups\": []\n    },\n    {\n      \"id\": 1,\n      \"display_group_name\": \"Football\",\n      \"display_group_order\": 30,\n      \"pools\": [],\n      \"groups\": [\n        {\n          \"id\": 11,\n          \"display_group_name\": \"Thursday\",\n          \"display_group_order\": 40,\n          \"pools\": [\n            6649\n          ],\n          \"groups\": []\n        }\n      ]\n    }\n  ],\n  \"pools\": [...]\n}\n</code></pre>\n\n<h6>Additional response info</h6>\n\n<table>\n  <tr>\n    <th>Field name</th>\n    <th>Note</th>\n  </tr>\n  <tr>\n    <td>up_next</td>\n    <td>List of 4 pool ids starting next (sched_start order)</td>\n  </tr>\n  <tr>\n    <td>big_jackpots</td>\n    <td>List of 4 open pool ids ordered by headline prize</td>\n  </tr>\n  <tr>\n    <td>pools</td>\n    <td>See <a href=\"#bd2ccaf7-73ca-3ce4-7ad6-ce15ec67989c\">GET /pools</a></td>\n  </tr>\n</table>"},"response":[],"_postman_id":"66fd4c18-37b5-cc1c-4a87-77378d8d3cab"},{"name":"Stats","event":[{"listen":"prerequest","script":{"id":"2bd8116e-69ca-4bd4-b364-9ceb8d3a4d1f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"91f85e8e-86b2-4db1-9921-2509963e6a2a","type":"text/javascript","exec":["data = JSON.parse(responseBody);","var ToteTests = eval(globals.loadToteTests);","","ToteTests.checkLegStatsSerializer(data[0]);"]}}],"id":"24840503-0001-c1bb-ba9c-00c2e2c185bb","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{microsite_api_url}}/pools/{{pool_id}}/stats","description":"Returns statistics for competitors (e.g. teams, horses, tennis players) within a specific pool.\n\n<h6>Response example</h6>\n<pre><code>\n\n[\n    {\n        \"id\": 72747,\n        \"type_code\": \"CORRECT_SCORE\",\n        \"display_order\": 1,\n        \"home_team_results\": [\n            {\n                \"home_score\": 0,\n                \"away_score\": 6,\n                \"date\": \"2017-07-01T00:00:00.000Z\",\n                \"home_team_name\": \"LVV Lugdunum (Ned)\",\n                \"away_team_name\": \"ADO Den Haag\",\n                \"result\": \"WIN\",\n                \"home_id\": null,\n                \"away_id\": 697\n            },\n            ...\n        ],\n        \"away_team_results\": [\n            {\n                \"home_score\": 0,\n                \"away_score\": 2,\n                \"date\": \"2017-05-24T00:00:00.000Z\",\n                \"home_team_name\": \"Ajax\",\n                \"away_team_name\": \"Man Utd\",\n                \"result\": \"LOSS\",\n                \"home_id\": 698,\n                \"away_id\": 630\n            },\n            ...\n        ],\n        \"h2h_results\": [\n            {\n                \"home_score\": 0,\n                \"away_score\": 2,\n                \"date\": \"2016-10-16T00:00:00.000Z\",\n                \"home_team_name\": \"ADO Den Haag\",\n                \"away_team_name\": \"Ajax\",\n                \"result\": null,\n                \"home_id\": 697,\n                \"away_id\": 698\n            },\n            ...\n        ]\n    },\n    ...\n]    \n\n</code></pre>"},"response":[],"_postman_id":"24840503-0001-c1bb-ba9c-00c2e2c185bb"},{"name":"Smart Pick","event":[{"listen":"prerequest","script":{"id":"82ab94e7-f1c3-40b0-970d-17a6d36c2f9d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7f3ed846-1895-4833-8833-4fff32603d41","type":"text/javascript","exec":["data = JSON.parse(responseBody);","var ToteTests = eval(globals.loadToteTests);","","tests[\"pool has the smart pick selections\"] = TestBase.checkIfNumber(data.selections);"]}}],"id":"b211eb89-7e4b-7900-741f-39c6268a713f","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":{"raw":"{{microsite_api_url}}/pools/{{pool_id}}/smart_pick?lines=4","host":["{{microsite_api_url}}"],"path":["pools","{{pool_id}}","smart_pick"],"query":[{"key":"lines","value":"4"}]},"description":"Returns recommended selections for a pool. This is more intelligent than a random quick pick - selections are determined by: (i) probability, and (ii) weighted to give more selections in the earlier legs to increase the likelihood of receiving a Cash Out offer.\n\nParameters:\n* `lines` required, INT, must be a valid value from the pool's `smart_pick_perms`\n\n<h6>Response example</h6>\n<pre><code> \n{\n    \"selections\": \"11,10/3,16/6\"\n}\n\n</code></pre>"},"response":[],"_postman_id":"b211eb89-7e4b-7900-741f-39c6268a713f"},{"name":"Jackpot Menu","id":"eb969e4d-52f9-4f19-a26c-804bea6df790","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{microsite_api_url}}/pools/jackpot_menu","description":"Returns a list of pools that have more than 1 leg, are open for betting for the merchant plus some additional pre-computed groups of pools. This is similar to the original menu endpoint aside from only returning pools with more than 1 leg.\n\nRequest parameters:\n* `currency` optional (srtrongly recommended), STRING, 3 letter ISO 4217, returns `stake_sizes` and `fx_rates` for the requested currency only\n* `includes` optional, STRING, default: `includes=legs.sport_event`, comma separated list of `VALUE(.NESTED_VALUE)`*, used for speeding up the request if not all pool information is needed\n  * `includes=` left empty will return pool with basic data\n"},"response":[],"_postman_id":"eb969e4d-52f9-4f19-a26c-804bea6df790"},{"name":"Starts with","id":"b72a1106-b7e9-4489-a445-63c6158b972d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{microsite_api_url}}/pools/starts_with/1","description":"Returns a list of pools where the first leg belongs to a sport event of the ID passed in.\n\nRequest parameters:\n* `sport_event_id`, required (in request URL), Integer\n\n* `includes` optional, STRING, default: `includes=legs.sport_event`, comma separated list of `VALUE(.NESTED_VALUE)`*, used for speeding up the request if not all pool information is needed\n  * `includes=` left empty will return pool with basic data"},"response":[],"_postman_id":"b72a1106-b7e9-4489-a445-63c6158b972d"}],"id":"0b8ef705-c4ff-44cb-087a-7575adc303cb","description":"Every bet in the system goes into a specific pool. Pools can be single-leg or multi-leg, and can be of any sport type.\n\nThe endpoints in this section are used for returning a list of pools, and full details of each pool, and for confirming settlement details.\n\nKey endpoints are:\n\n- **GET Pools Menu** - returns a summary list of pools\n- **GET Pool** - returns full details of a specific pool\n- **GET Smart Pick** - suggests \"smart\" selections in the pool for the user","event":[{"listen":"prerequest","script":{"id":"bb4a190e-ded1-4c93-92a5-ffc47b523f3d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1ceb0069-706a-4315-b8fc-adee232a1554","type":"text/javascript","exec":[""]}}],"_postman_id":"0b8ef705-c4ff-44cb-087a-7575adc303cb"},{"name":"2. Tickets","item":[{"name":"Tickets [Auth]","event":[{"listen":"prerequest","script":{"id":"57f1ae5b-7cf3-4c00-90e0-5cb84678f286","exec":["const TokenAuth = pm.require('@colossus-bets/token_auth');","const tokenAuth = TokenAuth();","tokenAuth.setTime();","",""],"type":"text/javascript","packages":{"@colossus-bets/token_auth":{"id":"019447e9-6204-75e0-a007-d0078db91188"}}}},{"listen":"test","script":{"id":"a9f0c85b-ea76-4f99-8dd2-ab1e7c81074a","exec":["const TokenAuth = pm.require('@colossus-bets/token_auth');","const tokenAuth = TokenAuth();","tokenAuth.setHeadersIfSuccess();",""],"type":"text/javascript","packages":{"@colossus-bets/token_auth":{"id":"019447e9-6204-75e0-a007-d0078db91188"}}}}],"id":"3a2b985b-5183-dc77-7609-83fff429bcc9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"uid","value":"{{uid}}"},{"key":"access-token","value":"{{access-token}}"},{"key":"client","value":"{{client}}"},{"key":"expiry","value":"{{expiry}}","type":"text"}],"url":{"raw":"{{microsite_api_url}}/tickets?no_serializer=true&pool_id=32702","host":["{{microsite_api_url}}"],"path":["tickets"],"query":[{"key":"no_serializer","value":"true"},{"key":"pool_id","value":"32702"}]},"description":"Returns the tickets for a given customer\n\nParameters:\n  * `no_serializer` required with TRUE value, BOOLEAN, default: false\n      * `no_serializer=true` returns a faster response\n      * `no_serializer=false` is DEPRECATED\n  *   `customer_id` required, STRING, the customer's id \n  *   `type` optional, INT, in: [0, 1, 2], default: 0, 0 = all, 1 = live, 2 = historic(not live)\n  *   `from_date` optional, DATETIME\n  *   `to_date` optional, DATETIME\n  *   `per` optional, INT, number of tickets per page, for pagination purposes\n  *   `page` optional, INT, default: 0, page number, for pagination purposes\n  *   `filters` optional, HASH(key value pair), default: {}, flags for the tickets\n      *   `is_in_store` optional, BOOLEAN, default: false\n      *   `is_free_play` optional, BOOLEAN, default: false\n      *   `is_managed_syndicate` optional, BOOLEAN, default: false\n      *   `is_joined_syndicate` optional, BOOLEAN, default: false\n      *   `is_solo_bet` optional, BOOLEAN, default: false\n      *   `with_offer` optional, BOOLEAN, default: false\n      *   `pool_type` optional, STRING (see full list of TYPE_CODES at end of API document)\n      *   `pool_types` optional, STRING, default: '', comma separated list of SPORT_CODE.TYPE_CODE (see full list of SPORT_CODES at end of API document)\n      *   `leg_num` optional, INT \n      *   `sport` optional, STRING (see full list of SPORT_CODES at end of API document)\n  *   `sort_by` optional, STRING, in: [total_winnings_customer_local, cost_local, created_at]\n  *   `sort_asc` optional, BOOLEAN, default: false\n  *   `includes` optional, STRING, default: \"pool,syndicate.manager\", comma separated list of VALUE(.NESTED_VALUE)*\n  \n\n<h6>Response example</h6>\n<pre><code>\n{\n    \"items\": [\n        {\n            \"id\": 100000099834,\n            \"status\": \"PLACED\",\n            \"currency\": \"GBP\",\n            \"lines\": 1,\n            \"amount_owned_customer\": \"1.0\",\n            \"created_at\": \"2018-01-17T15:18:49.000Z\",\n            \"offer_amount\": \"0.0\",\n            \"is_live_win\": true,\n            \"is_live_consolation\": true,\n            \"merchant_ref\": \"1030-7314\",\n            \"is_live\": false,\n            \"is_free_play\": false,\n            \"fx_rate\": \"2.0\",\n            \"is_in_store\": false,\n            \"store_id\": null,\n            \"customer_payout\": \"5000.0\",\n            \"customer_winnings\": \"5000.0\",\n            \"pool_id\": 29374,\n            \"channel\": \"DESKTOP\",\n            \"syndicate_portion\": null,\n            \"syndicate_id\": null,\n            \"stringified_id\": \"100000099834\",\n            \"stake\": \"2.0\",\n            \"cost\": \"2.0\",\n            \"offers_accepted\": \"0.0\",\n            \"syndicate\": null,\n            \"pool\": {\n                \"id\": 29374,\n                \"name\": \"Pick 3\",\n                \"type_code\": \"CORRECT_SCORE\",\n                \"headline_prize\": \"2500.0\",\n                \"status\": \"OFFICIAL\",\n                \"sched_start\": \"2018-06-06T11:00:00.000Z\",\n                \"sched_next\": null,\n                \"stake_sizes\": [\n                    {\n                        \"currency\": \"GBP\",\n                        \"country\": \"00\",\n                        \"stakes\": [\n                            \"2.0\",\n                            \"1.0\",\n                            \"0.5\",\n                            \"0.2\"\n                        ],\n                        \"min_stake\": \"0.01\",\n                        \"max_stake\": \"2.1\",\n                        \"min_cost\": \"0.01\",\n                        \"max_cost\": \"100000000.0\"\n                    }\n                ],\n                \"leg_num\": 3,\n                \"sport_code\": \"FOOTBALL\",\n                \"has_sport_event_in_progress\": false,\n                \"sport_sub_code\": \"ESFLIGA\",\n                \"show_sub_code\": true,\n                \"fx_rates\": [\n                    {\n                        \"currency\": \"GBP\",\n                        \"rate\": \"2.0\"\n                    }\n                ],\n                \"available_syndicates\": 0,\n                \"has_offers\": false,\n                \"currency\": \"GBP\"\n            }\n        },\n        ...\n    ],\n    \"total_items\": 581\n}\n</code></pre>\n  "},"response":[],"_postman_id":"3a2b985b-5183-dc77-7609-83fff429bcc9"},{"name":"Ticket [Auth]","event":[{"listen":"prerequest","script":{"id":"281caa10-f6a3-42a5-a349-bffd48729c27","exec":["const TokenAuth = pm.require('@colossus-bets/token_auth');","const tokenAuth = TokenAuth();","tokenAuth.setTime();",""],"type":"text/javascript","packages":{"@colossus-bets/token_auth":{"id":"019447e9-6204-75e0-a007-d0078db91188"}}}},{"listen":"test","script":{"id":"5ef73039-df60-40fe-aa3f-8ea4784a8a6b","exec":["const TokenAuth = pm.require('@colossus-bets/token_auth');","const tokenAuth = TokenAuth();","tokenAuth.setHeadersIfSuccess();",""],"type":"text/javascript","packages":{"@colossus-bets/token_auth":{"id":"019447e9-6204-75e0-a007-d0078db91188"}}}}],"id":"ba3fc5c3-bb7c-03d8-4633-c95279c547cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"uid","value":"{{uid}}","type":"text"},{"key":"access-token","value":"{{access-token}}","type":"text"},{"key":"client","value":"{{client}}","type":"text"},{"key":"expiry","value":"{{expiry}}","type":"text"}],"url":{"raw":"{{microsite_api_url}}/tickets/{{ticket_id}}?security_code=YJAWPJ&includes=pool","host":["{{microsite_api_url}}"],"path":["tickets","{{ticket_id}}"],"query":[{"key":"security_code","value":"YJAWPJ"},{"key":"includes","value":"pool"}]},"description":"Returns a ticket\n\nParameters:\n  * `ticket_id` required, INT\n  * `no_serializer` required with TRUE value, BOOLEAN, default: false\n\t* `no_serializer=true` returns a faster response\n\t* `no_serializer=false` is DEPRECATED\n  * `includes` optional, STRING, default: \"offer_transactions,syndicate.manager,pool_info,legs.sport_event,legs.selections\", comma separated list of VALUE(.NESTED_VALUE)*\n\n<h6>Response example</h6>\n<pre><code>\n\n{\n    \"id\": 100000099834,\n    \"customer_id\": \"nandobermejo\",\n    \"selections\": \"8/8/8\",\n    \"lines\": 1,\n    \"amount_owned_customer\": \"1.0\",\n    \"status\": \"PLACED\",\n    \"stake\": \"2.0\",\n    \"currency\": \"GBP\",\n    \"poc\": \"GB\",\n    \"smartpick\": 0,\n    \"created_at\": \"2018-01-17T15:18:49.000Z\",\n    \"is_live\": false,\n    \"is_live_win\": true,\n    \"is_live_consolation\": true,\n    \"merchant_ref\": \"1030-7314\",\n    \"is_free_play\": false,\n    \"fx_rate\": \"2.0\",\n    \"ow_settle_date\": \"2018-01-17\",\n    \"cross_sell\": 0,\n    \"customer_win_payout\": \"5000.0\",\n    \"customer_consolation_payout\": \"0.0\",\n    \"is_in_store\": false,\n    \"store_id\": null,\n    \"customer_payout\": \"5000.0\",\n    \"customer_winnings\": \"5000.0\",\n    \"pool_id\": 29374,\n    \"channel\": \"DESKTOP\",\n    \"syndicate_portion\": null,\n    \"stringified_id\": \"100000099834\",\n    \"cost\": \"2.0\",\n    \"units_per_line\": \"1.0\",\n    \"offers_accepted\": \"0.0\",\n    \"syndicate\": null,\n    \"live_offer\": null,\n    \"offer_transactions\": [],\n    \"is_security_code_changed\": null, \n    \"above_threshold\": null,\n    \"pool\": {\n        \"name\": \"Pick 3\",\n        \"type_code\": \"CORRECT_SCORE\",\n        \"status\": \"OFFICIAL\",\n        \"settlement_status\": \"READY\",\n        \"sched_start\": \"2018-06-06T11:00:00.000Z\",\n        \"sched_next\": null,\n        \"num_units\": \"1.0\",\n        \"headline_prize\": \"2500.0\",\n        \"in_rollback_mode\": false,\n        \"stake_sizes\": [\n            {\n                \"currency\": \"GBP\",\n                \"country\": \"00\",\n                \"stakes\": [\n                    \"2.0\",\n                    \"1.0\",\n                    \"0.5\",\n                    \"0.2\"\n                ],\n                \"min_stake\": \"0.01\",\n                \"max_stake\": \"2.1\",\n                \"min_cost\": \"0.01\",\n                \"max_cost\": \"100000000.0\"\n            }\n        ],\n        \"sport_code\": \"FOOTBALL\",\n        \"leg_num\": 3,\n        \"sport_sub_code\": \"ESFLIGA\",\n        \"show_sub_code\": true,\n        \"fx_rates\": [\n            {\n                \"currency\": \"GBP\",\n                \"rate\": \"2.0\"\n            }\n        ],\n        \"smart_pick_perms\": [\n            1,\n            2,\n            4,\n            8,\n            12,\n            18,\n            24,\n            36,\n            48,\n            60,\n            80,\n            100,\n            125,\n            216,\n            343,\n            512\n        ],\n        \"available_syndicates\": 0,\n        \"has_offers\": false,\n        \"currency\": \"GBP\",\n        \"prizes\": [\n            {\n                \"prize_type_code\": \"CON_N1\",\n                \"amount\": \"250.0\",\n                \"guarantee\": \"250.0\",\n                \"carry_in\": \"0.0\",\n                \"pay_out\": \"0.0\",\n                \"win_units\": \"0.0\"\n            },\n            {\n                \"prize_type_code\": \"WIN\",\n                \"amount\": \"2500.0\",\n                \"guarantee\": \"2500.0\",\n                \"carry_in\": \"0.0\",\n                \"pay_out\": \"2500.0\",\n                \"win_units\": \"1.0\"\n            }\n        ],\n        \"legs\": [\n            {\n                \"id\": 92669,\n                \"type_code\": \"CORRECT_SCORE\",\n                \"official\": true,\n                \"display_order\": 1,\n                \"leg_order\": 1,\n                \"winning_selections\": [\n                    {\n                        \"prize_code\": \"WIN\",\n                        \"selections\": [\n                            8\n                        ]\n                    }\n                ],\n                \"sport_event\": {\n                    \"id\": 83317,\n                    \"name\": \"Ath Bilbao v Atl Madrid\",\n                    \"status\": \"OFFICIAL\",\n                    \"sport_code\": \"FOOTBALL\",\n                    \"sport_sub_code\": \"ESFLIGA\",\n                    \"sport_sub_code_desc\": null,\n                    \"period\": \"FT\",\n                    \"add_info_json\": {\n                        \"home_id\": 503,\n                        \"home_name\": \"Ath Bilbao\",\n                        \"home_colour\": null,\n                        \"home_score\": 0,\n                        \"away_id\": 504,\n                        \"away_name\": \"Atl Madrid\",\n                        \"away_colour\": null,\n                        \"away_score\": 0,\n                        \"current_score\": \"0-0\",\n                        \"half_time_score\": \"0-0\",\n                        \"result_code\": \"Draw\",\n                        \"current_event_code\": null\n                    },\n                    \"sched_start\": \"2018-06-06T11:00:00.000Z\",\n                    \"competitors\": [\n                        {\n                            \"id\": 503,\n                            \"name\": \"Ath Bilbao\",\n                            \"sport_code\": \"FOOTBALL\",\n                            \"sport_sub_code\": \"ESFLIGA\",\n                            \"colour\": \"E7071B\",\n                            \"add_info_json\": null\n                        },\n                        {\n                            \"id\": 504,\n                            \"name\": \"Atl Madrid\",\n                            \"sport_code\": \"FOOTBALL\",\n                            \"sport_sub_code\": \"ESFLIGA\",\n                            \"colour\": \"C71910\",\n                            \"add_info_json\": null\n                        }\n                    ],\n                    \"history\": []\n                },\n                \"selections\": [\n                    {\n                        \"id\": 1349614,\n                        \"bin\": 1,\n                        \"name\": \"AOH\",\n                        \"price\": \"17.0\",\n                        \"display_order\": 1,\n                        \"add_info_json\": null,\n                        \"unit_distributions\": [\n                            {\n                                \"units\": \"0.0\",\n                                \"prize_code\": \"WIN\"\n                            }\n                        ]\n                    },\n                    ...\n                ]\n            },\n            ...\n        ],\n        \"history\": [\n            {\n                \"event_code\": \"STARTED\",\n                \"remaining_units\": \"1.0\",\n                \"prize_code\": \"WIN\",\n                \"sport_event_history\": {\n                    \"event_code\": \"STARTED\",\n                    \"event_time\": \"2018-01-17T15:19:33.000Z\",\n                    \"event_info_json\": {\n                        \"home_id\": 503,\n                        \"home_name\": \"Ath Bilbao\",\n                        \"home_colour\": null,\n                        \"home_score\": 0,\n                        \"away_id\": 504,\n                        \"away_name\": \"Atl Madrid\",\n                        \"away_colour\": null,\n                        \"away_score\": 0,\n                        \"current_score\": \"0-0\",\n                        \"half_time_score\": null,\n                        \"result_code\": \"Draw\",\n                        \"current_event_code\": null\n                    }\n                }\n            },\n            ...\n        ],\n        \"id\": 29374\n    }\n}    \n\n</code></pre>\n\n<table>\n  <tr>\n    <th>Field name</th>\n    <th>Note</th>\n  </tr>\n  <tr>\n    <td>is_security_code_changed</td>\n    <td>Boolean flag only populated for retail tickets</td>\n  </tr>\n  <tr>\n    <td>pin</td>\n    <td>Pin of the retail ticket</td>\n  </tr>\n</table>\n  "},"response":[],"_postman_id":"ba3fc5c3-bb7c-03d8-4633-c95279c547cc"},{"name":"Filter Options","event":[{"listen":"prerequest","script":{"id":"36f21347-1e76-4490-a1d8-8c903497eb5e","type":"text/javascript","exec":["var CB = eval(globals.loadTokenAuth);"]}},{"listen":"test","script":{"id":"fb155cb8-fbcc-417f-ad9f-b1c99b935ffc","type":"text/javascript","exec":["data = JSON.parse(responseBody);","var CB = eval(globals.loadColossus);","","tests['filter options sports is array'] = CB.checkIfArray(data.sports);","tests[\"filter options has string sports\"] = CB.checkIfString(data.sports[0]);","","tests['filter options pool_types is array'] = CB.checkIfArray(data.pool_types);","tests[\"filter options has string pool_types\"] = CB.checkIfString(data.pool_types[0]);","","tests['filter options leg_nums is array'] = CB.checkIfArray(data.pool_types);","tests[\"filter options has numeric leg_nums\"] = CB.checkIfNumber(data.leg_nums[0]);",""]}}],"id":"8e881136-d6f5-aaf8-7923-3def3607e944","request":{"method":"GET","header":[{"key":"Authorization","value":"{{api_auth_sha}} {{api_auth_key}}:{{signature}}","disabled":true},{"key":"Date","value":"{{time}}","disabled":true},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Content-MD5","value":"{{content-MD5}}","disabled":true}],"body":{"mode":"raw","raw":"{\n\"type_code\": \"RACE_WIN\",\n\"sport_code\": \"HORSE_RACING\",\n\"pool_id\": \"123456\",\n\"amount\": \"1\",\n\"currency\": \"CAD\",\n\"legs\": [\n  {\n  \"selections\": \"1/2/3/4/5/6/7/8/9/10\",\n  \"scheduled_start\": \"2016-10-08T11:06:12.000Z\",\n  \"leg_number\": 1\n  },\n  {\n  \"selections\": \"1/2/3/4/5/6/7\",\n  \"scheduled_start\": \"2016-10-08T11:40:12.000Z\",\n  \"leg_number\": 2\n  },\n  {\n  \"selections\": \"1/2/3/4/5/6/7\",\n  \"scheduled_start\": \"2016-10-08T12:10:12.000Z\",\n  \"leg_number\": 3\n  },\n  {\n  \"selections\": \"1/2/3/4/5/6/7/8/9/10\",\n  \"scheduled_start\": \"2016-10-08T18:12:12.000Z\",\n  \"leg_number\": 4\n  }],\n\"info\":\n{\n  \"track_name\": \"Woodbine (SB)\",\n  \"race_number\": \"13\"\n},\n\"prizes\": [\n  { \n    \"amount\": \"14000\",\n    \"prize_code\":\"WIN\"\n  }]\n}\n\n"},"url":"{{microsite_api_url}}/tickets/filter_options","description":"Retrieves all sports, pool types and leg numbers currently available in the system.\n\n<h6>Response example</h6>\n<pre><code>\n{\n    \"sports\": [\n        \"FOOTBALL\",\n        \"NFL\",\n        \"TENNIS\",\n        \"AFL\",\n        \"HORSE_RACING\",\n        \"WRC\",\n        \"NBA\"\n    ],\n    \"pool_types\": [\n        \"CORRECT_SCORE\",\n        \"HDA\",\n        \"POINT_MARGIN\",\n        \"CORRECT_SCORE_5\",\n        \"CORRECT_SCORE_3\",\n        \"H2H\",\n        \"ASIAN_HANDICAP\",\n        \"OVER_UNDER\",\n        \"RACE_WIN\",\n        \"RACE_ORDER\",\n        \"BTTS\"\n    ],\n    \"leg_nums\": [\n        3,\n        6,\n        5,\n        7,\n        4,\n        15,\n        8,\n        10,\n        20,\n        13\n    ]\n}\n\n</code></pre>"},"response":[],"_postman_id":"8e881136-d6f5-aaf8-7923-3def3607e944"},{"name":"Ticket [Auth]","event":[{"listen":"test","script":{"id":"456ea86c-d4b4-40bc-9d0d-40a8fa4739f5","exec":["","","data = JSON.parse(responseBody);","postman.setEnvironmentVariable('ticket_id', data.id)","","//var CB = eval(globals.loadColossus);","//CB.checkPlacedTicketSerializer(data);"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"471740ae-3768-4c95-b3c8-aa40dcf41578","exec":["var CB = eval(globals.loadTokenAuth);"],"type":"text/javascript"}}],"id":"0b9ee291-2cbf-9942-52ed-2a2b032509d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"uid","value":"{{uid}}","type":"text"},{"key":"access-token","value":"{{access-token}}","type":"text"},{"key":"client","value":"{{client}}","type":"text"},{"key":"expiry","value":" {{expiry}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"ticket\": {\n\t\t\"merchant_ref\" : \"{{rand_ref}}\",\n\t\t\"customer_id\" : \"{{customer_id}}\",\n\t    \"pool_id\": \"{{pool_id}}\",\n\t\t\"selections\": \"2/2/2/2/2/2/2\",\n\t\t\"stake\" : \"2.00\",\n\t\t\"cost\" : \"2.0\",\n\t\t\"currency\" : \"{{currency}}\",\n\t\t\"poc\" : \"{{poc}}\"\n\t}\n}"},"url":"{{microsite_api_url}}/tickets","description":"Places a ticket in the tote.\n\nParameters:\n* `ticket` required, HASH, having the following parameters:\n\t* `pool_id` required, INT\n\t* `selections` required, STRING, comma separated values of the bin parameter from the pool\n\t* `stake` required, STRING\n\t* `cost` required, STRING\n\t* `currency` required, STRING, 3 letter ISO 4217\n\t* `channel` optional, STRING, one of the values [DESKTOP MOBILE MOBILE_APP STORE STORE_BOOKABET SMS PRO SEMI_PRO]. Mainly used for reporting\n\t* `smartpick` optional, INT, default: 0\n\t\t* 0 value - the smart pick wasn't used to generate the selections\n\t\t* 1 value - the smart pick was used to generate the selections\n\t\t* 2 value - the smart pick was used to generate the selections and some selections were changed by the user\n\t* `cross_sell` optional, INT, default: 0\n\t\t* 0 value - the ticket is not a cross sell one\n\t\t* 1 value - the ticket is a cross sell one\n\t\t* 2 value - the ticket is a cross sell one but some selections were changed by the user\n\t* `free_play_id` optional, STRING and represents the token id associated with a free to play campaign\n\t\n\n<h6>Response example</h6>\n<pre><code>\n\n{\n    \"id\": \"100000099933\",\n    \"merchant_ref\": \"1030-7350\",\n    \"selections\": \"1/1/1/1/1/1\",\n    \"stake\": \"2.00\",\n    \"cost\": \"2.0\",\n    \"currency\": \"GBP\",\n    \"cross_sell_suggestion\": null,\n    \"security_code\": null,\n    \"syndicate\": null,\n    \"pin\": null\n}\n\n</code></pre>\n\n\n<h6>Additional response info</h6>\n\n<table>\n  <tr>\n    <th>Field name</th>\n    <th>Note</th>\n  </tr>\n  <tr>\n    <td>security_code</td>\n    <td>Is only populated with a value when the ticket is a retail one</td>\n  </tr>\n  <tr>\n    <td>pin</td>\n    <td>Is only populated with a value when the ticket is a retail one</td>\n  </tr>\n</table>"},"response":[],"_postman_id":"0b9ee291-2cbf-9942-52ed-2a2b032509d8"},{"name":"Void Ticket [Auth]","event":[{"listen":"prerequest","script":{"id":"c8684ecd-9f78-4bdc-9293-f1f3eff1c5b4","exec":["var CB = eval(globals.loadTokenAuth);"],"type":"text/javascript"}}],"id":"f5705d0a-6a66-9aab-77ae-64c9439e289f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"uid","value":"{{uid}}","type":"text"},{"key":"access-token","value":"{{access-token}}","type":"text"},{"key":"client","value":"{{client}}","type":"text"},{"key":"expiry","value":" {{expiry}}","type":"text"}],"body":{"mode":"raw","raw":""},"url":"{{microsite_api_url}}/tickets/{{ticket_id}}/void","description":"Voids a retail ticket.\n\nEmpty JSON response is returned."},"response":[],"_postman_id":"f5705d0a-6a66-9aab-77ae-64c9439e289f"},{"name":"Mark all paid [Auth]","event":[{"listen":"prerequest","script":{"id":"281caa10-f6a3-42a5-a349-bffd48729c27","type":"text/javascript","exec":["var CB = eval(globals.loadTokenAuth);","//CB.computeSignature(['customer_id']);"]}},{"listen":"test","script":{"id":"5ef73039-df60-40fe-aa3f-8ea4784a8a6b","type":"text/javascript","exec":["data = JSON.parse(responseBody);","var CB = eval(globals.loadColossus);","","//CB.checkTicketsItemSerializer(data.items[0]);"]}}],"id":"9e3af03c-8451-2626-3c40-f8ff81ecb14b","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"uid","value":"{{uid}}"},{"key":"access-token","value":"{{access-token}}"},{"key":"client","value":"{{client}}"}],"body":{"mode":"raw","raw":""},"url":"{{microsite_api_url}}/tickets/{{ticket_id}}/mark_all_paid","description":"Marks all the associated voids, cash outs and settlement that weren't paid as being paid to the customer by the cashier.\n\nParameters:\n  * `ticket_id` required, INT\n  \n\n<h6>Response example</h6>\n<pre><code>\n{\n\t\"new_pin\": 1234\n}\n</code></pre>"},"response":[],"_postman_id":"9e3af03c-8451-2626-3c40-f8ff81ecb14b"},{"name":"Pool Summary","id":"fed0da67-7219-4dd5-aa20-56e2d1d0e831","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{microsite_api_url}}/tickets/pool_summary","description":"Auth is required. Returns aggregated summary data on the current user's tickets in a pool - grouped by their selections and cost_local summed.\n\nRequest parameters:\n* `pool_id`, required, Integer, the pool you want to query for\n\nResponse:\nThe response will include\n`selections` and `cost_local` which is the summed cost_local of all tickets of that selection."},"response":[],"_postman_id":"fed0da67-7219-4dd5-aa20-56e2d1d0e831"}],"id":"58e17ab0-4da0-9424-aa5b-27d66b81a006","description":"The endpoints in this section are used for placing a bet (ticket), returning a list of tickets, full details of a specific ticket, and voiding a ticket.\n\nKey endpoints are:\n* **GET Tickets** - returns a paginated summary list of tickets for a specific user\n* **GET Ticket** - returns full details of a specific ticket\n* **POST Ticket** - places a bet (creates a new ticket)\n* **POST Void Ticket** - voids/cancels a ticket","event":[{"listen":"prerequest","script":{"id":"f8d60bf7-e2b8-4afc-9f3d-14ce43a0d938","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"91863388-de9b-4c1c-98b2-a28e4604e772","type":"text/javascript","exec":[""]}}],"_postman_id":"58e17ab0-4da0-9424-aa5b-27d66b81a006"},{"name":"3. Cash Out Offers","item":[{"name":"Accept Offer [Auth]","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["var CB = eval(globals.loadColossus);","CB.computeSignature(['offer_id']);",""]}}],"id":"4777a656-4822-edfe-1e08-f1de5eec5e0d","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"accept_fraction\": \"0.1\",\n  \"remaining_fraction\": \"0.9\",\n  \"accept_amount\": \"2205.24\"\n}"},"url":"{{microsite_api_url}}/offers/{{offer_id}}/accept","description":"Accept an offer or a fraction of an offer.\n\nParameters:\n* `offer_id` required, STRING\n* `accept_fraction` required, STRING, the accepted fraction of the offer\n* `remaining_fraction` required, STRING, the remaining fraction of the offer, for validation purposes\n* `accept_amount` required, STRING, the accepted amount expressed in the user's currency, for validation purposes, must be truncated at two decimal places\n\nFor example:\n* if a customer cashes out 20% of their ticket, then `accept_fraction`='0.2', `remaining_fraction`='0.8'\n* if the same customer then cashes out a further 10% of their ticket, then `accept_fraction`='0.1', `remaining_fraction`='0.7'"},"response":[],"_postman_id":"4777a656-4822-edfe-1e08-f1de5eec5e0d"}],"id":"57b02956-526d-0203-5cd3-566774b8c595","event":[{"listen":"prerequest","script":{"id":"6ad0e302-94a6-4763-a651-03733224d410","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"008d6bb6-a260-4992-b73f-af91ec2ef64e","type":"text/javascript","exec":[""]}}],"_postman_id":"57b02956-526d-0203-5cd3-566774b8c595"},{"name":"4. Reserved Tickets","item":[{"name":"Reserved Ticket [Auth]","event":[{"listen":"prerequest","script":{"id":"97c26abe-8fa5-4f45-9af7-985b776e0dfe","type":"text/javascript","exec":["// var CB = eval(globals.loadTokenAuth);","//CB.computeSignature(['customer_id']);"]}},{"listen":"test","script":{"id":"eb58e4f5-f1b2-4694-8421-268ca00f64d7","type":"text/javascript","exec":["//data = JSON.parse(responseBody);","//var CB = eval(globals.loadColossus);","","//CB.checkTicketsItemSerializer(data.items[0]);"]}}],"id":"e6d44f52-1560-5f22-6d5c-785589e0be1e","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"uid","value":"{{uid}}"},{"key":"access-token","value":"{{access-token}}"},{"key":"client","value":"{{client}}"}],"body":{"mode":"raw","raw":"{\n\"type_code\": \"RACE_WIN\",\n\"sport_code\": \"HORSE_RACING\",\n\"pool_id\": \"123456\",\n\"amount\": \"1\",\n\"currency\": \"CAD\",\n\"legs\": [\n  {\n  \"selections\": \"1/2/3/4/5/6/7/8/9/10\",\n  \"scheduled_start\": \"2016-10-08T11:06:12.000Z\",\n  \"leg_number\": 1\n  },\n  {\n  \"selections\": \"1/2/3/4/5/6/7\",\n  \"scheduled_start\": \"2016-10-08T11:40:12.000Z\",\n  \"leg_number\": 2\n  },\n  {\n  \"selections\": \"1/2/3/4/5/6/7\",\n  \"scheduled_start\": \"2016-10-08T12:10:12.000Z\",\n  \"leg_number\": 3\n  },\n  {\n  \"selections\": \"1/2/3/4/5/6/7/8/9/10\",\n  \"scheduled_start\": \"2016-10-08T18:12:12.000Z\",\n  \"leg_number\": 4\n  }],\n\"info\":\n{\n  \"track_name\": \"Woodbine (SB)\",\n  \"race_number\": \"13\"\n},\n\"prizes\": [\n  { \n    \"amount\": \"14000\",\n    \"prize_code\":\"WIN\"\n  }]\n}\n\n"},"url":"{{microsite_api_url}}/reserved_tickets/{{reserved_ticket_id}}","description":"Returns a reserved ticket.\n\nParameters:\n  * `reserved_ticket_id` required, INT\n"},"response":[],"_postman_id":"e6d44f52-1560-5f22-6d5c-785589e0be1e"}],"id":"2a8c4004-0476-b66a-a887-f7b4884e80b1","description":"Used for the 'book-a-bet' feature.","event":[{"listen":"prerequest","script":{"id":"9f780fc1-b582-406e-bd26-8f9e4965c394","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"aa4073ca-4a92-4aa4-a506-c538e5cb4291","type":"text/javascript","exec":[""]}}],"_postman_id":"2a8c4004-0476-b66a-a887-f7b4884e80b1"},{"name":"5. Data Type and Status Codes","item":[],"id":"599df66f-ebb6-b5c8-bb95-4a7db4418799","description":"This section contains a list of codes used in the API.\n\n#### Sport Codes\n* FOOTBALL\n* HORSE_RACING\n* GREYHOUNDS\n* TENNIS\n* NFL\n* NBA\n* AFL\n* RUGBY\n* WRC\n* MIXED\n* SPECIAL\n\n#### Pool Type Codes\n| Sport Code | Type Code | Description |\n| --- | --- | --- |\n| FOOTBALL | CORRECT_SCORE | Correct Score |\n| FOOTBALL | HDA | 1 x 2 (Home / Draw / Away) |\n| FOOTBALL | ASIAN_HANDICAP | Winning team with handicap |\n| FOOTBALL | OVER_UNDER | Over or under a certain number of goals (usually 2.5) |\n| HORSE_RACING/GREYHOUNDS | RACE_WIN | Pick the winner of each leg (one or more legs) |\n| HORSE_RACING/GREYHOUNDS | RACE_PLACE | Top 3 finishers in each leg (one or more legs) |\n| HORSE_RACING/GREYHOUNDS | RACE_ORDER | Pick the runners to finish in each leg in order (one or more legs) |\n| TENNIS | CORRECT_SCORE_5 | Correct sets, for 5 set games |\n| TENNIS | CORRECT_SCORE_3 | Correct sets, for 3 set games |\n| TENNIS | H2H | Head to head - pick the tennis player that will last in the tournament the longest |\n| AFL/NFL/NBA/RUGBY | POINT_MARGIN | Pick the correct winning margin of points - used in high scoring games |\n| WRC | RACE_WIN | Pick the winner of each leg (one or more legs) |\n| WRC | RACE_ORDER | Pick the runners to finish in each leg in order (one or more legs) |\n\n#### Pool Status Codes\n* OPEN (the pool is open for betting)\n* IN_PLAY (the pool is currently in progress, new bets are no longer accepted)\n* OFFICIAL (the pool has finished, all games within the pool have finished)\n* ABANDONED (the pool has finished, all games within the pool have been abandoned)\n","event":[{"listen":"prerequest","script":{"id":"6bc8d489-3999-44c9-90af-6f8a0d28610c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"bb5800e7-ef62-4314-a2b8-fd89ccabe147","type":"text/javascript","exec":[""]}}],"_postman_id":"599df66f-ebb6-b5c8-bb95-4a7db4418799"},{"name":"6. Receiving Updates","item":[],"id":"ddc0155c-ba80-52ea-8a96-2eb2cf2300b6","description":"The API provides Callbacks for any updates to data. The Callback consists of a single endpoint which the Colossus API calls via POST to provide a summary of the new information available.\n\n#### Callback Endpoint Description\nTo use the Callback, we require access to a single endpoint over HTTPS, which sens a JSON object via POST with the following parameters:\n\n| Parameter          | Description        |\n| ------------------ | ------------ |\n| `object_name`      | This will either be: \"pools\" or \"tickets\" (where 'ticket' refers to a 'bet'), relating to an update event of each category respectively |\n| `object_id`        | Numeric id, representing either the pool or the ticket |\n| `event_code`       | Test description (e.g. \"run_settlement\", indicating that a pool has finished and final ticket details are available) |\n| `data`             | Changes for each event, see more details below |\n| `route`            | Ignore, used for debugging purposes only |\n| `originator`       | Ignore, used for debugging purposes only |\n\n#### Event Codes and Data\n\n| `object_name` | `event_code` | `data` | Description |\n| ---- | --- | --- | --- |\n| pools | status_change | \"status\":\"IN_PLAY\" | Refers to the status of a pool. Possible status codes are: OPEN (the pool is open for betting), IN_PLAY (the pool is currently in progress, new bets are no longer accepted), OFFICIAL (the pool has finished, all games within the pool have finished), ABANDONED (the pool has finished, all games within the pool have been abandoned) |\n| pools | show | \"show\":true | Show the pool to customers |\n| pools | hide | \"show\":false | Hide the pool from customers |\n| pools | enable_trading | \"trading_enabled\":true | The pool is now open for transactions (either new bets or accepting cash outs, depending on the state of the pool) |\n| pools | disable_trading | \"trading_enabled\":false | The pool has been suspended from all actions until further notice (no new bets can be placed, and no cash out offers can be accepted |\n| pools | cycle_update | [JSON object] | Updated pool information for an OPEN pool, uses the following structure: {\"id\":INT, \"num_units\":FLOAT, \"num_units_gross\":FLOAT, \"num_units_net\": FLOAT, \"headline_prize\":FLOAT, \"pool_prizes\":{[\"WIN\"/\"BONUS\"]:{\"id\":INT,\"pool_id\":INT,\"current_prize\":FLOAT,\"prize_type_code\":[\"WIN\"/\"BONUS\"]}} |\n| pools | external_db_update | [JSON object] | Called when an item of data changes (e.g. a team name). We recommend passing this data to a customer's screen directly to update the information in real-time and/or replacing any cache |\n| pools | competitors_update | [JSON object] | Called for racing pools when any of the following changes happen: a new horse is marked as the favourite, a horse is withdrawn, the probability changes or any other data regarding the horse is changed |\n| tickets | tote_refund | [empty object] | Void/cancel a specific ticket. Usually tickets are only cancelled prior to a pool starting |\n","event":[{"listen":"prerequest","script":{"id":"1f290b6b-170b-43be-a485-fbb7a5f7f00d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"656a0525-a6cb-4740-9d1c-8b3a821e5199","type":"text/javascript","exec":[""]}}],"_postman_id":"ddc0155c-ba80-52ea-8a96-2eb2cf2300b6"},{"name":"7. Users","item":[{"name":"Badges","id":"559c33ef-ef36-4f9e-84d2-064d2bbc3029","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{microsite_api_url}}/api/users/{{id}}/badges","description":"## Behavior:\n\nIt gives the amount of plays(nr of lines) that the user can play for free.\n\n## Parameters: \n* `id` - the id of the user in your system (the one that Colossus received or will receive from the user authentication/user info endpoint on your wallet)\n \n## Responses\n\nSuccess responses:\n* `200 OK`\n* `{freeplays: 3}`\n\nError responses:\n* `404 Not Found`\n* `{code: \"COULDN'T FIND USER\"}`"},"response":[],"_postman_id":"559c33ef-ef36-4f9e-84d2-064d2bbc3029"}],"id":"85f4fdf1-d082-40ce-b454-8bff263f8106","_postman_id":"85f4fdf1-d082-40ce-b454-8bff263f8106"},{"name":"8. Sessions","item":[{"name":"index [Auth]","event":[{"listen":"test","script":{"id":"456ea86c-d4b4-40bc-9d0d-40a8fa4739f5","exec":["const TokenAuth = pm.require('@colossus-bets/token_auth');","const tokenAuth = TokenAuth();","tokenAuth.setHeadersIfSuccess();"],"type":"text/javascript","packages":{"@colossus-bets/token_auth":{"id":"019447e9-6204-75e0-a007-d0078db91188"}}}},{"listen":"prerequest","script":{"id":"471740ae-3768-4c95-b3c8-aa40dcf41578","exec":["const TokenAuth = pm.require('@colossus-bets/token_auth');","const tokenAuth = TokenAuth();","tokenAuth.setTime();",""],"type":"text/javascript","packages":{"@colossus-bets/token_auth":{"id":"019447e9-6204-75e0-a007-d0078db91188"}}}}],"id":"a002a9e5-18c5-495c-9254-a01c4e768568","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"uid","value":"{{uid}}","type":"text"},{"key":"access-token","value":"{{access-token}}","type":"text"},{"key":"client","value":"{{client}}","type":"text"},{"key":"expiry","value":"{{expiry}}","type":"text"}],"url":"{{microsite_api_url}}/sessions.json"},"response":[{"id":"0086bc32-8226-4fb0-a6cc-47fbf8c75bf0","name":"All good","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"uid","value":"{{uid}}","type":"text"},{"key":"access-token","value":"{{access-token}}","type":"text"},{"key":"client","value":"{{client}}","type":"text"},{"key":"expiry","value":" {{expiry}}","type":"text"}],"url":"{{microsite_api_url}}/sessions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx","enabled":true},{"key":"Date","value":"Wed, 17 Aug 2022 09:52:36 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Accept-Encoding","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"access-token","value":"{{vault:json-web-token}}","enabled":true},{"key":"client","value":"IcTYS7Kpg77-qJSfhtlt0Q","enabled":true},{"key":"uid","value":"domini","enabled":true},{"key":"expiry","value":"1660737155","enabled":true},{"key":"token-type","value":"Bearer","enabled":true},{"key":"ETag","value":"W/\"afa65a3a54924cc1b0cadddff62d4411\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"XSRF-TOKEN=tfHcV1celBTXmcSnoMc1D0o9b19xeL7W%2BIoXAwXVBJam39a1FYUIU5DdaNZ32xmBB%2BfbjBfxe6oetgmH3ydquw%3D%3D; path=/; secure; HttpOnly; SameSite=Lax","enabled":true},{"key":"Set-Cookie","value":"_cbapi_colossusbets_session=ei9NTEgxNVdBc2VoQ2thKzg2bzhrUVZPODl6MitOeStiM0VqMzUwekNzNnlTNGI1RDlIeGJJQUpQZytUbmI2NFNHSlBlRVRJWXNEckdSWXF0Ym9KV09Cek9mWTl3b3dsLzlNUkVhNnppSTJFR05nbFg3bms1dXE2WjA2NTF5Mm9OWFFnMlZwMnQzYlFFV3NhdVRZcnFXZUdEaWI4MTk2SmcwN1dDWTZ2UDRRdlRBMkZJWUE5SHlVZXRTTDY5dGVMLS1wQUFzTTIySEJRNStoY1lubzRvTUdBPT0%3D--5d5644762cc10aea24d470d2a42e40bf969f2fb8; path=/; secure; HttpOnly; SameSite=Lax","enabled":true},{"key":"X-Request-Id","value":"df0b6378-532c-42eb-bf1f-0c561db5da14","enabled":true},{"key":"X-Runtime","value":"0.554688","enabled":true},{"key":"P3P","value":"CP=ALL ADM DEV PSAi COM OUR OTRo STP IND ONL CAO PSA OUR","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 20013007,\n    \"ext_id\": \"domini\",\n    \"has_offers\": false,\n    \"currency_code\": \"GBP\",\n    \"country_code\": \"GB\",\n    \"auth_tokens\": null,\n    \"additional_info\": {\n        \"balance\": \"551216.06\",\n        \"email\": \"dominikhmlynek@gmail.com\",\n        \"username\": \"domini\",\n        \"age_verified\": true,\n        \"review_verification\": false,\n        \"state\": \"active\"\n    },\n    \"setting\": {\n        \"id\": 1048,\n        \"user_id\": 20013007,\n        \"phone_number\": null,\n        \"threshold\": 1000,\n        \"default_cash_out\": 0,\n        \"created_at\": \"2019-12-02T14:15:23.000Z\",\n        \"updated_at\": \"2019-12-02T14:15:23.000Z\"\n    },\n    \"permissions\": {},\n    \"freeplays\": 22,\n    \"manager_id\": 50026615,\n    \"free_play_session\": {\n        \"actionable_promotions_count\": 0,\n        \"free_play_loyalty_session\": {\n            \"id\": 4509,\n            \"weekly_spend_units\": \"0.0\",\n            \"effective_start_date\": \"2022-08-12T17:11:09.000Z\",\n            \"effective_end_date\": \"2022-08-19T10:45:00.000Z\",\n            \"free_play_tier_id\": null\n        },\n        \"new_player_bonus\": null\n    },\n    \"group_tickets_info\": {\n        \"invitation_count\": 0,\n        \"group_ticket_pool_ids\": [\n            42253,\n            43875,\n            43759\n        ],\n        \"remaining_group_tickets_count\": 2\n    }\n}"}],"_postman_id":"a002a9e5-18c5-495c-9254-a01c4e768568"}],"id":"f898a505-9077-4f7c-b505-5cacd788a79b","_postman_id":"f898a505-9077-4f7c-b505-5cacd788a79b"},{"name":"9. Syndicates","item":[{"name":"share","id":"fd7acd49-f9e6-4eb8-bf7d-5c01781f75d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"uid","value":"{{uid}}","type":"text"},{"key":"access-token","value":"{{access-token}}","type":"text"},{"key":"client","value":"{{client}}","type":"text"}],"body":{"mode":"raw","raw":"{\n\n}"},"url":"{{microsite_api_url}}/managers/331/share","description":"Ability to share available syndicates"},"response":[],"_postman_id":"fd7acd49-f9e6-4eb8-bf7d-5c01781f75d4"},{"name":"Syndicate join [Auth]","event":[{"listen":"test","script":{"id":"456ea86c-d4b4-40bc-9d0d-40a8fa4739f5","exec":["if (responseBody.startsWith(\")]}',\")){","//console.log(responseBody.substring(6));","bodyWithoutStrangeStuffAtTheBeginning = responseBody.substring(6);","}else{","bodyWithoutStrangeStuffAtTheBeginning = responseBody;","}","","//postman.setEnvironmentVariable('ticket_id', data.id)","","//var CB = eval(globals.loadColossus);","//CB.checkPlacedTicketSerializer(data);"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"471740ae-3768-4c95-b3c8-aa40dcf41578","exec":["var CB = eval(globals.loadTokenAuth);"],"type":"text/javascript"}}],"id":"93c004ff-d649-4090-b080-70cd30afab47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"uid","value":"{{uid}}","type":"text"},{"key":"access-token","value":"{{access-token}}","type":"text"},{"key":"client","value":"{{client}}","type":"text"},{"key":"expiry","value":" {{expiry}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"syndicate\": {\n        \"channel\":\"DESKTOP\",\n        \"cost\":\"2.00\",\n        \"currency\":\"GBP\",\n        \"pool_id\":{{pool_id}},\n        \"portion_funded\":\"0.03703704\",\n        \"selections\":\"1,2,3/3,2,1/1,2,3\",\n        \"stake\":\"2.0\",\n        \"use_bonus_funds\":false\n        }\n}\n"},"url":"{{microsite_api_url}}/syndicates/{{syndicate_id}}/join","description":"Places a ticket in the tote.\n\nParameters:\n* `ticket` required, HASH, having the following parameters:\n\t* `pool_id` required, INT\n\t* `selections` required, STRING, comma separated values of the bin parameter from the pool\n\t* `stake` required, STRING\n\t* `cost` required, STRING\n\t* `currency` required, STRING, 3 letter ISO 4217\n\t* `channel` optional, STRING, one of the values [DESKTOP MOBILE MOBILE_APP STORE STORE_BOOKABET SMS PRO SEMI_PRO]. Mainly used for reporting\n\t* `smartpick` optional, INT, default: 0\n\t\t* 0 value - the smart pick wasn't used to generate the selections\n\t\t* 1 value - the smart pick was used to generate the selections\n\t\t* 2 value - the smart pick was used to generate the selections and some selections were changed by the user\n\t* `cross_sell` optional, INT, default: 0\n\t\t* 0 value - the ticket is not a cross sell one\n\t\t* 1 value - the ticket is a cross sell one\n\t\t* 2 value - the ticket is a cross sell one but some selections were changed by the user\n\t* `free_play_id` optional, STRING and represents the token id associated with a free to play campaign\n\t\n\n<h6>Response example</h6>\n<pre><code>\n\n{\n    \"id\": \"100000099933\",\n    \"merchant_ref\": \"1030-7350\",\n    \"selections\": \"1/1/1/1/1/1\",\n    \"stake\": \"2.00\",\n    \"cost\": \"2.0\",\n    \"currency\": \"GBP\",\n    \"cross_sell_suggestion\": null,\n    \"security_code\": null,\n    \"syndicate\": null,\n    \"pin\": null\n}\n\n</code></pre>\n\n\n<h6>Additional response info</h6>\n\n<table>\n  <tr>\n    <th>Field name</th>\n    <th>Note</th>\n  </tr>\n  <tr>\n    <td>security_code</td>\n    <td>Is only populated with a value when the ticket is a retail one</td>\n  </tr>\n  <tr>\n    <td>pin</td>\n    <td>Is only populated with a value when the ticket is a retail one</td>\n  </tr>\n</table>"},"response":[{"id":"029be0d3-3a61-4f4b-96df-d7f56d649f32","name":"All good","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"uid","value":"{{uid}}","type":"text"},{"key":"access-token","value":"{{access-token}}","type":"text"},{"key":"client","value":"{{client}}","type":"text"},{"key":"expiry","value":" {{expiry}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"syndicate\": {\n        \"channel\":\"DESKTOP\",\n        \"cost\":\"2.00\",\n        \"currency\":\"GBP\",\n        \"pool_id\":{{pool_id}},\n        \"portion_funded\":\"0.03703704\",\n        \"selections\":\"1,2,3/3,2,1/1,2,3\",\n        \"stake\":\"2.0\",\n        \"use_bonus_funds\":false\n        }\n}\n"},"url":"{{microsite_api_url}}/syndicates/{{syndicate_id}}/join"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx","enabled":true},{"key":"Date","value":"Mon, 14 Mar 2022 14:38:54 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"access-token","value":"{{vault:json-web-token}}","enabled":true},{"key":"client","value":"1LhIFkDinSXLFq3I4nk3_g","enabled":true},{"key":"uid","value":"nandobermejo","enabled":true},{"key":"expiry","value":"1647275934","enabled":true},{"key":"token-type","value":"Bearer","enabled":true},{"key":"ETag","value":"W/\"78e97e417f33aa9f7e0b0a6035928674\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"XSRF-TOKEN=F9T451%2F4TClHx8xn75IJ45kuMovE0iMfGHfnkzgOdY0%2Fs1gXkYkU3K677d%2BHbFKDzJ2%2B%2BKI84Qew5XSvJu%2BhUw%3D%3D; path=/; secure; HttpOnly; SameSite=Lax","enabled":true},{"key":"Set-Cookie","value":"_cbapi_colossusbets_session=bHRzWUVPenhENFNDQXlaN2RVenJRd1pPVm9hYkRUeWZRT0dGbjN1TERIRDI3VG9Lb2ZrRUJRUjBiNkdtUzQxTkZHa1FjbTUrU3IrdGNZdFBkSzJUQ2MzazEvcGx2VlhjeHdCSWhlckdWb3RGN0lmZ1RSVElBc0dIdnVpcHB0aExucTVrWmJyS2poMCtCZERIQlFyNmtUdU82aGZJVnFWV21mOUx1dHhOTHVQQ1BCRklmZ3NhV002TU1LZXVHRFM1LS1pYlg4VmxXQmxHZDErQjloeFdCMXRBPT0%3D--be376792c686c09b3b7ed728d0640d0d0ac72367; path=/; secure; HttpOnly; SameSite=Lax","enabled":true},{"key":"X-Request-Id","value":"c9528f17-759c-4b70-813b-492051c97ac2","enabled":true},{"key":"X-Runtime","value":"0.455937","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"P3P","value":"CP=ALL ADM DEV PSAi COM OUR OTRo STP IND ONL CAO PSA OUR","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"500001676441\",\n    \"merchant_ref\": \"1477-7053\",\n    \"selections\": \"1,2,3/3,2,1/1,2,3\",\n    \"stake\": \"2.0\",\n    \"cost\": \"2.00\",\n    \"currency\": \"GBP\",\n    \"cross_sell_suggestion\": null,\n    \"security_code\": null,\n    \"syndicate\": {\n        \"id\": 50004241,\n        \"reference_code\": \"944DWVWX\",\n        \"is_public\": true,\n        \"name\": null,\n        \"selections\": \"1,2,3/3,2,1/1,2,3\",\n        \"amount_funded\": \"0.26666667\",\n        \"amount_owned_customer\": \"1.0\",\n        \"stake\": \"2.0\",\n        \"cost\": \"54.0\",\n        \"customer_portion\": \"0.07407408\",\n        \"min_contribution\": \"0.1\",\n        \"offer_amount\": \"0.0\",\n        \"pool_id\": 42181,\n        \"stringified_id\": \"50004241\",\n        \"created_at\": \"2022-02-21T14:40:26.000+00:00\",\n        \"filled_at\": null,\n        \"initial_portion_id\": 500001676230,\n        \"void_to_solo\": false,\n        \"total_portions\": 3,\n        \"total_dividend\": \"0.0\",\n        \"total_cashed_out\": \"0.0\",\n        \"total_offer\": \"0.0\"\n    }\n}"}],"_postman_id":"93c004ff-d649-4090-b080-70cd30afab47"},{"name":"Syndicate create [Auth]","event":[{"listen":"test","script":{"id":"456ea86c-d4b4-40bc-9d0d-40a8fa4739f5","exec":["","const TokenAuth = pm.require('@colossus-bets/token_auth');","const tokenAuth = TokenAuth();","tokenAuth.setHeadersIfSuccess();",""],"type":"text/javascript","packages":{"@colossus-bets/token_auth":{"id":"019447e9-6204-75e0-a007-d0078db91188"}}}},{"listen":"prerequest","script":{"id":"471740ae-3768-4c95-b3c8-aa40dcf41578","exec":["const TokenAuth = pm.require('@colossus-bets/token_auth');","const tokenAuth = TokenAuth();","tokenAuth.setTime();",""],"type":"text/javascript","packages":{"@colossus-bets/token_auth":{"id":"019447e9-6204-75e0-a007-d0078db91188"}}}}],"id":"ee837930-e17a-4c9c-b269-a0d8ede3bd8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"uid","value":"{{uid}}","type":"text"},{"key":"access-token","value":"{{access-token}}","type":"text"},{"key":"client","value":"{{client}}","type":"text"},{"key":"expiry","value":" {{expiry}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"syndicate\": {\n        \"channel\": \"DESKTOP\",\n        \"cost\": \"12\",\n        \"currency\": \"GBP\",\n        \"is_public\": true,\n        \"void_to_solo\": false,\n        \"pool_id\": 45895,\n        \"selections\": \"1,2,3/1,2/1,2/1/1\",\n        \"smartpick\": 0,\n        \"stake\": \"3.0\",\n        \"portion_funded\": \"0.1\",\n        \"use_bonus_funds\": false\n    }\n}"},"url":"{{microsite_api_url}}/syndicates/","description":"Places a ticket in the tote.\n\nParameters:\n* `ticket` required, HASH, having the following parameters:\n\t* `pool_id` required, INT\n\t* `selections` required, STRING, comma separated values of the bin parameter from the pool\n\t* `stake` required, STRING\n\t* `cost` required, STRING\n\t* `currency` required, STRING, 3 letter ISO 4217\n\t* `channel` optional, STRING, one of the values [DESKTOP MOBILE MOBILE_APP STORE STORE_BOOKABET SMS PRO SEMI_PRO]. Mainly used for reporting\n\t* `smartpick` optional, INT, default: 0\n\t\t* 0 value - the smart pick wasn't used to generate the selections\n\t\t* 1 value - the smart pick was used to generate the selections\n\t\t* 2 value - the smart pick was used to generate the selections and some selections were changed by the user\n\t* `cross_sell` optional, INT, default: 0\n\t\t* 0 value - the ticket is not a cross sell one\n\t\t* 1 value - the ticket is a cross sell one\n\t\t* 2 value - the ticket is a cross sell one but some selections were changed by the user\n\t* `free_play_id` optional, STRING and represents the token id associated with a free to play campaign\n\t\n\n<h6>Response example</h6>\n<pre><code>\n\n{\n    \"id\": \"100000099933\",\n    \"merchant_ref\": \"1030-7350\",\n    \"selections\": \"1/1/1/1/1/1\",\n    \"stake\": \"2.00\",\n    \"cost\": \"2.0\",\n    \"currency\": \"GBP\",\n    \"cross_sell_suggestion\": null,\n    \"security_code\": null,\n    \"syndicate\": null,\n    \"pin\": null\n}\n\n</code></pre>\n\n\n<h6>Additional response info</h6>\n\n<table>\n  <tr>\n    <th>Field name</th>\n    <th>Note</th>\n  </tr>\n  <tr>\n    <td>security_code</td>\n    <td>Is only populated with a value when the ticket is a retail one</td>\n  </tr>\n  <tr>\n    <td>pin</td>\n    <td>Is only populated with a value when the ticket is a retail one</td>\n  </tr>\n</table>"},"response":[{"id":"1b917f9d-bbad-4a16-a388-f72504d768fb","name":"Create Syndicate for GroupTicket - All good","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"uid","value":"{{uid}}","type":"text"},{"key":"access-token","value":"{{access-token}}","type":"text"},{"key":"client","value":"{{client}}","type":"text"},{"key":"expiry","value":" {{expiry}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"syndicate\": {\n        \"channel\": \"DESKTOP\",\n        \"cost\": \"2.50\",\n        \"currency\": \"GBP\",\n        \"is_public\": true,\n        \"void_to_solo\": false,\n        \"pool_id\": {{pool_id}},\n        \"selections\": \"1/1/1\",\n        \"smartpick\": 0,\n        \"stake\": \"25.0\",\n        \"portion_funded\": \"0.10000000\",\n        \"use_bonus_funds\": false,\n        \"group_ticket_id\": {{group_ticket_id}}\n    }\n}"},"url":"{{microsite_api_url}}/syndicates/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx","enabled":true},{"key":"Date","value":"Tue, 06 Sep 2022 18:08:59 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"access-token","value":"{{vault:json-web-token}}","enabled":true},{"key":"client","value":"VG3jFztuyVaDyzw4LvHcWA","enabled":true},{"key":"uid","value":"domini","enabled":true},{"key":"expiry","value":"1662494939","enabled":true},{"key":"token-type","value":"Bearer","enabled":true},{"key":"ETag","value":"W/\"840bc773326925a05bed546e64aed6a2\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"XSRF-TOKEN=2qjLYNueWhXaS1KvcBNrxh%2BK8909dVCQCRr5XjztsYwZtiGPO6K%2BnbZ9ECY0OPloiQn6Ex1D2FxWBGXnMAlQjA%3D%3D; path=/; secure; HttpOnly; SameSite=Lax","enabled":true},{"key":"Set-Cookie","value":"_cbapi_colossusbets_session=RjZRRzUxMEZPWXRNODBBeENXdVhlMjd0YXA4Qyt4Rkp4ZUcvTm96WW84dXVhUW1hN3N2emUrNExRcC9RdXVhcDNEV1llMloyMzgzMlRMcDVoUnNoTzE2Q3BjYkw4UW0zSU5hZTZDRDUrUUtIVERGYmVjZ2FjTVJQRzdiRFg2ZXNoWmxlQWI5bVBLZTZDdzhyTjY5YWljMXVvcmJLM1B3RTd1bSsySTQwZGQvbkVSZ2RyTzRnaS9XNVJ4aytsMXppLS1lWDhDVkNhOHBwNzBZTHQwUEpVOGRnPT0%3D--c67476b3bda96ccbaab977142fc3ddf765e4de76; path=/; secure; HttpOnly; SameSite=Lax","enabled":true},{"key":"X-Request-Id","value":"b077d2be-82ed-4068-96d6-86c0d1b36418","enabled":true},{"key":"X-Runtime","value":"0.351496","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"P3P","value":"CP=ALL ADM DEV PSAi COM OUR OTRo STP IND ONL CAO PSA OUR","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"50004489\",\n    \"reference_code\": \"352YPQFM\",\n    \"selections\": \"1/1/1\",\n    \"stake\": \"25.0\",\n    \"currency\": \"GBP\",\n    \"cost\": \"25.0\",\n    \"merchant_ref\": \"1484-0393\",\n    \"first_portion_id\": \"500001728082\",\n    \"is_public\": true,\n    \"void_to_solo\": false,\n    \"group_ticket_id\": 47\n}"}],"_postman_id":"ee837930-e17a-4c9c-b269-a0d8ede3bd8d"}],"id":"1e9aed27-5e72-41d0-8beb-c547b786ec24","_postman_id":"1e9aed27-5e72-41d0-8beb-c547b786ec24"},{"name":"10. Settings","item":[{"name":"Settings","id":"2059cc94-fde4-455d-b07f-751e54d935d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"{{microsite_api_url}}/settings/"},"response":[{"id":"bc137632-a658-426d-b32b-0d3242ac40ca","name":"All good","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"url":"{{microsite_api_url}}/settings/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx","enabled":true},{"key":"Date","value":"Sun, 20 Mar 2022 22:58:53 GMT","enabled":true},{"key":"Content-Type","value":"application/json; charset=utf-8","enabled":true},{"key":"Transfer-Encoding","value":"chunked","enabled":true},{"key":"Connection","value":"keep-alive","enabled":true},{"key":"Vary","value":"Accept-Encoding","enabled":true},{"key":"Vary","value":"Origin","enabled":true},{"key":"ETag","value":"W/\"435a5f170b912758f52cccd4b0606a21\"","enabled":true},{"key":"Cache-Control","value":"max-age=0, private, must-revalidate","enabled":true},{"key":"Set-Cookie","value":"XSRF-TOKEN=%2Fm%2BbbW9Fd2iNpEl8a7AtoRIBv%2Bp2IrsDMmpazhYk%2Bin41waIwT6pXG6VaQVzm%2Bnr6o91v8tL0hDuKfRk4KePPQ%3D%3D; path=/; secure; HttpOnly; SameSite=Lax","enabled":true},{"key":"Set-Cookie","value":"_cbapi_colossusbets_session=dDdqSjRZczBmRXFnSUhiT2s2Tm1XeEx3T2ZzUHYzN052bmg5eldwV01FL1V3TXk1OE5mb0hYR1BLUlpuRUlwUWFCS1F0R0EyNWQ0YmF2V3ZxSWh4TjFPbHByc2tVM3Y5cVBwQUk4YWlSQTIwNWE3QmpEcGFkdktSeGpndTNGU3hkbkpvdXFXMkxWOU1LNmdUcFhjUCt4WjBKcmdpcEN6OTJpaWdmR05XdHYwek01ekhRdisyb2F5dkVnWThDWmc0LS1TWm5WQ2VOd0t1b2ZTMERsSFRaTThnPT0%3D--b1778a12d4a223af11f0df29dfddf0e3e637bc4a; path=/; secure; HttpOnly; SameSite=Lax","enabled":true},{"key":"X-Request-Id","value":"7bf1e431-4f0c-4621-8ac7-fb545ed07246","enabled":true},{"key":"X-Runtime","value":"0.132715","enabled":true},{"key":"P3P","value":"CP=ALL ADM DEV PSAi COM OUR OTRo STP IND ONL CAO PSA OUR","enabled":true},{"key":"Content-Encoding","value":"gzip","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"open_syndicate_count\": 49,\n    \"periods\": [\n        {\n            \"id\": 7,\n            \"time_value\": 7,\n            \"time_key\": \"day\",\n            \"leaderboard_notification_order\": 0\n        },\n        {\n            \"id\": 9,\n            \"time_value\": 1,\n            \"time_key\": \"month\",\n            \"leaderboard_notification_order\": 1\n        },\n        {\n            \"id\": 11,\n            \"time_value\": 3,\n            \"time_key\": \"month\",\n            \"leaderboard_notification_order\": 2\n        }\n    ],\n    \"sport_categories\": [\n        {\n            \"id\": 1,\n            \"code\": \"ALL\",\n            \"description\": {\n                \"sport_codes\": [\n                    \"FOOTBALL\",\n                    \"NFL\",\n                    \"RUGBY\",\n                    \"AFL\",\n                    \"NBA\",\n                    \"GREYHOUNDS\",\n                    \"ICE_HOCKEY\",\n                    \"ESPORTS\",\n                    \"DARTS\",\n                    \"GOLF\",\n                    \"TENNIS\",\n                    \"WRC\",\n                    \"HORSE_RACING\",\n                    \"FANTASY_ESPORTS\",\n                    \"FANTASY_NFL\"\n                ]\n            },\n            \"pools_count\": 50\n        },\n        {\n            \"id\": 3,\n            \"code\": \"HORSE_RACING\",\n            \"description\": {\n                \"sport_codes\": [\n                    \"HORSE_RACING\",\n                    \"GREYHOUNDS\"\n                ]\n            },\n            \"pools_count\": 19\n        },\n        {\n            \"id\": 5,\n            \"code\": \"SPORTS\",\n            \"description\": {\n                \"sport_codes\": [\n                    \"FOOTBALL\",\n                    \"NFL\",\n                    \"RUGBY\",\n                    \"AFL\",\n                    \"NBA\",\n                    \"ICE_HOCKEY\",\n                    \"ESPORTS\",\n                    \"DARTS\",\n                    \"GOLF\",\n                    \"TENNIS\",\n                    \"WRC\",\n                    \"ESPORTS\",\n                    \"FANTASY_ESPORTS\",\n                    \"FANTASY_NFL\"\n                ]\n            },\n            \"pools_count\": 31\n        }\n    ],\n    \"rebate_tiers\": [\n        {\n            \"id\": 1,\n            \"description\": \"Bronze\",\n            \"rebate_percentage\": \"0.05\",\n            \"from_threshold_units\": \"0.0\",\n            \"to_threshold_units\": \"49.995\",\n            \"vip\": false,\n            \"enabled\": true\n        },\n        {\n            \"id\": 2,\n            \"description\": \"Silver\",\n            \"rebate_percentage\": \"0.075\",\n            \"from_threshold_units\": \"50.0\",\n            \"to_threshold_units\": \"374.995\",\n            \"vip\": false,\n            \"enabled\": true\n        },\n        {\n            \"id\": 3,\n            \"description\": \"Gold\",\n            \"rebate_percentage\": \"0.1\",\n            \"from_threshold_units\": \"375.0\",\n            \"to_threshold_units\": null,\n            \"vip\": false,\n            \"enabled\": true\n        },\n        {\n            \"id\": 8,\n            \"description\": \"No Rebate\",\n            \"rebate_percentage\": \"0.0\",\n            \"from_threshold_units\": null,\n            \"to_threshold_units\": null,\n            \"vip\": false,\n            \"enabled\": true\n        }\n    ],\n    \"fx_rates\": [\n        {\n            \"currency\": \"GBP\",\n            \"rate\": \"2.0\",\n            \"base_rate\": \"2.0\"\n        },\n        {\n            \"currency\": \"CAD\",\n            \"rate\": \"3.3238518\",\n            \"base_rate\": \"4.03116\"\n        },\n        {\n            \"currency\": \"CHF\",\n            \"rate\": \"2.45719867\",\n            \"base_rate\": \"3.01198\"\n        },\n        {\n            \"currency\": \"EUR\",\n            \"rate\": \"2.3829923\",\n            \"base_rate\": \"2.8345\"\n        },\n        {\n            \"currency\": \"NOK\",\n            \"rate\": \"21.54715157\",\n            \"base_rate\": \"25.4234\"\n        },\n        {\n            \"currency\": \"DKK\",\n            \"rate\": \"17.75467003\",\n            \"base_rate\": \"21.1494\"\n        },\n        {\n            \"currency\": \"SEK\",\n            \"rate\": \"24.79917434\",\n            \"base_rate\": \"26.8912\"\n        },\n        {\n            \"currency\": \"USD\",\n            \"rate\": \"2.63619923\",\n            \"base_rate\": \"3.12442\"\n        },\n        {\n            \"currency\": \"BAM\",\n            \"rate\": \"4.67616138\",\n            \"base_rate\": \"5.54384\"\n        },\n        {\n            \"currency\": \"HRK\",\n            \"rate\": \"16.48813913\",\n            \"base_rate\": \"21.5292\"\n        },\n        {\n            \"currency\": \"MKD\",\n            \"rate\": \"147.30534568\",\n            \"base_rate\": \"174.5254\"\n        },\n        {\n            \"currency\": \"CZK\",\n            \"rate\": \"59.3158114\",\n            \"base_rate\": \"76.7946\"\n        },\n        {\n            \"currency\": \"RSD\",\n            \"rate\": \"280.67711568\",\n            \"base_rate\": \"340.53\"\n        },\n        {\n            \"currency\": \"RUB\",\n            \"rate\": \"164.4878\",\n            \"base_rate\": \"184.296\"\n        },\n        {\n            \"currency\": \"UAH\",\n            \"rate\": \"64.8414\",\n            \"base_rate\": \"68.8152\"\n        },\n        {\n            \"currency\": \"CNY\",\n            \"rate\": \"16.76940111\",\n            \"base_rate\": \"19.39778\"\n        },\n        {\n            \"currency\": \"HKD\",\n            \"rate\": \"20.62812719\",\n            \"base_rate\": \"24.2188\"\n        },\n        {\n            \"currency\": \"IDR\",\n            \"rate\": \"34512.0\",\n            \"base_rate\": \"42003.84\"\n        },\n        {\n            \"currency\": \"JPY\",\n            \"rate\": \"266.288\",\n            \"base_rate\": \"387.008\"\n        },\n        {\n            \"currency\": \"KRW\",\n            \"rate\": \"2866.66910323\",\n            \"base_rate\": \"3622.8\"\n        },\n        {\n            \"currency\": \"MYR\",\n            \"rate\": \"11.0536862\",\n            \"base_rate\": \"11.88902\"\n        },\n        {\n            \"currency\": \"SGD\",\n            \"rate\": \"3.57522395\",\n            \"base_rate\": \"4.2683\"\n        },\n        {\n            \"currency\": \"THB\",\n            \"rate\": \"87.76004787\",\n            \"base_rate\": \"109.2374\"\n        },\n        {\n            \"currency\": \"VND\",\n            \"rate\": \"60276.69547154\",\n            \"base_rate\": \"68159.1\"\n        },\n        {\n            \"currency\": \"AUD\",\n            \"rate\": \"3.55058866\",\n            \"base_rate\": \"4.28094\"\n        },\n        {\n            \"currency\": \"NZD\",\n            \"rate\": \"3.81654426\",\n            \"base_rate\": \"4.67848\"\n        },\n        {\n            \"currency\": \"ZAR\",\n            \"rate\": \"39.16217634\",\n            \"base_rate\": \"39.1196\"\n        },\n        {\n            \"currency\": \"INR\",\n            \"rate\": \"183.21936453\",\n            \"base_rate\": \"202.188\"\n        },\n        {\n            \"currency\": \"BND\",\n            \"rate\": \"3.57701656\",\n            \"base_rate\": \"4.3279\"\n        },\n        {\n            \"currency\": \"MXN\",\n            \"rate\": \"49.3616202\",\n            \"base_rate\": \"51.0102\"\n        },\n        {\n            \"currency\": \"PHP\",\n            \"rate\": \"122.729\",\n            \"base_rate\": \"144.4222\"\n        },\n        {\n            \"currency\": \"PLN\",\n            \"rate\": \"9.52712464\",\n            \"base_rate\": \"12.00804\"\n        },\n        {\n            \"currency\": \"RON\",\n            \"rate\": \"10.29273605\",\n            \"base_rate\": \"12.6036\"\n        },\n        {\n            \"currency\": \"TWD\",\n            \"rate\": \"74.79170863\",\n            \"base_rate\": \"99.866\"\n        },\n        {\n            \"currency\": \"MMK\",\n            \"rate\": \"3101.2\",\n            \"base_rate\": \"3926.62\"\n        },\n        {\n            \"currency\": \"NGN\",\n            \"rate\": \"938.55912778\",\n            \"base_rate\": \"900.0\"\n        },\n        {\n            \"currency\": \"HUF\",\n            \"rate\": \"724.96374919\",\n            \"base_rate\": \"820.692\"\n        },\n        {\n            \"currency\": \"GHS\",\n            \"rate\": \"10.39482\",\n            \"base_rate\": \"11.3456\"\n        },\n        {\n            \"currency\": \"KES\",\n            \"rate\": \"259.31796045\",\n            \"base_rate\": \"292.972\"\n        },\n        {\n            \"currency\": \"UGX\",\n            \"rate\": \"8809.2\",\n            \"base_rate\": \"9963.88\"\n        },\n        {\n            \"currency\": \"ARS\",\n            \"rate\": \"38.8086\",\n            \"base_rate\": \"42.1342\"\n        },\n        {\n            \"currency\": \"BRL\",\n            \"rate\": \"8.28204\",\n            \"base_rate\": \"11.4686\"\n        },\n        {\n            \"currency\": \"CLP\",\n            \"rate\": \"1762.21984265\",\n            \"base_rate\": \"2061.9\"\n        },\n        {\n            \"currency\": \"AMD\",\n            \"rate\": \"1287.89679016\",\n            \"base_rate\": \"1435.692\"\n        },\n        {\n            \"currency\": \"TRY\",\n            \"rate\": \"7.84152\",\n            \"base_rate\": \"8.51872\"\n        },\n        {\n            \"currency\": \"UUS\",\n            \"rate\": \"2.63619923\",\n            \"base_rate\": \"2.877\"\n        },\n        {\n            \"currency\": \"KZT\",\n            \"rate\": \"942.77375363\",\n            \"base_rate\": \"906.246\"\n        },\n        {\n            \"currency\": \"GEL\",\n            \"rate\": \"6.41783351\",\n            \"base_rate\": \"6.47436\"\n        },\n        {\n            \"currency\": \"GHC\",\n            \"rate\": \"19.11347256\",\n            \"base_rate\": \"11.3456\"\n        },\n        {\n            \"currency\": \"ZMW\",\n            \"rate\": \"26.72907063\",\n            \"base_rate\": \"24.95\"\n        },\n        {\n            \"currency\": \"ZWD\",\n            \"rate\": \"948.29\",\n            \"base_rate\": \"949.418\"\n        },\n        {\n            \"currency\": \"TZS\",\n            \"rate\": \"6110.71070877\",\n            \"base_rate\": \"5743.0\"\n        },\n        {\n            \"currency\": \"IRR\",\n            \"rate\": \"81595.38\",\n            \"base_rate\": \"81595.38\"\n        },\n        {\n            \"currency\": \"TOM\",\n            \"rate\": \"111379.41853881\",\n            \"base_rate\": \"81595.38\"\n        },\n        {\n            \"currency\": \"PEN\",\n            \"rate\": \"8.50526126\",\n            \"base_rate\": \"8.3627802\"\n        },\n        {\n            \"currency\": \"XTS\",\n            \"rate\": \"2.0\",\n            \"base_rate\": \"2.0\"\n        },\n        {\n            \"currency\": \"AZN\",\n            \"rate\": \"4.49200441\",\n            \"base_rate\": \"4.5549\"\n        },\n        {\n            \"currency\": \"XAF\",\n            \"rate\": \"1568.32336411\",\n            \"base_rate\": \"1490.4\"\n        },\n        {\n            \"currency\": \"RWF\",\n            \"rate\": \"2268.05\",\n            \"base_rate\": \"2268.05\"\n        },\n        {\n            \"currency\": \"STR\",\n            \"rate\": \"100.0\",\n            \"base_rate\": \"100.0\"\n        },\n        {\n            \"currency\": \"KHR\",\n            \"rate\": \"10629.15623435\",\n            \"base_rate\": \"10325.09\"\n        },\n        {\n            \"currency\": \"ETB\",\n            \"rate\": \"72.3904\",\n            \"base_rate\": \"72.3904\"\n        },\n        {\n            \"currency\": \"CFA\",\n            \"rate\": \"1568.32336411\",\n            \"base_rate\": \"765.98\"\n        }\n    ],\n    \"free_play_tiers\": [\n        {\n            \"id\": 1,\n            \"description\": \"Tier 1(Bronze)\",\n            \"enabled\": true,\n            \"plays\": 4,\n            \"stake_tier\": 4,\n            \"from_threshold\": \"2.5\",\n            \"to_threshold\": \"12.5\"\n        },\n        {\n            \"id\": 2,\n            \"description\": \"Tier 2(Silver)\",\n            \"enabled\": true,\n            \"plays\": 4,\n            \"stake_tier\": 3,\n            \"from_threshold\": \"12.5\",\n            \"to_threshold\": \"37.5\"\n        },\n        {\n            \"id\": 3,\n            \"description\": \"Tier 3(Gold)\",\n            \"enabled\": true,\n            \"plays\": 6,\n            \"stake_tier\": 2,\n            \"from_threshold\": \"37.5\",\n            \"to_threshold\": null\n        }\n    ],\n    \"post_edit_window_in_miliseconds\": 120000,\n    \"post_delete_window_in_miliseconds\": 120000,\n    \"default_currency\": \"GBP\"\n}"}],"_postman_id":"2059cc94-fde4-455d-b07f-751e54d935d6"}],"id":"b5fe2e54-68a3-412a-9e29-2e6870328f06","_postman_id":"b5fe2e54-68a3-412a-9e29-2e6870328f06"}],"event":[{"listen":"prerequest","script":{"id":"ebb825ec-8bc2-4bbf-8da2-be94bfa5e802","type":"text/javascript","packages":{"@colossus-bets/token_auth":{"id":"019447e9-6204-75e0-a007-d0078db91188"}},"requests":{},"exec":["const TokenAuth = pm.require('@colossus-bets/token_auth');","const tokenAuth = TokenAuth();","tokenAuth.setTime();"]}},{"listen":"test","script":{"id":"aa2eb117-a878-40c4-98dc-851ecc657aae","type":"text/javascript","packages":{"@colossus-bets/token_auth":{"id":"019447e9-6204-75e0-a007-d0078db91188"}},"requests":{},"exec":["const TokenAuth = pm.require('@colossus-bets/token_auth');","const tokenAuth = TokenAuth();","tokenAuth.setHeadersIfSuccess();"]}}]}