{ "uuid": "ce34b56e-7422-415e-ac85-fff41b1acfbe", "lastMigration": 29, "name": "Bets API", "endpointPrefix": "v2/bets", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "1e119026-2f6d-455a-b7fc-cab48d0f3196", "documentation": "Places a multiple or a complex bet.", "method": "post", "endpoint": "bet/complex", "responses": [ { "uuid": "554d35c8-aae8-4a39-bbc1-d60a695398fe", "body": "[\n {\n \"id\": \"\",\n \"numLines\": {{faker 'number.int' max=99999}},\n \"number\": {{faker 'number.int' max=99999}},\n \"placedDateTime\": \"\",\n \"receipt\": \"\",\n \"totalStake\": {{faker 'number.float'}}\n }\n]", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "19c28296-9503-49f8-8780-74b8b1c78367", "body": "[\n {\n \"delayPeriodSeconds\": {{faker 'number.int' max=99999}},\n \"delayedBetId\": \"\",\n \"id\": \"\",\n \"number\": {{faker 'number.int' max=99999}}\n }\n]", "latency": 0, "statusCode": 202, "label": "Delayed", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "3322d996-1fa5-40b8-8451-1154e07edb31", "body": "{\n \"errors\": [\n {\n \"code\": \"\",\n \"field\": \"\",\n \"message\": \"\",\n \"solution\": {\n \"betNum\": \"\",\n \"eventId\": \"\",\n \"handicap\": \"\",\n \"handicapPrecision\": \"\",\n \"priceDen\": \"\",\n \"priceNum\": \"\",\n \"selectionHandicap\": \"\",\n \"selectionId\": \"\"\n }\n }\n ]\n}", "latency": 0, "statusCode": 400, "label": "Errors", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "54c85cf1-25cc-4c81-836c-77cf334d7000", "documentation": "Places a single bet", "method": "post", "endpoint": "bet/single", "responses": [ { "uuid": "70e86414-56ed-4eab-993f-c7423a4c8eb2", "body": "[\n {\n \"id\": \"\",\n \"numLines\": {{faker 'number.int' max=99999}},\n \"number\": {{faker 'number.int' max=99999}},\n \"placedDateTime\": \"\",\n \"receipt\": \"\",\n \"totalStake\": {{faker 'number.float'}}\n }\n]", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "52a737f5-bc18-4c3c-aeba-02601f2aefa5", "body": "[\n {\n \"delayPeriodSeconds\": {{faker 'number.int' max=99999}},\n \"delayedBetId\": \"\",\n \"id\": \"\",\n \"number\": {{faker 'number.int' max=99999}}\n }\n]", "latency": 0, "statusCode": 202, "label": "Delayed", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "5a935c7c-19fe-4153-aede-3fcbedfa6823", "body": "{\n \"errors\": [\n {\n \"code\": \"\",\n \"field\": \"\",\n \"message\": \"\",\n \"solution\": {\n \"betNum\": \"\",\n \"eventId\": \"\",\n \"handicap\": \"\",\n \"handicapPrecision\": \"\",\n \"priceDen\": \"\",\n \"priceNum\": \"\",\n \"selectionHandicap\": \"\",\n \"selectionId\": \"\"\n }\n }\n ]\n}", "latency": 0, "statusCode": 400, "label": "Errors", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "48364aa2-5346-4d53-9f87-81384a4508c0", "documentation": "Organises the betslip when one or more selections are made. It returns a bet slip structure organised by betting opportunities.", "method": "post", "endpoint": "betslips", "responses": [ { "uuid": "3e7e1ee3-939b-40ea-9bce-525aac743a58", "body": "{\n \"betslip\": [\n {\n \"betMultiplier\": {{faker 'number.int' max=99999}},\n \"freeBets\": [\n {\n \"awardDateTime\": \"\",\n \"displayText\": \"\",\n \"expiryDateTime\": \"\",\n \"id\": {{faker 'number.int' max=99999}},\n \"offerDesc\": \"\",\n \"offerId\": {{faker 'number.int' max=99999}},\n \"offerName\": \"\",\n \"startDateTime\": \"\",\n \"value\": {{faker 'number.int' max=99999}}\n }\n ],\n \"legs\": [\n {\n \"parts\": [\n {\n \"eachWayAvailable\": {{faker 'datatype.boolean'}},\n \"includeInMultiple\": {{faker 'datatype.boolean'}},\n \"legGroup\": {{faker 'number.int' max=99999}},\n \"priceChanged\": {{faker 'datatype.boolean'}},\n \"priceDen\": {{faker 'number.int' max=99999}},\n \"priceNum\": {{faker 'number.int' max=99999}},\n \"priceType\": {{faker 'number.int' max=99999}},\n \"selectionId\": {{faker 'number.int' max=99999}},\n \"singleAvailable\": {{faker 'datatype.boolean'}},\n \"startingPriceAvailable\": {{faker 'datatype.boolean'}},\n \"status\": \"\",\n \"statusChanged\": {{faker 'datatype.boolean'}}\n }\n ],\n \"sort\": \"\",\n \"type\": \"\"\n }\n ],\n \"maxStake\": {{faker 'number.float'}},\n \"minStake\": {{faker 'number.float'}},\n \"numLines\": {{faker 'number.int' max=99999}},\n \"number\": {{faker 'number.int' max=99999}},\n \"typeCode\": \"\",\n \"typeName\": \"\"\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "d36d9670-727c-4916-9b8a-8503aebf2007", "documentation": "Returns available free bets", "method": "get", "endpoint": "freebets", "responses": [ { "uuid": "1b66aa92-fa45-46f4-abf7-513cfc63cf92", "body": "[\n {\n \"awardDateTime\": \"\",\n \"displayText\": \"\",\n \"expiryDateTime\": \"\",\n \"id\": {{faker 'number.int' max=99999}},\n \"offerDesc\": \"\",\n \"offerId\": {{faker 'number.int' max=99999}},\n \"offerName\": \"\",\n \"startDateTime\": \"\",\n \"value\": {{faker 'number.int' max=99999}}\n }\n]", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "cba60b3f-86b9-48ea-9f4c-21c8a964dff0", "body": "", "latency": 0, "statusCode": 204, "label": "No Free Bets", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "cf797fa9-f773-45b2-8581-5551d9ec33db", "documentation": "Retrieves the customer’s bet history.", "method": "get", "endpoint": "history", "responses": [ { "uuid": "3e56e67a-7b98-4706-a586-2e3d69cb80b0", "body": "{\n \"bets\": [\n {\n \"cashinValue\": {{faker 'number.float'}},\n \"estimatedReturns\": {{faker 'number.float'}},\n \"freeBetValue\": {{faker 'number.float'}},\n \"id\": \"\",\n \"legs\": [\n {\n \"number\": {{faker 'number.int' max=99999}},\n \"parts\": [\n {\n \"description\": \"\",\n \"eachWayDen\": {{faker 'number.int' max=99999}},\n \"eachWayNum\": {{faker 'number.int' max=99999}},\n \"eachWayPlaces\": {{faker 'number.int' max=99999}},\n \"eventDescription\": \"\",\n \"eventId\": \"\",\n \"eventMarketDescription\": \"\",\n \"eventTypeDescription\": \"\",\n \"handicap\": {{faker 'number.float'}},\n \"number\": {{faker 'number.int' max=99999}},\n \"priceDen\": {{faker 'number.int' max=99999}},\n \"priceFormatted\": {\n \"american\": \"\",\n \"decimal\": {{faker 'number.float'}},\n \"fractional\": \"\"\n },\n \"priceNum\": {{faker 'number.int' max=99999}},\n \"priceType\": \"\",\n \"result\": \"\",\n \"rule4Deductions\": {{faker 'number.float'}},\n \"selectionId\": \"\",\n \"startDateTime\": \"\"\n }\n ],\n \"sort\": \"\",\n \"type\": \"\"\n }\n ],\n \"numLines\": {{faker 'number.int' max=99999}},\n \"numSelections\": {{faker 'number.int' max=99999}},\n \"receipt\": \"\",\n \"settled\": {{faker 'datatype.boolean'}},\n \"stake\": {{faker 'number.float'}},\n \"stakePerLine\": {{faker 'number.float'}},\n \"status\": \"\",\n \"transDateTime\": \"\",\n \"typeCode\": \"\",\n \"typeName\": \"\",\n \"winnings\": {{faker 'number.float'}}\n }\n ]\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "1124eed9-47c0-47f7-83bf-192481d299c8", "body": "{\n \"errors\": [\n {\n \"code\": \"\",\n \"field\": \"\",\n \"message\": \"\",\n \"solution\": {\n \"betNum\": \"\",\n \"eventId\": \"\",\n \"handicap\": \"\",\n \"handicapPrecision\": \"\",\n \"priceDen\": \"\",\n \"priceNum\": \"\",\n \"selectionHandicap\": \"\",\n \"selectionId\": \"\"\n }\n }\n ]\n}", "latency": 0, "statusCode": 404, "label": "Error", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "e1c49ab9-5360-4719-9b73-534d3d3793d8", "documentation": "Allows a trusted application to cash in a bet (take a return on a bet) on behalf of the customer", "method": "put", "endpoint": ":betId/cashin", "responses": [ { "uuid": "2c3d64e4-c981-41d3-b58b-995f31588548", "body": "{\n \"success\": {{faker 'datatype.boolean'}}\n}", "latency": 0, "statusCode": 200, "label": "Success", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "3cfceee3-4551-4f09-8aa5-1eeae0265a7f", "body": "{\n \"errors\": [\n {\n \"code\": \"\",\n \"field\": \"\",\n \"message\": \"\",\n \"solution\": {\n \"betNum\": \"\",\n \"eventId\": \"\",\n \"handicap\": \"\",\n \"handicapPrecision\": \"\",\n \"priceDen\": \"\",\n \"priceNum\": \"\",\n \"selectionHandicap\": \"\",\n \"selectionId\": \"\"\n }\n }\n ]\n}", "latency": 0, "statusCode": 400, "label": "Errors", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" }, { "uuid": "dd15e4bb-153f-4445-bf07-ece5e8afa97d", "body": "{\n \"errors\": [\n {\n \"code\": \"\",\n \"field\": \"\",\n \"message\": \"\",\n \"solution\": {\n \"betNum\": \"\",\n \"eventId\": \"\",\n \"handicap\": \"\",\n \"handicapPrecision\": \"\",\n \"priceDen\": \"\",\n \"priceNum\": \"\",\n \"selectionHandicap\": \"\",\n \"selectionId\": \"\"\n }\n }\n ]\n}", "latency": 0, "statusCode": 409, "label": "Errors", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [{ "key": "", "value": "" }], "proxyResHeaders": [{ "key": "", "value": "" }], "data": [], "folders": [], "rootChildren": [ { "type": "route", "uuid": "1e119026-2f6d-455a-b7fc-cab48d0f3196" }, { "type": "route", "uuid": "54c85cf1-25cc-4c81-836c-77cf334d7000" }, { "type": "route", "uuid": "48364aa2-5346-4d53-9f87-81384a4508c0" }, { "type": "route", "uuid": "d36d9670-727c-4916-9b8a-8503aebf2007" }, { "type": "route", "uuid": "cf797fa9-f773-45b2-8581-5551d9ec33db" }, { "type": "route", "uuid": "e1c49ab9-5360-4719-9b73-534d3d3793d8" } ] }