selling-partner-api-sdk icon indicating copy to clipboard operation
selling-partner-api-sdk copied to clipboard

(Bug) Invalid input content type

Open PixsaOJ opened this issue 1 year ago • 0 comments

I am trying to cancel fulfillment order using cancelFulfillmentOrder

I saw this issue on version 1.10.3 so I upgraded to 2.1.1 and upgraded Auth library as well.

For some reason I get this content type error. Is it possible that Amazon has new requirement for content type? Maybe charset=utf8 is not set. I don't recall having this issue before.

[
  {
    code: 'InvalidInput',
    message: 'Invalid Input',
    details: 'Content type must be set to application/json; charset=utf-8.'
  }
]

How I use it

await this.client.cancelFulfillmentOrder({
  sellerFulfillmentOrderId: id
})
.then((response) => {})

PixsaOJ avatar Apr 29 '24 20:04 PixsaOJ