{"info":{"_postman_id":"d0a8a309-2893-fbd7-6504-80db40805e07","name":"Colossusbets Proplayer API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"1255977","collectionId":"d0a8a309-2893-fbd7-6504-80db40805e07","publishedId":"RVnWiK2Y","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2018-03-15T17:39:36.000Z"},"item":[{"name":"1. Introduction","item":[],"id":"b7a59232-2f6d-468c-84d5-06cf3fabff4d","description":"<h1 id=\"about-us\">About us</h1>\n<p>Colossus Bets offers the largest sports and racing jackpots in the world, and is the home of Partial Cash Out and Syndicates. For more information about the Colossus product, see our</p>\n<p><a href=\"https://corporate.colossusbets.com\">Corporate Website</a></p>\n<p>, or our</p>\n<p><a href=\"https://www.colossusbets.com\">Own Product</a></p>\n<p>build on this documentation.</p>\n<p>This is a client API, providing a full interface into the multi-sport Colossus Bets engine, using HTTPS requests with JSON objects.</p>\n<h1 id=\"units\">Units</h1>\n<p>These are the core measurement of the underlying system in order to keep the system currency-agnostic. Units need to be converted into a relevant user currency before being shown to customers. In this API you'll find exact instructions on how to deal with these values when encoutered. The units can have different value per pool.</p>\n<h1 id=\"fx-rates\">Fx Rates</h1>\n<p>Fx rates can be provided from the API in order to transform the units into a given currency. (<code>unit</code> value * <code>fx_rate</code> for currency <code>XYZ</code> = <code>XYZ</code> value.<br />We are keeping the rates up to date, and they are static per pool, being set at the pool creation time, based on the pool base currency, and the unit.</p>\n<h1 id=\"wallet-api-token-auth\">Wallet Api Token Auth</h1>\n<h2 id=\"token-header-format\">Token Header Format</h2>\n<ul>\n<li>The authentication information should be included by the client in the headers of each authenticated request and it will be received in the same manner or as parameters in some cases. The headers follow the RFC 6750 Bearer Token format:</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Header Name</th>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>param</td>\n<td>somesecuretoken</td>\n<td>This serves as the user's password for each request. A hashed version of this value is stored in the database for later comparison. This value should be changed on each request.</td>\n</tr>\n<tr>\n<td>token-type</td>\n<td>Bearer</td>\n<td>Token type</td>\n</tr>\n<tr>\n<td>client</td>\n<td>testclient</td>\n<td>This enables the use of multiple simultaneous sessions on different clients. (For example, a user may want to be authenticated on both their phone and their laptop at the same time.)</td>\n</tr>\n<tr>\n<td>expiry</td>\n<td>tttttttt</td>\n<td>The date at which the current session will expire. This can be used by clients to invalidate expired tokens without the need for an API request.</td>\n</tr>\n<tr>\n<td>uid</td>\n<td><a href=\"https://mailto:zzzzz@yyy.com\">zzzzz@yyy.com</a></td>\n<td>A unique value that is used to identify the user. This is necessary because searching the DB for users by their access token will make the API susceptible to timing attacks.</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>The authentication headers required for each request will be available in the response from the previous request. You can have a look at ng-token-auth AngularJS module or the jToker jQuery plugin where this functionality is already provided.</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"id":"c92eec20-d566-4205-a846-ad8199681767","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f0e11c18-78ec-4846-acd5-66efc0902301","type":"text/javascript","exec":[""]}}],"_postman_id":"b7a59232-2f6d-468c-84d5-06cf3fabff4d"},{"name":"2. Wallet Auth","item":[{"name":"users/sign_in","event":[{"listen":"prerequest","script":{"id":"dd0438fd-eadb-4f2b-96ac-ba38fb87d285","exec":[""],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"test","script":{"id":"739516d1-86c5-4f46-bd8c-b0805cc2e277","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"2321d8b8-25f4-6af4-2eca-a3e313e58f22","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"login\": \"{{username}}\",\n  \"password\": \"{{password}}\"\n}"},"url":"{{wallet_api_url}}/users/sign_in","description":"<h2 id=\"sign_in---post-userssign_in\">sign_in - POST <code>/users/sign_in</code></h2>\n<ul>\n<li><p>logs in the user and returns the authentication headers, the customer state and whatever parameters required for login logic (sign_in_count?, notifications?)</p>\n</li>\n<li><p>it first checks if the user with the introduced <code>email/username</code> is authorized to log in</p>\n</li>\n<li><p>if the introduced <code>password</code> is wrong and the <code>email</code> address belongs to an account, it will be locked after a number of attempts, only if authorization passes</p>\n</li>\n<li><p><code>login</code> field representing the <code>email</code> or the <code>username</code></p>\n</li>\n<li><p><code>password</code></p>\n</li>\n<li><p>upon successful login information like <code>failed_attempts</code>, <code>sign_in_count</code>, <code>last_sign_in_ip</code> are being saved/reset</p>\n</li>\n</ul>\n<p><strong>Error response examples</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>403\n{\n  \"status\": \"ERROR\",\n  \"error\": \"LOCKED\"\n}\n\n</code></pre><ul>\n<li>the 403 error codes can be found in code <code>en.yml</code> under <code>accounts</code> tab and logic/translations can be build on them</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>401\n{\n  \"status\": \"ERROR\",\n  \"error\": \"BAD_CREDENTIALS\"\n}\n\n</code></pre><p><strong>Successfull response examples</strong></p>\n<p><code>200 { \"status\": \"SUCCESS\", \"data\": { state: 'active' }, \"message\": \"OK\" }</code> + auth headers</p>\n","urlObject":{"path":["users","sign_in"],"host":["{{wallet_api_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2321d8b8-25f4-6af4-2eca-a3e313e58f22"}],"id":"0ea8de21-00ea-56cf-4fc7-dcc65a40d395","event":[{"listen":"prerequest","script":{"id":"0bd2d2fa-5f16-41e1-a223-0c75817e193d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"8e9b40b0-6d30-465a-8376-ae0e9f819fd9","type":"text/javascript","exec":[""]}}],"_postman_id":"0ea8de21-00ea-56cf-4fc7-dcc65a40d395","description":""},{"name":"3. Pools","item":[{"name":"Pool","event":[{"listen":"prerequest","script":{"id":"4f70d659-6a10-4e9d-838f-24a954137e23","exec":[""],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"test","script":{"id":"b91fa176-2d7b-4ed2-8489-f9fff5158136","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"6126b500-ef3c-3936-03b1-d4bbbcbcb5f0","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}}?no_serializer=true&currency=GBP","description":"<p>Retrieves a pool with a specific id.</p>\n<p>Parameters:</p>\n<ul>\n<li><p><code>pool_id</code> required</p>\n</li>\n<li><p><code>no_serializer</code> required with TRUE value, BOOLEAN, default: false</p>\n<ul>\n<li><p><code>no_serializer=true</code> returns a faster response</p>\n</li>\n<li><p><code>no_serializer=false</code> is DEPRECATED</p>\n</li>\n</ul>\n</li>\n<li><p><code>currency</code> optional (recommended), STRING, 3 letter ISO 4217, returns <code>stake_sizes</code> and <code>fx_rates</code> for the requested currency only</p>\n</li>\n<li><p><code>includes</code> optional (recommended - empty), STRING, default: <code>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</code>, comma separated list of <code>VALUE(.NESTED_VALUE)</code>*, used for speeding up the request if not all pool information is needed</p>\n<ul>\n<li><code>includes=</code> left empty will return pool without the nested elements</li>\n</ul>\n</li>\n</ul>\n<h6 id=\"response-example\">Response example</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"id\": 29475,\n    \"name\": \"Race Winner Pick 7\",\n    \"type_code\": \"RACE_WIN\",\n    \"status\": \"ABANDONED\",\n    \"settlement_status\": \"NOT_READY\",\n    \"sched_start\": \"2018-03-01T15:00:00.000Z\",\n    \"sched_next\": \"2018-03-01T15:30:00.000Z\",\n    \"num_units\": \"14.61268774\",\n    \"headline_prize\": \"25000.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\": \"25000.0\",\n            \"guarantee\": \"25000.0\",\n            \"carry_in\": \"0.0\",\n            \"pay_out\": \"0.0\",\n            \"win_units\": \"0.0\"\n        },\n        ...\n    ],\n    \"legs\": [\n        {\n            \"id\": 93381,\n            \"type_code\": \"RACE_WIN\",\n            \"official\": true,\n            \"display_order\": 1,\n            \"leg_order\": 1,\n            \"winning_selections\": [\n                {\n                    \"prize_code\": \"WIN\",\n                    \"selections\": [\n                        4,\n                        1,\n                        2,\n                        3,\n                        0\n                    ]\n                }\n            ],\n            \"sport_event\": {\n                \"id\": 83773,\n                \"name\": \"15:00 Cheltenham\",\n                \"status\": \"OFFICIAL\",\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\": 4,\n                    \"advanced_going\": \"Heavy\",\n                    \"handicap\": false,\n                    \"track_type\": \"Hurdle\",\n                    \"race_type\": \"important\",\n                    \"eligibility\": \"yes\",\n                    \"distance\": \"2m3f\"\n                },\n                \"sched_start\": \"2018-03-01T15:00:00.000Z\",\n                \"competitors\": [\n                    {\n                        \"id\": 2347,\n                        \"name\": \"Ds Ben\",\n                        \"sport_code\": \"HORSE_RACING\",\n                        \"sport_sub_code\": \"HORSERACING\",\n                        \"colour\": \"B00707\",\n                        \"add_info_json\": null\n                    },\n                    ...\n                ],\n                \"sport_event_competitors\": [\n                    {\n                        \"id\": 171193,\n                        \"sport_event_id\": 83773,\n                        \"competitor_id\": 2347,\n                        \"cloth_number\": 4,\n                        \"name\": \"Allfredandnobell\",\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\": \"\",\n                            \"form_figure_text\": \"1538-36\",\n                            \"age\": 5,\n                            \"weight\": \"11-10\",\n                            \"trainer_id\": \"\",\n                            \"trainer_name\": \"Micky Hammond\",\n                            \"jockey_id\": \"\",\n                            \"jockey_name\": \"Finian O'Toole\",\n                            \"jockey_color_desc\": \"\",\n                            \"jockey_color_url\": \"\",\n                            \"allowance\": \"\"\n                        }\n                    },\n                    ...\n                ],\n                \"history\": [],\n                \"venue\": {\n                    \"code\": \"che\",\n                    \"name\": \"Cheltenham\",\n                    \"country\": \"England\"\n                }\n            },\n            \"selections\": [\n                {\n                    \"id\": 1356835,\n                    \"competitor_id\": 2347,\n                    \"sport_event_competitor_id\": 171193,\n                    \"bin\": 4,\n                    \"name\": \"Allfredandnobell\",\n                    \"price\": \"4.0\",\n                    \"display_order\": 4,\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\n</code></pre>","urlObject":{"path":["pools","{{pool_id}}"],"host":["{{microsite_api_url}}"],"query":[{"key":"no_serializer","value":"true"},{"key":"currency","value":"GBP"}],"variable":[]}},"response":[],"_postman_id":"6126b500-ef3c-3936-03b1-d4bbbcbcb5f0"},{"name":"Pools","event":[{"listen":"prerequest","script":{"id":"1fadb1a7-e33b-43a9-9eb8-938a5806e59b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"00f0f38d-529d-4087-83f4-c606bcca44db","type":"text/javascript","exec":[""]}}],"id":"6def1ff9-8d7a-b560-68ec-1321e384a9d4","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"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}}/pools?ungrouped=true&currency=GBP&no_serializer=true","description":"<p>Retrieves the list of pools available at the moment.</p>\n<p>Parameters:</p>\n<ul>\n<li><p><code>no_serializer</code> required with TRUE value, BOOLEAN, default: false</p>\n<ul>\n<li><p><code>no_serializer=true</code> returns a faster response</p>\n</li>\n<li><p><code>no_serializer=false</code> is DEPRECATED</p>\n</li>\n</ul>\n</li>\n<li><p><code>currency</code> optional (recommended), STRING, 3 letter ISO 4217, returns <code>stake_sizes</code> and <code>fx_rates</code> for the requested currency only</p>\n</li>\n<li><p><code>includes</code> optional (recommended - empty), STRING, default: <code>includes=legs.sport_event</code>, comma separated list of <code>VALUE(.NESTED_VALUE)</code>*, used for speeding up the request if not all pool information is needed</p>\n<ul>\n<li><p><code>includes=</code> left empty will return pool without the nested elements</p>\n</li>\n<li><p>we reccommend you to include only the information you must save/display for maximizing the preformance</p>\n</li>\n<li><p><code>includes</code> possible values when <code>ungrouped=true&amp;details=false</code>: <code>includes=legs.sport_event</code></p>\n</li>\n<li><p><code>includes</code> possible values when <code>ungrouped=true&amp;details=true</code>: <code>includes=prizes,fx_rates,smart_pick_perms,legs.sport_event.competitors,legs.sport_event.sport_event_competitors,legs.sport_event.venue,legs.selections, comma separated list of VALUE(.NESTED_VALUE)</code> - note that requesting the full list should not be done often, might take some time to respond, and might return a JSON object that contains a few MB of data</p>\n</li>\n</ul>\n</li>\n<li><p><code>filters</code> optional, HASH (key value pair), default: {}, flags for the pools</p>\n<ul>\n<li><p><code>sport_codes</code> optional, array of STRING (see full list of SPORT_CODES at end of API document)</p>\n</li>\n<li><p><code>type_codes</code> optional, STRING, array of STRINGs (see full list of TYPE_CODES at end of API document)</p>\n</li>\n<li><p><code>leg_nums</code> optional, array of INT</p>\n</li>\n<li><p><code>statuses</code> optional, array of STRINGs</p>\n</li>\n<li><p><code>ids</code> optional, array of INT</p>\n</li>\n<li><p><code>start_date</code> optional</p>\n</li>\n<li><p><code>end_date</code> optional</p>\n</li>\n</ul>\n</li>\n<li><p><code>ungrouped</code> optional, BOOLEAN, default: false</p>\n<ul>\n<li>support for <code>ungrouped=false</code> was REMOVED so <code>ungrouped=true</code> must be used</li>\n</ul>\n</li>\n<li><p><code>details</code> optional, BOOLEAN, default: false, returns <code>PoolData</code> structure (more complex) rather than <code>PoolItemData</code> structure</p>\n</li>\n</ul>\n<p>Response structure:</p>\n<ul>\n<li><p><code>ungrouped=true</code> - array of <code>PoolItemData</code></p>\n</li>\n<li><p><code>ungrouped=true</code> and <code>details=true</code> - array of <code>PoolData</code></p>\n</li>\n</ul>\n<h6 id=\"poolitemdata-response-example\">`PoolItemData` Response example</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>[\n    {\n        \"id\": 29475,\n        \"name\": \"Race Winner Pick 7\",\n        \"type_code\": \"RACE_WIN\",\n        \"headline_prize\": \"25000.0\",\n        \"status\": \"ABANDONED\",\n        \"sched_start\": \"2018-03-01T15:00:00.000Z\",\n        \"sched_next\": \"2018-03-01T15:30:00.000Z\",\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\": 7,\n        \"sport_code\": \"HORSE_RACING\",\n        \"has_sport_event_in_progress\": true,\n        \"sport_sub_code\": \"HORSERACING\",\n        \"show_sub_code\": false,\n        \"fx_rates\": [\n            {\n                \"currency\": \"GBP\",\n                \"rate\": \"2.0\"\n            }\n        ],\n        \"free_play_only\": true,\n        \"available_syndicates\": 0,\n        \"has_offers\": false,\n        \"currency\": \"GBP\",\n        \"legs\": [\n            {\n                \"type_code\": \"RACE_WIN\",\n                \"display_order\": 1,\n                \"sport_event\": {\n                    \"sport_code\": \"HORSE_RACING\",\n                    \"sport_sub_code\": \"HORSERACING\",\n                    \"add_info_json\": {\n                        \"max_runners\": 4,\n                        \"advanced_going\": \"Heavy\",\n                        \"handicap\": false,\n                        \"track_type\": \"Hurdle\",\n                        \"race_type\": \"important\",\n                        \"eligibility\": \"yes\",\n                        \"distance\": \"2m3f\"\n                    },\n                    \"sched_start\": \"2018-03-01T15:00:00.000Z\",\n                    \"id\": 83773\n                }\n            },\n            ...\n        ]\n    },\n    ...\n]    \n\n</code></pre><h6 id=\"additional-response-info\">Additional response info</h6>\n<table><tbody><tr><th>Field name</th><th>Note</th></tr><tr><td><div>type_code</div><div><div><div><div></div></div></div><div></div></div></td><td><div>See <a href=\"#2908415e-6648-7a3d-c1f5-a9b38bea7bf2\">Pool Type Codes</a></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>headline_prize</div><div><div><div><div></div></div></div><div></div></div></td><td><div>This value is based on \"currency\"</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>status</div><div><div><div><div></div></div></div><div></div></div></td><td><div>See <a href=\"#2908415e-6648-7a3d-c1f5-a9b38bea7bf2\">Pool Status Codes</a></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>sched_start</div><div><div><div><div></div></div></div><div></div></div></td><td><div>In pool, Kick-off time of the first match in the pool. In sport_event, Kick-off time of that particular match</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>sched_next</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Kick-off time of the next match in the pool (null if all matches started)</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>sport_code</div><div><div><div><div></div></div></div><div></div></div></td><td><div>See <a href=\"#2908415e-6648-7a3d-c1f5-a9b38bea7bf2\">Sport codes</a></div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>display_order</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Number indicating in which order the legs should be displayed</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>add_info_json</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Dynamic set of data changing based on the (sport code, sport sub code) pair</div><div><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>","urlObject":{"path":["pools"],"host":["{{microsite_api_url}}"],"query":[{"key":"ungrouped","value":"true"},{"key":"currency","value":"GBP"},{"key":"no_serializer","value":"true"}],"variable":[]}},"response":[],"_postman_id":"6def1ff9-8d7a-b560-68ec-1321e384a9d4"}],"id":"b886ff43-d3c9-a879-5eee-3a892f5b5d26","event":[{"listen":"prerequest","script":{"id":"d7ab929b-b389-4844-80c5-7a621a9de4d3","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"401e8453-b3d7-41c1-99da-2b4e9ee35341","type":"text/javascript","exec":[""]}}],"_postman_id":"b886ff43-d3c9-a879-5eee-3a892f5b5d26","description":""},{"name":"4. Tickets","item":[{"name":"Ticket [Auth]","event":[{"listen":"prerequest","script":{"id":"281caa10-f6a3-42a5-a349-bffd48729c27","exec":[""],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"test","script":{"id":"5ef73039-df60-40fe-aa3f-8ea4784a8a6b","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"e5a931a9-9ff3-dfa5-c84e-b04ab22a6261","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}}/tickets/{{ticket_id}}?no_serializer=true","description":"<p>Returns a ticket</p>\n<p>Parameters:</p>\n<ul>\n<li><p><code>ticket_id</code> required, INT</p>\n</li>\n<li><p><code>no_serializer</code> required with TRUE value, BOOLEAN, default: false</p>\n</li>\n<li><p><code>no_serializer=true</code> returns a faster response</p>\n</li>\n<li><p><code>no_serializer=false</code> is DEPRECATED</p>\n</li>\n<li><p><code>includes</code> optional, STRING, default: \"offer_transactions,syndicate.manager,pool_info,legs.sport_event,legs.selections\", comma separated list of VALUE(.NESTED_VALUE)*</p>\n</li>\n</ul>\n<h6 id=\"response-example\">Response example</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{    \"id\": 100000099834,    \"customer_id\": \"nandobermejo\",    \"selections\": \"8/8/8\",    \"lines\": 1,    \"amount_owned_customer\": \"1.0\",    \"status\": \"PLACED\",    \"stake\": \"2.0\",    \"currency\": \"GBP\",    \"poc\": \"GB\",    \"smartpick\": 0,    \"created_at\": \"2018-01-17T15:18:49.000Z\",    \"is_live\": false,    \"is_live_win\": true,    \"is_live_consolation\": true,    \"merchant_ref\": \"1030-7314\",    \"is_free_play\": false,    \"fx_rate\": \"2.0\",    \"ow_settle_date\": \"2018-01-17\",    \"cross_sell\": 0,    \"customer_win_payout\": \"5000.0\",    \"customer_consolation_payout\": \"0.0\",    \"is_in_store\": false,    \"store_id\": null,    \"customer_payout\": \"5000.0\",    \"customer_winnings\": \"5000.0\",    \"pool_id\": 29374,    \"channel\": \"DESKTOP\",    \"syndicate_portion\": null,    \"stringified_id\": \"100000099834\",    \"cost\": \"2.0\",    \"units_per_line\": \"1.0\",    \"offers_accepted\": \"0.0\",    \"syndicate\": null,    \"live_offer\": null,    \"offer_transactions\": [],    \"is_security_code_changed\": null,    \"above_threshold\": null,    \"pool\": {        \"name\": \"Pick 3\",        \"type_code\": \"CORRECT_SCORE\",        \"status\": \"OFFICIAL\",        \"settlement_status\": \"READY\",        \"sched_start\": \"2018-06-06T11:00:00.000Z\",        \"sched_next\": null,        \"num_units\": \"1.0\",        \"headline_prize\": \"2500.0\",        \"in_rollback_mode\": false,        \"stake_sizes\": [            {                \"currency\": \"GBP\",                \"country\": \"00\",                \"stakes\": [                    \"2.0\",                    \"1.0\",                    \"0.5\",                    \"0.2\"                ],                \"min_stake\": \"0.01\",                \"max_stake\": \"2.1\",                \"min_cost\": \"0.01\",                \"max_cost\": \"100000000.0\"            }        ],        \"sport_code\": \"FOOTBALL\",        \"leg_num\": 3,        \"sport_sub_code\": \"ESFLIGA\",        \"show_sub_code\": true,        \"fx_rates\": [            {                \"currency\": \"GBP\",                \"rate\": \"2.0\"            }        ],        \"smart_pick_perms\": [            1,            2,            4,            8,            12,            18,            24,            36,            48,            60,            80,            100,            125,            216,            343,            512        ],        \"available_syndicates\": 0,        \"has_offers\": false,        \"currency\": \"GBP\",        \"prizes\": [            {                \"prize_type_code\": \"CON_N1\",                \"amount\": \"250.0\",                \"guarantee\": \"250.0\",                \"carry_in\": \"0.0\",                \"pay_out\": \"0.0\",                \"win_units\": \"0.0\"            },            {                \"prize_type_code\": \"WIN\",                \"amount\": \"2500.0\",                \"guarantee\": \"2500.0\",                \"carry_in\": \"0.0\",                \"pay_out\": \"2500.0\",                \"win_units\": \"1.0\"            }        ],        \"legs\": [            {                \"id\": 92669,                \"type_code\": \"CORRECT_SCORE\",                \"official\": true,                \"display_order\": 1,                \"leg_order\": 1,                \"winning_selections\": [                    {                        \"prize_code\": \"WIN\",                        \"selections\": [                            8                        ]                    }                ],                \"sport_event\": {                    \"id\": 83317,                    \"name\": \"Ath Bilbao v Atl Madrid\",                    \"status\": \"OFFICIAL\",                    \"sport_code\": \"FOOTBALL\",                    \"sport_sub_code\": \"ESFLIGA\",                    \"sport_sub_code_desc\": null,                    \"period\": \"FT\",                    \"add_info_json\": {                        \"home_id\": 503,                        \"home_name\": \"Ath Bilbao\",                        \"home_colour\": null,                        \"home_score\": 0,                        \"away_id\": 504,                        \"away_name\": \"Atl Madrid\",                        \"away_colour\": null,                        \"away_score\": 0,                        \"current_score\": \"0-0\",                        \"half_time_score\": \"0-0\",                        \"result_code\": \"Draw\",                        \"current_event_code\": null                    },                    \"sched_start\": \"2018-06-06T11:00:00.000Z\",                    \"competitors\": [                        {                            \"id\": 503,                            \"name\": \"Ath Bilbao\",                            \"sport_code\": \"FOOTBALL\",                            \"sport_sub_code\": \"ESFLIGA\",                            \"colour\": \"E7071B\",                            \"add_info_json\": null                        },                        {                            \"id\": 504,                            \"name\": \"Atl Madrid\",                            \"sport_code\": \"FOOTBALL\",                            \"sport_sub_code\": \"ESFLIGA\",                            \"colour\": \"C71910\",                            \"add_info_json\": null                        }                    ],                    \"history\": []                },                \"selections\": [                    {                        \"id\": 1349614,                        \"bin\": 1,                        \"name\": \"AOH\",                        \"price\": \"17.0\",                        \"display_order\": 1,                        \"add_info_json\": null,                        \"unit_distributions\": [                            {                                \"units\": \"0.0\",                                \"prize_code\": \"WIN\"                            }                        ]                    },                    ...                ]            },            ...        ],        \"history\": [            {                \"event_code\": \"STARTED\",                \"remaining_units\": \"1.0\",                \"prize_code\": \"WIN\",                \"sport_event_history\": {                    \"event_code\": \"STARTED\",                    \"event_time\": \"2018-01-17T15:19:33.000Z\",                    \"event_info_json\": {                        \"home_id\": 503,                        \"home_name\": \"Ath Bilbao\",                        \"home_colour\": null,                        \"home_score\": 0,                        \"away_id\": 504,                        \"away_name\": \"Atl Madrid\",                        \"away_colour\": null,                        \"away_score\": 0,                        \"current_score\": \"0-0\",                        \"half_time_score\": null,                        \"result_code\": \"Draw\",                        \"current_event_code\": null                    }                }            },            ...        ],        \"id\": 29374    }}    \n\n</code></pre><table><tbody><tr><th>Field name</th><th>Note</th></tr><tr><td><div>is_security_code_changed</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Boolean flag only populated for retail tickets</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>pin</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Pin of the retail ticket</div><div><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>","urlObject":{"path":["tickets","{{ticket_id}}"],"host":["{{microsite_api_url}}"],"query":[{"key":"no_serializer","value":"true"}],"variable":[]}},"response":[],"_postman_id":"e5a931a9-9ff3-dfa5-c84e-b04ab22a6261"},{"name":"Tickets [Auth]","event":[{"listen":"prerequest","script":{"id":"a02eaf8d-3510-40d8-83da-84cd014dc4ca","exec":[""],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"test","script":{"id":"590fea5f-8e4b-42d6-ba3c-cf693422aeb1","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"312553af-5c46-e1f7-d7ee-366fe8c0fdf0","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":"time","value":"{{time}}","type":"text"}],"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?no_serializer=true","description":"<p>Returns the tickets for a given customer</p>\n<p>Parameters:</p>\n<ul>\n<li><p><code>no_serializer</code> required with TRUE value, BOOLEAN, default: false</p>\n<ul>\n<li><p><code>no_serializer=true</code> returns a faster response</p>\n</li>\n<li><p><code>no_serializer=false</code> is DEPRECATED</p>\n</li>\n</ul>\n</li>\n<li><p><code>customer_id</code> required, STRING, the customer's id</p>\n</li>\n<li><p><code>type</code> optional, INT, in: [0, 1, 2], default: 0, 0 = all, 1 = live, 2 = historic(not live)</p>\n</li>\n<li><p><code>from_date</code> optional, DATETIME</p>\n</li>\n<li><p><code>to_date</code> optional, DATETIME</p>\n</li>\n<li><p><code>per</code> optional, INT, number of tickets per page, for pagination purposes</p>\n</li>\n<li><p><code>page</code> optional, INT, default: 0, page number, for pagination purposes</p>\n</li>\n<li><p><code>pool_id</code> optional, INT</p>\n</li>\n<li><p><code>filters</code> optional, HASH(key value pair), default: {}, flags for the tickets</p>\n<ul>\n<li><p><code>is_in_store</code> optional, BOOLEAN, default: false</p>\n</li>\n<li><p><code>is_free_play</code> optional, BOOLEAN, default: false</p>\n</li>\n<li><p><code>is_managed_syndicate</code> optional, BOOLEAN, default: false</p>\n</li>\n<li><p><code>is_joined_syndicate</code> optional, BOOLEAN, default: false</p>\n</li>\n<li><p><code>is_solo_bet</code> optional, BOOLEAN, default: false</p>\n</li>\n<li><p><code>with_offer</code> optional, BOOLEAN, default: false</p>\n</li>\n<li><p><code>pool_type</code> optional, STRING (see full list of TYPE_CODES at end of API document)</p>\n</li>\n<li><p><code>pool_types</code> optional, STRING, default: '', comma separated list of SPORT_CODE.TYPE_CODE (see full list of SPORT_CODES at end of API document)</p>\n</li>\n<li><p><code>leg_num</code> optional, INT</p>\n</li>\n<li><p><code>sport</code> optional, STRING (see full list of SPORT_CODES at end of API document)</p>\n</li>\n</ul>\n</li>\n<li><p><code>sort_by</code> optional, STRING, in: [total_winnings_customer_local, cost_local, created_at]</p>\n</li>\n<li><p><code>sort_asc</code> optional, BOOLEAN, default: false</p>\n</li>\n<li><p><code>includes</code> optional, STRING, default: \"pool,syndicate.manager\", comma separated list of VALUE(.NESTED_VALUE)*</p>\n</li>\n</ul>\n<h6 id=\"response-example\">Response example</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\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\n</code></pre>","urlObject":{"path":["tickets"],"host":["{{microsite_api_url}}"],"query":[{"key":"no_serializer","value":"true"}],"variable":[]}},"response":[],"_postman_id":"312553af-5c46-e1f7-d7ee-366fe8c0fdf0"},{"name":"Ticket [Auth]","event":[{"listen":"prerequest","script":{"id":"b392f278-7d93-4163-acea-4d2ee880de50","exec":[""],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"test","script":{"id":"07bf9c79-23cb-4ace-89a5-8c9951bf1ea1","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"a16c38d3-ba0d-c8f3-be52-0d287fa70ce3","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":"{\n  \"ticket\": {\n    \"merchant_ref\" : \"{{rand_ref}}\",\n    \"customer_id\" : \"{{customer_id}}\",\n    \"pool_id\": \"{{pool_id}}\",\n    \"selections\": \"1/1/1/1\",\n    \"stake\" : \"2.00\",\n    \"cost\" : \"2.0\",\n    \"currency\" : \"GBP\",\n    \"poc\" : \"GB\"\n  }\n}"},"url":"{{microsite_api_url}}/tickets","description":"<p>Places a ticket in the tote.</p>\n<p>Parameters:</p>\n<ul>\n<li><code>ticket</code> required, HASH, having the following parameters:<ul>\n<li><p><code>pool_id</code> required, INT</p>\n</li>\n<li><p><code>selections</code> required, STRING, comma separated values of the bin parameter from the pool</p>\n</li>\n<li><p><code>stake</code> required, STRING</p>\n</li>\n<li><p><code>cost</code> required, STRING</p>\n</li>\n<li><p><code>currency</code> required, STRING, 3 letter ISO 4217</p>\n</li>\n<li><p><code>channel</code> optional, STRING, one of the values [DESKTOP MOBILE MOBILE_APP STORE STORE_BOOKABET SMS PRO SEMI_PRO]. Mainly used for reporting</p>\n</li>\n<li><p><code>smartpick</code> optional, INT, default: 0</p>\n<ul>\n<li><p>0 value - the smart pick wasn't used to generate the selections</p>\n</li>\n<li><p>1 value - the smart pick was used to generate the selections</p>\n</li>\n<li><p>2 value - the smart pick was used to generate the selections and some selections were changed by the user</p>\n</li>\n</ul>\n</li>\n<li><p><code>cross_sell</code> optional, INT, default: 0</p>\n<ul>\n<li><p>0 value - the ticket is not a cross sell one</p>\n</li>\n<li><p>1 value - the ticket is a cross sell one</p>\n</li>\n<li><p>2 value - the ticket is a cross sell one but some selections were changed by the user</p>\n</li>\n</ul>\n</li>\n<li><p><code>free_play_id</code> optional, STRING and represents the token id associated with a free to play campaign</p>\n</li>\n</ul>\n</li>\n</ul>\n<h6 id=\"response-example\">Response example</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{    \"id\": \"100000099933\",    \"merchant_ref\": \"1030-7350\",    \"selections\": \"1/1/1/1/1/1\",    \"stake\": \"2.00\",    \"cost\": \"2.0\",    \"currency\": \"GBP\",    \"cross_sell_suggestion\": null,    \"security_code\": null,    \"syndicate\": null,    \"pin\": null}\n\n</code></pre><h6 id=\"additional-response-info\">Additional response info</h6>\n<table><tbody><tr><th>Field name</th><th>Note</th></tr><tr><td><div>security_code</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Is only populated with a value when the ticket is a retail one</div><div><div><div><div></div></div></div><div></div></div></td></tr><tr><td><div>pin</div><div><div><div><div></div></div></div><div></div></div></td><td><div>Is only populated with a value when the ticket is a retail one</div><div><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>","urlObject":{"path":["tickets"],"host":["{{microsite_api_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a16c38d3-ba0d-c8f3-be52-0d287fa70ce3"},{"name":"Tickets Batch [Auth]","event":[{"listen":"test","script":{"id":"2584e456-9ae4-4054-bb3b-2d3ce85671bd","exec":[""],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"prerequest","script":{"id":"2bf12b6b-920e-4503-b3ed-f2f12d72c130","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"d2f763f7-fec1-493d-a3a4-2bce1a03abcc","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":"{\n  \"response_type\": \"old\",\n  \"tickets\": [{\n\t\"pool_id\": \"{{pool_id}}\",\n    \"selections\": \"1/1/1/1/1\",\n    \"stake\": \"2.00\",\n    \"cost\": \"2.0\",\n    \"currency\": \"GBP\",\n    \"backref\": \"abcd\"\n  },\n  {\n\t\"pool_id\": \"{{pool_id}}\",\n    \"selections\": \"1/1/1/1/2\",\n    \"stake\": \"2.00\",\n    \"cost\": \"2.0\",\n    \"currency\": \"GBP\",\n    \"backref\": \"abcd\"\n  }]\n}"},"url":"{{microsite_api_url}}/tickets/batch","description":"<p>Places a batch of tickets in the tote.<br />Recommendeed batch size between 200-500.</p>\n<p>Parameters:</p>\n<ul>\n<li><p><code>response_type</code> optional, recommended, changes to a faster implementation, changes the response type to a more detailed report</p>\n<ul>\n<li>in order to use the <code>new</code> value, please inform us your username/customer_id first !</li>\n</ul>\n</li>\n<li><p><code>ticket</code> required, ARRAY, having the following parameters:</p>\n<ul>\n<li><p><code>pool_id</code> required, INT</p>\n</li>\n<li><p><code>selections</code> required, STRING, comma separated values of the bin parameter from the pool</p>\n</li>\n<li><p><code>stake</code> required, STRING</p>\n</li>\n<li><p><code>cost</code> required, STRING</p>\n</li>\n<li><p><code>currency</code> required, STRING, 3 letter ISO 4217</p>\n</li>\n<li><p><code>backref</code>, required, STRING, used for identifying a ticket in a batch</p>\n</li>\n<li><p><code>channel</code> optional, STRING, default: 'DESKTOP', in: [DESKTOP MOBILE MOBILE_APP STORE STORE_BOOKABET SMS PRO SEMI_PRO]. Mainly used for reporting, please populate with 'PRO' if you consider yourself to be one.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>Response example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"backref1\": {\n        \"id\": 100000171793,\n        \"merchant_ref\": \"1037-8628\",\n        \"selections\": \"1/1/1/1\",\n        \"stake\": \"2.00\",\n        \"cost\": \"2.0\",\n        \"currency\": \"GBP\"\n    },\n    \"backref2\": {\n        \"id\": 100000171794,\n        \"merchant_ref\": \"1037-8629\",\n        \"selections\": \"1/1/1/2\",\n        \"stake\": \"2.00\",\n        \"cost\": \"2.0\",\n        \"currency\": \"GBP\"\n    }\n}\n\n</code></pre><p>NEW response example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"batch_ref\": \"postman-ref-972646987092\", # we generate a batch reference for the entire ticket set sent, the wallet transaction reference\n    \"placed\": [ # standard TOTE ticket placement response, note that the data under `placed` is different than the data under `rejected`\n        {\n            \"id\": 500000367612, # our tote ticket id, to use for further requesting the ticket information\n            \"merchant_settlement_currency\": \"GBP\",\n            \"merchant_settlement_cost\": 2, \n            \"takeout_gbp\": 0.6,\n            \"customer_currency\": \"GBP\",\n            \"customer_cost\": 2,\n            \"takeout\": 0.6, # cost - takeout = the amount placed in the pool out or your bet :)\n            \"status\": \"PENDING\", # ticket has status pending until accepted on tote (can take up to around 5 seconds depending on load)\n            \"created_at\": 1558535188856, # epoch time stamp at creation\n            \"merchant_ref\": \"postman-ref-972646987092\", # individual tote bet reference, needed internaly as parent transaction for potential win/loss/void/cashout actions\n            \"backref\": \"postman-ref-972646987092\" # the backref that you sent in the request \n        }\n    ],\n    \"rejected\": [  # note that the data under `placed` is different than the data under `rejected`\n        {\n            \"params\": { # the parameters that were sent to the tote 'AS IS' for this ticket, so you can debug easily\n                \"pool_id\": 323,\n                \"selections\": \"1/1/1\",\n                \"stake\": \"2.00\",\n                \"cost\": \"2.00\",\n                \"currency\": \"GBP\",\n                \"channel\": \"DESKTOP\",\n                \"smartpick\": 0, \n                \"cross_sell\": 0,\n                \"poc\": \"GB\", # your wallet country code\n                \"customer_id\": \"silvius\", # your wallet customer_id\n                \"merchant_ref\": \"postman-ref-972646987092\",\n                \"backref\": \"postman-ref-972646987092\"\n            },\n            \"reason\": \"Pool 323 not in cache\" # rejection reson\n        }\n    ]\n}\n\n</code></pre>","urlObject":{"path":["tickets","batch"],"host":["{{microsite_api_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d2f763f7-fec1-493d-a3a4-2bce1a03abcc"},{"name":"Tickets Batch - NEW endpoint [Auth]","event":[{"listen":"test","script":{"id":"2584e456-9ae4-4054-bb3b-2d3ce85671bd","exec":[""],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"prerequest","script":{"id":"2bf12b6b-920e-4503-b3ed-f2f12d72c130","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"dff1f4ab-8b79-47f6-8bd6-247c37395a69","protocolProfileBehavior":{"disableBodyPruning":true},"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":"{\n  \"response_type\": \"old\",\n  \"tickets\": [{\n\t\"pool_id\": \"{{pool_id}}\",\n    \"selections\": \"1/1/1/1/1\",\n    \"stake\": \"2.00\",\n    \"cost\": \"2.0\",\n    \"currency\": \"GBP\",\n    \"backref\": \"abcd\"\n  },\n  {\n\t\"pool_id\": \"{{pool_id}}\",\n    \"selections\": \"1/1/1/1/2\",\n    \"stake\": \"2.00\",\n    \"cost\": \"2.0\",\n    \"currency\": \"GBP\",\n    \"backref\": \"abcd\"\n  }]\n}"},"url":"{{microsite_api_url}}/tickets/batch","description":"<p>Places a batch of tickets in the tote.<br />Recommendeed batch size between 200-500.</p>\n<p>Parameters:</p>\n<ul>\n<li><p><code>response_type</code> optional, recommended, changes to a faster implementation, changes the response type to a more detailed report</p>\n<ul>\n<li>in order to use the <code>new</code> value, please inform us your username/customer_id first !</li>\n</ul>\n</li>\n<li><p><code>ticket</code> required, ARRAY, having the following parameters:</p>\n<ul>\n<li><p><code>pool_id</code> required, INT</p>\n</li>\n<li><p><code>selections</code> required, STRING, comma separated values of the bin parameter from the pool</p>\n</li>\n<li><p><code>stake</code> required, STRING</p>\n</li>\n<li><p><code>cost</code> required, STRING</p>\n</li>\n<li><p><code>currency</code> required, STRING, 3 letter ISO 4217</p>\n</li>\n<li><p><code>backref</code>, required, STRING, used for identifying a ticket in a batch</p>\n</li>\n<li><p><code>channel</code> optional, STRING, default: 'DESKTOP', in: [DESKTOP MOBILE MOBILE_APP STORE STORE_BOOKABET SMS PRO SEMI_PRO]. Mainly used for reporting, please populate with 'PRO' if you consider yourself to be one.</p>\n</li>\n</ul>\n</li>\n</ul>\n<p>Response example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"backref1\": {\n        \"id\": 100000171793,\n        \"merchant_ref\": \"1037-8628\",\n        \"selections\": \"1/1/1/1\",\n        \"stake\": \"2.00\",\n        \"cost\": \"2.0\",\n        \"currency\": \"GBP\"\n    },\n    \"backref2\": {\n        \"id\": 100000171794,\n        \"merchant_ref\": \"1037-8629\",\n        \"selections\": \"1/1/1/2\",\n        \"stake\": \"2.00\",\n        \"cost\": \"2.0\",\n        \"currency\": \"GBP\"\n    }\n}\n\n</code></pre><p>NEW response example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"batch_ref\": \"postman-ref-972646987092\", # we generate a batch reference for the entire ticket set sent, the wallet transaction reference\n    \"placed\": [ # standard TOTE ticket placement response, note that the data under `placed` is different than the data under `rejected`\n        {\n            \"id\": 500000367612, # our tote ticket id, to use for further requesting the ticket information\n            \"merchant_settlement_currency\": \"GBP\",\n            \"merchant_settlement_cost\": 2, \n            \"takeout_gbp\": 0.6,\n            \"customer_currency\": \"GBP\",\n            \"customer_cost\": 2,\n            \"takeout\": 0.6, # cost - takeout = the amount placed in the pool out or your bet :)\n            \"status\": \"PENDING\", # ticket has status pending until accepted on tote (can take up to around 5 seconds depending on load)\n            \"created_at\": 1558535188856, # epoch time stamp at creation\n            \"merchant_ref\": \"postman-ref-972646987092\", # individual tote bet reference, needed internaly as parent transaction for potential win/loss/void/cashout actions\n            \"backref\": \"postman-ref-972646987092\" # the backref that you sent in the request \n        }\n    ],\n    \"rejected\": [  # note that the data under `placed` is different than the data under `rejected`\n        {\n            \"params\": { # the parameters that were sent to the tote 'AS IS' for this ticket, so you can debug easily\n                \"pool_id\": 323,\n                \"selections\": \"1/1/1\",\n                \"stake\": \"2.00\",\n                \"cost\": \"2.00\",\n                \"currency\": \"GBP\",\n                \"channel\": \"DESKTOP\",\n                \"smartpick\": 0, \n                \"cross_sell\": 0,\n                \"poc\": \"GB\", # your wallet country code\n                \"customer_id\": \"silvius\", # your wallet customer_id\n                \"merchant_ref\": \"postman-ref-972646987092\",\n                \"backref\": \"postman-ref-972646987092\"\n            },\n            \"reason\": \"Pool 323 not in cache\" # rejection reson\n        }\n    ]\n}\n\n</code></pre>","urlObject":{"path":["tickets","batch"],"host":["{{microsite_api_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dff1f4ab-8b79-47f6-8bd6-247c37395a69"}],"id":"53e99839-93a6-2114-cf46-a4a829281ed4","event":[{"listen":"prerequest","script":{"id":"dce1df1d-9fcc-4bd6-aa74-6766dc47f8d3","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"8e8190c6-aab5-4ed2-a4ca-b6524806885b","type":"text/javascript","exec":[""]}}],"_postman_id":"53e99839-93a6-2114-cf46-a4a829281ed4","description":""},{"name":"5. Cash Out Offers","item":[{"name":"Offers [Auth]","event":[{"listen":"prerequest","script":{"id":"46e0664c-97d3-463c-817a-ddf601e31945","exec":[""],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"test","script":{"id":"177e5a9d-d22d-462f-b0c1-05ea9dfc875e","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"146cfa2e-2faf-a9ee-707f-01f29c3904a4","request":{"method":"GET","header":[{"key":"Authorization","value":"{{api_auth_sha}} {{api_auth_key}}:{{signature}}"},{"key":"Date","value":"{{time}}"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Content-MD5","value":"{{content-MD5}}"}],"body":{"mode":"raw","raw":""},"url":"{{api_url}}/pools/{{pool_id}}/offers","description":"<p>Returns the list of all the offers for a specific pool.<br />Parameters:</p>\n<ul>\n<li><code>pool_id</code> required, INT, the id of the pool</li>\n</ul>\n<h6 id=\"response-example\">Response example</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>[    {        \"customer_id\": \"20011212\",        \"offers\": 18,        \"max_offer\": \"56.05184868\"    }]\n\n</code></pre>","urlObject":{"path":["pools","{{pool_id}}","offers"],"host":["{{api_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"146cfa2e-2faf-a9ee-707f-01f29c3904a4"},{"name":"Offer [Auth]","event":[{"listen":"prerequest","script":{"id":"2b4c130b-aeff-42fe-844a-dc4ae1b7c76f","exec":[""],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"test","script":{"id":"0d9cbeca-2b53-4387-8e02-0bbb9ec25f28","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"27887cce-6f3b-d9cf-a712-92aad6caf86c","request":{"method":"GET","header":[{"key":"Authorization","value":"{{api_auth_sha}} {{api_auth_key}}:{{signature}}"},{"key":"Date","value":"{{time}}"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Content-MD5","value":"{{content-MD5}}"}],"body":{"mode":"raw","raw":""},"url":"{{api_url}}/offers/{{offer_id}}","description":"<p>Returns all the details for an offer.<br />Parameters:</p>\n<ul>\n<li><code>offer_id</code> required, STRING, the id of the offer</li>\n</ul>\n<h6 id=\"response-example\">Response example</h6>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{    \"id\": \"A27495-1-76239-1\",    \"customer_id\": \"paulacarasek2\",    \"ticket_id\": 220000000000197309,    \"amount\": \"155.709342015712\",    \"leg_num\": 1,    \"pool_id\": 27495,    \"transactions\": [        {            \"id\": 5795,            \"amount_sold_units\": \"0.69446133\",            \"merchant_margin_local\": \"1.73\",            \"total_margin_local\": \"1.73\",            \"created_at\": \"2017-04-04T10:20:03.000Z\",            \"merchant_offer_acceptance_ref\": \"1013-6868\",            \"amount_sold_fraction\": \"0.1\",            \"amount_sold\": \"15.57\"        },        ...    ]}\n\n</code></pre>","urlObject":{"path":["offers","{{offer_id}}"],"host":["{{api_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"27887cce-6f3b-d9cf-a712-92aad6caf86c"},{"name":"Accept Offer [Auth]","event":[{"listen":"prerequest","script":{"id":"29c5be73-fa1c-4995-9f0a-751a58dc5bcc","exec":["var CB = eval(globals.loadColossus);","CB.computeSignature(['offer_id']);",""],"type":"text/javascript"}}],"id":"51523b1b-f884-4c2d-9446-d72f72a7ba86","request":{"method":"POST","header":[{"key":"Authorization","value":"{{api_auth_sha}} {{api_auth_key}}:{{signature}}"},{"key":"Date","value":"{{time}}"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"key":"Content-MD5","value":"{{content-MD5}}"}],"body":{"mode":"raw","raw":"{\n  \"accept_fraction\": \"0.1\",\n  \"remaining_fraction\": \"0.9\",\n  \"accept_amount\": \"2205.24\"\n}"},"url":"{{api_url}}/offers/{{offer_id}}/accept","description":"<p>Accept an offer or a fraction of an offer.</p>\n<p>Parameters:</p>\n<ul>\n<li><p><code>accept_fraction</code> required, STRING, the accepted fraction of the offer</p>\n</li>\n<li><p><code>remaining_fraction</code> required, STRING, the remaining fraction of the offer, for validation purposes</p>\n</li>\n<li><p><code>accept_amount</code> required, STRING, the accepted amount expressed in the user's currency, for validation purposes, must be truncated at two decimal places</p>\n</li>\n</ul>\n<p>For example:</p>\n<ul>\n<li><p>if a customer cashes out 20% of their ticket, then <code>accept_fraction</code>='0.2', <code>remaining_fraction</code>='0.8'</p>\n</li>\n<li><p>if the same customer then cashes out a further 10% of their ticket, then <code>accept_fraction</code>='0.1', <code>remaining_fraction</code>='0.7'</p>\n</li>\n</ul>\n","urlObject":{"path":["offers","{{offer_id}}","accept"],"host":["{{api_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"51523b1b-f884-4c2d-9446-d72f72a7ba86"}],"id":"793ed252-e43b-3ce0-1c1a-b3239d6a2bc8","description":"<p>The endpoints in this section are used for managing Cash Out offers.</p>\n<p>Key endpoints are:</p>\n<ul>\n<li><strong>GET Offers</strong> - returns all of the offers for a specific pool</li>\n<li><strong>GET Offer</strong> - returns a specific offer (however details of the offer are also included in the ticket detail, so this endpoint is not necessary and only included for reference)</li>\n<li><strong>POST Accept Offer</strong> - accept a Cash Out offer</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"id":"a3c6ce6c-d8f9-4c79-9cf9-cc50f5a9cb2c","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"2c0cfb69-7d03-4678-bcdd-4c6f82ea4b64","type":"text/javascript","exec":[""]}}],"_postman_id":"793ed252-e43b-3ce0-1c1a-b3239d6a2bc8"},{"name":"6. Syndicates","item":[{"name":"/syndicates","id":"831347d5-2b1d-43be-9a13-102cf39024cc","request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"url":"{{microsite_api_url}}/syndicates?currency=GBP&no_serializer=true","description":"<p>Returns a paginated list of syndicates.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>customer_id</code></td>\n<td>STRING</td>\n<td>no</td>\n<td>—</td>\n<td>The partner user id that requests the syndicate list; impacts the syndicate set returned (shows private/joined syndicates)</td>\n</tr>\n<tr>\n<td><code>currency</code></td>\n<td>STRING</td>\n<td><strong>yes</strong></td>\n<td>—</td>\n<td>3-letter ISO 4217 currency code</td>\n</tr>\n<tr>\n<td><code>per</code></td>\n<td>INT</td>\n<td>no</td>\n<td><code>25</code></td>\n<td>Number of syndicates per page (pagination)</td>\n</tr>\n<tr>\n<td><code>page</code></td>\n<td>INT</td>\n<td>no</td>\n<td><code>1</code></td>\n<td>Page number (pagination)</td>\n</tr>\n<tr>\n<td><code>sort_by</code></td>\n<td>STRING</td>\n<td>no</td>\n<td><code>\"\"</code></td>\n<td>Comma-separated list of sort attributes (see below)</td>\n</tr>\n<tr>\n<td><code>perform_total_count</code></td>\n<td>BOOLEAN</td>\n<td>no</td>\n<td><code>true</code></td>\n<td>Recommended: <code>false</code>. Skips calculating <code>total_items</code> for faster response</td>\n</tr>\n<tr>\n<td><code>filters</code></td>\n<td>HASH</td>\n<td>no</td>\n<td><code>{}</code></td>\n<td>Filter attributes to restrict the list (see below)</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"sort-options-sort_by\">Sort Options (<code>sort_by</code>)</h3>\n<p>Comma-separated combination of:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>starting_soon</code></td>\n<td>Pools with earliest <code>sched_start</code> first</td>\n</tr>\n<tr>\n<td><code>percentage_filled</code></td>\n<td>Highest <code>amount_funded</code> first, then highest cost</td>\n</tr>\n<tr>\n<td><code>contributors</code></td>\n<td>Highest <code>contributors_count</code> first</td>\n</tr>\n<tr>\n<td><code>cost</code></td>\n<td>Highest cost (in GBP) first</td>\n</tr>\n<tr>\n<td><code>most_recent</code></td>\n<td>Most recently created syndicates first</td>\n</tr>\n<tr>\n<td><code>cash_out</code></td>\n<td>Highest offer value first</td>\n</tr>\n<tr>\n<td><code>playing_for_prize</code></td>\n<td>Highest potential prize first (headline_prize × stake)</td>\n</tr>\n<tr>\n<td><code>payout</code></td>\n<td>Highest total payout (settlement + cashed out) first</td>\n</tr>\n<tr>\n<td><code>cashed_out</code></td>\n<td>Highest total cashed out first</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"filter-options-filters\">Filter Options (<code>filters</code>)</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>search</code></td>\n<td>STRING</td>\n<td>no</td>\n<td>—</td>\n<td>Search by manager username, twitter username, or syndicate <code>reference_code</code> (exact match returns single result)</td>\n</tr>\n<tr>\n<td><code>pool_id</code></td>\n<td>INT</td>\n<td>no</td>\n<td>—</td>\n<td>Filter syndicates for a specific pool</td>\n</tr>\n<tr>\n<td><code>pool_types</code></td>\n<td>STRING</td>\n<td>no</td>\n<td><code>\"\"</code></td>\n<td>Comma-separated list of <code>SPORT_CODE.TYPE_CODE</code> or <code>SPORT_CODE.TYPE_CODE.LEG_NUM</code> values</td>\n</tr>\n<tr>\n<td><code>sport_sub_codes</code></td>\n<td>STRING</td>\n<td>no</td>\n<td><code>\"\"</code></td>\n<td>Comma-separated list of <code>SPORT_SUB_CODE</code> values</td>\n</tr>\n<tr>\n<td><code>my_captains</code></td>\n<td>BOOLEAN</td>\n<td>no</td>\n<td>—</td>\n<td>Depends on <code>customer_id</code>. Returns only syndicates made by managers followed by the user</td>\n</tr>\n<tr>\n<td><code>manager_limit</code></td>\n<td>BOOLEAN</td>\n<td>no</td>\n<td><code>false</code></td>\n<td>Limits the number of syndicates returned per manager</td>\n</tr>\n<tr>\n<td><code>manager_limit_count</code></td>\n<td>INT</td>\n<td>no</td>\n<td><code>3</code></td>\n<td>Max syndicates per manager when <code>manager_limit</code> is <code>true</code></td>\n</tr>\n<tr>\n<td><code>managers</code></td>\n<td>ARRAY of INT</td>\n<td>no</td>\n<td>—</td>\n<td>Filter by manager ids</td>\n</tr>\n<tr>\n<td><code>syndicate_ids</code></td>\n<td>ARRAY of INT</td>\n<td>no</td>\n<td>—</td>\n<td>Filter by syndicate ids</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>STRING</td>\n<td>no</td>\n<td>—</td>\n<td>Filter by syndicate/pool status (see below)</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"status-values\">Status Values</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>available_to_fund</code></td>\n<td>Incomplete syndicates (<code>amount_funded</code> &gt; 0, &lt; 1) in <code>OPEN</code> pools</td>\n</tr>\n<tr>\n<td><code>placed</code></td>\n<td>Fully funded syndicates (<code>amount_funded</code> = 1) in <code>OPEN</code> pools</td>\n</tr>\n<tr>\n<td><code>live</code></td>\n<td>Fully funded syndicates in <code>IN_PLAY</code> pools</td>\n</tr>\n<tr>\n<td><code>historic</code></td>\n<td>Fully funded syndicates in <code>OFFICIAL</code> pools</td>\n</tr>\n<tr>\n<td><code>void</code></td>\n<td>Syndicates with <code>amount_funded</code> = 0 (requires <code>customer_id</code>, scoped to manager)</td>\n</tr>\n<tr>\n<td><code>almost_full</code></td>\n<td>Incomplete syndicates with <code>amount_funded</code> &gt; 0.8</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response\">Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"items\": [ SyndicatesItemData, ... ],\n  \"total_items\": INT\n}\n\n</code></pre>\n<p><code>total_items</code> is only present when <code>perform_total_count</code> is <code>true</code>.</p>\n<p>See <a href=\"https://syndicates_response_data.md#syndicatesitemdata\">SyndicatesItemData</a> for the response shape.</p>\n<hr />\n","urlObject":{"path":["syndicates"],"host":["{{microsite_api_url}}"],"query":[{"key":"currency","value":"GBP"},{"key":"no_serializer","value":"true"}],"variable":[]}},"response":[],"_postman_id":"831347d5-2b1d-43be-9a13-102cf39024cc"},{"name":"/syndicates/:id","id":"00db615f-5f5b-4383-80e2-b4b846956a9e","request":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"syndicate\": {\n    \"pool_id\": 6581,\n    \"selections\": \"4,8,11/4,11/7,11/6,14/11/5/7\",\n    \"stake\": \"2.0\",\n    \"cost\": \"48\",\n    \"currency\": \"EUR\",\n    \"smartpick\": 1,\n    \"name\": \"My first syndicate\",\n    \"is_public\": true,\n    \"portion_funded\": \"0.25\" \n  }\n}"},"url":"{{microsite_api_url}}/syndicates/457","description":"<p>Returns full details of a specific syndicate.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>syndicate_id</code></td>\n<td>INT</td>\n<td><strong>yes</strong> (path)</td>\n<td>—</td>\n<td>The id of the syndicate</td>\n</tr>\n<tr>\n<td><code>currency</code></td>\n<td>STRING</td>\n<td><strong>yes</strong></td>\n<td>—</td>\n<td>3-letter ISO 4217 currency code</td>\n</tr>\n<tr>\n<td><code>includes</code></td>\n<td>STRING</td>\n<td>no</td>\n<td><code>manager</code></td>\n<td>Comma-separated list of nested resources to include. Leave empty (<code>includes=</code>) to exclude nested pool data for faster responses</td>\n</tr>\n<tr>\n<td><code>allow_pending</code></td>\n<td>BOOLEAN</td>\n<td>no</td>\n<td>—</td>\n<td>If <code>true</code>, allows returning syndicates that have no initial portion yet</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"includes-options\">Includes Options</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>manager</code></td>\n<td>Include the <code>ManagerData</code> object (default)</td>\n</tr>\n<tr>\n<td><code>pool</code></td>\n<td>Include the full <code>PoolData</code> object with nested elements</td>\n</tr>\n<tr>\n<td><code>pool.legs</code></td>\n<td>Include pool with legs</td>\n</tr>\n<tr>\n<td><code>pool.prizes</code></td>\n<td>Include pool with prizes</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response\">Response</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">SyndicateData\n\n</code></pre>\n<p>See <a href=\"https://syndicates_response_data.md#syndicatedata\">SyndicateData</a> for the response shape.</p>\n","urlObject":{"path":["syndicates","457"],"host":["{{microsite_api_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"00db615f-5f5b-4383-80e2-b4b846956a9e"},{"name":"/syndicates/:id/accept_offer","id":"ac7191a5-0dcb-4463-a079-b9ce54f75242","request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n}"},"url":"{{microsite_api_url}}/syndicates/457/accept_offer","description":"<p>Accept a Cash Out offer for the whole syndicate. Used when the Syndicate Manager cashes out on behalf of all contributors.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>syndicate_id</code></td>\n<td>INT</td>\n<td><strong>yes</strong> (path)</td>\n<td>—</td>\n<td>The syndicate id</td>\n</tr>\n<tr>\n<td><code>customer_id</code></td>\n<td>STRING</td>\n<td><strong>yes</strong></td>\n<td>—</td>\n<td>The manager's customer id</td>\n</tr>\n<tr>\n<td><code>currency</code></td>\n<td>STRING</td>\n<td><strong>yes</strong></td>\n<td>—</td>\n<td>3-letter ISO 4217</td>\n</tr>\n<tr>\n<td><code>accept_fraction</code></td>\n<td>STRING</td>\n<td><strong>yes</strong></td>\n<td>—</td>\n<td>The fraction of the offer being accepted (e.g. <code>\"0.2\"</code> for 20%)</td>\n</tr>\n<tr>\n<td><code>remaining_fraction</code></td>\n<td>STRING</td>\n<td><strong>yes</strong></td>\n<td>—</td>\n<td>The remaining fraction after acceptance, for validation (e.g. <code>\"0.8\"</code>)</td>\n</tr>\n<tr>\n<td><code>accept_amount</code></td>\n<td>STRING</td>\n<td><strong>yes</strong></td>\n<td>—</td>\n<td>The accepted amount in the user's currency, truncated at 2 decimal places, for validation</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> <code>merchant_offer_acceptance_ref</code> is generated internally by the system (<code>SecureRandom.uuid</code>) and is not a request parameter. </p>\n</blockquote>\n<h3 id=\"fraction-examples\">Fraction Examples</h3>\n<ul>\n<li><p>Customer cashes out 20%: <code>accept_fraction</code>=<code>\"0.2\"</code>, <code>remaining_fraction</code>=<code>\"0.8\"</code></p>\n</li>\n<li><p>Same customer then cashes out a further 10%: <code>accept_fraction</code>=<code>\"0.1\"</code>, <code>remaining_fraction</code>=<code>\"0.7\"</code></p>\n</li>\n</ul>\n<h3 id=\"response-201-created\">Response (201 Created)</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{}\n\n</code></pre>\n<p>Empty JSON on success.</p>\n<h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Subcode</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>NO_VALID_OFFER</code></td>\n<td>—</td>\n<td>No live offer exists for this syndicate</td>\n</tr>\n<tr>\n<td><code>OWNERSHIP_ERROR</code></td>\n<td>—</td>\n<td>The <code>customer_id</code> does not match the syndicate manager</td>\n</tr>\n<tr>\n<td><code>OFFER_MISMATCH</code></td>\n<td><code>NOT_ENOUGH_OWNED</code></td>\n<td><code>accept_fraction</code> exceeds <code>amount_owned_customer</code></td>\n</tr>\n<tr>\n<td><code>OFFER_MISMATCH</code></td>\n<td><code>ACCEPT_AMOUNT_WRONG</code></td>\n<td><code>accept_amount</code> does not match the calculated value</td>\n</tr>\n<tr>\n<td><code>REMAINING_FRACTION_WRONG</code></td>\n<td>—</td>\n<td><code>remaining_fraction</code> doesn't equal <code>amount_owned_customer - accept_fraction</code></td>\n</tr>\n<tr>\n<td><code>POOL_TRADING_NOT_ENABLED</code></td>\n<td>—</td>\n<td>Pool trading is disabled or API restricted</td>\n</tr>\n<tr>\n<td><code>POOL_IN_ROLLBACK_MODE</code></td>\n<td>—</td>\n<td>Pool is currently in rollback</td>\n</tr>\n<tr>\n<td><code>OFFER_EXPIRED</code></td>\n<td>—</td>\n<td>Offer has expired since request was made</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-response-shape\">Error Response Shape</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"errors\": [\"ERROR_CODE\"],\n  \"details\": {\n    \"ERROR_CODE\": { ... }\n  }\n}\n\n</code></pre>\n","urlObject":{"path":["syndicates","457","accept_offer"],"host":["{{microsite_api_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ac7191a5-0dcb-4463-a079-b9ce54f75242"},{"name":"/syndicates/create_and_join","id":"7123961c-3be9-4101-afda-6723d52d30f5","request":{"method":"POST","header":[{"key":"Accept","value":"application/json"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n}"},"url":"{{microsite_api_url}}/syndicates/create_and_join","description":"<p>Create a syndicate and place the initial manager portion in one step.</p>\n<h3 id=\"parameters\">Parameters</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>pool_id</code></td>\n<td>INT</td>\n<td><strong>yes</strong></td>\n<td>—</td>\n<td>Pool id to create the syndicate for</td>\n</tr>\n<tr>\n<td><code>manager_id</code></td>\n<td>INT</td>\n<td><strong>yes</strong></td>\n<td>—</td>\n<td>Your manager id</td>\n</tr>\n<tr>\n<td><code>selections</code></td>\n<td>STRING</td>\n<td><strong>yes</strong></td>\n<td>—</td>\n<td>The selections string (e.g. <code>\"1,2/3/4,5\"</code>)</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>STRING</td>\n<td>no</td>\n<td>—</td>\n<td>Syndicate name (1–32 ASCII characters)</td>\n</tr>\n<tr>\n<td><code>is_public</code></td>\n<td>BOOLEAN</td>\n<td>no</td>\n<td><code>true</code></td>\n<td>Whether the syndicate is publicly visible</td>\n</tr>\n<tr>\n<td><code>void_to_solo</code></td>\n<td>BOOLEAN</td>\n<td>no</td>\n<td><code>false</code></td>\n<td>If <code>true</code>, the manager portion becomes a solo bet if the syndicate doesn't fill</td>\n</tr>\n<tr>\n<td><code>stake</code></td>\n<td>STRING</td>\n<td><strong>yes</strong></td>\n<td>—</td>\n<td>Stake per line in the user's currency</td>\n</tr>\n<tr>\n<td><code>cost</code></td>\n<td>STRING</td>\n<td><strong>yes</strong></td>\n<td>—</td>\n<td>Total cost of the manager contribution in the user's currency</td>\n</tr>\n<tr>\n<td><code>currency</code></td>\n<td>STRING</td>\n<td><strong>yes</strong></td>\n<td>—</td>\n<td>3-letter ISO 4217</td>\n</tr>\n<tr>\n<td><code>merchant_ref</code></td>\n<td>STRING</td>\n<td><strong>yes</strong></td>\n<td>—</td>\n<td>Your unique identifier for the transaction</td>\n</tr>\n<tr>\n<td><code>customer_id</code></td>\n<td>STRING</td>\n<td><strong>yes</strong></td>\n<td>—</td>\n<td>Your customer id</td>\n</tr>\n<tr>\n<td><code>poc</code></td>\n<td>STRING</td>\n<td><strong>yes</strong></td>\n<td>—</td>\n<td>2-letter ISO country code</td>\n</tr>\n<tr>\n<td><code>channel</code></td>\n<td>STRING</td>\n<td>no</td>\n<td>—</td>\n<td>One of: <code>DESKTOP</code>, <code>MOBILE</code>, <code>MOBILE_APP</code>, <code>STORE</code>, <code>STORE_BOOKABET</code>, <code>SMS</code></td>\n</tr>\n<tr>\n<td><code>portion_funded</code></td>\n<td>STRING</td>\n<td><strong>yes</strong></td>\n<td>—</td>\n<td>Fraction of the syndicate bought (e.g. <code>\"0.1\"</code> for 10%)</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-201-created\">Response (201 Created)</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">CreatedSyndicateData\n\n</code></pre>\n<p>See <a href=\"https://syndicates_response_data.md#createdsyndicatedata\">CreatedSyndicateData</a> for the response shape.</p>\n<h3 id=\"error-codes\">Error Codes</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>POOL_CLOSED</code></td>\n<td>Pool is not open for betting / trading not enabled / in rollback mode</td>\n</tr>\n<tr>\n<td><code>POOL_UNAVAILABLE</code></td>\n<td>Merchant not allowed in this pool / currency not supported</td>\n</tr>\n<tr>\n<td><code>POOL_FREE_PLAY_ONLY</code></td>\n<td>Pool doesn't allow cash bets</td>\n</tr>\n<tr>\n<td><code>INVALID_SYNDICATE</code></td>\n<td>Invalid selections, cost below minimum, or other validation error</td>\n</tr>\n<tr>\n<td><code>INVALID_SYNDICATE_NAME</code></td>\n<td>Name contains invalid characters</td>\n</tr>\n<tr>\n<td><code>INVALID_SYNDICATE_STAKE</code></td>\n<td>Stake exceeds maximum allowed</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n","urlObject":{"path":["syndicates","create_and_join"],"host":["{{microsite_api_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7123961c-3be9-4101-afda-6723d52d30f5"}],"id":"474ba6b7-191c-480f-8c28-f3fee6244cf4","_postman_id":"474ba6b7-191c-480f-8c28-f3fee6244cf4","description":""},{"name":"7. Data Type and Status Codes","item":[],"id":"2908415e-6648-7a3d-c1f5-a9b38bea7bf2","description":"<p>This section contains a list of codes used in the API.</p>\n<h1 id=\"sport-codes\">Sport Codes</h1>\n<ul>\n<li><p>FOOTBALL</p>\n</li>\n<li><p>HORSE_RACING</p>\n</li>\n<li><p>GREYHOUNDS</p>\n</li>\n<li><p>TENNIS</p>\n</li>\n<li><p>NFL</p>\n</li>\n<li><p>NBA</p>\n</li>\n<li><p>AFL</p>\n</li>\n<li><p>RUGBY</p>\n</li>\n<li><p>ICE_HOCKEY</p>\n</li>\n<li><p>DARTS</p>\n</li>\n<li><p>WRC</p>\n</li>\n<li><p>MIXED</p>\n</li>\n<li><p>SPECIAL</p>\n</li>\n<li><p>ESPORTS</p>\n</li>\n<li><p>FANTASY_NFL</p>\n</li>\n<li><p>FANTASY_NBA</p>\n</li>\n<li><p>FANTASY_ESPORTS</p>\n</li>\n<li><p>FANTASY_GAMES</p>\n</li>\n<li><p>COMBAT</p>\n</li>\n</ul>\n<h1 id=\"type-codes\">Type Codes</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Sport Code</th>\n<th>Type Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>FOOTBALL</td>\n<td>CORRECT_SCORE</td>\n<td>Correct Score</td>\n</tr>\n<tr>\n<td>FOOTBALL</td>\n<td>HDA</td>\n<td>1 x 2 (Home / Draw / Away)</td>\n</tr>\n<tr>\n<td>FOOTBALL</td>\n<td>ASIAN_HANDICAP</td>\n<td>Winning team with handicap</td>\n</tr>\n<tr>\n<td>FOOTBALL</td>\n<td>BTTS</td>\n<td>Both teams to score (yes or no)</td>\n</tr>\n<tr>\n<td>FOOTBALL</td>\n<td>OVER_UNDER</td>\n<td>Over or under a certain number of goals (usually 2.5)</td>\n</tr>\n<tr>\n<td>FOOTBALL</td>\n<td>MATCH</td>\n<td>Same sport event, multiple markets, a different selection range per leg</td>\n</tr>\n<tr>\n<td>HORSE_RACING,GREYHOUNDS,WRC</td>\n<td>RACE_WIN</td>\n<td>Pick the winner of each leg (one or more legs)</td>\n</tr>\n<tr>\n<td>HORSE_RACING,GREYHOUNDS,WRC</td>\n<td>RACE_PLACE</td>\n<td>Top n finishers(placers) in each leg (one or more legs)</td>\n</tr>\n<tr>\n<td>HORSE_RACING,GREYHOUNDS,WRC</td>\n<td>RACE_ORDER</td>\n<td>Pick the runners order of finish (same event)</td>\n</tr>\n<tr>\n<td>TENNIS</td>\n<td>CORRECT_SCORE_5</td>\n<td>Correct sets, for 5 set games</td>\n</tr>\n<tr>\n<td>TENNIS</td>\n<td>CORRECT_SCORE_3</td>\n<td>Correct sets, for 3 set games</td>\n</tr>\n<tr>\n<td>ESPORTS</td>\n<td>H2H</td>\n<td>Head to head - Pick the team that will win</td>\n</tr>\n<tr>\n<td>ESPORTS</td>\n<td>HA</td>\n<td>Head / Away - Pick the team that will win</td>\n</tr>\n<tr>\n<td>ESPORTS</td>\n<td>OVER_UNDER</td>\n<td>Over or under a certain number of points, depending on the game</td>\n</tr>\n<tr>\n<td>ESPORTS</td>\n<td>HDA</td>\n<td>1 x 2 (Home / Draw / Away)</td>\n</tr>\n<tr>\n<td>FANTASY_NFL,FANTASY_NBA</td>\n<td>MVP</td>\n<td>The player with the highest score (fantasy sports)</td>\n</tr>\n<tr>\n<td>TENNIS</td>\n<td>H2H</td>\n<td>Head to head - Pick the tennis player that will last in the tournament the longest</td>\n</tr>\n<tr>\n<td>AFL,NFL,NBA,RUGBY,ICE_HOCKEY</td>\n<td>POINT_MARGIN</td>\n<td>Pick the correct winning margin of points - used in high scoring games</td>\n</tr>\n<tr>\n<td>DARTS</td>\n<td>CORRECT_SCORE_9</td>\n<td>Correct score in the best of 9 matches</td>\n</tr>\n<tr>\n<td>DARTS</td>\n<td>CORRECT_SCORE_12</td>\n<td>Correct score in the best of 12 matches</td>\n</tr>\n<tr>\n<td>DARTS</td>\n<td>CORRECT_SCORE_14</td>\n<td>Correct score in the best of 14 matches</td>\n</tr>\n<tr>\n<td>FANTASY_ESPORTS</td>\n<td>EVENT_WIN</td>\n<td>Pick the winner of each leg (one or more legs)</td>\n</tr>\n<tr>\n<td>FANTASY_ESPORTS</td>\n<td>EVENT_ORDER</td>\n<td>Pick the final position of each competitor (same event)</td>\n</tr>\n<tr>\n<td>COMBAT</td>\n<td>AVB</td>\n<td>Pick the winner between the home or away competitor</td>\n</tr>\n<tr>\n<td>FANTASY_GAMES</td>\n<td>FANTASY_OU</td>\n<td>Fantasy Over/Under - predict if a player metric will be over or under a threshold</td>\n</tr>\n<tr>\n<td>FANTASY_GAMES</td>\n<td>FANTASY_MVP</td>\n<td>Fantasy MVP - pick the most valuable player from a pool of competitors</td>\n</tr>\n<tr>\n<td>FANTASY_GAMES</td>\n<td>FANTASY_MARGIN</td>\n<td>Fantasy Margin - predict the margin of a fantasy metric</td>\n</tr>\n</tbody>\n</table>\n</div><p>The FOOTBALL MATCH type represents the fact that each leg will represent a different market, therefore a different <code>type_code</code>, like:</p>\n<ul>\n<li>AWAY_CARDS, AWAY_CORNERS, CORRECT_SCORE, BTTS, FH_CARDS, GOAL_FH, HDA, HOME_CARDS, HOME_CORNERS, OVER_UNDER, PENALTY_TAKEN, RED_CARD, SH_CARDS, TOT_CORNERS_OU</li>\n</ul>\n<h4 id=\"pool-status-codes\">Pool Status Codes</h4>\n<ul>\n<li><p>OPEN (the pool is open for betting)</p>\n</li>\n<li><p>IN_PLAY (the pool is currently in progress, new bets are no longer accepted)</p>\n</li>\n<li><p>OFFICIAL (the pool has finished, all games within the pool have finished)</p>\n</li>\n<li><p>ABANDONED (the pool has finished, all games within the pool have been abandoned)</p>\n</li>\n</ul>\n<h4 id=\"selections-string\">Selections String</h4>\n<p>Example \"1,2/1,8,10/13\"</p>\n<p>The above string represents a ticket/coupon/bet in a pool that has 3 legs (the selections for each leg are separated by a <code>/</code>).<br />The first leg has the selections with the <code>bin</code> numbers 1 and 2, second leg the <code>bin</code> numbers 1,8,10 and so on.</p>\n<p>For most <code>type_codes</code> the above would represent 6 lines (2 x 3 x 1), however for some racing type pools (race order), some lines can be invalid and the valid lines calculation is more complex.</p>\n<h4 id=\"pool-prizes\">Pool Prizes</h4>\n<p>Currently, our system supports a win pool prize and up to 5 consolation prizes depending on the <code>sport_code</code>, <code>type_code</code> and the number of legs.<br />Each pool will have an association of at least one pool prize, differentiated by a prize code. All the prizes are distributed between the corresponding winning units accordingly.<br />A ticket with multiple lines, can win different consolations for the loosing lines that did not qualify for a higher prize.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>For example, for a FOOTBALL HDA PICK 15:\n(_ni - representing the prize for x - i out of x winning linesm where x is the total nr of legs in the pool)\n* WIN    - prize for 15/15 correct results lines\n* CON_N1 - prize for 14/15 correct results lines\n* CON_N2 - prize for 13/15 correct results lines\n* CON_N3 - prize for 12/15 correct results lines\n* CON_N4 - prize for 11/15 correct results lines\n* CON_N5 - prize for 10/15 correct results lines\n\n</code></pre>","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":"2908415e-6648-7a3d-c1f5-a9b38bea7bf2"}],"event":[{"listen":"prerequest","script":{"id":"94b5293a-d55a-4976-838e-a23363be9b10","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":"1483bb74-00a1-48e2-b1d3-aa59aaac6208","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();"]}}]}