---
updatedAt: 2026-08-25T20:17:49.000Z
---

# Create an access token

This request creates an access token.

<HTMLBlock>{`
<a
  href="https://god.gw.postman.com/run-collection/34477757-bbb62b66-6e8c-4b4e-bb99-f609d50fb5aa?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D34477757-bbb62b66-6e8c-4b4e-bb99-f609d50fb5aa%26entityType%3Dcollection%26workspaceId%3D1f673f2c-8ec6-48f9-8459-003eef27c6ab"
  target="_blank"
  style="text-decoration: none"
>
  <button>
    <img
      src="https://run.pstmn.io/button.svg"
      alt="Run In Postman"
      style="width: 128px; height: 32px"
    />
  </button>
</a>
`}</HTMLBlock>

<br />

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Authentication management",
    "description": "Use the Authentication API to create access tokens to ensure that your users are verified.\n\nThe Walmart Supplier APIs use <a href=\"https://oauth.net/2/\" :target=\"_blank\"> OAuth 2.0</a> bearer tokens for token-based authentication.\n",
    "version": "1.0",
    "contact": {
      "name": "contact name"
    }
  },
  "x-readme": {
    "samples-languages": [
      "shell"
    ],
    "proxy-enabled": true
  },
  "servers": [
    {
      "url": "https://api-gateway.walmart.com",
      "description": "Production URL"
    },
    {
      "url": "https://sandbox.walmartapis.com",
      "description": "Sandbox URL"
    },
    {
      "url": "https://aurora-api-gateway.prod.walmart.com",
      "description": "EPCIS 2.0 URL"
    }
  ],
  "tags": [
    {
      "name": "Authentication",
      "description": "Use the Authentication API to create access tokens to ensure that your Walmart Supplier API users are verified.\n\nThe Walmart Supplier APIs use <a href=\"https://oauth.net/2/\" :target=\"_blank\"> OAuth 2.0</a> bearer tokens for token-based authentication.\n"
    }
  ],
  "paths": {
    "/v3/token": {
      "post": {
        "tags": [
          "Authentication"
        ],
        "operationId": "postCreateAnAccessToken",
        "summary": "Create an access token",
        "description": "This request creates an access token.",
        "parameters": [
          {
            "in": "header",
            "name": "Accept",
            "required": false,
            "schema": {
              "type": "string",
              "default": "application/json"
            },
            "description": "Specifies the data format returned in the response.\n\nValid values are:\n\n| Value | Meaning |\n| --- | --- |\n| application/json | JSON format for data returned in response. |\n| application/xml | XML format for data returned in response. |\n",
            "example": "application/json"
          },
          {
            "in": "header",
            "name": "Authorization",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Specifies the authorization value in the format `Basic <authorizationvalue>`.\n\nFor information about generating the authorization value, see [Authentication management](/suppliers/docs/authentication-management).\n",
            "example": "Basic ZGI3ZE1kcWlR"
          },
          {
            "in": "header",
            "name": "WM_QOS.CORRELATION_ID",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Specifies an identifier for each API call that you can use to track and debug issues.\n\nUse a randomly generated GUID for this ID.\n",
            "example": "6b007f0a-3171-4135-86b5-db805f34e13b"
          },
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string",
              "default": "application/x-www-form-urlencoded"
            },
            "description": "Specifies the data format for the request.\n\nValid value:\n`application/x-www-form-urlencoded`\n",
            "example": "application/x-www-form-urlencoded"
          },
          {
            "in": "header",
            "name": "WM_CONSUMER.CHANNEL.TYPE",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Specifies an identifier that tracks the consumer request by channel.\n\nUse the consumer channel type received during onboarding.\nSee your system administrator or development management for the `WM_CONSUMER.CHANNEL.TYPE` value.\n",
            "example": "29866657-af1a-4292-bcc6-ece7157ec387"
          },
          {
            "in": "header",
            "name": "WM_MARKET",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Specifies a country in which Walmart conducts business.\nFor example, Canada is the \"CA\" market.\n\nThis header is required for suppliers to the Canada (CA) market.\n\n<p style=\"color:green\"><strong>Market availability: Global</strong></p>\n",
            "example": "CA"
          }
        ],
        "requestBody": {
          "description": "Specifies an object for the access token request.\n\nYou must submit the `grant_type` field in `x-www-form-urlencoded` format.\n",
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "grant_type"
                ],
                "properties": {
                  "grant_type": {
                    "type": "string",
                    "description": "Specifies the OAuth 2.0 `client_credentials` grant type.\n\nValid value:\n`client_credentials`\n",
                    "enum": [
                      "client_credentials"
                    ]
                  }
                }
              },
              "examples": {
                "default": {
                  "summary": "Example form data",
                  "value": {
                    "grant_type": "client_credentials"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Operation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "access_token": {
                      "type": "string",
                      "description": "The access token object.\nUse this access token for all API requests.\n",
                      "example": "eyJraWQiOiIzZj…VhYTFmNS1hYWE5LTQzM"
                    },
                    "token_type": {
                      "type": "string",
                      "description": "Indicates the type of access token.\n\nValid value:\nBearer\n",
                      "example": "Bearer"
                    },
                    "expires_in": {
                      "type": "integer",
                      "format": "int32",
                      "description": "Indicates the number of seconds until the access token expires, typically 900 seconds (15 minutes).",
                      "example": 900
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "array",
                      "description": "Array of objects containing error information.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "description": "Error code of the response.",
                            "example": "UNAUTHORIZED.GMP_GATEWAY_API"
                          },
                          "field": {
                            "type": "string",
                            "description": "Specifies which field contains the error.",
                            "example": "UNAUTHORIZED"
                          },
                          "description": {
                            "type": "string",
                            "description": "Description of the error.",
                            "example": "Unauthorized"
                          },
                          "info": {
                            "type": "string",
                            "description": "Information about the error.",
                            "example": "Unauthorized token or incorrect authorization header.\nVerify that you are using the correct format: `Authorization: Basic Base64Encode(clientId:clientSecret)`.\n\nFor more information, refer to https://developer.walmart.com/suppliers/docs/authentication-management.\n"
                          },
                          "severity": {
                            "type": "string",
                            "description": "Severity of the error.",
                            "example": "ERROR"
                          },
                          "category": {
                            "type": "string",
                            "description": "Category of the error.",
                            "example": "DATA"
                          },
                          "causes": {
                            "type": "array",
                            "description": "List of error causes",
                            "items": {
                              "type": "string",
                              "description": "Cause of the error."
                            }
                          },
                          "errorIdentifiers": {
                            "type": "object",
                            "description": "Error identifiers associated with the error."
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "401 - Unauthorized Error": {
                    "summary": "Unauthorized example",
                    "value": {
                      "error": [
                        {
                          "code": "UNAUTHORIZED.GMP_GATEWAY_API",
                          "field": "UNAUTHORIZED",
                          "description": "Unauthorized",
                          "info": "Unauthorized token or incorrect authorization header.\n\nVerify correct format: Authorization: `Basic Base64Encode(clientId:clientSecret)`.",
                          "severity": "ERROR",
                          "category": "DATA",
                          "causes": [],
                          "errorIdentifiers": {}
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-tagGroups": [
    {
      "name": "1P Suppliers Authentication Reference",
      "tags": [
        "Authentication"
      ]
    }
  ]
}
```