POST api/Booking/InsertToBookingData

Request Information

URI Parameters

None.

Body Parameters

InsertToBookingRequest
NameDescriptionTypeAdditional information
Bookheadnum

integer

None.

BookNumber

string

None.

CompKey

integer

None.

CustomerKey

integer

None.

AppstokeData

string

None.

Subsordemo

string

None.

ClientKey

integer

None.

ProdKey

integer

None.

AppointDate

date

None.

StaKey

integer

None.

SpecialNotes

string

None.

UserKey

integer

None.

bookingDetList

Collection of BookingDetModel

None.

companyMast

CompanyModel

None.

settingsList

Collection of SettingsModel

None.

staffSpaModelList

Collection of StaffMasterModel

None.

prductSpaModelList

Collection of ProductItem

None.

prdDeptSpaModelList

Collection of ProductDepartment

None.

prdCatogSpaModelList

Collection of ProductCatogory

None.

prdTypeSpaModelList

Collection of ProductType

None.

Request Formats

application/json, text/json

Sample:
{
  "Bookheadnum": 1,
  "BookNumber": "sample string 2",
  "CompKey": 3,
  "CustomerKey": 4,
  "AppstokeData": "sample string 5",
  "Subsordemo": "sample string 6",
  "ClientKey": 7,
  "ProdKey": 8,
  "AppointDate": "2026-04-01T16:47:34.0908177+04:00",
  "StaKey": 10,
  "SpecialNotes": "sample string 11",
  "UserKey": 12,
  "bookingDetList": [
    {
      "lineNumb": 1,
      "timeKey": 2,
      "bookheadnum": 3,
      "bookDetNum": 4,
      "bookNumber": "sample string 5",
      "ordHeadnumb": 6,
      "ordType": "sample string 7",
      "appointDate": "2026-04-01T16:47:34.0908177+04:00",
      "ordSaleDate": "2026-04-01T16:47:34.0908177+04:00",
      "staKey": 10,
      "bookedToday": true,
      "prodKey": 12,
      "prodTimeReq": 13.0,
      "timeFrom": "sample string 14",
      "timeTo": "sample string 15",
      "prodBarcode": "sample string 16",
      "prodName": "sample string 17",
      "prodDesc": "sample string 18",
      "clientKey": 19,
      "clientName": "sample string 20",
      "clientMobile": "sample string 21",
      "clientEmail": "sample string 22",
      "clientAddr1": "sample string 23"
    },
    {
      "lineNumb": 1,
      "timeKey": 2,
      "bookheadnum": 3,
      "bookDetNum": 4,
      "bookNumber": "sample string 5",
      "ordHeadnumb": 6,
      "ordType": "sample string 7",
      "appointDate": "2026-04-01T16:47:34.0908177+04:00",
      "ordSaleDate": "2026-04-01T16:47:34.0908177+04:00",
      "staKey": 10,
      "bookedToday": true,
      "prodKey": 12,
      "prodTimeReq": 13.0,
      "timeFrom": "sample string 14",
      "timeTo": "sample string 15",
      "prodBarcode": "sample string 16",
      "prodName": "sample string 17",
      "prodDesc": "sample string 18",
      "clientKey": 19,
      "clientName": "sample string 20",
      "clientMobile": "sample string 21",
      "clientEmail": "sample string 22",
      "clientAddr1": "sample string 23"
    }
  ],
  "companyMast": {
    "compKey": 1,
    "compName": "sample string 2",
    "customerEmail": "sample string 3",
    "customerKey": 4,
    "countryKey": 5,
    "countryName": "sample string 6",
    "stateKey": 7,
    "compPhone": "sample string 8",
    "compMobile": "sample string 9",
    "compWebsite": "sample string 10",
    "compAddr1": "sample string 11",
    "companyType": "sample string 12",
    "currencykey": 13,
    "currencyCode": "sample string 14",
    "currencyName": "sample string 15",
    "dateformatd": "sample string 16",
    "amountformat": "sample string 17",
    "isTaxenable": true,
    "taxLable": "sample string 19",
    "taxNumber": "sample string 20",
    "custPwdSalt": "sample string 21",
    "subsordemo": "sample string 22",
    "compGuid": "sample string 23",
    "compDefault": true,
    "isCompUpdated": true,
    "appstokeData": "sample string 26",
    "sdExpired": "sample string 27",
    "editionKey": 28,
    "editionType": "sample string 29",
    "compstatus": "sample string 30",
    "ordSaleDate": "2026-04-01T16:47:34.0908177+04:00",
    "isSaleOpen": "sample string 32",
    "sampleDataReq": 33,
    "compStarton": "2026-04-01T16:47:34.0908177+04:00",
    "demoextend": true,
    "periodFrom": "2026-04-01T16:47:34.0908177+04:00",
    "periodTo": "2026-04-01T16:47:34.0908177+04:00",
    "subsFreeTag": "sample string 38"
  },
  "settingsList": [
    {
      "setLinenum": 1,
      "setSection": "sample string 2",
      "setMechKey": 3,
      "setPrefixd": "sample string 4",
      "sys_Valued": "sample string 5",
      "setRemarks": "sample string 6"
    },
    {
      "setLinenum": 1,
      "setSection": "sample string 2",
      "setMechKey": 3,
      "setPrefixd": "sample string 4",
      "sys_Valued": "sample string 5",
      "setRemarks": "sample string 6"
    }
  ],
  "staffSpaModelList": [
    {
      "staKey": 1,
      "staCode": "sample string 2",
      "staName": "sample string 3",
      "staGender": "sample string 4",
      "staDOB": "2026-04-01T16:47:34.0908177+04:00",
      "staPhone": "sample string 6",
      "staMobile": "sample string 7",
      "staEmail": "sample string 8",
      "staCreatedate": 9,
      "staModiyedate": 10,
      "staImgPath": 11,
      "staImgIcon": 12,
      "staGrpKey": 13,
      "staGrpCode": "sample string 14",
      "staGrpName": "sample string 15",
      "countryKey": 16,
      "countryName": "sample string 17",
      "staIsActive": true,
      "compKey": 19,
      "Subsordemo": "sample string 20",
      "timeheadshow": true,
      "timesSlotList": [
        {
          "timeKey": 1,
          "timeFrom": "sample string 2",
          "timeTo": "sample string 3",
          "compKey": 4,
          "timedisplay": "sample string 5",
          "bookedthis": true,
          "bookedToday": true,
          "vacantime": true,
          "ordHeadnumb": 9,
          "ordType": "sample string 10",
          "timeshow": true,
          "bookedtagshow": true,
          "prodKey": 13,
          "prodName": "sample string 14",
          "prodDesc": "sample string 15",
          "prodTimeReq": 16.0,
          "bookheadnum": 17,
          "bookNumber": "sample string 18",
          "newbooking": true,
          "timesProducts": {
            "prodKey": 1,
            "prodBarcode": "sample string 2",
            "prodName": "sample string 3",
            "prodDesc": "sample string 4"
          }
        },
        {
          "timeKey": 1,
          "timeFrom": "sample string 2",
          "timeTo": "sample string 3",
          "compKey": 4,
          "timedisplay": "sample string 5",
          "bookedthis": true,
          "bookedToday": true,
          "vacantime": true,
          "ordHeadnumb": 9,
          "ordType": "sample string 10",
          "timeshow": true,
          "bookedtagshow": true,
          "prodKey": 13,
          "prodName": "sample string 14",
          "prodDesc": "sample string 15",
          "prodTimeReq": 16.0,
          "bookheadnum": 17,
          "bookNumber": "sample string 18",
          "newbooking": true,
          "timesProducts": {
            "prodKey": 1,
            "prodBarcode": "sample string 2",
            "prodName": "sample string 3",
            "prodDesc": "sample string 4"
          }
        }
      ]
    },
    {
      "staKey": 1,
      "staCode": "sample string 2",
      "staName": "sample string 3",
      "staGender": "sample string 4",
      "staDOB": "2026-04-01T16:47:34.0908177+04:00",
      "staPhone": "sample string 6",
      "staMobile": "sample string 7",
      "staEmail": "sample string 8",
      "staCreatedate": 9,
      "staModiyedate": 10,
      "staImgPath": 11,
      "staImgIcon": 12,
      "staGrpKey": 13,
      "staGrpCode": "sample string 14",
      "staGrpName": "sample string 15",
      "countryKey": 16,
      "countryName": "sample string 17",
      "staIsActive": true,
      "compKey": 19,
      "Subsordemo": "sample string 20",
      "timeheadshow": true,
      "timesSlotList": [
        {
          "timeKey": 1,
          "timeFrom": "sample string 2",
          "timeTo": "sample string 3",
          "compKey": 4,
          "timedisplay": "sample string 5",
          "bookedthis": true,
          "bookedToday": true,
          "vacantime": true,
          "ordHeadnumb": 9,
          "ordType": "sample string 10",
          "timeshow": true,
          "bookedtagshow": true,
          "prodKey": 13,
          "prodName": "sample string 14",
          "prodDesc": "sample string 15",
          "prodTimeReq": 16.0,
          "bookheadnum": 17,
          "bookNumber": "sample string 18",
          "newbooking": true,
          "timesProducts": {
            "prodKey": 1,
            "prodBarcode": "sample string 2",
            "prodName": "sample string 3",
            "prodDesc": "sample string 4"
          }
        },
        {
          "timeKey": 1,
          "timeFrom": "sample string 2",
          "timeTo": "sample string 3",
          "compKey": 4,
          "timedisplay": "sample string 5",
          "bookedthis": true,
          "bookedToday": true,
          "vacantime": true,
          "ordHeadnumb": 9,
          "ordType": "sample string 10",
          "timeshow": true,
          "bookedtagshow": true,
          "prodKey": 13,
          "prodName": "sample string 14",
          "prodDesc": "sample string 15",
          "prodTimeReq": 16.0,
          "bookheadnum": 17,
          "bookNumber": "sample string 18",
          "newbooking": true,
          "timesProducts": {
            "prodKey": 1,
            "prodBarcode": "sample string 2",
            "prodName": "sample string 3",
            "prodDesc": "sample string 4"
          }
        }
      ]
    }
  ],
  "prductSpaModelList": [
    {
      "prodKey": 1,
      "prodBarcode": "sample string 2",
      "prodCode": "sample string 3",
      "prodName": "sample string 4",
      "prodNameAr": "sample string 5",
      "prodDesc": "sample string 6",
      "prodDescAr": "sample string 7",
      "prodPrice1": 8.0,
      "prodPrice2": 9.0,
      "prodPrice3": 10.0,
      "prodCost": 11.0,
      "taxCategoryKey": 12,
      "taxCategoryName": "sample string 13",
      "prodDeptKey": 14,
      "prodDeptCode": "sample string 15",
      "prodDeptName": "sample string 16",
      "prodCatogKey": 17,
      "prodCatogCode": "sample string 18",
      "prodCatogName": "sample string 19",
      "prodTypeKey": 20,
      "prodTypeCode": "sample string 21",
      "prodTypeName": "sample string 22",
      "staKey": 23,
      "staCode": "sample string 24",
      "staName": "sample string 25",
      "prodIsActive": true,
      "prodImgPath": "sample string 27",
      "prodIconName": "sample string 28",
      "prodVideoPath": "sample string 29",
      "prodTimeReq": 30.0,
      "compKey": 31,
      "isProductPack": true
    },
    {
      "prodKey": 1,
      "prodBarcode": "sample string 2",
      "prodCode": "sample string 3",
      "prodName": "sample string 4",
      "prodNameAr": "sample string 5",
      "prodDesc": "sample string 6",
      "prodDescAr": "sample string 7",
      "prodPrice1": 8.0,
      "prodPrice2": 9.0,
      "prodPrice3": 10.0,
      "prodCost": 11.0,
      "taxCategoryKey": 12,
      "taxCategoryName": "sample string 13",
      "prodDeptKey": 14,
      "prodDeptCode": "sample string 15",
      "prodDeptName": "sample string 16",
      "prodCatogKey": 17,
      "prodCatogCode": "sample string 18",
      "prodCatogName": "sample string 19",
      "prodTypeKey": 20,
      "prodTypeCode": "sample string 21",
      "prodTypeName": "sample string 22",
      "staKey": 23,
      "staCode": "sample string 24",
      "staName": "sample string 25",
      "prodIsActive": true,
      "prodImgPath": "sample string 27",
      "prodIconName": "sample string 28",
      "prodVideoPath": "sample string 29",
      "prodTimeReq": 30.0,
      "compKey": 31,
      "isProductPack": true
    }
  ],
  "prdDeptSpaModelList": [
    {
      "prodDeptKey": 1,
      "prodDeptCode": "sample string 2",
      "prodDeptName": "sample string 3",
      "prodDeptNameAr": "sample string 4"
    },
    {
      "prodDeptKey": 1,
      "prodDeptCode": "sample string 2",
      "prodDeptName": "sample string 3",
      "prodDeptNameAr": "sample string 4"
    }
  ],
  "prdCatogSpaModelList": [
    {
      "prodCatogKey": 1,
      "prodCatogCode": "sample string 2",
      "prodCatogName": "sample string 3",
      "prodCatogNameAr": "sample string 4",
      "prodDeptKey": 5,
      "prodDeptName": "sample string 6",
      "prodImgPath": "sample string 7",
      "prodIconName": "sample string 8"
    },
    {
      "prodCatogKey": 1,
      "prodCatogCode": "sample string 2",
      "prodCatogName": "sample string 3",
      "prodCatogNameAr": "sample string 4",
      "prodDeptKey": 5,
      "prodDeptName": "sample string 6",
      "prodImgPath": "sample string 7",
      "prodIconName": "sample string 8"
    }
  ],
  "prdTypeSpaModelList": [
    {
      "prodTypeKey": 1,
      "prodTypeCode": "sample string 2",
      "prodTypeName": "sample string 3"
    },
    {
      "prodTypeKey": 1,
      "prodTypeCode": "sample string 2",
      "prodTypeName": "sample string 3"
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/xml

Sample:

Sample not available.