POST api/Pay
Request Information
URI Parameters
None.
Body Parameters
PaymentRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| orderNo | string |
None. |
|
| price | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"orderNo": "sample string 1",
"price": 2.0
}
application/xml, text/xml
Sample:
<PaymentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AICardKioskPayment.Models"> <orderNo>sample string 1</orderNo> <price>2</price> </PaymentRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PaymentResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| url | string |
None. |
|
| isError | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"url": "sample string 1",
"isError": true
}
application/xml, text/xml
Sample:
<PaymentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AICardKioskPayment.Models"> <isError>true</isError> <url>sample string 1</url> </PaymentResponse>