POST api/vouchers/confirmorder
Confirm an order
Request Information
URI Parameters
None.
Body Parameters
The token of the order
voucherconfirmorderargumentsName | Description | Type | Additional information |
---|---|---|---|
token |
The token of the order |
string |
None. |
datevalidtil |
The date until the vouchers will be valid, null for unrestricted validity |
date |
None. |
externalmethod |
The identification of the used payment method |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "token": "sample string 1", "datevalidtil": "2024-11-24T12:32:55.2800962+01:00", "externalmethod": "sample string 2" }
application/xml, text/xml
Sample:
<voucherconfirmorderarguments xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechnoDataSystems.Enterprise.TotalWash.Web.API"> <datevalidtil>2024-11-24T12:32:55.2800962+01:00</datevalidtil> <externalmethod>sample string 2</externalmethod> <token>sample string 1</token> </voucherconfirmorderarguments>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
A token for futher processing
voucherconfirmorderresultName | Description | Type | Additional information |
---|---|---|---|
success |
Indicates if the action was successfull |
boolean |
None. |
remark |
A description regarding the result |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "success": true, "remark": "sample string 2" }
application/xml, text/xml
Sample:
<voucherconfirmorderresult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechnoDataSystems.Enterprise.TotalWash.Web.API"> <remark>sample string 2</remark> <success>true</success> </voucherconfirmorderresult>