Skip to main content
Retailers represent B2B retail partners for the calling merchant. Retailer records can include fulfillment defaults, retailer-specific custom fields, EDI identifiers, ship-to locations, and routing-guide metadata.

Methods


Entity Properties


Additional Resources


retailer.list

retailer.list(filters, options, fields) Retrieve a paged list of Retailers for the calling merchant. Terminated Retailers are excluded unless a status filter is supplied or options.include_terminated is true.

Parameters

filters
object
Optional search filters. Supported fields: retailer_id, code, name, status, fulfillment_model, parent_retailer_id, created_at, and updated_at.
options
object
Optional search options. Supported options: sort_field, sort_dir, page, limit, and include_terminated.
fields
array
Optional list of Retailer fields to return. Use nested fields such as identifiers, ship_to_locations, and routing_guides only when those child records are needed.

Return Value

An object with results, totalCount, and numPages. Each item in results contains Retailer properties.

Example Request

Request
{
    "jsonrpc" : "2.0",
    "id"      : 1234,
    "method"  : "call",
    "params"  : [
        "34aa989befe360d67fe3f70b3517a1e5",
        "retailer.list",
        [
            { "status" : "active" },
            { "sort_field" : "code", "sort_dir" : "asc", "limit" : 50 },
            ["retailer_id", "code", "name", "status", "fulfillment_model"]
        ]
    ]
}

Example Response

Response
{
    "jsonrpc": "2.0",
    "id": 1234,
    "result": {
        "results": [
            {
                "retailer_id": 123,
                "code": "walmart",
                "name": "Walmart",
                "status": "active",
                "fulfillment_model": "wholesale"
            }
        ],
        "totalCount": 1,
        "numPages": 1
    }
}

retailer.info

retailer.info(code, fields) Retrieve one Retailer by its merchant-facing code. The lookup is scoped to the calling merchant.

Parameters

code
string
required
The Retailer code.
fields
array
Optional list of fields to return.

Return Value

An object containing Retailer properties.

Example Request

Request
{
    "jsonrpc" : "2.0",
    "id"      : 1234,
    "method"  : "call",
    "params"  : [
        "34aa989befe360d67fe3f70b3517a1e5",
        "retailer.info",
        [
            "walmart",
            ["retailer_id", "code", "name", "identifiers", "ship_to_locations", "routing_guides"]
        ]
    ]
}

Example Response

Response
{
    "jsonrpc": "2.0",
    "id": 1234,
    "result": {
        "retailer_id": 123,
        "code": "walmart",
        "name": "Walmart",
        "identifiers": [
            {
                "identifier_id": 456,
                "qualifier": "duns",
                "qualifier_x12": "01",
                "value": "123456789",
                "label": "Walmart DUNS",
                "is_primary": true,
                "notes": null,
                "created_at": "2026-05-28T12:00:00+00:00",
                "updated_at": "2026-05-28T12:00:00+00:00"
            }
        ],
        "ship_to_locations": [
            {
                "ship_to_location_id": 789,
                "code": "DC01",
                "location_type": "dc",
                "city": "Bentonville",
                "region": "AR",
                "country_id": "US",
                "is_default": true,
                "status": "active"
            }
        ],
        "routing_guides": [
            {
                "guide_id": 987,
                "title": "Walmart Routing Guide",
                "file_name": "walmart-routing-guide.pdf",
                "file_type": "pdf",
                "file_size": 128000,
                "uploaded_by": "Organization User: Jane Manager",
                "uploaded_at": "2026-05-28T12:00:00+00:00"
            }
        ]
    }
}

Entity Properties

Retailer Properties

Retailer Identifier Properties

Retailer Ship-To Location Properties

Retailer Routing Guide Properties