Transaction History Details

The Transaction History API provides suppliers with the transaction history for their GTINs at our Walmart stores (such as item sales, returns, receiving, etc).

Endpoints

GET
/store/{storeNbr}/gtin/{gtin}/transactionHistory

Note: In this endpoint, {storeNbr} and {gtin} are the request parameters.

Optional Headers

The following optional header keys are available:

NameDescriptionRequiredData Type
continuationpagetokenTransaction History can contain more than 1 page of response. When this is the case, the response header will contain a Continuation Token. This Continuation Token must be added to the request header of subsequent API requests in order to see more pages. If there are no additional pages, you will not receive a continuationpagetoken header.NoString
locationAreaCan be used as a filter to display the transaction history of items in specific parts of a store. Accepted values (case sensitive): STORE, BACKROOM, MFC. If no value is passed for the parameter, it will default to STORE.NoString
wm_context_identifierA Walmart Supplier's unique identifier.Mandatory for Preferred Service Providers (PSPs) only.String

Request Details

ParameterMandatoryDescriptionData Type
storeNbrYesThe valid store number for which the user is looking for details.Integer
gtinYesThe 14-digit Global Trade Item Number that uniquely identifies the items.String
eventTypeNoReturns a code associated with the events that took place. All event types will be returned by default. See Event Type Codes below for more information.String
startDateNoThis is the reference start Date over which the events occurred (last 7 days by default). This Date should be in yyyy-mm-dd format.String
endDateNoThis is the final Date over which the events occurred (current Date by default). This Date should be in yyyy-mm-dd format.String

Event Type Codes

The following explains the event type code meanings associated with the transaction history events.

eventTypeEvent
BRBackroom
CID_GTIN_BALANCEInternal Enterprise Inventory (EI) Activity. Example: Reconciling a multi GTIN item where one is showing surplus and the other is showing negative.
CORRECTIONAny correction event. Corrections can come from a Walmart associate or a system such an In Stock Assistant. Corrections could also be sent by vendor from the IAC endpoint.
DECANTINGMarket Fulfillment Center (MFC) event – used when inventory is taken from receiving to the dedicated MFC area to be picked.
DISASTERA claims event – used during a disaster to remove the inventory from available.
DISPOSEStore has thrown away an item. Example: Bad produce.
DONATEStore has donated the item. Example: Donating water to a local community fundraiser.
EFOCeCommerce event – full order was canceled.
EODCeCommerce event – order dispense was canceled.
EODReCommerce event – order dispense was rejected by the customer.
EOPCeCommerce event – order pick event for an Online Pickup and Delivery (OPD) order.
EOPXeCommerce event – order pack exception.
EOUPeCommerce event – order pack complete.
INCRInventory correction event – only applicable to Fulfillment Centers (FC) and Distribution Centers (DC).
INRFInternal Enterprise Inventory (EI) event - Inventory Refresh – Never changes quantity.
INVENTORY_REMOVALMFC event – removing inventory for an MFC.
LIQUIDATEItem is entering the Customer Value Program – EI will lose insight on the item once it has entered the customer value program. Example: items that are being marked down due to a nearing expiration Date.
LRLegacy Receiving - a product is received in the store. Most common for direct-to-store DSD items.
NBInternal Enterprise Inventory event – replays old events for reconciliation.
NGRNext-Gen Receiving - inventory receiving process for non-DSD items.
NIL_PICKOnline Pickup and Delivery (OPD) order event indicating the item was not found to be picked.
PCID (Prime CID Change Process)Item Setup change has occurred – no change of inventory. Example: a GTIN moving between two CIDs.
PIInventory correction.
RECLAMATIONInventory is being taken out of “available" state to enter the claims process.
REINDUCT_REJECTMFC event – When an item has been reintroduced to the MFC after removal, but was rejected.
REMOVALInventory removal event – Items removed from the store by the supplier via the IAC endpoint.
RETURNSReturns event. [Replaces Legacy Pick (LP)]
SALESSales event. [Replaces Legacy Pick (LP)]
SHORTAGECorrection event – occurs when a store does not receive the expected quantity of an item from a DC.
STOCK_TRANSFEROccurs when an item is moved between stores.
STOCKEDReceiving event – Vendor Delivered – Pay from scan (PFS) business event – Sent from vendor.
STOLENStore has reported the item as stolen. The item is then taken out of the "available" status.
STORE_USEItem has been taken off the shelf for store use.
TIMEBOUND_STATEInternal EI event – Automatic correction of inventory state. Example: an item was received in the backroom 24 hours ago but never showed a binned status, correction occurs to move the item to the sales floor status.
TSBR – EI TickTick ReconciliationInternal EI event – Generated due to the system detecting events being received out of order – Event corrects the order and reconciles the timing.

