POST api/v1/billing/rules
Request Information
URI Parameters
None.
Body Parameters
BillingRuleDetailsName | 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": "977b9ae5-8554-4f2e-a780-ca1c36386784", "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": [ "e065a928-c12a-4687-b28c-842def86d2dc", "82d31f68-1e8d-4fab-8319-05269daacdda" ], "MatchedStartTypes": [ 1, 2 ], "MatchedUsers": [ "0d826a87-b61d-4cb1-aceb-accf53f71ab5", "ec4e49bd-605d-4a44-9bb2-6989088a53a1" ], "MatchedFlightTypes": [ "4a3b8fe4-6ee3-4353-8331-4747696e43a8", "1eb66180-e4b1-4998-a113-4fe15bdb861d" ], "Id": "977b9ae5-8554-4f2e-a780-ca1c36386784", "CanUpdateRecord": true, "CanDeleteRecord": true }
text/html
Sample:
{"BillingRuleId":"977b9ae5-8554-4f2e-a780-ca1c36386784","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":["e065a928-c12a-4687-b28c-842def86d2dc","82d31f68-1e8d-4fab-8319-05269daacdda"],"MatchedStartTypes":[1,2],"MatchedUsers":["0d826a87-b61d-4cb1-aceb-accf53f71ab5","ec4e49bd-605d-4a44-9bb2-6989088a53a1"],"MatchedFlightTypes":["4a3b8fe4-6ee3-4353-8331-4747696e43a8","1eb66180-e4b1-4998-a113-4fe15bdb861d"],"Id":"977b9ae5-8554-4f2e-a780-ca1c36386784","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">977b9ae5-8554-4f2e-a780-ca1c36386784</Id> <BillingRuleId>977b9ae5-8554-4f2e-a780-ca1c36386784</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>e065a928-c12a-4687-b28c-842def86d2dc</d2p1:guid> <d2p1:guid>82d31f68-1e8d-4fab-8319-05269daacdda</d2p1:guid> </MatchedAircraft> <MatchedFlightTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>4a3b8fe4-6ee3-4353-8331-4747696e43a8</d2p1:guid> <d2p1:guid>1eb66180-e4b1-4998-a113-4fe15bdb861d</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>0d826a87-b61d-4cb1-aceb-accf53f71ab5</d2p1:guid> <d2p1:guid>ec4e49bd-605d-4a44-9bb2-6989088a53a1</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
BillingRuleDetailsName | 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": "ff156834-a823-4d06-a964-9f00b35a8d36", "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": [ "796892e6-144d-4888-bcb9-4307f604e725", "e8e3d755-5a0a-4804-969f-1148e5ce16b5" ], "MatchedStartTypes": [ 1, 2 ], "MatchedUsers": [ "9075ef13-5e1c-4bb7-94fb-f0385cec35c2", "4aac997f-c74b-4a2b-ba5d-08139eabfe5e" ], "MatchedFlightTypes": [ "30ce5c9b-7b4d-4483-ac0b-0e550d1db01f", "187c1908-5c27-4b99-b6b5-5186ea94a273" ], "Id": "ff156834-a823-4d06-a964-9f00b35a8d36", "CanUpdateRecord": true, "CanDeleteRecord": true }
text/html
Sample:
{"BillingRuleId":"ff156834-a823-4d06-a964-9f00b35a8d36","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":["796892e6-144d-4888-bcb9-4307f604e725","e8e3d755-5a0a-4804-969f-1148e5ce16b5"],"MatchedStartTypes":[1,2],"MatchedUsers":["9075ef13-5e1c-4bb7-94fb-f0385cec35c2","4aac997f-c74b-4a2b-ba5d-08139eabfe5e"],"MatchedFlightTypes":["30ce5c9b-7b4d-4483-ac0b-0e550d1db01f","187c1908-5c27-4b99-b6b5-5186ea94a273"],"Id":"ff156834-a823-4d06-a964-9f00b35a8d36","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">ff156834-a823-4d06-a964-9f00b35a8d36</Id> <BillingRuleId>ff156834-a823-4d06-a964-9f00b35a8d36</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>796892e6-144d-4888-bcb9-4307f604e725</d2p1:guid> <d2p1:guid>e8e3d755-5a0a-4804-969f-1148e5ce16b5</d2p1:guid> </MatchedAircraft> <MatchedFlightTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>30ce5c9b-7b4d-4483-ac0b-0e550d1db01f</d2p1:guid> <d2p1:guid>187c1908-5c27-4b99-b6b5-5186ea94a273</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>9075ef13-5e1c-4bb7-94fb-f0385cec35c2</d2p1:guid> <d2p1:guid>4aac997f-c74b-4a2b-ba5d-08139eabfe5e</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>