chore(docs): Generated API Reference (#2882)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
233d6904f8
commit
4814045036
@@ -9,7 +9,7 @@ medusa.admin.discounts.create({
|
||||
value: 10,
|
||||
allocation: AllocationType.ITEM
|
||||
},
|
||||
regions: ['reg_XXXXXXXX'],
|
||||
regions: ["reg_XXXXXXXX"],
|
||||
is_dynamic: false,
|
||||
is_disabled: false
|
||||
})
|
||||
|
||||
@@ -2,8 +2,8 @@ import Medusa from "@medusajs/medusa-js"
|
||||
const medusa = new Medusa({ baseUrl: MEDUSA_BACKEND_URL, maxRetries: 3 })
|
||||
// must be previously logged in or use api token
|
||||
medusa.admin.orderEdits.addLineItem(order_edit_id, {
|
||||
variant_id,
|
||||
quantity
|
||||
variant_id,
|
||||
quantity
|
||||
})
|
||||
.then(({ order_edit }) => {
|
||||
console.log(order_edit.id)
|
||||
|
||||
@@ -8,5 +8,5 @@ curl --location --request POST 'https://medusa-url.com/admin/discounts' \
|
||||
"value": 10,
|
||||
"allocation": "item"
|
||||
},
|
||||
"regions": ['reg_XXXXXXXX']
|
||||
"regions": ["reg_XXXXXXXX"]
|
||||
}'
|
||||
|
||||
Reference in New Issue
Block a user