docs: added how to manage swaps documentation (#3941)

* docs: added how to manage swaps documentation

* added a note about listing swaps

* fix console.log
This commit is contained in:
Shahed Nasser
2023-04-27 12:27:55 +03:00
committed by GitHub
parent 538c9874ba
commit ceeba5fba6
5 changed files with 543 additions and 9 deletions
@@ -37,7 +37,9 @@ import { updateInventoryAndReservations } from "./create-fulfillment"
* 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.orders.fulfillSwap(order_id, swap_id)
* medusa.admin.orders.fulfillSwap(order_id, swap_id, {
*
* })
* .then(({ order }) => {
* console.log(order.id);
* });