Step 4 Invoking APIs

Once you've completed the previous steps, you're ready to call APIs!

After completing those steps you should have:

  • Your Walmart issued, unique Client ID: this needs to be passed as mandatory request header wm_consumer.id
  • The ability to generate a Bearer Token: this needs to be passed as mandatory request header Authorization

📘

Please note that client_id and wm_consumer.id are the same value. These parameters may be used interchangeably.

If you do not already have a Client ID, please return to Step 2 Requesting Access.

For more information about generating a Bearer Token, please return to Step 3 Generating Tokens.

Invoking APIs

To start calling APIs, you can use any applicable tool. We recommend the Try It feature in our documentation! You can also find cURL examples below.

Before heading to the documentation to start calling, please take a moment to review the following pages for additional helpful reference information. Most of this information is already included in our docs, it is just here for quick reference.

Sandbox cURL Example

curl --location --request POST 'https://api.stg.walmartdataventures.com/api-proxy/service/inventory/shipments-sandbox/v1/direct-store-shipment-events' \
--header 'Content-Type: application/json' \
--header 'wm_consumer.id: YOUR_CONSUMER_ID' \
--header 'Authorization: YOUR_GENERATED_TOKEN' \
--data-raw '{ "message_id": "YOUR_UNIQUE_MESSAGE_ID", "event_creation_time": YOUR_EVENT_TIMESTAMP_MS, "event_type": "EVENT_TYPE", "destinations": [ { "shipment_delivery_date": "YYYY-MM-DD", "store_number": "STORE_NUMBER", "loads": [ { "asn": "ASN_NUMBER", "pack_number": "PACK_NUMBER_20_DIGITS", "shipment": { "location_area": "LOCATION_AREA" } } ] } ]
}

Production cURL Example

curl --location --request POST 'https://api.walmartdataventures.com/api-proxy/service/inventory/shipments/v1/direct-store-shipment-events' \
--header 'Content-Type: application/json' \
--header 'wm_consumer.id: YOUR_CONSUMER_ID' \
--header 'Authorization: YOUR_GENERATED_TOKEN' \
--data-raw '{ "message_id": "YOUR_UNIQUE_MESSAGE_ID", "event_creation_time": YOUR_EVENT_TIMESTAMP_MS, "event_type": "EVENT_TYPE", "destinations": [ { "shipment_delivery_date": "YYYY-MM-DD", "store_number": "STORE_NUMBER", "loads": [ { "asn": "ASN_NUMBER", "pack_number": "PACK_NUMBER_20_DIGITS", "shipment": { "location_area": "LOCATION_AREA" } } ] } ]
}




©️Walmart | All Rights Reserved