question

daddy_white avatar image
0 Likes"
daddy_white asked

Mandatory Headers are missing - even when using the API test tool??

When using the Compliance API, and the getListingViolationsSummary I get the response: { "errors": [ { "errorId": 850114, "domain": "API_COMPLIANCE", "category": "REQUEST", "message": "Mandatory headers are missing" } ] } This happens when using the API test tool (eg: https://developer.ebay.com/DevZone/build-test/test-tool/default.aspx?api=compliance&call=listing_violation_summary__GET&variation=json&index=0&env=sandbox) This happens in both sandbox and production. The OAuth token is the only required header along with the X-EBAY-C-MARKETPLACE-ID which is auto set by the testing tool anyway. Anyone any ideas? See screenshot here: https://imgur.com/a/OEzjzhC Thanks
api test toolcompliance api
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

webbedin avatar image
0 Likes"
webbedin answered
I was receiving this error when using the OAuth application token instead. Make sure you use the OAuth User Token
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ozfy avatar image
0 Likes"
ozfy answered
It's not working for me. I have tried both OAuth application token and OAuth User Token but the result is same. Can anyone from Ebay help in this ? Thanks
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ao avatar image
0 Likes"
ao answered
Try to use OAuth code grant flow to obtain Bearer token.
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.