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": "9193d6b6-dc35-4698-a2cf-65e837e0c470",
"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": [
"5352248a-300b-45ae-b404-30004c9d7ec9",
"620d066c-a280-47ad-8c74-a514a90505ea"
],
"MatchedStartTypes": [
1,
2
],
"MatchedUsers": [
"e1366b26-b18a-4aec-a4fc-756a182a5b88",
"ccf77e65-5d4e-4414-a557-f759c3faccf1"
],
"MatchedFlightTypes": [
"2f0b7b70-402b-4a73-b9dc-4972b0af1bef",
"dc6c6a9e-72f4-4c6c-a3cf-876e5ff75c31"
],
"Id": "9193d6b6-dc35-4698-a2cf-65e837e0c470",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"BillingRuleId":"9193d6b6-dc35-4698-a2cf-65e837e0c470","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":["5352248a-300b-45ae-b404-30004c9d7ec9","620d066c-a280-47ad-8c74-a514a90505ea"],"MatchedStartTypes":[1,2],"MatchedUsers":["e1366b26-b18a-4aec-a4fc-756a182a5b88","ccf77e65-5d4e-4414-a557-f759c3faccf1"],"MatchedFlightTypes":["2f0b7b70-402b-4a73-b9dc-4972b0af1bef","dc6c6a9e-72f4-4c6c-a3cf-876e5ff75c31"],"Id":"9193d6b6-dc35-4698-a2cf-65e837e0c470","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">9193d6b6-dc35-4698-a2cf-65e837e0c470</Id>
<BillingRuleId>9193d6b6-dc35-4698-a2cf-65e837e0c470</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>5352248a-300b-45ae-b404-30004c9d7ec9</d2p1:guid>
<d2p1:guid>620d066c-a280-47ad-8c74-a514a90505ea</d2p1:guid>
</MatchedAircraft>
<MatchedFlightTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>2f0b7b70-402b-4a73-b9dc-4972b0af1bef</d2p1:guid>
<d2p1:guid>dc6c6a9e-72f4-4c6c-a3cf-876e5ff75c31</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>e1366b26-b18a-4aec-a4fc-756a182a5b88</d2p1:guid>
<d2p1:guid>ccf77e65-5d4e-4414-a557-f759c3faccf1</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": "ce52d1ec-0d97-44aa-ba6d-bb273757bbe2",
"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": [
"5eedef12-9710-4afc-b365-fae921d609be",
"80ec2dda-59e8-4121-9721-f12834a34f51"
],
"MatchedStartTypes": [
1,
2
],
"MatchedUsers": [
"9e900e8f-6ca2-46b7-bbce-81e05a008f80",
"d1acac13-21b2-4fe6-8687-fbffea64a2fa"
],
"MatchedFlightTypes": [
"d353d5ac-96d9-4e66-a1ec-333aa5dc200c",
"ebd74ca5-73a2-472f-a809-c5a0218babbc"
],
"Id": "ce52d1ec-0d97-44aa-ba6d-bb273757bbe2",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"BillingRuleId":"ce52d1ec-0d97-44aa-ba6d-bb273757bbe2","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":["5eedef12-9710-4afc-b365-fae921d609be","80ec2dda-59e8-4121-9721-f12834a34f51"],"MatchedStartTypes":[1,2],"MatchedUsers":["9e900e8f-6ca2-46b7-bbce-81e05a008f80","d1acac13-21b2-4fe6-8687-fbffea64a2fa"],"MatchedFlightTypes":["d353d5ac-96d9-4e66-a1ec-333aa5dc200c","ebd74ca5-73a2-472f-a809-c5a0218babbc"],"Id":"ce52d1ec-0d97-44aa-ba6d-bb273757bbe2","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">ce52d1ec-0d97-44aa-ba6d-bb273757bbe2</Id>
<BillingRuleId>ce52d1ec-0d97-44aa-ba6d-bb273757bbe2</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>5eedef12-9710-4afc-b365-fae921d609be</d2p1:guid>
<d2p1:guid>80ec2dda-59e8-4121-9721-f12834a34f51</d2p1:guid>
</MatchedAircraft>
<MatchedFlightTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>d353d5ac-96d9-4e66-a1ec-333aa5dc200c</d2p1:guid>
<d2p1:guid>ebd74ca5-73a2-472f-a809-c5a0218babbc</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>9e900e8f-6ca2-46b7-bbce-81e05a008f80</d2p1:guid>
<d2p1:guid>d1acac13-21b2-4fe6-8687-fbffea64a2fa</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>