Here to say that I’m encountering the very same issue.
Trying to generate token according to api documentation:
Sending post request like that (except login and pw are replaced accordingly. Tried to attach collection as a file, but apparently I can’t do that, so pasted below):
{
"info": {
"_postman_id": "9f3aabae-3317-4c62-bbd1-fa891aa1b64d",
"name": "walmart test",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "22134029"
},
"item": [
{
"name": "New Request",
"protocolProfileBehavior": {
"disabledSystemHeaders": {
"accept": true
}
},
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "client_secret",
"type": "string"
},
{
"key": "username",
"value": "client_id",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "WM_SVC.NAME",
"value": "Walmart Service Name asda",
"type": "text"
},
{
"key": "Accept",
"value": "application/json",
"type": "text"
},
{
"key": "WM_QOS.CORRELATION_ID",
"value": "test",
"type": "text"
},
{
"key": "WM_SVC.VERSION",
"value": "1.0.0",
"type": "text"
}
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "grant_type",
"value": "client_credentials",
"type": "text"
}
]
},
"url": {
"raw": "https://marketplace.walmartapis.com/v3/token",
"protocol": "https",
"host": [
"marketplace",
"walmartapis",
"com"
],
"path": [
"v3",
"token"
]
}
},
"response": []
}
]
}
Getting the following response:
{
"error": [
{
"code": "INVALID_REQUEST_HEADER.GMP_GATEWAY_API",
"field": "Authorization",
"description": "Incorrect Authorization header",
"info": "One or more request headers are invalid.",
"severity": "ERROR",
"category": "DATA",
"causes": [],
"errorIdentifiers": {}
}
]
}
I’m out of ideas what exactly went wrong and how to solve it. If anyone has any tips - that would be greatly appreciated