Allow initializing an empty cart for users with permissions

Created on 27 September 2021, over 3 years ago
Updated 4 June 2024, 11 months ago

Problem/Motivation

Part of #3239501: Allow using Commerce API for backoffice management of orders β†’ .

A back-office application needs a way to initialize and create an empty cart with customer data before adding purchasable entities as order items.

Proposed resolution

Allows creating an empty order, or allows data like the customer, billing profile.

Must be protected by the administer commerce_order or create {order_type} commerce_order permissions.

Remaining tasks

Evaluate if POST /jsonapi/commerce_order/{order_type} works without too many validation errors.

It's nearly impossible to create directly from API due to the following being required fields

  • order_number
  • store_id
  • billing_profile
✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mglaman WI, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024