POST Pay
Request Information
URI Parameters
None.
Body Parameters
PayRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Li | LoginInfo |
None. |
|
| SplittedQr | string |
None. |
|
| Price | decimal number |
None. |
|
| TipPrice | decimal number |
None. |
|
| UsedBonus | decimal number |
None. |
|
| CustomerId | integer |
None. |
|
| CustomerName | string |
None. |
|
| string |
None. |
||
| Phone | string |
None. |
|
| CardPrefix | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Li": {
"$id": "2",
"Key": "sample string 1",
"UserName": "sample string 2",
"Pass": "sample string 3"
},
"SplittedQr": "sample string 1",
"Price": 2.1,
"TipPrice": 3.1,
"UsedBonus": 1.1,
"CustomerId": 1,
"CustomerName": "sample string 4",
"Mail": "sample string 5",
"Phone": "sample string 6",
"CardPrefix": "sample string 7"
}
application/xml, text/xml
Sample:
<PayRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Yemek10.HesUp.Entity.Models">
<CardPrefix>sample string 7</CardPrefix>
<CustomerId>1</CustomerId>
<CustomerName>sample string 4</CustomerName>
<Li>
<Key>sample string 1</Key>
<Pass>sample string 3</Pass>
<UserName>sample string 2</UserName>
</Li>
<Mail>sample string 5</Mail>
<Phone>sample string 6</Phone>
<Price>2.1</Price>
<SplittedQr>sample string 1</SplittedQr>
<TipPrice>3.1</TipPrice>
<UsedBonus>1.1</UsedBonus>
</PayRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PayResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Result | ResultType |
None. |
|
| ErrorMessage | string |
None. |
|
| Guid | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Result": 0,
"ErrorMessage": "sample string 1",
"Guid": "sample string 2"
}
application/xml, text/xml
Sample:
<PayResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Yemek10.HesUp.Entity.Models"> <ErrorMessage>sample string 1</ErrorMessage> <Guid>sample string 2</Guid> <Result>False</Result> </PayResult>