> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://walmart.postmansolutions.com/us-marketplace/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://walmart.postmansolutions.com/us-marketplace/_mcp/server.

# Dynamic Client Registration (RFC 7591)

POST https://marketplace.walmart.com/seller/auth/v4/register
Content-Type: application/json

Registers a Solution Provider client and returns its `client_id` (RFC
7591). Lets Solution Providers onboard without manual registration.

Public clients set `token_endpoint_auth_method: none` (no secret; PKCE
required). Confidential clients receive a `client_secret`. `redirect_uris`
are validated and later enforced by exact match at `/auth/v4/authorize`.

Proxied to Walmart IAM's registration endpoint (ADR-026/ADR-048). RFC 7592
registration management (read/update/delete via a
`registration_access_token`) is not offered in this version.


Reference: https://walmart.postmansolutions.com/us-marketplace/api-reference/core-auth/authorization/register-client

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Servers

- `https://marketplace.walmart.com/seller` (Production, default)
- `https://sandbox.marketplace.walmart.com/seller` (Sandbox)

## Request

### Body (application/json)

This endpoint expects a ClientRegistrationRequest.

- `redirect_uris` (list of string, required) — Registered callback URIs. Enforced by exact match at authorize. HTTPS (or localhost).
- `token_endpoint_auth_method` (enum, optional, default: none) — `none` for public clients (PKCE), `client_secret_post`/`client_secret_basic` for confidential.
  - Allowed values: `none`, `client_secret_post`, `client_secret_basic`
- `grant_types` (list of enum, optional) — Grants the client will use.
  - Allowed values: `authorization_code`, `refresh_token`
- `response_types` (list of enum, optional) — Must be `[code]`.
  - Allowed values: `code`
- `client_name` (string, optional) — Human-readable name shown on the consent screen.
- `scope` (string, optional) — Space-delimited scopes the client may request (subset of the sellerAuth catalog + `offline_access`).
- `client_uri` (string, optional) — Homepage of the client.
- `logo_uri` (string, optional) — Logo shown on the consent screen.
- `contacts` (list of string, optional) — Contact emails for the client.

## Response

### 201

Client registered.

- `client_id` (string, required) — Issued client identifier.
- `redirect_uris` (list of string, required) — Registered callback URIs.
- `token_endpoint_auth_method` (string, required) — The registered client authentication method.
- `client_id_issued_at` (long, optional) — Issue time (Unix epoch seconds).
- `client_secret` (string, optional) — Issued only for confidential clients. Treat as a secret; never log.
- `client_secret_expires_at` (long, optional) — Secret expiry (Unix epoch seconds); 0 = never. Absent for public clients.
- `grant_types` (list of string, optional) — Registered grant types.
- `client_name` (string, optional) — Registered client name.
- `scope` (string, optional) — Registered scopes.

## Errors

### 400 Bad Request Error

Invalid client metadata (RFC 7591 §3.2.2).

- `error` (enum, required) — Machine-readable error code.
  - Allowed values: `invalid_redirect_uri`, `invalid_client_metadata`, `invalid_software_statement`, `unapproved_software_statement`
- `error_description` (string, optional) — Human-readable explanation.

### 401 Unauthorized Error

Registration requires an initial access token and none/invalid was supplied.

- `error` (enum, required) — Machine-readable error code.
  - Allowed values: `invalid_redirect_uri`, `invalid_client_metadata`, `invalid_software_statement`, `unapproved_software_statement`
- `error_description` (string, optional) — Human-readable explanation.

### 429 Too Many Requests Error

Rate limit exceeded.

- `error` (enum, required) — Machine-readable error code.
  - Allowed values: `invalid_request`, `invalid_client`, `invalid_grant`, `unauthorized_client`, `unsupported_grant_type`, `invalid_scope`
- `error_description` (string, optional) — Human-readable explanation.
- `error_uri` (string, optional) — Optional link to error documentation.

### 500 Internal Server Error

Internal error.

- `error` (enum, required) — Machine-readable error code.
  - Allowed values: `invalid_request`, `invalid_client`, `invalid_grant`, `unauthorized_client`, `unsupported_grant_type`, `invalid_scope`
- `error_description` (string, optional) — Human-readable explanation.
- `error_uri` (string, optional) — Optional link to error documentation.

## Examples

**Request**

```json
{
  "redirect_uris": [
    "string"
  ]
}
```

**Response**

```json
{
  "client_id": "string",
  "redirect_uris": [
    "string"
  ],
  "token_endpoint_auth_method": "string",
  "client_id_issued_at": 1,
  "client_secret": "string",
  "client_secret_expires_at": 1,
  "grant_types": [
    "string"
  ],
  "client_name": "string",
  "scope": "string"
}
```

**SDK Code**

```python
import requests

url = "https://marketplace.walmart.com/seller/auth/v4/register"

payload = { "redirect_uris": ["string"] }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://marketplace.walmart.com/seller/auth/v4/register';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"redirect_uris":["string"]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://marketplace.walmart.com/seller/auth/v4/register"

	payload := strings.NewReader("{\n  \"redirect_uris\": [\n    \"string\"\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://marketplace.walmart.com/seller/auth/v4/register")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"redirect_uris\": [\n    \"string\"\n  ]\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://marketplace.walmart.com/seller/auth/v4/register")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"redirect_uris\": [\n    \"string\"\n  ]\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://marketplace.walmart.com/seller/auth/v4/register', [
  'body' => '{
  "redirect_uris": [
    "string"
  ]
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://marketplace.walmart.com/seller/auth/v4/register");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"redirect_uris\": [\n    \"string\"\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["redirect_uris": ["string"]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://marketplace.walmart.com/seller/auth/v4/register")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```