POST api/{database}/Subscription

No Documentation Found.



Request Information

Parameters

NameDescriptionAdditional information
value No Documentation Found.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "messages": [],
  "amount": 1.0,
  "amountFirstInvoice": 2.0,
  "blocked": true,
  "canChange": true,
  "cannotChangeReason": "sample string 5",
  "collectiveInvoiceSystemId": "sample string 6",
  "contactPerson": "sample string 7",
  "contactPersonId": "sample string 8",
  "costCentreId": "sample string 9",
  "costUnitId": "sample string 10",
  "currencyId": "sample string 11",
  "customerId": "sample string 12",
  "endDate": "sample string 13",
  "endReason": "sample string 14",
  "firstInvoiceDate": "sample string 15",
  "hasBeenInvoiced": true,
  "invoiceInProcess": true,
  "invoiceTextLine5": "sample string 18",
  "invoiceTextLine6": "sample string 19",
  "lastInvoiceOrderId": "sample string 20",
  "mandateId": "sample string 21",
  "mandateLinkIsExclusive": true,
  "nextInvoiceDate": "sample string 23",
  "paymentConditionId": "sample string 24",
  "processedBy": "sample string 25",
  "processedById": "sample string 26",
  "selectedForInvoice": "sample string 27",
  "startDate": "sample string 28",
  "subscriptionId": "sample string 29",
  "subscriptionTypeId": "sample string 30",
  "workAddressId": 1
}

application/xml, text/xml

Sample:
<Subscription xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Sales.Edit">
  <Amount>1</Amount>
  <AmountFirstInvoice>2</AmountFirstInvoice>
  <Blocked>true</Blocked>
  <CanChange>true</CanChange>
  <CannotChangeReason>sample string 5</CannotChangeReason>
  <CollectiveInvoiceSystemId>sample string 6</CollectiveInvoiceSystemId>
  <ContactPerson>sample string 7</ContactPerson>
  <ContactPersonId>sample string 8</ContactPersonId>
  <CostCentreId>sample string 9</CostCentreId>
  <CostUnitId>sample string 10</CostUnitId>
  <CurrencyId>sample string 11</CurrencyId>
  <CustomerId>sample string 12</CustomerId>
  <EndDate>sample string 13</EndDate>
  <EndReason>sample string 14</EndReason>
  <FirstInvoiceDate>sample string 15</FirstInvoiceDate>
  <HasBeenInvoiced>true</HasBeenInvoiced>
  <InvoiceInProcess>true</InvoiceInProcess>
  <InvoiceTextLine5>sample string 18</InvoiceTextLine5>
  <InvoiceTextLine6>sample string 19</InvoiceTextLine6>
  <LastInvoiceOrderId>sample string 20</LastInvoiceOrderId>
  <MandateId>sample string 21</MandateId>
  <MandateLinkIsExclusive>true</MandateLinkIsExclusive>
  <Messages xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" />
  <NextInvoiceDate>sample string 23</NextInvoiceDate>
  <PaymentConditionId>sample string 24</PaymentConditionId>
  <ProcessedBy>sample string 25</ProcessedBy>
  <ProcessedById>sample string 26</ProcessedById>
  <SelectedForInvoice>sample string 27</SelectedForInvoice>
  <StartDate>sample string 28</StartDate>
  <SubscriptionId>sample string 29</SubscriptionId>
  <SubscriptionTypeId>sample string 30</SubscriptionTypeId>
  <WorkAddressId>1</WorkAddressId>
</Subscription>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SubscriptionProxy'.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "messages": [],
  "amount": 1.0,
  "amountFirstInvoice": 2.0,
  "blocked": true,
  "canChange": true,
  "cannotChangeReason": "sample string 5",
  "collectiveInvoiceSystemId": "sample string 6",
  "contactPerson": "sample string 7",
  "contactPersonId": "sample string 8",
  "costCentreId": "sample string 9",
  "costUnitId": "sample string 10",
  "currencyId": "sample string 11",
  "customerId": "sample string 12",
  "endDate": "sample string 13",
  "endReason": "sample string 14",
  "firstInvoiceDate": "sample string 15",
  "hasBeenInvoiced": true,
  "invoiceInProcess": true,
  "invoiceTextLine5": "sample string 18",
  "invoiceTextLine6": "sample string 19",
  "lastInvoiceOrderId": "sample string 20",
  "mandateId": "sample string 21",
  "mandateLinkIsExclusive": true,
  "nextInvoiceDate": "sample string 23",
  "paymentConditionId": "sample string 24",
  "processedBy": "sample string 25",
  "processedById": "sample string 26",
  "selectedForInvoice": "sample string 27",
  "startDate": "sample string 28",
  "subscriptionId": "sample string 29",
  "subscriptionTypeId": "sample string 30",
  "workAddressId": 1
}

application/xml, text/xml

Sample:
<Subscription xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.BL.Sales.Edit">
  <Amount>1</Amount>
  <AmountFirstInvoice>2</AmountFirstInvoice>
  <Blocked>true</Blocked>
  <CanChange>true</CanChange>
  <CannotChangeReason>sample string 5</CannotChangeReason>
  <CollectiveInvoiceSystemId>sample string 6</CollectiveInvoiceSystemId>
  <ContactPerson>sample string 7</ContactPerson>
  <ContactPersonId>sample string 8</ContactPersonId>
  <CostCentreId>sample string 9</CostCentreId>
  <CostUnitId>sample string 10</CostUnitId>
  <CurrencyId>sample string 11</CurrencyId>
  <CustomerId>sample string 12</CustomerId>
  <EndDate>sample string 13</EndDate>
  <EndReason>sample string 14</EndReason>
  <FirstInvoiceDate>sample string 15</FirstInvoiceDate>
  <HasBeenInvoiced>true</HasBeenInvoiced>
  <InvoiceInProcess>true</InvoiceInProcess>
  <InvoiceTextLine5>sample string 18</InvoiceTextLine5>
  <InvoiceTextLine6>sample string 19</InvoiceTextLine6>
  <LastInvoiceOrderId>sample string 20</LastInvoiceOrderId>
  <MandateId>sample string 21</MandateId>
  <MandateLinkIsExclusive>true</MandateLinkIsExclusive>
  <Messages xmlns:d2p1="http://schemas.datacontract.org/2004/07/UNIT4.Multivers.API.Web.WebApi.Core.Models" />
  <NextInvoiceDate>sample string 23</NextInvoiceDate>
  <PaymentConditionId>sample string 24</PaymentConditionId>
  <ProcessedBy>sample string 25</ProcessedBy>
  <ProcessedById>sample string 26</ProcessedById>
  <SelectedForInvoice>sample string 27</SelectedForInvoice>
  <StartDate>sample string 28</StartDate>
  <SubscriptionId>sample string 29</SubscriptionId>
  <SubscriptionTypeId>sample string 30</SubscriptionTypeId>
  <WorkAddressId>1</WorkAddressId>
</Subscription>