POST api/v1/billing
Request Information
URI Parameters
None.
Body Parameters
BillingDetails| Name | Description | Type | Additional information |
|---|---|---|---|
| BillingId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| IsForGliderFlights | boolean |
None. |
|
| IsForMotorFlights | boolean |
None. |
|
| IsForTowFlights | boolean |
None. |
|
| Rules | Collection of globally unique identifier |
None. |
|
| CumulativeRules | Collection of globally unique identifier |
None. |
|
| Id | globally unique identifier |
None. |
|
| CanUpdateRecord | boolean |
None. |
|
| CanDeleteRecord | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"BillingId": "bf281092-5465-46c9-ace0-44e78f0118a0",
"Name": "sample string 2",
"Description": "sample string 3",
"IsForGliderFlights": true,
"IsForMotorFlights": true,
"IsForTowFlights": true,
"Rules": [
"49af97f2-ae52-4550-8182-9623613777a1",
"afaf43dd-c1b9-43b5-8490-11e22cec2d68"
],
"CumulativeRules": [
"eef6f62e-ae09-4219-a45b-0707a291359a",
"0e3c0ba9-916d-4f61-80fc-32a440a43c18"
],
"Id": "bf281092-5465-46c9-ace0-44e78f0118a0",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"BillingId":"bf281092-5465-46c9-ace0-44e78f0118a0","Name":"sample string 2","Description":"sample string 3","IsForGliderFlights":true,"IsForMotorFlights":true,"IsForTowFlights":true,"Rules":["49af97f2-ae52-4550-8182-9623613777a1","afaf43dd-c1b9-43b5-8490-11e22cec2d68"],"CumulativeRules":["eef6f62e-ae09-4219-a45b-0707a291359a","0e3c0ba9-916d-4f61-80fc-32a440a43c18"],"Id":"bf281092-5465-46c9-ace0-44e78f0118a0","CanUpdateRecord":true,"CanDeleteRecord":true}
application/xml, text/xml
Sample:
<BillingDetails 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">bf281092-5465-46c9-ace0-44e78f0118a0</Id>
<BillingId>bf281092-5465-46c9-ace0-44e78f0118a0</BillingId>
<CumulativeRules xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>eef6f62e-ae09-4219-a45b-0707a291359a</d2p1:guid>
<d2p1:guid>0e3c0ba9-916d-4f61-80fc-32a440a43c18</d2p1:guid>
</CumulativeRules>
<Description>sample string 3</Description>
<IsForGliderFlights>true</IsForGliderFlights>
<IsForMotorFlights>true</IsForMotorFlights>
<IsForTowFlights>true</IsForTowFlights>
<Name>sample string 2</Name>
<Rules xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>49af97f2-ae52-4550-8182-9623613777a1</d2p1:guid>
<d2p1:guid>afaf43dd-c1b9-43b5-8490-11e22cec2d68</d2p1:guid>
</Rules>
</BillingDetails>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
BillingDetails| Name | Description | Type | Additional information |
|---|---|---|---|
| BillingId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| IsForGliderFlights | boolean |
None. |
|
| IsForMotorFlights | boolean |
None. |
|
| IsForTowFlights | boolean |
None. |
|
| Rules | Collection of globally unique identifier |
None. |
|
| CumulativeRules | Collection of globally unique identifier |
None. |
|
| Id | globally unique identifier |
None. |
|
| CanUpdateRecord | boolean |
None. |
|
| CanDeleteRecord | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"BillingId": "821a4de1-1bc6-4838-90fe-4706b15b6c00",
"Name": "sample string 2",
"Description": "sample string 3",
"IsForGliderFlights": true,
"IsForMotorFlights": true,
"IsForTowFlights": true,
"Rules": [
"0d7e58a9-8d49-46e4-87d1-7f2cfc2df2f3",
"c5a94de0-6292-4d65-8b38-8554930a9801"
],
"CumulativeRules": [
"93881fa9-e181-4dcf-9c7e-0e60565aa5d8",
"f92aac1a-0f3c-4048-8d36-4ef445b764ee"
],
"Id": "821a4de1-1bc6-4838-90fe-4706b15b6c00",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"BillingId":"821a4de1-1bc6-4838-90fe-4706b15b6c00","Name":"sample string 2","Description":"sample string 3","IsForGliderFlights":true,"IsForMotorFlights":true,"IsForTowFlights":true,"Rules":["0d7e58a9-8d49-46e4-87d1-7f2cfc2df2f3","c5a94de0-6292-4d65-8b38-8554930a9801"],"CumulativeRules":["93881fa9-e181-4dcf-9c7e-0e60565aa5d8","f92aac1a-0f3c-4048-8d36-4ef445b764ee"],"Id":"821a4de1-1bc6-4838-90fe-4706b15b6c00","CanUpdateRecord":true,"CanDeleteRecord":true}
application/xml, text/xml
Sample:
<BillingDetails 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">821a4de1-1bc6-4838-90fe-4706b15b6c00</Id>
<BillingId>821a4de1-1bc6-4838-90fe-4706b15b6c00</BillingId>
<CumulativeRules xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>93881fa9-e181-4dcf-9c7e-0e60565aa5d8</d2p1:guid>
<d2p1:guid>f92aac1a-0f3c-4048-8d36-4ef445b764ee</d2p1:guid>
</CumulativeRules>
<Description>sample string 3</Description>
<IsForGliderFlights>true</IsForGliderFlights>
<IsForMotorFlights>true</IsForMotorFlights>
<IsForTowFlights>true</IsForTowFlights>
<Name>sample string 2</Name>
<Rules xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>0d7e58a9-8d49-46e4-87d1-7f2cfc2df2f3</d2p1:guid>
<d2p1:guid>c5a94de0-6292-4d65-8b38-8554930a9801</d2p1:guid>
</Rules>
</BillingDetails>