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

This commit is contained in:
Shahed Nasser
2025-03-21 15:08:44 +00:00
committed by GitHub
parent df5ae50612
commit 053326950d
2 changed files with 6 additions and 1 deletions
+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 headers?: ClientHeaders
) { ) {
return await this.client.fetch<HttpTypes.AdminFulfillmentResponse>( return await this.client.fetch<HttpTypes.AdminFulfillmentResponse>(
`/admin/fulfillments/${id}`, `/admin/fulfillments/${id}/cancel`,
{ {
method: "POST", method: "POST",
body: {}, body: {},