POST api/v1/billing/rules
Request Information
URI Parameters
None.
Body Parameters
BillingRuleDetails| Name | Description | Type | Additional information |
|---|---|---|---|
| BillingRuleId | globally unique identifier |
None. |
|
| BillingRuleTypeName | string |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| IsForGliderFlights | boolean |
None. |
|
| IsForTowFlights | boolean |
None. |
|
| IsForMotorFlights | boolean |
None. |
|
| NegateListedAircraft | boolean |
None. |
|
| NegateListedStartTypes | boolean |
None. |
|
| NegateListedUsers | boolean |
None. |
|
| NegateListedFlightTypes | boolean |
None. |
|
| MinFlightTime | integer |
None. |
|
| MaxFlightTime | integer |
None. |
|
| MinReleaseHeight | integer |
None. |
|
| MaxReleaseHeight | integer |
None. |
|
| RuleData | string |
None. |
|
| IsCumulative | boolean |
None. |
|
| MatchedAircraft | Collection of globally unique identifier |
None. |
|
| MatchedStartTypes | Collection of integer |
None. |
|
| MatchedUsers | Collection of globally unique identifier |
None. |
|
| MatchedFlightTypes | Collection of globally unique identifier |
None. |
|
| Id | globally unique identifier |
None. |
|
| CanUpdateRecord | boolean |
None. |
|
| CanDeleteRecord | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"BillingRuleId": "d6a24166-92ba-4c53-9d75-7509fa2967ce",
"BillingRuleTypeName": "sample string 2",
"Name": "sample string 3",
"Description": "sample string 4",
"IsForGliderFlights": true,
"IsForTowFlights": true,
"IsForMotorFlights": true,
"NegateListedAircraft": true,
"NegateListedStartTypes": true,
"NegateListedUsers": true,
"NegateListedFlightTypes": true,
"MinFlightTime": 1,
"MaxFlightTime": 1,
"MinReleaseHeight": 1,
"MaxReleaseHeight": 1,
"RuleData": "sample string 12",
"IsCumulative": true,
"MatchedAircraft": [
"dbddd16c-6a7d-4e63-b720-5381b2cb8b74",
"772e464f-a37c-40c0-9fec-a57bbc875157"
],
"MatchedStartTypes": [
1,
2
],
"MatchedUsers": [
"f6592adb-4620-4bed-b8ba-fa6b90aed20e",
"f12e61d3-27a7-45c3-968b-36da2a113fe9"
],
"MatchedFlightTypes": [
"11ea3698-03b0-4c93-869f-283612768d6f",
"0b5b7dbb-1508-4edc-837b-34d3a0f2b90d"
],
"Id": "d6a24166-92ba-4c53-9d75-7509fa2967ce",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"BillingRuleId":"d6a24166-92ba-4c53-9d75-7509fa2967ce","BillingRuleTypeName":"sample string 2","Name":"sample string 3","Description":"sample string 4","IsForGliderFlights":true,"IsForTowFlights":true,"IsForMotorFlights":true,"NegateListedAircraft":true,"NegateListedStartTypes":true,"NegateListedUsers":true,"NegateListedFlightTypes":true,"MinFlightTime":1,"MaxFlightTime":1,"MinReleaseHeight":1,"MaxReleaseHeight":1,"RuleData":"sample string 12","IsCumulative":true,"MatchedAircraft":["dbddd16c-6a7d-4e63-b720-5381b2cb8b74","772e464f-a37c-40c0-9fec-a57bbc875157"],"MatchedStartTypes":[1,2],"MatchedUsers":["f6592adb-4620-4bed-b8ba-fa6b90aed20e","f12e61d3-27a7-45c3-968b-36da2a113fe9"],"MatchedFlightTypes":["11ea3698-03b0-4c93-869f-283612768d6f","0b5b7dbb-1508-4edc-837b-34d3a0f2b90d"],"Id":"d6a24166-92ba-4c53-9d75-7509fa2967ce","CanUpdateRecord":true,"CanDeleteRecord":true}
application/xml, text/xml
Sample:
<BillingRuleDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.Billings">
<CanDeleteRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanDeleteRecord>
<CanUpdateRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanUpdateRecord>
<Id xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">d6a24166-92ba-4c53-9d75-7509fa2967ce</Id>
<BillingRuleId>d6a24166-92ba-4c53-9d75-7509fa2967ce</BillingRuleId>
<BillingRuleTypeName>sample string 2</BillingRuleTypeName>
<Description>sample string 4</Description>
<IsCumulative>true</IsCumulative>
<IsForGliderFlights>true</IsForGliderFlights>
<IsForMotorFlights>true</IsForMotorFlights>
<IsForTowFlights>true</IsForTowFlights>
<MatchedAircraft xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>dbddd16c-6a7d-4e63-b720-5381b2cb8b74</d2p1:guid>
<d2p1:guid>772e464f-a37c-40c0-9fec-a57bbc875157</d2p1:guid>
</MatchedAircraft>
<MatchedFlightTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>11ea3698-03b0-4c93-869f-283612768d6f</d2p1:guid>
<d2p1:guid>0b5b7dbb-1508-4edc-837b-34d3a0f2b90d</d2p1:guid>
</MatchedFlightTypes>
<MatchedStartTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</MatchedStartTypes>
<MatchedUsers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>f6592adb-4620-4bed-b8ba-fa6b90aed20e</d2p1:guid>
<d2p1:guid>f12e61d3-27a7-45c3-968b-36da2a113fe9</d2p1:guid>
</MatchedUsers>
<MaxFlightTime>1</MaxFlightTime>
<MaxReleaseHeight>1</MaxReleaseHeight>
<MinFlightTime>1</MinFlightTime>
<MinReleaseHeight>1</MinReleaseHeight>
<Name>sample string 3</Name>
<NegateListedAircraft>true</NegateListedAircraft>
<NegateListedFlightTypes>true</NegateListedFlightTypes>
<NegateListedStartTypes>true</NegateListedStartTypes>
<NegateListedUsers>true</NegateListedUsers>
<RuleData>sample string 12</RuleData>
</BillingRuleDetails>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
BillingRuleDetails| Name | Description | Type | Additional information |
|---|---|---|---|
| BillingRuleId | globally unique identifier |
None. |
|
| BillingRuleTypeName | string |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| IsForGliderFlights | boolean |
None. |
|
| IsForTowFlights | boolean |
None. |
|
| IsForMotorFlights | boolean |
None. |
|
| NegateListedAircraft | boolean |
None. |
|
| NegateListedStartTypes | boolean |
None. |
|
| NegateListedUsers | boolean |
None. |
|
| NegateListedFlightTypes | boolean |
None. |
|
| MinFlightTime | integer |
None. |
|
| MaxFlightTime | integer |
None. |
|
| MinReleaseHeight | integer |
None. |
|
| MaxReleaseHeight | integer |
None. |
|
| RuleData | string |
None. |
|
| IsCumulative | boolean |
None. |
|
| MatchedAircraft | Collection of globally unique identifier |
None. |
|
| MatchedStartTypes | Collection of integer |
None. |
|
| MatchedUsers | Collection of globally unique identifier |
None. |
|
| MatchedFlightTypes | Collection of globally unique identifier |
None. |
|
| Id | globally unique identifier |
None. |
|
| CanUpdateRecord | boolean |
None. |
|
| CanDeleteRecord | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"BillingRuleId": "3c88454a-f078-485d-8c6f-459e38259eb0",
"BillingRuleTypeName": "sample string 2",
"Name": "sample string 3",
"Description": "sample string 4",
"IsForGliderFlights": true,
"IsForTowFlights": true,
"IsForMotorFlights": true,
"NegateListedAircraft": true,
"NegateListedStartTypes": true,
"NegateListedUsers": true,
"NegateListedFlightTypes": true,
"MinFlightTime": 1,
"MaxFlightTime": 1,
"MinReleaseHeight": 1,
"MaxReleaseHeight": 1,
"RuleData": "sample string 12",
"IsCumulative": true,
"MatchedAircraft": [
"cb50e75d-4923-4b31-b76d-da9658432e04",
"9fd0fdbe-c679-403b-82ed-da6fc5a2fb14"
],
"MatchedStartTypes": [
1,
2
],
"MatchedUsers": [
"d2be5b0d-ce76-4761-9a4b-330b56c4b0a5",
"3d7df709-a65a-45b8-a98b-7e80acf449ce"
],
"MatchedFlightTypes": [
"f6556331-406c-426f-96b1-909ebd606c66",
"628665a5-44a6-4e31-8a68-3316bcc35fcd"
],
"Id": "3c88454a-f078-485d-8c6f-459e38259eb0",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"BillingRuleId":"3c88454a-f078-485d-8c6f-459e38259eb0","BillingRuleTypeName":"sample string 2","Name":"sample string 3","Description":"sample string 4","IsForGliderFlights":true,"IsForTowFlights":true,"IsForMotorFlights":true,"NegateListedAircraft":true,"NegateListedStartTypes":true,"NegateListedUsers":true,"NegateListedFlightTypes":true,"MinFlightTime":1,"MaxFlightTime":1,"MinReleaseHeight":1,"MaxReleaseHeight":1,"RuleData":"sample string 12","IsCumulative":true,"MatchedAircraft":["cb50e75d-4923-4b31-b76d-da9658432e04","9fd0fdbe-c679-403b-82ed-da6fc5a2fb14"],"MatchedStartTypes":[1,2],"MatchedUsers":["d2be5b0d-ce76-4761-9a4b-330b56c4b0a5","3d7df709-a65a-45b8-a98b-7e80acf449ce"],"MatchedFlightTypes":["f6556331-406c-426f-96b1-909ebd606c66","628665a5-44a6-4e31-8a68-3316bcc35fcd"],"Id":"3c88454a-f078-485d-8c6f-459e38259eb0","CanUpdateRecord":true,"CanDeleteRecord":true}
application/xml, text/xml
Sample:
<BillingRuleDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.Billings">
<CanDeleteRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanDeleteRecord>
<CanUpdateRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanUpdateRecord>
<Id xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">3c88454a-f078-485d-8c6f-459e38259eb0</Id>
<BillingRuleId>3c88454a-f078-485d-8c6f-459e38259eb0</BillingRuleId>
<BillingRuleTypeName>sample string 2</BillingRuleTypeName>
<Description>sample string 4</Description>
<IsCumulative>true</IsCumulative>
<IsForGliderFlights>true</IsForGliderFlights>
<IsForMotorFlights>true</IsForMotorFlights>
<IsForTowFlights>true</IsForTowFlights>
<MatchedAircraft xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>cb50e75d-4923-4b31-b76d-da9658432e04</d2p1:guid>
<d2p1:guid>9fd0fdbe-c679-403b-82ed-da6fc5a2fb14</d2p1:guid>
</MatchedAircraft>
<MatchedFlightTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>f6556331-406c-426f-96b1-909ebd606c66</d2p1:guid>
<d2p1:guid>628665a5-44a6-4e31-8a68-3316bcc35fcd</d2p1:guid>
</MatchedFlightTypes>
<MatchedStartTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</MatchedStartTypes>
<MatchedUsers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>d2be5b0d-ce76-4761-9a4b-330b56c4b0a5</d2p1:guid>
<d2p1:guid>3d7df709-a65a-45b8-a98b-7e80acf449ce</d2p1:guid>
</MatchedUsers>
<MaxFlightTime>1</MaxFlightTime>
<MaxReleaseHeight>1</MaxReleaseHeight>
<MinFlightTime>1</MinFlightTime>
<MinReleaseHeight>1</MinReleaseHeight>
<Name>sample string 3</Name>
<NegateListedAircraft>true</NegateListedAircraft>
<NegateListedFlightTypes>true</NegateListedFlightTypes>
<NegateListedStartTypes>true</NegateListedStartTypes>
<NegateListedUsers>true</NegateListedUsers>
<RuleData>sample string 12</RuleData>
</BillingRuleDetails>