fix(js-sdk): fix the API route used in fulfillment.cancel method (#11936)

This commit is contained in:
Shahed Nasser authored and GitHub committed 2025-03-21 15:08:44 +00:00
1 parent df5ae50612
commit 053326950d
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/js-sdk": patch
---
fix(js-sdk): fix the API route used in fulfillment.cancel method
@@ -85,7 +85,7 @@ export class Fulfillment {
headers?: ClientHeaders
) {
return await this.client.fetch<HttpTypes.AdminFulfillmentResponse>(
`/admin/fulfillments/${id}`,
`/admin/fulfillments/${id}/cancel`,
{
method: "POST",
body: {},