selling-partner-api-sdk
selling-partner-api-sdk copied to clipboard
(Bug) Invalid input content type
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) => {})