Skip to content

Invalid from_date / to_date salesRules rest response #35265

Closed
@websecureNL

Description

@websecureNL

Preconditions (*)

  1. Magento ver. 2.4.3

Steps to reproduce (*)

  1. Create a new Cart Price Rule through API - endpoint: /rest/V1/salesRules/
  2. Enter sample date and from_date / to_date to a YYYY-MM-DD format in the request. Like:

"from_date":"2022-06-01",
"to_date":"2022-06-10"

  1. Send request and inspect response.

Expected result (*)

  1. Would like a new Cart Price Rule to have the correct from_date / to_date in the response

Actual result (*)

  1. The from_date and to_date are both 0000-00-00 in the response

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: APIsComponent: ApiUse with concrete module component label E.g. "Component: Api" + "Catalog"Component: SalesRuleIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneReported on 2.4.3Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions