POST api/orders/process-voucher-payment
Request Information
URI Parameters
None.
Body Parameters
VoucherPaymentRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| VoucherCode | string |
None. |
|
| SaleOrderID | integer |
None. |
|
| PaymentAmount | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"VoucherCode": "sample string 1",
"SaleOrderID": 2,
"PaymentAmount": 3.0
}
application/xml, text/xml
Sample:
<VoucherPaymentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SocoPesa_MpesaCallbackAPI.Controllers"> <PaymentAmount>3</PaymentAmount> <SaleOrderID>2</SaleOrderID> <VoucherCode>sample string 1</VoucherCode> </VoucherPaymentRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.