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": "6f2f7264-0e18-41be-9a66-1c5c1a2469ad",
"Name": "sample string 2",
"Description": "sample string 3",
"IsForGliderFlights": true,
"IsForMotorFlights": true,
"IsForTowFlights": true,
"Rules": [
"619efd18-d134-42c8-affc-7c634737c34a",
"af11599d-7e08-457b-9e7e-c58cd903da8b"
],
"CumulativeRules": [
"6cf80973-3640-4d19-8738-19bb22f0f15c",
"4cc2f340-a795-472b-9b01-fec45099b770"
],
"Id": "6f2f7264-0e18-41be-9a66-1c5c1a2469ad",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"BillingId":"6f2f7264-0e18-41be-9a66-1c5c1a2469ad","Name":"sample string 2","Description":"sample string 3","IsForGliderFlights":true,"IsForMotorFlights":true,"IsForTowFlights":true,"Rules":["619efd18-d134-42c8-affc-7c634737c34a","af11599d-7e08-457b-9e7e-c58cd903da8b"],"CumulativeRules":["6cf80973-3640-4d19-8738-19bb22f0f15c","4cc2f340-a795-472b-9b01-fec45099b770"],"Id":"6f2f7264-0e18-41be-9a66-1c5c1a2469ad","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">6f2f7264-0e18-41be-9a66-1c5c1a2469ad</Id>
<BillingId>6f2f7264-0e18-41be-9a66-1c5c1a2469ad</BillingId>
<CumulativeRules xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>6cf80973-3640-4d19-8738-19bb22f0f15c</d2p1:guid>
<d2p1:guid>4cc2f340-a795-472b-9b01-fec45099b770</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>619efd18-d134-42c8-affc-7c634737c34a</d2p1:guid>
<d2p1:guid>af11599d-7e08-457b-9e7e-c58cd903da8b</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": "132c4617-ec0c-42cb-a05c-72320d61ec16",
"Name": "sample string 2",
"Description": "sample string 3",
"IsForGliderFlights": true,
"IsForMotorFlights": true,
"IsForTowFlights": true,
"Rules": [
"3f91f144-3b99-4675-8070-6b65fb5c3a96",
"340233ad-a66d-4760-bc24-60c5a50c4eac"
],
"CumulativeRules": [
"565cfa28-4171-4976-bd0c-ae018c05b162",
"625b16b9-c274-4533-acf9-e2e9df775c44"
],
"Id": "132c4617-ec0c-42cb-a05c-72320d61ec16",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"BillingId":"132c4617-ec0c-42cb-a05c-72320d61ec16","Name":"sample string 2","Description":"sample string 3","IsForGliderFlights":true,"IsForMotorFlights":true,"IsForTowFlights":true,"Rules":["3f91f144-3b99-4675-8070-6b65fb5c3a96","340233ad-a66d-4760-bc24-60c5a50c4eac"],"CumulativeRules":["565cfa28-4171-4976-bd0c-ae018c05b162","625b16b9-c274-4533-acf9-e2e9df775c44"],"Id":"132c4617-ec0c-42cb-a05c-72320d61ec16","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">132c4617-ec0c-42cb-a05c-72320d61ec16</Id>
<BillingId>132c4617-ec0c-42cb-a05c-72320d61ec16</BillingId>
<CumulativeRules xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>565cfa28-4171-4976-bd0c-ae018c05b162</d2p1:guid>
<d2p1:guid>625b16b9-c274-4533-acf9-e2e9df775c44</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>3f91f144-3b99-4675-8070-6b65fb5c3a96</d2p1:guid>
<d2p1:guid>340233ad-a66d-4760-bc24-60c5a50c4eac</d2p1:guid>
</Rules>
</BillingDetails>