docs: fixes to API and JS SDK references (#13795)
This commit is contained in:
@@ -9,7 +9,7 @@ export const sdk = new Medusa({
|
||||
})
|
||||
|
||||
sdk.admin.refundReason.create({
|
||||
value: "refund",
|
||||
code: "refund",
|
||||
label: "Refund",
|
||||
})
|
||||
.then(({ refund_reason }) => {
|
||||
|
||||
@@ -9,7 +9,7 @@ export const sdk = new Medusa({
|
||||
})
|
||||
|
||||
sdk.admin.refundReason.update("ret_123", {
|
||||
value: "refund",
|
||||
code: "refund",
|
||||
label: "Refund",
|
||||
})
|
||||
.then(({ refund_reason }) => {
|
||||
|
||||
@@ -3,5 +3,6 @@ curl -X POST '{backend_url}/admin/refund-reasons' \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-raw '{
|
||||
"label": "{value}",
|
||||
"code": "{value}",
|
||||
"description": "{value}"
|
||||
}'
|
||||
Reference in New Issue
Block a user