Response Details

ParameterDescriptionData Type
supplierThe name of the supplier.String
storeNbrThe store number associated with the events.Integer
gtinThe 14-digit Global Trade Item Number that uniquely identifies the items.String
eventHistoryThe returned transaction history.Array
eventTypeThe type of event that occurred.String
eventQtyThe product count that was affected.Double
eventCreationTimeThe time the event was created.Date
aggregatedQtyThe inventory count after the event occurred.Double

Sandbox Test Values

Below are the sample Request Parameters (StoreNbr & GTIN combinations) you can utilize to test the Transaction History endpoint for all the successful and error scenarios in your sandbox environment. The values provided are strictly applicable for the sandbox environment only and will only work with a sandbox consumer ID.

Testing ScenariosStore Number (StoreNbr)GTINEvent TypeStart DateEnd DateResponse Sample
SUCCESS 200 OK4500044444444444-00044444444449

00055555555555-00055555555559
LP, POF, LR, PI, BR, ALL2023-02-162023-02-22{
"supplier":"Awesome Company",
"storeNbr":45,
"gtin":"00044444444444",
"eventHistory":[
{
"eventType":"LP",
"eventQty":3,
"eventCreationTime":"2023-02-22T06:00:00",
"aggregatedQty":150
},
{
"eventType":"POF",
"eventQty":4,
"eventCreationTime":"2023-02-21T21:01:02",
"aggregatedQty":147
},
{
"eventType":"LR",
"eventQty":5,
"eventCreationTime":"2023-02-21T12:03:06",
"aggregatedQty":143
},
{
"eventType":"PI",
"eventQty":6,
"eventCreationTime":"2023-02-21T03:06:12",
"aggregatedQty":138
},
{
"eventType":"BR",
"eventQty":7,
"eventCreationTime":"2023-02-20T18:10:20",
"aggregatedQty":132
},
{
"eventType":"LP",
"eventQty":8,
"eventCreationTime":"2023-02-20T09:15:30",
"aggregatedQty":125
......
NOT FOUND 4043000082233344455LP, POF, LR, PI, BR, ALL2023-02-162023-02-22{
"errors": [
{
"instance": "/store/30/gtin/00082233344455/transactionHistory",
"message": "The requested GTIN is not mapped to the Supplier.",
"status": "NOT_FOUND",
"timestamp": "2022-06-28T13:59:18"
        }
    ]
}
4500088888888888 or 00099999999999LP, POF, LR, PI, BR, ALL2023-02-162023-02-22{
"errors": [
{
"instance": "/store/45/gtin/00088888888888/transactionHistory",
"message": "Data not found for the given request parameters.",
"status": "NOT_FOUND",
"timestamp": "2022-06-29T12:44:33"
        }
    ]
}
400 Bad Request-45 (Invalid store number)00044444444444LP, POF, LR, PI, BR, ALL2023-02-162023-02-22{
"errors": [
{
"fieldName": "storeNbr",
"message": "Invalid storeNbr.",
"status": "BAD_REQUEST",
"timestamp": "2022-06-29T15:06:55"
        }
    ]
}
45- 00044444444444 (Invalid GTIN)LP, POF, LR, PI, BR, ALL2023-02-162023-02-22{
"errors": [
{
"fieldName": "gtin",
"message": "Invalid GTIN.",
"status": "BAD_REQUEST",
"timestamp": "2022-06-29T15:07:35"
        }
    ]
}
4500044444444444123 (Invalid event type)2023-02-162023-02-22{
"errors": [
{
"fieldName": "eventType",
"message": "Invalid eventType.",
"status": "BAD_REQUEST",
"timestamp": "2022-06-29T15:07:35"
        }
    ]
}
4500044444444444LP, POF, LR, PI, BR, ALL2023-02-25 (Invalid Date)2023-02-22{
"errors": [
{
"fieldName": "startDate",
"message": "Start date cannot be greater than end date",
"status": "BAD_REQUEST",
"timestamp": "2022-06-29T15:07:35"
        }
    ]
}


©️Walmart | All Rights Reserved