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": "b9a0707f-bdc4-4069-a589-ac1bb4aed6ea",
"Name": "sample string 2",
"Description": "sample string 3",
"IsForGliderFlights": true,
"IsForMotorFlights": true,
"IsForTowFlights": true,
"Rules": [
"d23715dd-2c7f-4a96-94fb-8897235c3703",
"d12862f2-a6eb-434a-b3d3-25ae0d5bf20a"
],
"CumulativeRules": [
"05f43e5e-d05e-4293-917d-25273e6e13b7",
"71a3e260-d559-48bd-b52d-1a9cac64fb54"
],
"Id": "b9a0707f-bdc4-4069-a589-ac1bb4aed6ea",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"BillingId":"b9a0707f-bdc4-4069-a589-ac1bb4aed6ea","Name":"sample string 2","Description":"sample string 3","IsForGliderFlights":true,"IsForMotorFlights":true,"IsForTowFlights":true,"Rules":["d23715dd-2c7f-4a96-94fb-8897235c3703","d12862f2-a6eb-434a-b3d3-25ae0d5bf20a"],"CumulativeRules":["05f43e5e-d05e-4293-917d-25273e6e13b7","71a3e260-d559-48bd-b52d-1a9cac64fb54"],"Id":"b9a0707f-bdc4-4069-a589-ac1bb4aed6ea","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">b9a0707f-bdc4-4069-a589-ac1bb4aed6ea</Id>
<BillingId>b9a0707f-bdc4-4069-a589-ac1bb4aed6ea</BillingId>
<CumulativeRules xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>05f43e5e-d05e-4293-917d-25273e6e13b7</d2p1:guid>
<d2p1:guid>71a3e260-d559-48bd-b52d-1a9cac64fb54</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>d23715dd-2c7f-4a96-94fb-8897235c3703</d2p1:guid>
<d2p1:guid>d12862f2-a6eb-434a-b3d3-25ae0d5bf20a</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": "5394f4b9-2b68-4dbe-bdc6-4d1d46307eb6",
"Name": "sample string 2",
"Description": "sample string 3",
"IsForGliderFlights": true,
"IsForMotorFlights": true,
"IsForTowFlights": true,
"Rules": [
"723be5bc-008c-4b60-893b-5eeda6b44ee6",
"dfcdc1e3-1050-4675-9ea5-4a28469a61a8"
],
"CumulativeRules": [
"99c90bda-ae49-45ab-b99b-c074571b4595",
"bdcc4b78-4e53-46e1-a86f-5669e0e75ca1"
],
"Id": "5394f4b9-2b68-4dbe-bdc6-4d1d46307eb6",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"BillingId":"5394f4b9-2b68-4dbe-bdc6-4d1d46307eb6","Name":"sample string 2","Description":"sample string 3","IsForGliderFlights":true,"IsForMotorFlights":true,"IsForTowFlights":true,"Rules":["723be5bc-008c-4b60-893b-5eeda6b44ee6","dfcdc1e3-1050-4675-9ea5-4a28469a61a8"],"CumulativeRules":["99c90bda-ae49-45ab-b99b-c074571b4595","bdcc4b78-4e53-46e1-a86f-5669e0e75ca1"],"Id":"5394f4b9-2b68-4dbe-bdc6-4d1d46307eb6","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">5394f4b9-2b68-4dbe-bdc6-4d1d46307eb6</Id>
<BillingId>5394f4b9-2b68-4dbe-bdc6-4d1d46307eb6</BillingId>
<CumulativeRules xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>99c90bda-ae49-45ab-b99b-c074571b4595</d2p1:guid>
<d2p1:guid>bdcc4b78-4e53-46e1-a86f-5669e0e75ca1</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>723be5bc-008c-4b60-893b-5eeda6b44ee6</d2p1:guid>
<d2p1:guid>dfcdc1e3-1050-4675-9ea5-4a28469a61a8</d2p1:guid>
</Rules>
</BillingDetails>