{"info":{"_postman_id":"9b2f6d2a-2080-4989-a14b-19cff28d3afb","name":"BetRight API","description":"<html><head></head><body><p>This set of BetRight APIs has been customised to provide BetRight its unique API set to conform with the business requirements and method to which RBHQ will communicate with the BetRight API hosts for ingestion and processing of data between the two entities.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"10937506","collectionId":"9b2f6d2a-2080-4989-a14b-19cff28d3afb","publishedId":"TzXxicZo","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-05-27T06:04:46.000Z"},"item":[{"name":"RacebookHQ Bet Decision Tool","item":[{"name":"Betslip Decision API","id":"8ac165d9-dec8-403d-b8f7-f15754033c3b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"slip1\",\n    \"customerId\": \"test1\",\n    \"submissionTime\": \"2021-04-15T05:12:23.664392+00:00\",\n    \"bets\": [\n        {\n            \"id\": \"b1\",\n            \"customerId\": \"test1\",\n            \"type\": \"SINGLE\",\n            \"stake\": \"55.00\",\n            \"stakeType\": \"CREDIT\",\n            \"currency\": \"USD\",\n            \"submissionTime\": \"2021-04-15T05:12:23.664392+00:00\",\n            \"legs\": [\n                {\n                    \"id\": \"l1\",\n                    \"type\": \"WIN\",\n                    \"eventId\": \"test:race1\",\n                    \"selectionSlots\": [\n                        {\n                            \"selections\": [\n                                \"1\"\n                            ],\n                            \"type\": \"SELECTION\"\n                        }\n                    ],\n                    \"prices\": {\n                        \"*\": \"5.00\"\n                    },\n                    \"productType\": \"FIXED_ODDS\"\n                }\n            ]\n        },\n        {\n            \"id\": \"b2\",\n            \"customerId\": \"test1\",\n            \"type\": \"SINGLE\",\n            \"stake\": \"5.50\",\n            \"stakeType\": \"CREDIT\",\n            \"currency\": \"USD\",\n            \"submissionTime\": \"2021-04-15T05:12:23.664392+00:00\",\n            \"legs\": [\n                {\n                    \"id\": \"l2\",\n                    \"type\": \"PLACE\",\n                    \"eventId\": \"test:race1\",\n                    \"selectionSlots\": [\n                        {\n                            \"selections\": [\n                                \"1\"\n                            ],\n                            \"type\": \"SELECTION\"\n                        }\n                    ],\n                    \"prices\": {\n                        \"*\": \"1.75\"\n                    },\n                    \"productType\": \"FIXED_ODDS\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://betright.racebookhq.com/api/host/betslip/decide","description":"<p>The Decision API sends back to BetRight the recommended limit for the bet.<br />Betright can use these details to display the information to the customer on the betslip.</p>\n<p>The following is the definition for the Decision API</p>\n<p>BetSlipSubmission</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th>Comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>The BetRight betslip id</td>\n<td></td>\n</tr>\n<tr>\n<td>customerId</td>\n<td>String</td>\n<td>The BetRight customer id.</td>\n<td>This must also be present on the bet level since RBHQ also handles bets without betslips by configuration.</td>\n</tr>\n<tr>\n<td>submissionTime</td>\n<td>String</td>\n<td>ISO fomat</td>\n<td>Must also be the same time in each bet.</td>\n</tr>\n<tr>\n<td>customerMeta</td>\n<td>Map</td>\n<td>Additional metadata for the customer</td>\n<td>Can indicate that customer is test user by adding following :  <br />{  <br />\"customerType\": \"TEST_ACCOUNT\"  <br />}</td>\n</tr>\n<tr>\n<td>bets</td>\n<td>List[BetSubmission]</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p>Within the list for bets in the BetSubmission - submit the BetSubmission</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th>Comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>BetRight transaction id</td>\n<td></td>\n</tr>\n<tr>\n<td>customerId</td>\n<td>String</td>\n<td>BetRight customer id</td>\n<td></td>\n</tr>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>The type of bet [SINGLE, MULTI]</td>\n<td></td>\n</tr>\n<tr>\n<td>stake</td>\n<td>String</td>\n<td>The amount specified for the bet. Formatted decimal</td>\n<td></td>\n</tr>\n<tr>\n<td>stakeType</td>\n<td>String</td>\n<td>The stake type [CREDIT, BONUS_BET, OTHER]</td>\n<td></td>\n</tr>\n<tr>\n<td>currency</td>\n<td>String</td>\n<td>The currency the transactions are in.</td>\n<td>We do not do currency conversions, this must be consistent across all bets.</td>\n</tr>\n<tr>\n<td>submissionTime</td>\n<td>String</td>\n<td>The ISO format time of submission.</td>\n<td>OPTIONAL for Bet Limit, REQUIRED for Betslip Decision and Betslip record</td>\n</tr>\n<tr>\n<td>customerMeta</td>\n<td>Map</td>\n<td>Additional metadata for the customer</td>\n<td>Can indicate that customer is test user by adding following :  <br />{  <br />\"customerType\": \"TEST_ACCOUNT\"  <br />}  <br />Note: does not need to be provided on this level if already provided on BetSlipSubmission level</td>\n</tr>\n<tr>\n<td>legs</td>\n<td>List[LegSubmission]</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p>Within the List for legs in BetslipSubmission - submit the legsSubmission for each leg</p>\n<p>LegSubmission<br />Definition</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th>Comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>BetRight transient id.</td>\n<td></td>\n</tr>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>The type of the leg [WIN, PLACE]</td>\n<td>More types can come later. E.g EACH_WAY, TRIFECTA,…</td>\n</tr>\n<tr>\n<td>eventId</td>\n<td>String</td>\n<td>The unique Racebook event id.</td>\n<td>Provided by RBHQ in event creation</td>\n</tr>\n<tr>\n<td>selectionSlots</td>\n<td>List[SelectionSlot]</td>\n<td>The object specifying the selection</td>\n<td>Racing bets only require SELECTION slots. WIN and PLACE only have 1 selection slot.</td>\n</tr>\n<tr>\n<td>prices</td>\n<td>Map[String, String]</td>\n<td>Map of bet tag to price.</td>\n<td>Win and place will only have * mapped to a price since there is 1 universal price. Fixed odds exotics will be a distribution.</td>\n</tr>\n<tr>\n<td>productType</td>\n<td>String</td>\n<td>The product type of the bet [FIXED_ODDS, PARIMUTUEL]</td>\n<td>Use FIXED_ODDS</td>\n</tr>\n</tbody>\n</table>\n</div><p>Within the List for SelectionSlot in LegSubmission - submit as per below definition</p>\n<p>SelectionSlot<br />Definition</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th>Comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>BetRight transient id.</td>\n<td></td>\n</tr>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>The type of the leg [WIN, PLACE]</td>\n<td>More types can come later. E.g EACH_WAY, TRIFECTA,…</td>\n</tr>\n<tr>\n<td>eventId</td>\n<td>String</td>\n<td>The unique Racebook event id.</td>\n<td>Provided by RBHQ in event creation</td>\n</tr>\n<tr>\n<td>selectionSlots</td>\n<td>List[SelectionSlot]</td>\n<td>The object specifying the selection</td>\n<td>Racing bets only require SELECTION slots. WIN and PLACE only have 1 selection slot.</td>\n</tr>\n<tr>\n<td>prices</td>\n<td>Map[String, String]</td>\n<td>Map of bet tag to price.</td>\n<td>Win and place will only have * mapped to a price since there is 1 universal price. Fixed odds exotics will be a distribution.</td>\n</tr>\n<tr>\n<td>productType</td>\n<td>String</td>\n<td>The product type of the bet [FIXED_ODDS, PARIMUTUEL]</td>\n<td>Use FIXED_ODDS</td>\n</tr>\n</tbody>\n</table>\n</div><p>The BetDecisions response will return the following fields as per the example.</p>\n<p>The betSlip response</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th>Comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>decisionsId</td>\n<td>String</td>\n<td>The provided BetRight betslip id.</td>\n<td>Can be a transient id. Includes all the grouped bets within that submission.</td>\n</tr>\n<tr>\n<td>classification</td>\n<td>ProfileClassification</td>\n<td>The classification of the customer</td>\n<td>The RBHQ stored agreed profile.</td>\n</tr>\n<tr>\n<td>decisions</td>\n<td>List[BetDecison]</td>\n<td>The bet decisions for each of the bets in the betslip (group)</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p>With in the betSlip the BetDecision for each bet.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th>Comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>betId</td>\n<td>String</td>\n<td>The provided BetRight bet id</td>\n<td></td>\n</tr>\n<tr>\n<td>status</td>\n<td>String</td>\n<td>The recommendation type. [ACCEPTED, REJECTED, PRICE_CHANGED, PARTIAL,  <br />INTERCEPTED]</td>\n<td></td>\n</tr>\n<tr>\n<td>limit</td>\n<td>String</td>\n<td>The liability limit for the customer for the bet</td>\n<td>Can be different based on price bands etc…</td>\n</tr>\n<tr>\n<td>partialAmount</td>\n<td>String</td>\n<td>The amount recommended to bet if the status is PARTIAL</td>\n<td></td>\n</tr>\n<tr>\n<td>reason</td>\n<td>String</td>\n<td>Description string about what happened</td>\n<td></td>\n</tr>\n<tr>\n<td>updatedPrices</td>\n<td>Map[String, String]</td>\n<td>New prices that changed before the bet has been submitted.</td>\n<td></td>\n</tr>\n<tr>\n<td>dividends</td>\n<td>String</td>\n<td>The dividends used for determining limit</td>\n<td>It might be of interest for same race multies</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","host","betslip","decide"],"host":["betright","racebookhq","com"],"query":[],"variable":[]}},"response":[{"id":"84103e8c-4c2f-4e85-885d-c3e82087f037","name":"Betslip Decision API","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"------","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"slip1\",\n    \"customerId\": \"test1\",\n    \"submissionTime\": \"2021-04-15T05:12:23.664392+00:00\",\n    \"bets\": [\n        {\n            \"id\": \"b12\",\n            \"customerId\": \"test1\",\n            \"type\": \"SINGLE\",\n            \"stake\": \"55.00\",\n            \"stakeType\": \"CREDIT\",\n            \"currency\": \"USD\",\n            \"submissionTime\": \"2021-04-15T05:12:23.664392+00:00\",\n            \"legs\": [\n                {\n                    \"id\": \"l1\",\n                    \"type\": \"WIN\",\n                    \"eventId\": \"test:race1\",\n                    \"selectionSlots\": [\n                        {\n                            \"selections\": [\n                                \"1\"\n                            ],\n                            \"type\": \"SELECTION\"\n                        }\n                    ],\n                    \"prices\": {\n                        \"*\": \"2.8\"\n                    },\n                    \"productType\": \"FIXED_ODDS\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://betright.racebookhq.com/api/host/betslip/decide"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"betId\": \"b12\",\n        \"status\": \"ACCEPTED\",\n        \"limit\": 2180.024,\n        \"liabilityLeft\": 2180.024,\n        \"partialAmount\": 55.0,\n        \"reason\": \"Bet accepted\",\n        \"dividends\": 2.8,\n        \"updatedPrices\": {}\n    }\n]"}],"_postman_id":"8ac165d9-dec8-403d-b8f7-f15754033c3b"},{"name":"Bet Decision API","id":"7de687c2-63bd-4f87-9964-6e589e1b4c29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"b1\",\n    \"customerId\": \"test1\",\n    \"type\": \"SINGLE\",\n    \"stake\": \"55.00\",\n    \"stakeType\": \"CREDIT\",\n    \"currency\": \"USD\",\n    \"submissionTime\": \"2021-04-15T05:12:23.664392+00:00\",\n    \"legs\": [\n        {\n            \"id\": \"l1\",\n            \"type\": \"WIN\",\n            \"eventId\": \"test:race1\",\n            \"selectionSlots\": [\n                {\n                    \"selections\": [\n                        \"1\"\n                    ],\n                    \"type\": \"SELECTION\"\n                }\n            ],\n            \"prices\": {\n                \"*\": \"5.00\"\n            },\n            \"productType\": \"FIXED_ODDS\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://betright.racebookhq.com/api/host/bets/decide","description":"<p>The Decision API sends back to BetRight the recommended limit for the bet.<br />Betright can use these details to display the information to the customer on the betslip.</p>\n<p>The following is the definition for the Decision API</p>\n<p>BetSubmission</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th>Comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>BetRight transaction id</td>\n<td></td>\n</tr>\n<tr>\n<td>customerId</td>\n<td>String</td>\n<td>BetRight customer id</td>\n<td></td>\n</tr>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>The type of bet [SINGLE, MULTI]</td>\n<td></td>\n</tr>\n<tr>\n<td>stake</td>\n<td>String</td>\n<td>The amount specified for the bet. Formatted decimal</td>\n<td></td>\n</tr>\n<tr>\n<td>stakeType</td>\n<td>String</td>\n<td>The stake type [CREDIT, BONUS_BET, OTHER]</td>\n<td></td>\n</tr>\n<tr>\n<td>currency</td>\n<td>String</td>\n<td>The currency the transactions are in.</td>\n<td>We do not do currency conversions, this must be consistent across all bets.</td>\n</tr>\n<tr>\n<td>submissionTime</td>\n<td>String</td>\n<td>The ISO format time of submission.</td>\n<td>OPTIONAL for Bet Limit, REQUIRED for Betslip Decision and Betslip record</td>\n</tr>\n<tr>\n<td>customerMeta</td>\n<td>Map</td>\n<td>Additional metadata for the customer</td>\n<td>Can indicate that customer is test user by adding following :  <br />{  <br />\"customerType\": \"TEST_ACCOUNT\"  <br />}</td>\n</tr>\n<tr>\n<td>legs</td>\n<td>List[LegSubmission]</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p>Within the List for legs in BetSubmission - submit the legsSubmission for each leg</p>\n<p>LegSubmission<br />Definition</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th>Comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>BetRight transient id.</td>\n<td></td>\n</tr>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>The type of the leg [WIN, PLACE]</td>\n<td>More types can come later. E.g EACH_WAY, TRIFECTA,…</td>\n</tr>\n<tr>\n<td>eventId</td>\n<td>String</td>\n<td>The unique Racebook event id.</td>\n<td>Provided by RBHQ in event creation</td>\n</tr>\n<tr>\n<td>selectionSlots</td>\n<td>List[SelectionSlot]</td>\n<td>The object specifying the selection</td>\n<td>Racing bets only require SELECTION slots. WIN and PLACE only have 1 selection slot.</td>\n</tr>\n<tr>\n<td>prices</td>\n<td>Map[String, String]</td>\n<td>Map of bet tag to price.</td>\n<td>Win and place will only have * mapped to a price since there is 1 universal price. Fixed odds exotics will be a distribution.</td>\n</tr>\n<tr>\n<td>productType</td>\n<td>String</td>\n<td>The product type of the bet [FIXED_ODDS, PARIMUTUEL]</td>\n<td>Use FIXED_ODDS</td>\n</tr>\n</tbody>\n</table>\n</div><p>Within the List for SelectionSlot in LegSubmission - submit as per below definition</p>\n<p>SelectionSlot<br />Definition</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th>Comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>BetRight transient id.</td>\n<td></td>\n</tr>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>The type of the leg [WIN, PLACE]</td>\n<td>More types can come later. E.g EACH_WAY, TRIFECTA,…</td>\n</tr>\n<tr>\n<td>eventId</td>\n<td>String</td>\n<td>The unique Racebook event id.</td>\n<td>Provided by RBHQ in event creation</td>\n</tr>\n<tr>\n<td>selectionSlots</td>\n<td>List[SelectionSlot]</td>\n<td>The object specifying the selection</td>\n<td>Racing bets only require SELECTION slots. WIN and PLACE only have 1 selection slot.</td>\n</tr>\n<tr>\n<td>prices</td>\n<td>Map[String, String]</td>\n<td>Map of bet tag to price.</td>\n<td>Win and place will only have * mapped to a price since there is 1 universal price. Fixed odds exotics will be a distribution.</td>\n</tr>\n<tr>\n<td>productType</td>\n<td>String</td>\n<td>The product type of the bet [FIXED_ODDS, PARIMUTUEL]</td>\n<td>Use FIXED_ODDS</td>\n</tr>\n</tbody>\n</table>\n</div><p>The BetDecisions response will return the following fields as per the example.</p>\n<p>The betSlip response</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th>Comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>decisionsId</td>\n<td>String</td>\n<td>The provided BetRight betslip id.</td>\n<td>Can be a transient id. Includes all the grouped bets within that submission.</td>\n</tr>\n<tr>\n<td>classification</td>\n<td>ProfileClassification</td>\n<td>The classification of the customer</td>\n<td>The RBHQ stored agreed profile.</td>\n</tr>\n<tr>\n<td>decisions</td>\n<td>List[BetDecison]</td>\n<td>The bet decisions for each of the bets in the betslip (group)</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p>With in the betSlip the BetDecision for each bet.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th>Comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>betId</td>\n<td>String</td>\n<td>The provided BetRight bet id</td>\n<td></td>\n</tr>\n<tr>\n<td>status</td>\n<td>String</td>\n<td>The recommendation type. [ACCEPTED, REJECTED, PRICE_CHANGED, PARTIAL,  <br />INTERCEPTED]</td>\n<td></td>\n</tr>\n<tr>\n<td>limit</td>\n<td>String</td>\n<td>The liability limit for the customer for the bet</td>\n<td>Can be different based on price bands etc…</td>\n</tr>\n<tr>\n<td>partialAmount</td>\n<td>String</td>\n<td>The amount recommended to bet if the status is PARTIAL</td>\n<td></td>\n</tr>\n<tr>\n<td>reason</td>\n<td>String</td>\n<td>Description string about what happened</td>\n<td></td>\n</tr>\n<tr>\n<td>updatedPrices</td>\n<td>Map[String, String]</td>\n<td>New prices that changed before the bet has been submitted.</td>\n<td></td>\n</tr>\n<tr>\n<td>dividends</td>\n<td>String</td>\n<td>The dividends used for determining limit</td>\n<td>It might be of interest for same race multies.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","host","bets","decide"],"host":["betright","racebookhq","com"],"query":[],"variable":[]}},"response":[{"id":"9352291a-f825-411e-8eee-c79346a479a7","name":"Bet Decision API","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"-----","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"b1\",\n    \"customerId\": \"test1\",\n    \"type\": \"SINGLE\",\n    \"stake\": \"55.00\",\n    \"stakeType\": \"CREDIT\",\n    \"currency\": \"USD\",\n    \"submissionTime\": \"2021-04-15T05:12:23.664392+00:00\",\n    \"legs\": [\n        {\n            \"id\": \"l1\",\n            \"type\": \"WIN\",\n            \"eventId\": \"test:race1\",\n            \"selectionSlots\": [\n                {\n                    \"selections\": [\n                        \"1\"\n                    ],\n                    \"type\": \"SELECTION\"\n                }\n            ],\n            \"prices\": {\n                \"*\": \"5.00\"\n            },\n            \"productType\": \"FIXED_ODDS\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://betright.racebookhq.com/api/host/betslip/decide"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"betId\": \"b1\",\n        \"status\": \"ACCEPTED\",\n        \"limit\": 2180.024,\n        \"liabilityLeft\": 2180.024,\n        \"partialAmount\": 55.0,\n        \"reason\": \"Bet accepted\",\n        \"dividends\": 5.0,\n        \"updatedPrices\": {}\n    }\n]"}],"_postman_id":"7de687c2-63bd-4f87-9964-6e589e1b4c29"},{"name":"Record Function","id":"26754c5c-d727-4ca0-8ae9-5b3c2a86c455","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"slip1\",\n    \"customerId\": \"test1\",\n    \"submissionTime\": \"2021-04-15T05:12:23.664392+00:00\",\n    \"bets\": [\n        {\n            \"id\": \"b1\",\n            \"customerId\": \"test1\",\n            \"type\": \"SINGLE\",\n            \"stake\": \"500.00\",\n            \"stakeType\": \"CREDIT\",\n            \"currency\": \"USD\",\n            \"submissionTime\": \"2021-04-15T05:12:23.664392+00:00\",\n            \"legs\": [\n                {\n                    \"id\": \"l1\",\n                    \"type\": \"WIN\",\n                    \"eventId\": \"test:race1\",\n                    \"selectionSlots\": [\n                        {\n                            \"selections\": [\n                                \"1\"\n                            ],\n                            \"type\": \"SELECTION\"\n                        }\n                    ],\n                    \"prices\": {\n                        \"*\": \"5.00\"\n                    },\n                    \"productType\": \"FIXED_ODDS\"\n                }\n            ]\n        },\n        {\n            \"id\": \"b2\",\n            \"customerId\": \"test1\",\n            \"type\": \"SINGLE\",\n            \"stake\": \"5.50\",\n            \"stakeType\": \"CREDIT\",\n            \"currency\": \"USD\",\n            \"submissionTime\": \"2021-04-15T05:12:23.664392+00:00\",\n            \"legs\": [\n                {\n                    \"id\": \"l2\",\n                    \"type\": \"PLACE\",\n                    \"eventId\": \"test:race1\",\n                    \"selectionSlots\": [\n                        {\n                            \"selections\": [\n                                \"1\"\n                            ],\n                            \"type\": \"SELECTION\"\n                        }\n                    ],\n                    \"prices\": {\n                        \"*\": \"1.75\"\n                    },\n                    \"productType\": \"FIXED_ODDS\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://betright.racebookhq.com/api/betslip/record","description":"<p>The record function is the final bet that the customer placed. These details can be used for liability and profiling purposes.</p>\n<p>the format and submission of the api is similar to the bet limit api with regards to the fields.</p>\n<p>the BetslipSubmission uses the record function API and its definition is listed below</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th>Comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>The BetRight betslip id</td>\n<td></td>\n</tr>\n<tr>\n<td>customerId</td>\n<td>String</td>\n<td>The BetRight customer id.</td>\n<td>This must also be present on the bet level since RBHQ also handles bets without betslips by configuration.</td>\n</tr>\n<tr>\n<td>submissionTime</td>\n<td>String</td>\n<td>ISO fomat</td>\n<td>Must also be the same time in each bet.</td>\n</tr>\n<tr>\n<td>customerMeta</td>\n<td>Map</td>\n<td>Additional metadata for the customer</td>\n<td>Can indicate that customer is test user by adding following :  <br />{  <br />\"customerType\": \"TEST_ACCOUNT\"  <br />}</td>\n</tr>\n<tr>\n<td>bets</td>\n<td>List[BetSubmission]</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p>The following definition is for the list of bets in BetslipSubmission</p>\n<p>BetSubmission</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th>Comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>BetRight transaction id</td>\n<td></td>\n</tr>\n<tr>\n<td>customerId</td>\n<td>String</td>\n<td>BetRight customer id</td>\n<td></td>\n</tr>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>The type of bet [SINGLE, MULTI]</td>\n<td></td>\n</tr>\n<tr>\n<td>stake</td>\n<td>String</td>\n<td>The amount specified for the bet. Formatted decimal</td>\n<td></td>\n</tr>\n<tr>\n<td>stakeType</td>\n<td>String</td>\n<td>The stake type [CREDIT, BONUS_BET, OTHER]</td>\n<td></td>\n</tr>\n<tr>\n<td>currency</td>\n<td>String</td>\n<td>The currency the transactions are in.</td>\n<td>We do not do currency conversions, this must be consistent across all bets.</td>\n</tr>\n<tr>\n<td>submissionTime</td>\n<td>String</td>\n<td>The ISO format time of submission.</td>\n<td>OPTIONAL for Bet Limit, REQUIRED for Betslip Decision and Betslip record</td>\n</tr>\n<tr>\n<td>customerMeta</td>\n<td>Map</td>\n<td>Additional metadata for the customer</td>\n<td>Can indicate that customer is test user by adding following :  <br />{  <br />\"customerType\": \"TEST_ACCOUNT\"  <br />}</td>\n</tr>\n<tr>\n<td>legs</td>\n<td>List[LegSubmission]</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p>Within the List for legs in BetslipSubmission - submit the legsSubmission for each leg</p>\n<p>LegSubmission<br />Definition</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th>Comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>BetRight transient id.</td>\n<td></td>\n</tr>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>The type of the leg [WIN, PLACE]</td>\n<td>More types can come later. E.g EACH_WAY, TRIFECTA,…</td>\n</tr>\n<tr>\n<td>eventId</td>\n<td>String</td>\n<td>The unique Racebook event id.</td>\n<td>Provided by RBHQ in event creation</td>\n</tr>\n<tr>\n<td>selectionSlots</td>\n<td>List[SelectionSlot]</td>\n<td>The object specifying the selection</td>\n<td>Racing bets only require SELECTION slots. WIN and PLACE only have 1 selection slot.</td>\n</tr>\n<tr>\n<td>prices</td>\n<td>Map[String, String]</td>\n<td>Map of bet tag to price.</td>\n<td>Win and place will only have * mapped to a price since there is 1 universal price. Fixed odds exotics will be a distribution.</td>\n</tr>\n<tr>\n<td>productType</td>\n<td>String</td>\n<td>The product type of the bet [FIXED_ODDS, PARIMUTUEL]</td>\n<td>Use FIXED_ODDS</td>\n</tr>\n</tbody>\n</table>\n</div><p>Within the List for SelectionSlot in LegSubmission - submit as per below definition</p>\n<p>SelectionSlot<br />Definition</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th>Comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>BetRight transient id.</td>\n<td></td>\n</tr>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>The type of the leg [WIN, PLACE]</td>\n<td>More types can come later. E.g EACH_WAY, TRIFECTA,…</td>\n</tr>\n<tr>\n<td>eventId</td>\n<td>String</td>\n<td>The unique Racebook event id.</td>\n<td>Provided by RBHQ in event creation</td>\n</tr>\n<tr>\n<td>selectionSlots</td>\n<td>List[SelectionSlot]</td>\n<td>The object specifying the selection</td>\n<td>Racing bets only require SELECTION slots. WIN and PLACE only have 1 selection slot.</td>\n</tr>\n<tr>\n<td>prices</td>\n<td>Map[String, String]</td>\n<td>Map of bet tag to price.</td>\n<td>Win and place will only have * mapped to a price since there is 1 universal price. Fixed odds exotics will be a distribution.</td>\n</tr>\n<tr>\n<td>productType</td>\n<td>String</td>\n<td>The product type of the bet [FIXED_ODDS, PARIMUTUEL]</td>\n<td>Use FIXED_ODDS</td>\n</tr>\n</tbody>\n</table>\n</div><p>RESPONSE</p>\n<p>Responses can be ignored as its a submission to RBHQ for the bet. There may be responses provided in longformat but ingestion of this data is not required.</p>\n","urlObject":{"protocol":"https","path":["api","betslip","record"],"host":["betright","racebookhq","com"],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"02af0c2c-4a16-452c-9844-45aec9134ab7","name":"Record Function","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"slip1\",\n    \"customerId\": \"test1\",\n    \"submissionTime\": \"2021-04-15T05:12:23.664392+00:00\",\n    \"bets\": [\n        {\n            \"id\": \"b1\",\n            \"customerId\": \"test1\",\n            \"type\": \"SINGLE\",\n            \"stake\": \"500.00\",\n            \"stakeType\": \"CREDIT\",\n            \"currency\": \"USD\",\n            \"submissionTime\": \"2021-04-15T05:12:23.664392+00:00\",\n            \"legs\": [\n                {\n                    \"id\": \"l1\",\n                    \"type\": \"WIN\",\n                    \"eventId\": \"test:race1\",\n                    \"selectionSlots\": [\n                        {\n                            \"selections\": [\n                                \"1\"\n                            ],\n                            \"type\": \"SELECTION\"\n                        }\n                    ],\n                    \"prices\": {\n                        \"*\": \"5.00\"\n                    },\n                    \"productType\": \"FIXED_ODDS\"\n                }\n            ]\n        },\n        {\n            \"id\": \"b2\",\n            \"customerId\": \"test1\",\n            \"type\": \"SINGLE\",\n            \"stake\": \"5.50\",\n            \"stakeType\": \"CREDIT\",\n            \"currency\": \"USD\",\n            \"submissionTime\": \"2021-04-15T05:12:23.664392+00:00\",\n            \"legs\": [\n                {\n                    \"id\": \"l2\",\n                    \"type\": \"PLACE\",\n                    \"eventId\": \"test:race1\",\n                    \"selectionSlots\": [\n                        {\n                            \"selections\": [\n                                \"1\"\n                            ],\n                            \"type\": \"SELECTION\"\n                        }\n                    ],\n                    \"prices\": {\n                        \"*\": \"1.75\"\n                    },\n                    \"productType\": \"FIXED_ODDS\"\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://betright.racebookhq.com/api/betslip/record","protocol":"https","host":["betright","racebookhq","com"],"path":["api","betslip","record"],"query":[{"key":"","value":"","disabled":true}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"26754c5c-d727-4ca0-8ae9-5b3c2a86c455"},{"name":"Adjust API","id":"aba3915b-de18-4656-a397-15ce5b784919","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\n  {\n    \"deltaStake\": 30.0,\n    \"submission\": {\n      \"id\": \"b1\",\n      \"customerId\": \"test1\",\n      \"type\": \"SINGLE\",\n      \"stake\": \"5.50\",\n      \"stakeType\": \"CREDIT\",\n      \"currency\": \"USD\",\n      \"submissionTime\": \"2021-04-14T05:12:23.664392+00:00\",\n      \"legs\": [\n        {\n          \"id\": \"l1\",\n          \"type\": \"WIN\",\n          \"eventId\": \"test:race1\",\n          \"selectionSlots\": [\n            {\n              \"selections\": [\n                \"1\"\n              ],\n              \"type\": \"SELECTION\"\n            }\n          ],\n          \"prices\": {\n            \"*\": \"5.72\"\n          },\n          \"productType\": \"FIXED_ODDS\"\n        }\n      ]\n    }\n  }\n]","options":{"raw":{"language":"json"}}},"url":"https://betright.racebookhq.com/api/host/decision/adjust","description":"<p>The Adjust Api for Betright. Adjust api would adjust limit for a bet</p>\n<p>The following is the definition for the Adjust API<br /><strong>Bet Adjustment</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th>Comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>submission</td>\n<td>BetSubmission</td>\n<td>Bet Submission</td>\n<td></td>\n</tr>\n<tr>\n<td>deltaStake</td>\n<td>Decimal</td>\n<td>Delta Stake Adjustment</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>BetSubmission</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th>Comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>Betright transaction id</td>\n<td></td>\n</tr>\n<tr>\n<td>customerId</td>\n<td>String</td>\n<td>Betright customer id</td>\n<td></td>\n</tr>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>The type of bet [SINGLE, MULTI]</td>\n<td></td>\n</tr>\n<tr>\n<td>stake</td>\n<td>String</td>\n<td>The amount specified for the bet. Formatted decimal</td>\n<td></td>\n</tr>\n<tr>\n<td>stakeType</td>\n<td>String</td>\n<td>The stake type [CREDIT, BONUS_BET, OTHER]</td>\n<td></td>\n</tr>\n<tr>\n<td>currency</td>\n<td>String</td>\n<td>The currency the transactions are in.</td>\n<td>We do not do currency conversions, this must be consistent across all bets.</td>\n</tr>\n<tr>\n<td>submissionTime</td>\n<td>String</td>\n<td>The ISO format time of submission.</td>\n<td>OPTIONAL for Bet Limit, REQUIRED for Betslip Decision and Betslip record</td>\n</tr>\n<tr>\n<td>legs</td>\n<td>List[LegSubmission]</td>\n<td></td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p>Within the List for legs in BetSubmission - submit the legsSubmission for each leg</p>\n<p><strong>LegSubmission</strong><br />Definition</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th>Comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>Betright transient id.</td>\n<td></td>\n</tr>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>The type of the leg [WIN, PLACE]</td>\n<td>More types can come later. E.g EACH_WAY, TRIFECTA,…</td>\n</tr>\n<tr>\n<td>eventId</td>\n<td>String</td>\n<td>The unique Racebook event id.</td>\n<td>Please use meetingid:racenumber eg 1359871:3 so the meeting and race 3</td>\n</tr>\n<tr>\n<td>selectionSlots</td>\n<td>List[SelectionSlot]</td>\n<td>The object specifying the selection</td>\n<td>Racing bets only require SELECTION slots. WIN and PLACE only have 1 selection slot.</td>\n</tr>\n<tr>\n<td>prices</td>\n<td>Map[String, String]</td>\n<td>Map of bet tag to price.</td>\n<td>Win and place will only have * mapped to a price since there is 1 universal price. Fixed odds exotics will be a distribution.</td>\n</tr>\n<tr>\n<td>productType</td>\n<td>String</td>\n<td>The product type of the bet [FIXED_ODDS, PARIMUTUEL]</td>\n<td>Use FIXED_ODDS</td>\n</tr>\n</tbody>\n</table>\n</div><p>Within the List for SelectionSlot in LegSubmission - submit as per below definition</p>\n<p><strong>SelectionSlot</strong><br />Definition</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n<th>Comment</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>selections</td>\n<td>List[String]</td>\n<td>The runner numbers for the leg.</td>\n<td>WIN and PLACE will only have 1 selection.</td>\n</tr>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>The type of selection slot. [SELECTION, MARKET,…]</td>\n<td>Racing only uses SELECTION types.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["api","host","decision","adjust"],"host":["betright","racebookhq","com"],"query":[],"variable":[]}},"response":[{"id":"3471da95-c96a-4d63-86c4-39eb7e801225","name":"Adjust API","originalRequest":{"method":"POST","header":[{"key":"","value":"","type":"text","disabled":true}],"body":{"mode":"raw","raw":"[\n  {\n    \"deltaStake\": 30.0,\n    \"submission\": {\n      \"id\": \"b1\",\n      \"customerId\": \"test1\",\n      \"type\": \"SINGLE\",\n      \"stake\": \"5.50\",\n      \"stakeType\": \"CREDIT\",\n      \"currency\": \"USD\",\n      \"submissionTime\": \"2021-04-14T05:12:23.664392+00:00\",\n      \"legs\": [\n        {\n          \"id\": \"l1\",\n          \"type\": \"WIN\",\n          \"eventId\": \"test:race1\",\n          \"selectionSlots\": [\n            {\n              \"selections\": [\n                \"1\"\n              ],\n              \"type\": \"SELECTION\"\n            }\n          ],\n          \"prices\": {\n            \"*\": \"5.72\"\n          },\n          \"productType\": \"FIXED_ODDS\"\n        }\n      ]\n    }\n  }\n]","options":{"raw":{"language":"json"}}},"url":{"raw":"https://betright.racebookhq.com/api/host/decision/adjust","protocol":"https","host":["betright","racebookhq","com"],"path":["api","host","decision","adjust"],"query":[{"key":"","value":"","disabled":true},{"key":null,"value":"","type":"text","disabled":true}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"aba3915b-de18-4656-a397-15ce5b784919"}],"id":"ff45c194-7c54-4d48-9c5f-57cdc2a940db","description":"<p>The Bet Decision Tool has been provided to BetRight to accept betslip information from BetRight and to provide recommendations on each bet according to liability management, profiling and bet data.</p>\n<p>This tool is used in conjunction with the Bet Limit API, Bet Decision API and the Record function that collects bet information to ensure integrity in the recommendation provided.</p>\n<p>Please note that this is the only datapoint available to be used for testing purposes.</p>\n","_postman_id":"ff45c194-7c54-4d48-9c5f-57cdc2a940db"}]}