POST api/customers/vend
Request Information
URI Parameters
None.
Body Parameters
MyCronVendRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| meterNumber | string |
None. |
|
| amount | decimal number |
None. |
|
| referenceId | globally unique identifier |
None. |
|
| paymentMethod | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"meterNumber": "sample string 1",
"amount": 2.0,
"referenceId": "aa942674-0511-4185-965a-ed35189672a1",
"paymentMethod": 1
}
application/xml, text/xml
Sample:
<MyCronVendRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Areas.HelpPage.Models"> <amount>2</amount> <meterNumber>sample string 1</meterNumber> <paymentMethod>1</paymentMethod> <referenceId>aa942674-0511-4185-965a-ed35189672a1</referenceId> </MyCronVendRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
MyCronVendResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| status | string |
None. |
|
| code | integer |
None. |
|
| transactionId | globally unique identifier |
None. |
|
| referenceId | globally unique identifier |
None. |
|
| statusMessage | string |
None. |
|
| data | Object |
None. |
|
| errors | Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": "sample string 1",
"code": 2,
"transactionId": "d03ed810-ef20-4445-88d3-963904296aea",
"referenceId": "c49965cb-7833-4d4f-b77a-1de7b70aea8d",
"statusMessage": "sample string 3",
"data": {},
"errors": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
Sample:
<MyCronVendResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Areas.HelpPage.Models">
<code>2</code>
<data />
<errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</errors>
<referenceId>c49965cb-7833-4d4f-b77a-1de7b70aea8d</referenceId>
<status>sample string 1</status>
<statusMessage>sample string 3</statusMessage>
<transactionId>d03ed810-ef20-4445-88d3-963904296aea</transactionId>
</MyCronVendResponse>