-
Notifications
You must be signed in to change notification settings - Fork 14
/
customerapi-oas.yaml
106 lines (99 loc) · 2.74 KB
/
customerapi-oas.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
swagger: '2.0'
info:
version: 1.0.0
title: Pinnacle - Customer API Reference
description: |
# Authentication
Please note that API has restriction that client password can be maximum up 10 characters long.
API uses HTTP Basic access authentication. You need to send Authorization HTTP Request header:
`Authorization: Basic <Base64 value of UTF-8 encoded "username:password">`
Example:
`Authorization: Basic U03MyOT23YbzMDc6d3c3O1DQ1`
x-logo:
url: 'https://avatars2.githubusercontent.com/u/31601407?s=400&u=f3c6e1cfc8a26665e4a4df6d8da4a7ee527aeceb&v=4'
host: api.pinnacle.com
schemes:
- https
security:
- basicAuth: []
paths:
/v1/client/balance:
get:
summary: Get Client Balance - v1
description: Returns current client balance.
operationId: Client_Balance_V1_Get
consumes: []
produces:
- application/json
- text/json
- application/xml
- text/xml
responses:
'200':
description: OK
schema:
$ref: '#/definitions/ClientBalanceResponse'
'400':
description: BadRequest
schema:
$ref: '#/definitions/ErrorResponse'
'401':
description: Unauthorized
schema:
$ref: '#/definitions/ErrorResponse'
'403':
description: Forbidden
schema:
$ref: '#/definitions/ErrorResponse'
'500':
description: InternalServerError
schema:
$ref: '#/definitions/ExtendedErrorResponse'
deprecated: false
securityDefinitions:
basicAuth:
type: basic
definitions:
ErrorResponse:
type: object
properties:
code:
type: string
description: Identifier representing the type of error that occurred.
message:
type: string
description: Description of the error.
description: Contains details of an error that was encountered.
ExtendedErrorResponse:
type: object
properties:
ref:
type: string
code:
type: string
message:
type: string
ClientBalanceResponse:
description: Client Balance Details
type: object
properties:
availableBalance:
format: double
description: Amount available for betting.
type: number
outstandingTransactions:
format: double
description: Sum of not yet settled bet amounts.
type: number
givenCredit:
format: double
description: Client’s credit.
type: number
currency:
description: Client’s currency code.
type: string
required:
- availableBalance
- outstandingTransactions
- givenCredit
- currency