RCX Rest Service: ValidateBasketItem

ValidateBasketItem

Paths

Example

Example request object

{
  "BasketItem": {
    "$type": "ReCreateX.WebShop.WebServices.Contracts.TableSale, ReCreateX.WebShop.WebServices.Contracts",
    "DivisionId": "00000000-0000-0000-0000-000000000000",
    "Id": "00000000-0000-0000-0000-000000000000",
    "Quantity": 0,
    "Name": "",
    "RuleNamesToIgnore": null,
    "UnitPrice": 0.0,
    "AdvancementPrice": null,
    "Sequence": 0,
    "AsReseller": false,
    "CreateTimestamp": "2025-01-22T10:56:36.5181544+01:00",
    "CustomerContactId": "00000000-0000-0000-0000-000000000000",
    "TableSaleType": 0,
    "PromotionRuleDiscountAmount": 0.0,
    "ArticleId": null,
    "Description": "string_example",
    "ExtraDescription": "string_example",
    "Modifiers": null,
    "EmployeeId": "00000000-0000-0000-0000-000000000000",
    "OrganisedVisitId": null,
    "CultureEventReservationId": null,
    "ReservationId": null,
    "Amount": 0.0,
    "RentalHeaderId": null,
    "CustomerID": null,
    "RentalLineId": null,
    "WaiterPadDiscountPercentage": 0.0,
    "ActivityEntryId": null,
    "CustomPrice": null,
    "FitnessActivityDayReservationId": null,
    "CreditSale": false,
    "Cancelled": false
  },
  "Context": {
    "DivisionId": "00000000-0000-0000-0000-000000000000",
    "Language": "string_example",
    "ShopId": "00000000-0000-0000-0000-000000000000",
    "SessionId": "00000000-0000-0000-0000-000000000000",
    "Origin": 0,
    "Password": "string_example",
    "Encode": false,
    "AccessToken": "string_example"
  }
}

Example response object

{
  "BasketItemValidationResult": {
    "ValidatedBasketItem": {
      "$type": "ReCreateX.WebShop.WebServices.Contracts.TableSale, ReCreateX.WebShop.WebServices.Contracts",
      "DivisionId": "00000000-0000-0000-0000-000000000000",
      "Id": "00000000-0000-0000-0000-000000000000",
      "Quantity": 0,
      "Name": "",
      "RuleNamesToIgnore": null,
      "UnitPrice": 0.0,
      "AdvancementPrice": null,
      "Sequence": 0,
      "AsReseller": false,
      "CreateTimestamp": "2025-01-22T10:56:36.5181544+01:00",
      "CustomerContactId": "00000000-0000-0000-0000-000000000000",
      "TableSaleType": 0,
      "PromotionRuleDiscountAmount": 0.0,
      "ArticleId": null,
      "Description": null,
      "ExtraDescription": null,
      "Modifiers": null,
      "EmployeeId": "00000000-0000-0000-0000-000000000000",
      "OrganisedVisitId": null,
      "CultureEventReservationId": null,
      "ReservationId": null,
      "Amount": 0.0,
      "RentalHeaderId": null,
      "CustomerID": null,
      "RentalLineId": null,
      "WaiterPadDiscountPercentage": 0.0,
      "ActivityEntryId": null,
      "CustomPrice": null,
      "FitnessActivityDayReservationId": null,
      "CreditSale": false,
      "Cancelled": false
    },
    "IsValid": false,
    "Message": "string_example",
    "brokenRuleName": null
  }
}

ShouldBeExecuted

Postdata

Response