POST api/v1/billing
Request Information
URI Parameters
None.
Body Parameters
BillingDetailsName | 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": "2b6a17ce-120c-4015-8483-800c35fbfcff", "Name": "sample string 2", "Description": "sample string 3", "IsForGliderFlights": true, "IsForMotorFlights": true, "IsForTowFlights": true, "Rules": [ "8c0e1aa9-0bda-4770-af08-5e5d41ef7ad6", "5572594c-f4be-4844-b82a-33952c648eb9" ], "CumulativeRules": [ "543e1254-6674-469b-a1a4-4ad0d932238d", "2815fff2-6fef-436f-b2bc-9c4b5a88a7e0" ], "Id": "2b6a17ce-120c-4015-8483-800c35fbfcff", "CanUpdateRecord": true, "CanDeleteRecord": true }
text/html
Sample:
{"BillingId":"2b6a17ce-120c-4015-8483-800c35fbfcff","Name":"sample string 2","Description":"sample string 3","IsForGliderFlights":true,"IsForMotorFlights":true,"IsForTowFlights":true,"Rules":["8c0e1aa9-0bda-4770-af08-5e5d41ef7ad6","5572594c-f4be-4844-b82a-33952c648eb9"],"CumulativeRules":["543e1254-6674-469b-a1a4-4ad0d932238d","2815fff2-6fef-436f-b2bc-9c4b5a88a7e0"],"Id":"2b6a17ce-120c-4015-8483-800c35fbfcff","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">2b6a17ce-120c-4015-8483-800c35fbfcff</Id> <BillingId>2b6a17ce-120c-4015-8483-800c35fbfcff</BillingId> <CumulativeRules xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>543e1254-6674-469b-a1a4-4ad0d932238d</d2p1:guid> <d2p1:guid>2815fff2-6fef-436f-b2bc-9c4b5a88a7e0</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>8c0e1aa9-0bda-4770-af08-5e5d41ef7ad6</d2p1:guid> <d2p1:guid>5572594c-f4be-4844-b82a-33952c648eb9</d2p1:guid> </Rules> </BillingDetails>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
BillingDetailsName | 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": "91ebc542-9ff4-4eaf-93ba-52fc107cafae", "Name": "sample string 2", "Description": "sample string 3", "IsForGliderFlights": true, "IsForMotorFlights": true, "IsForTowFlights": true, "Rules": [ "e1ad51ad-80de-41f9-9414-c938bf5f3de9", "7d249987-5844-4ec8-8112-4135173070e2" ], "CumulativeRules": [ "14ab34a5-f431-4714-a6ea-063ae1d0dbfa", "a5a8d03c-a875-4241-9e54-2467ef93792e" ], "Id": "91ebc542-9ff4-4eaf-93ba-52fc107cafae", "CanUpdateRecord": true, "CanDeleteRecord": true }
text/html
Sample:
{"BillingId":"91ebc542-9ff4-4eaf-93ba-52fc107cafae","Name":"sample string 2","Description":"sample string 3","IsForGliderFlights":true,"IsForMotorFlights":true,"IsForTowFlights":true,"Rules":["e1ad51ad-80de-41f9-9414-c938bf5f3de9","7d249987-5844-4ec8-8112-4135173070e2"],"CumulativeRules":["14ab34a5-f431-4714-a6ea-063ae1d0dbfa","a5a8d03c-a875-4241-9e54-2467ef93792e"],"Id":"91ebc542-9ff4-4eaf-93ba-52fc107cafae","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">91ebc542-9ff4-4eaf-93ba-52fc107cafae</Id> <BillingId>91ebc542-9ff4-4eaf-93ba-52fc107cafae</BillingId> <CumulativeRules xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>14ab34a5-f431-4714-a6ea-063ae1d0dbfa</d2p1:guid> <d2p1:guid>a5a8d03c-a875-4241-9e54-2467ef93792e</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>e1ad51ad-80de-41f9-9414-c938bf5f3de9</d2p1:guid> <d2p1:guid>7d249987-5844-4ec8-8112-4135173070e2</d2p1:guid> </Rules> </BillingDetails>