POST api/prepaid/createorder
Create an order
Request Information
URI Parameters
None.
Body Parameters
price, cardnumber and email address for this order
prepaidcreateorderargumentsName | Description | Type | Additional information |
---|---|---|---|
price |
The amount to pay for the prepaid order |
decimal number |
None. |
cardnumber |
The cardnumber of the customer |
string |
None. |
The email address of the customer |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "price": 1.0, "cardnumber": "sample string 2", "email": "sample string 3" }
application/xml, text/xml
Sample:
<prepaidcreateorderarguments xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechnoDataSystems.Enterprise.TotalWash.Web.API"> <cardnumber>sample string 2</cardnumber> <email>sample string 3</email> <price>1</price> </prepaidcreateorderarguments>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
A token for futher processing
prepaidcreateorderresultName | Description | Type | Additional information |
---|---|---|---|
success |
Indicates if the action was successfull |
boolean |
None. |
remark |
A description regarding the result |
string |
None. |
token |
The unique token for the order |
string |
None. |
price |
The price for this order |
decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{ "success": true, "remark": "sample string 2", "token": "sample string 3", "price": 4.0 }
application/xml, text/xml
Sample:
<prepaidcreateorderresult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechnoDataSystems.Enterprise.TotalWash.Web.API"> <price>4</price> <remark>sample string 2</remark> <success>true</success> <token>sample string 3</token> </prepaidcreateorderresult>