- Getting Started
- Auth
- Carts
- Create Payment SessionsPOST
- Refresh a Payment SessionPOST
- Create a CartPOST
- Complete a CartPOST
- Select a Payment SessionPOST
- Delete a Payment SessionDELETE
- Update a Payment SessionPOST
- Get a CartGET
- Update a CartPOST
- Add Shipping MethodPOST
- Update a Line ItemPOST
- Delete a Line ItemDELETE
- Add a Line ItemPOST
- Calculate Cart TaxesPOST
- Remove DiscountDELETE
- Customers
- Gift Cards
- Orders
- Order Edits
- Payment Collections
- Products
- Product Variants
- Product Tags
- Product Categories
- Product Collections
- Product Types
- Regions
- Returns
- Return Reasons
- Shipping Options
- Swaps
Complete an Order Edit
POST
/store/order-edits/{id}/complete
Order Edits
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.medusa-commerce.com/store/order-edits//complete'
Response Response Example
200 - Example 1
Request
Path Params
id
string
required
Responses
🟢200OK
application/json
Body
The order edit's details.
order_edit
object (Order Edit)
required
id
string
required
Example:
oe_01G8TJSYT9M6AVS5N4EMNFS1EK
order_id
string
required
Example:
order_01G2SG30J8C85S4A5CHM2S1NS2
order
object | null
optional
internal_note
string | null
required
Example:
Included two more items B to the order.
created_by
string
required
requested_by
string | null
required
requested_at
string <date-time> | null
required
confirmed_by
string | null
required
confirmed_at
string <date-time> | null
required
declined_by
string | null
required
declined_at
string <date-time> | null
required
declined_reason
string | null
required
canceled_by
string | null
required
canceled_at
string <date-time> | null
required
subtotal
integer
optional
Example:
8000
discount_total
integer
optional
Example:
800
shipping_total
integer
optional
Example:
800
gift_card_total
integer
optional
Example:
800
gift_card_tax_total
integer
optional
Example:
800
tax_total
integer
optional
Example:
0
total
integer
optional
Example:
8200
difference_due
integer
optional
Example:
8200
payment_collection_id
string | null
required
Example:
paycol_01G8TJSYT9M6AVS5N4EMNFS1EK
created_at
string <date-time>
required
updated_at
string <date-time>
required
status
enum<string>
required
Allowed values:
confirmeddeclinedrequestedcreatedcanceled
items
array[object (Line Item) {42}]
optional
changes
array[object (Order Item Change) {11}]
optional
payment_collection
object (Payment Collection)
optional
🟠400Client Error or Multiple Errors
🟠401User is not authorized. Must log in first
🟠404Not Found Error
🔴500Server Error
Modified at 2023-11-27 13:05:07