POST Chip/Purchase
Request Information
URI Parameters
None.
Body Parameters
ChipPurchaseRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| BankID | integer |
None. |
|
| Voucher | string |
None. |
|
| Date | string |
None. |
|
| Amount | string |
None. |
|
| Quantity | string |
None. |
|
| Detail | Collection of ChipsPackageEN |
None. |
|
| Image | Collection of byte |
None. |
|
| ImgExtension | string |
None. |
|
| Image2 | Collection of byte |
None. |
|
| ImgExtension2 | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"BankID": 2,
"Voucher": "sample string 3",
"Date": "sample string 4",
"Amount": "sample string 5",
"Quantity": "sample string 6",
"Detail": [
{
"PackageID": 1,
"Name": "sample string 2",
"Description": "sample string 3",
"Quantity": 4,
"OperatorID": 5,
"LogoUrl": "sample string 6",
"HexColor": "sample string 7",
"RGBColor": "sample string 8",
"Amount": 9.0,
"MaxQuantity": 10,
"SalesAmount": 11.0,
"OperatorQuantity": 12
},
{
"PackageID": 1,
"Name": "sample string 2",
"Description": "sample string 3",
"Quantity": 4,
"OperatorID": 5,
"LogoUrl": "sample string 6",
"HexColor": "sample string 7",
"RGBColor": "sample string 8",
"Amount": 9.0,
"MaxQuantity": 10,
"SalesAmount": 11.0,
"OperatorQuantity": 12
}
],
"Image": "QEA=",
"ImgExtension": "sample string 7",
"Image2": "QEA=",
"ImgExtension2": "sample string 8"
}
application/xml, text/xml
Sample:
<ChipPurchaseRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YoVendoRecargaAPI.WebAPI.Models">
<Amount>sample string 5</Amount>
<BankID>2</BankID>
<Date>sample string 4</Date>
<Detail xmlns:d2p1="http://schemas.datacontract.org/2004/07/YoVendoRecargaAPI.Entities">
<d2p1:ChipsPackageEN>
<d2p1:Amount>9</d2p1:Amount>
<d2p1:Description>sample string 3</d2p1:Description>
<d2p1:HexColor>sample string 7</d2p1:HexColor>
<d2p1:LogoUrl>sample string 6</d2p1:LogoUrl>
<d2p1:MaxQuantity>10</d2p1:MaxQuantity>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:OperatorID>5</d2p1:OperatorID>
<d2p1:OperatorQuantity>12</d2p1:OperatorQuantity>
<d2p1:PackageID>1</d2p1:PackageID>
<d2p1:Quantity>4</d2p1:Quantity>
<d2p1:RGBColor>sample string 8</d2p1:RGBColor>
<d2p1:SalesAmount>11</d2p1:SalesAmount>
</d2p1:ChipsPackageEN>
<d2p1:ChipsPackageEN>
<d2p1:Amount>9</d2p1:Amount>
<d2p1:Description>sample string 3</d2p1:Description>
<d2p1:HexColor>sample string 7</d2p1:HexColor>
<d2p1:LogoUrl>sample string 6</d2p1:LogoUrl>
<d2p1:MaxQuantity>10</d2p1:MaxQuantity>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:OperatorID>5</d2p1:OperatorID>
<d2p1:OperatorQuantity>12</d2p1:OperatorQuantity>
<d2p1:PackageID>1</d2p1:PackageID>
<d2p1:Quantity>4</d2p1:Quantity>
<d2p1:RGBColor>sample string 8</d2p1:RGBColor>
<d2p1:SalesAmount>11</d2p1:SalesAmount>
</d2p1:ChipsPackageEN>
</Detail>
<Image>QEA=</Image>
<Image2>QEA=</Image2>
<ImgExtension>sample string 7</ImgExtension>
<ImgExtension2>sample string 8</ImgExtension2>
<Name>sample string 1</Name>
<Quantity>sample string 6</Quantity>
<Voucher>sample string 3</Voucher>
</ChipPurchaseRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |