{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/entertainment:whapi-bets/place-complex-bet":{"post":{"operationId":"entertainment_whapi_bets_place_complex_bet","summary":"Places a multiple or a complex bet.","description":"POST /bet/complex","tags":["entertainment"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["apiKey","apiSecret","apiTicket","body"],"properties":{"apiKey":{"type":"string","description":"A unique identifier of your application that is generated by the API portal."},"apiSecret":{"type":"string","description":"Another unique identifier for your application."},"apiTicket":{"type":"string","description":"The ticket obtained from the sessions API"},"fields":{"type":"array","description":"Specify an absolute field list to return (Comma Separated List)"},"include":{"type":"array","description":"Specify fields in addition to the default to return (Comma Separated List)"},"exclude":{"type":"array","description":"Specify fields from the default to exclude (Comma Separated List)"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"live"}},"/v1/entertainment:whapi-bets/place-single-bet":{"post":{"operationId":"entertainment_whapi_bets_place_single_bet","summary":"Places a single bet","description":"POST /bet/single","tags":["entertainment"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["apiKey","apiSecret","apiTicket","body"],"properties":{"apiKey":{"type":"string","description":"A unique identifier of your application that is generated by the API portal."},"apiSecret":{"type":"string","description":"Another unique identifier for your application."},"apiTicket":{"type":"string","description":"The ticket obtained from the sessions API"},"fields":{"type":"array","description":"Specify an absolute field list to return (Comma Separated List)"},"include":{"type":"array","description":"Specify fields in addition to the default to return (Comma Separated List)"},"exclude":{"type":"array","description":"Specify fields from the default to exclude (Comma Separated List)"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"live"}},"/v1/entertainment:whapi-bets/validate-betslip":{"post":{"operationId":"entertainment_whapi_bets_validate_betslip","summary":"Organises the betslip when one or more selections are made. It returns a bet slip structure organised by…","description":"POST /betslips","tags":["entertainment"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["apiKey","apiSecret","body"],"properties":{"apiKey":{"type":"string","description":"A unique identifier of your application that is generated by the API portal."},"apiSecret":{"type":"string","description":"Another unique identifier for your application."},"expanded":{"type":"string","description":"Allows for all bets for given selections to be returned - not just the specified type"},"body":{"type":"object","description":"JSON request body"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"live"}},"/v1/entertainment:whapi-bets/get-free-bets":{"get":{"operationId":"entertainment_whapi_bets_get_free_bets","summary":"Returns available free bets","description":"GET /freebets","tags":["entertainment"],"parameters":[{"name":"apiKey","in":"query","required":true,"description":"A unique identifier of your application that is generated by the API portal.","schema":{"type":"string","description":"A unique identifier of your application that is generated by the API portal."}},{"name":"apiSecret","in":"query","required":true,"description":"Another unique identifier for your application.","schema":{"type":"string","description":"Another unique identifier for your application."}},{"name":"apiTicket","in":"query","required":true,"description":"The ticket obtained from the sessions API","schema":{"type":"string","description":"The ticket obtained from the sessions API"}},{"name":"fields","in":"query","required":false,"description":"Specify an absolute field list to return (Comma Separated List)","schema":{"type":"array","description":"Specify an absolute field list to return (Comma Separated List)"}},{"name":"include","in":"query","required":false,"description":"Specify fields in addition to the default to return (Comma Separated List)","schema":{"type":"array","description":"Specify fields in addition to the default to return (Comma Separated List)"}},{"name":"exclude","in":"query","required":false,"description":"Specify fields from the default to exclude (Comma Separated List)","schema":{"type":"array","description":"Specify fields from the default to exclude (Comma Separated List)"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/entertainment:whapi-bets/get-bet-history":{"get":{"operationId":"entertainment_whapi_bets_get_bet_history","summary":"Retrieves the customer’s bet history.","description":"GET /history","tags":["entertainment"],"parameters":[{"name":"apiKey","in":"query","required":true,"description":"A unique identifier of your application that is generated by the API portal.","schema":{"type":"string","description":"A unique identifier of your application that is generated by the API portal."}},{"name":"apiSecret","in":"query","required":true,"description":"Another unique identifier for your application.","schema":{"type":"string","description":"Another unique identifier for your application."}},{"name":"apiTicket","in":"query","required":true,"description":"The ticket obtained from the sessions API","schema":{"type":"string","description":"The ticket obtained from the sessions API"}},{"name":"dateFrom","in":"query","required":true,"description":"The UTC FROM datetime from bets to be returned. (yyyy-MM-ddTHH:mm:ss)","schema":{"type":"string","description":"The UTC FROM datetime from bets to be returned. (yyyy-MM-ddTHH:mm:ss)"}},{"name":"dateTo","in":"query","required":true,"description":"The UTC TO datetime for bets to be returned. (yyyy-MM-ddTHH:mm:ss)","schema":{"type":"string","description":"The UTC TO datetime for bets to be returned. (yyyy-MM-ddTHH:mm:ss)"}},{"name":"fields","in":"query","required":false,"description":"Specify an absolute field list to return (Comma Separated List)","schema":{"type":"array","description":"Specify an absolute field list to return (Comma Separated List)"}},{"name":"include","in":"query","required":false,"description":"Specify fields in addition to the default to return (Comma Separated List)","schema":{"type":"array","description":"Specify fields in addition to the default to return (Comma Separated List)"}},{"name":"exclude","in":"query","required":false,"description":"Specify fields from the default to exclude (Comma Separated List)","schema":{"type":"array","description":"Specify fields from the default to exclude (Comma Separated List)"}},{"name":"page","in":"query","required":false,"description":"The index of the page to return","schema":{"type":"number","default":1,"description":"The index of the page to return"}},{"name":"pageSize","in":"query","required":false,"description":"The number of results per page","schema":{"type":"number","default":100,"description":"The number of results per page"}},{"name":"sort","in":"query","required":false,"description":"The order the response will be retuned by. i.e. transDateTime,desc. Only transDateTime can be used currently","schema":{"type":"string","default":"transDateTime,asc","description":"The order the response will be retuned by. i.e. transDateTime,desc. Only transDateTime can be used currently"}},{"name":"settled","in":"query","required":false,"description":"Filter by settled bets. If omitted, both settled and unsettled will be returned.","schema":{"type":"boolean","description":"Filter by settled bets. If omitted, both settled and unsettled will be returned."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/entertainment:whapi-bets/cashin":{"post":{"operationId":"entertainment_whapi_bets_cashin","summary":"Allows a trusted application to cash in a bet (take a return on a bet) on behalf of the customer","description":"PUT /{betId}/cashin","tags":["entertainment"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["apiKey","apiSecret","apiTicket","betId","cashInValue","cashinBetDelayId"],"properties":{"apiKey":{"type":"string","description":"A unique identifier of your application that is generated by the API portal."},"apiSecret":{"type":"string","description":"Another unique identifier for your application."},"apiTicket":{"type":"string","description":"The ticket obtained from the sessions API"},"betId":{"type":"string","description":"The identifier of the bet"},"cashInValue":{"type":"number","description":"The cash in value of the bet"},"cashinBetDelayId":{"type":"string","description":"The ID of this bet delay"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"live"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}