POST api/invoices/createinvoice

Request Information

URI Parameters

None.

Body Parameters

InvoiceModel
NameDescriptionTypeAdditional information
CFId

integer

None.

InvTypeId

integer

None.

PayerModel

Payer

None.

CustomerModel

Customer

None.

PayoutTypeId

integer

None.

SelectedItems

Collection of ProductForSaleLine

None.

Request Formats

application/json, text/json

Sample:
{
  "CFId": 1,
  "InvTypeId": 2,
  "PayerModel": null,
  "CustomerModel": {
    "Label": "sample string 1",
    "CustomerName": "sample string 2",
    "CustomerSurname": "sample string 3",
    "Address": "sample string 4",
    "Town": "sample string 5",
    "Country": "sample string 6",
    "ZipCode": "sample string 7",
    "Email": "sample string 8",
    "Phone": "sample string 9",
    "PMSProperty": "sample string 10",
    "PMSRoom": "sample string 11",
    "PMSGuestName": "sample string 12",
    "PMSAccount": "sample string 13",
    "PMSArrivalDate": "2025-06-27T17:58:04.5436355+03:00",
    "PMSDepartureDate": "2025-06-27T17:58:04.5436355+03:00",
    "BirthDate": "sample string 16",
    "FolderId": 17,
    "FolderAlias": "sample string 18",
    "CustomerId": 19,
    "FolderNotes": "sample string 20",
    "MemberId": "sample string 21",
    "ActivationDate": "2025-06-27T17:58:04.5436355+03:00",
    "CustomerTypeId": 23,
    "PropertyId": 24,
    "LanguageId": 25,
    "AcceptsMarketingEmails": true,
    "AcceptsOperationEmails": true,
    "Gender": 28,
    "GoogleUserId": "sample string 29"
  },
  "PayoutTypeId": 3,
  "SelectedItems": [
    {
      "Id": 1,
      "ProductId": 2,
      "ProdId": 3,
      "Quantity": 4.1,
      "ProductDescription": "sample string 5",
      "ProductType": 0,
      "SaleTypeId": 6,
      "PriceListId": 7,
      "Price": 8.1,
      "DiscountPercent": 9.1,
      "DiscountValue": 10.1,
      "TotalPrice": 11.1,
      "VATPercent": 12.1,
      "VATValue": 13.1,
      "PayoutValue": 14.1,
      "IsHidden": true,
      "LeaderId": 16,
      "AssistantId": 17,
      "CFId": 18,
      "BookingSourceId": 19,
      "Notes": "sample string 20",
      "ChargeMethod": 0,
      "IsArrangement": true,
      "Duration": 22,
      "FreeWill": true,
      "StartDate": "2025-06-27T17:58:04.5436355+03:00",
      "EndDate": "2025-06-27T17:58:04.5436355+03:00",
      "ProductRecommendationId": 26,
      "IsMaison": true,
      "IsForCouple": true,
      "ExtReference1": "sample string 29",
      "ParentProdId": 30,
      "DiscountVoucherId": 31,
      "PromoCodeId": 32,
      "IsComponent": true,
      "SCListId": 34,
      "CampaignId": 35
    },
    {
      "Id": 1,
      "ProductId": 2,
      "ProdId": 3,
      "Quantity": 4.1,
      "ProductDescription": "sample string 5",
      "ProductType": 0,
      "SaleTypeId": 6,
      "PriceListId": 7,
      "Price": 8.1,
      "DiscountPercent": 9.1,
      "DiscountValue": 10.1,
      "TotalPrice": 11.1,
      "VATPercent": 12.1,
      "VATValue": 13.1,
      "PayoutValue": 14.1,
      "IsHidden": true,
      "LeaderId": 16,
      "AssistantId": 17,
      "CFId": 18,
      "BookingSourceId": 19,
      "Notes": "sample string 20",
      "ChargeMethod": 0,
      "IsArrangement": true,
      "Duration": 22,
      "FreeWill": true,
      "StartDate": "2025-06-27T17:58:04.5436355+03:00",
      "EndDate": "2025-06-27T17:58:04.5436355+03:00",
      "ProductRecommendationId": 26,
      "IsMaison": true,
      "IsForCouple": true,
      "ExtReference1": "sample string 29",
      "ParentProdId": 30,
      "DiscountVoucherId": 31,
      "PromoCodeId": 32,
      "IsComponent": true,
      "SCListId": 34,
      "CampaignId": 35
    }
  ]
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.