POST api/subscription/create
Create a subscription
Request Information
URI Parameters
None.
Body Parameters
Specify the data of the transaction
createsubscriptionargumentsName | Description | Type | Additional information |
---|---|---|---|
productcode |
The product code of the subscription |
string |
None. |
licenceplate |
The licenceplate |
string |
None. |
The email address |
string |
None. |
|
taxi |
taxi indicator |
boolean |
None. |
campaigncode |
campaign code for discount (optional) |
string |
None. |
confirm |
confirm transaction otherwise recalc |
boolean |
None. |
returnurl |
return url |
string |
None. |
returnurlerror |
return url in case of error |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "productcode": "sample string 1", "licenceplate": "sample string 2", "email": "sample string 3", "taxi": true, "campaigncode": "sample string 5", "confirm": true, "returnurl": "sample string 7", "returnurlerror": "sample string 8" }
application/xml, text/xml
Sample:
<createsubscriptionarguments xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechnoDataSystems.Enterprise.TotalWash.Web.API"> <campaigncode>sample string 5</campaigncode> <confirm>true</confirm> <email>sample string 3</email> <licenceplate>sample string 2</licenceplate> <productcode>sample string 1</productcode> <returnurl>sample string 7</returnurl> <returnurlerror>sample string 8</returnurlerror> <taxi>true</taxi> </createsubscriptionarguments>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
The result of this action
createsubscriptionargumentsName | Description | Type | Additional information |
---|---|---|---|
productcode |
The product code of the subscription |
string |
None. |
licenceplate |
The licenceplate |
string |
None. |
The email address |
string |
None. |
|
taxi |
taxi indicator |
boolean |
None. |
campaigncode |
campaign code for discount (optional) |
string |
None. |
confirm |
confirm transaction otherwise recalc |
boolean |
None. |
returnurl |
return url |
string |
None. |
returnurlerror |
return url in case of error |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "productcode": "sample string 1", "licenceplate": "sample string 2", "email": "sample string 3", "taxi": true, "campaigncode": "sample string 5", "confirm": true, "returnurl": "sample string 7", "returnurlerror": "sample string 8" }
application/xml, text/xml
Sample:
<createsubscriptionarguments xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechnoDataSystems.Enterprise.TotalWash.Web.API"> <campaigncode>sample string 5</campaigncode> <confirm>true</confirm> <email>sample string 3</email> <licenceplate>sample string 2</licenceplate> <productcode>sample string 1</productcode> <returnurl>sample string 7</returnurl> <returnurlerror>sample string 8</returnurlerror> <taxi>true</taxi> </createsubscriptionarguments>