POST api/Position
Request Information
URI Parameters
None.
Body Parameters
ApiPositionForm| Name | Description | Type | Additional information |
|---|---|---|---|
| DocumentId | globally unique identifier |
None. |
|
| Number | string |
None. |
|
| BetPosition1 | integer |
None. |
|
| BetPosition2 | integer |
None. |
|
| BetPosition3 | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"DocumentId": "54187bfc-beb3-4b6f-8037-861dd6d55f2a",
"Number": "sample string 2",
"BetPosition1": 3,
"BetPosition2": 4,
"BetPosition3": 5
}
application/xml, text/xml
Sample:
<ApiPositionForm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mallami.MiBolita.ModelService"> <BetPosition1>3</BetPosition1> <BetPosition2>4</BetPosition2> <BetPosition3>5</BetPosition3> <DocumentId>54187bfc-beb3-4b6f-8037-861dd6d55f2a</DocumentId> <Number>sample string 2</Number> </ApiPositionForm>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiResponseOfPosition| Name | Description | Type | Additional information |
|---|---|---|---|
| IsInError | boolean |
None. |
|
| ErrorMessage | string |
None. |
|
| IsInWarning | boolean |
None. |
|
| WarningMessage | string |
None. |
|
| Code | integer |
None. |
|
| Message | string |
None. |
|
| Data | Position |
None. |
Response Formats
application/json, text/json
Sample:
{
"IsInError": true,
"ErrorMessage": "sample string 2",
"IsInWarning": true,
"WarningMessage": "sample string 4",
"Code": 5,
"Message": "sample string 6",
"Data": {
"Number": "sample string 1",
"BetPosition1": 2,
"BetPosition2": 3,
"BetPosition3": 4,
"IsPosition1Prize": true,
"IsPosition2Prize": true,
"IsPosition3Prize": true,
"IsInError": true,
"ErrorCode": 9,
"ErrorMessage": "sample string 10",
"IsPosition1Prized": true,
"IsPosition2Prized": true,
"IsPosition3Prized": true,
"IsNumberPrized": true,
"IsNumberPrize": true,
"DocumentID": "ca88419e-167a-4bf6-a873-903e2659bd91",
"TotalBet": 15,
"Prize": 16,
"WinnerNumbers": "sample string 17",
"Notes": "sample string 18",
"PrizeDisplay": "$16",
"ID": "50cec3b8-51bc-48a7-b8a5-e7ff8c6421f0",
"CreatedBy": "sample string 20",
"CreatedDate": "2025-11-30T09:02:31.9002378-08:00",
"UpdatedBy": "sample string 22",
"UpdatedDate": "2025-11-30T09:02:31.9002378-08:00"
}
}
application/xml, text/xml
Sample:
<ApiResponseOfPositionG8jHKvin xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mallami.MiBolita.ModelService">
<Code>5</Code>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Mallami.MiBolita.Model">
<d2p1:CreatedBy>sample string 20</d2p1:CreatedBy>
<d2p1:CreatedDate>2025-11-30T09:02:31.9002378-08:00</d2p1:CreatedDate>
<d2p1:ID>50cec3b8-51bc-48a7-b8a5-e7ff8c6421f0</d2p1:ID>
<d2p1:UpdatedBy>sample string 22</d2p1:UpdatedBy>
<d2p1:UpdatedDate>2025-11-30T09:02:31.9002378-08:00</d2p1:UpdatedDate>
<d2p1:DocumentID>ca88419e-167a-4bf6-a873-903e2659bd91</d2p1:DocumentID>
<d2p1:Notes>sample string 18</d2p1:Notes>
<d2p1:Prize>16</d2p1:Prize>
<d2p1:TotalBet>15</d2p1:TotalBet>
<d2p1:WinnerNumbers>sample string 17</d2p1:WinnerNumbers>
<d2p1:BetPosition1>2</d2p1:BetPosition1>
<d2p1:BetPosition2>3</d2p1:BetPosition2>
<d2p1:BetPosition3>4</d2p1:BetPosition3>
<d2p1:ErrorCode>9</d2p1:ErrorCode>
<d2p1:ErrorMessage>sample string 10</d2p1:ErrorMessage>
<d2p1:IsInError>true</d2p1:IsInError>
<d2p1:IsPosition1Prize>true</d2p1:IsPosition1Prize>
<d2p1:IsPosition2Prize>true</d2p1:IsPosition2Prize>
<d2p1:IsPosition3Prize>true</d2p1:IsPosition3Prize>
<d2p1:Number>sample string 1</d2p1:Number>
</Data>
<ErrorMessage>sample string 2</ErrorMessage>
<IsInError>true</IsInError>
<IsInWarning>true</IsInWarning>
<Message>sample string 6</Message>
<WarningMessage>sample string 4</WarningMessage>
</ApiResponseOfPositionG8jHKvin>