POST api/MpesaCallback
Request Information
URI Parameters
None.
Body Parameters
MpesaResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Body | StkCallbackBody |
None. |
Request Formats
application/json, text/json
Sample:
{
"Body": {
"stkCallback": {
"MerchantRequestID": "sample string 1",
"CheckoutRequestID": "sample string 2",
"ResultCode": 3,
"ResultDesc": "sample string 4",
"CallbackMetadata": {
"Item": [
{
"Name": "sample string 1",
"Value": {}
},
{
"Name": "sample string 1",
"Value": {}
}
]
}
}
}
}
application/xml, text/xml
Sample:
<MpesaResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SocoPesa_MpesaCallbackAPI.Controllers">
<Body>
<stkCallback>
<CallbackMetadata>
<Item>
<CallbackItem>
<Name>sample string 1</Name>
<Value />
</CallbackItem>
<CallbackItem>
<Name>sample string 1</Name>
<Value />
</CallbackItem>
</Item>
</CallbackMetadata>
<CheckoutRequestID>sample string 2</CheckoutRequestID>
<MerchantRequestID>sample string 1</MerchantRequestID>
<ResultCode>3</ResultCode>
<ResultDesc>sample string 4</ResultDesc>
</stkCallback>
</Body>
</MpesaResponse>
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.