Today I’ve been trying to use Seller Portal’s API for the first time, but I’m not getting the requested information from the server.
I do get an affirmative answer to whether or not my token is validated:
query: curl -X GET -H “Authorization: Bearer [******]" -H "service-account-id: []” “https://devapi.samsungapps.com/auth/checkAccessToken”
answer: {“ok”:true}
Unfortunately, as soon as I try to get some specific info, like the list of my contents, I receive a long message without the requested information, with an empty list at the end:
query: curl -i -X GET -H "Authorization: Bearer []" -H "service-account-id: []" “https://devapi.samsungapps.com/seller/contentList”
answer: "HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 2
Connection: keep-alive
Date: Mon, 22 Nov 2021 05:11:51 GMT
x-amzn-RequestId: []
x-amzn-Remapped-content-length: 2
x-amz-apigw-id: []
vary: Origin
etag: []
x-powered-by: Express
X-Amzn-Trace-Id: []
access-control-allow-credentials: true
X-Cache: Miss from cloudfront
Via: 1.1 [] (CloudFront)
X-Amz-Cf-Pop: []
X-Amz-Cf-Id: [*]
"
Lastly, if I make a query to get the information of a specific theme I’ve already published, I get an errod code 403:
query: curl -i -X GET -H "Authorization: Bearer []" -H "service-account-id: []" “https://devapi.samsungapps.com/seller/contentInfo?contentId=000005591603”
answer: "HTTP/1.1 403 Forbidden
Content-Type: application/json; charset=utf-8
Content-Length: 75
Connection: keep-alive
Date: Mon, 22 Nov 2021 05:11:51 GMT
x-amzn-RequestId: []
x-amzn-Remapped-content-length: 75
x-amz-apigw-id: []
vary: Origin
etag: []
x-powered-by: Express
X-Amzn-Trace-Id: []
access-control-allow-credentials: true
X-Cache: Error from cloudfront
Via: 1.1 [] (CloudFront)
X-Amz-Cf-Pop: MXP63-P3
X-Amz-Cf-Id: [******]
{“from”:“seller”,“body”:"",“message”:“Request failed with status code 403”}"
Have any of you ever encountered a similar problem? Because I really wouldn’t know how to fix this.