POST PromotionController/PurchasePromotion
Request Information
URI Parameters
None.
Body Parameters
PromotionRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| IdPromotion | integer |
None. |
|
| OperadorID | integer |
None. |
|
| Amount | decimal number |
None. |
|
| phone | string |
None. |
|
| Operador | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"IdPromotion": 1,
"OperadorID": 2,
"Amount": 3.0,
"phone": "sample string 4",
"Operador": "sample string 5"
}
application/xml, text/xml
Sample:
<PromotionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Recargate.Models"> <Amount>3</Amount> <IdPromotion>1</IdPromotion> <Operador>sample string 5</Operador> <OperadorID>2</OperadorID> <phone>sample string 4</phone> </PromotionRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
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. |