Skip to content

Latest Report Date

Overview

This endpoint allow us to retrieve the latest date for which the Ads Performance reports are available so that the reporting can be pulled and consumed for the advertisers’ ads campaigns.

Usage: To provide the latest date for which the performance reports have been processed and can be accessed.

Details about ‘Request Header' and 'Authorization’ are available in the Authorization Guide

Get Latest Report Date

Description: Retrieve the latest date for which the performance reports have been processed and can be accessed.

End Point: /api/v1/latestReportDate

HTTP Method: GET

Sample Request

1
2
3
4
5
6
7
8
  curl --location 
'https://developer.api.us.stg.walmart.com/api-proxy/service/sp/api-sams/v1/api/v1/latestReportDate'
--header 'Authorization: Bearer ************************'
--header 'wm_consumer.id: *****************'
--header 'wm_sec.key_version: 2'
--header 'wm_sec.auth_signature: *************'
--header 'wm_qos.correlation_id: 12345'
--header 'wm_consumer.intimestamp: 1701088178000'
OkHttpClient client = new OkHttpClient().newBuilder().build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "");
Request request = new Request.Builder()
.url("https://developer.api.us.stg.walmart.com/api-proxy/service/sp/api-sams/v1/api/v1/latestReportDate")
.method("GET", body)
.addHeader("Authorization", "Bearer *********************")
.addHeader("wm_consumer.id", "***********************")
.addHeader("wm_sec.key_version", "2")
.addHeader("wm_sec.auth_signature", "***********************")
.addHeader("wm_qos.correlation_id", "12345")
.addHeader("wm_consumer.intimestamp", "1700221256000").build();
Response response = client.newCall(request).execute();
const axios = require('axios'); 
let config = { 
method: 'get', 
maxBodyLength: Infinity, 

url: 'https://developer.api.us.stg.walmart.com/api-proxy/service/sp/api-sams/v1/api/v1/latestReportDate', 

headers: {  
  'wm_consumer.id': '*************',  
  'wm_sec.key_version': '2',  
  'wm_sec.auth_signature': '******************',  
  'wm_qos.correlation_id': '12345',  
  'wm_consumer.intimestamp': '******************', 
  'Authorization': 'Bearer *************' 
} 
}; 
axios.request(config) 
.then((response) => { 
  console.log(JSON.stringify(response.data)); 
}) 
.catch((error) => { 
console.log(error); 
}); 
import requests
url = "https://developer.api.us.stg.walmart.com/api-proxy/service/sp/api-sams/v1/api/v1/latestReportDate"
payload = {}
headers = {
  'Authorization': 'Bearer ************************',
  'wm_consumer.id': '************',
  'wm_sec.key_version': '2',
  'wm_sec.auth_signature': '***********',
  'wm_qos.correlation_id': '12345',
  'wm_consumer.intimestamp': '1706866771000'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)

Response

Element Description Type
latestReportDate Get the latest date for which reports are available. The format is yyyy-MM-dd Date

Sample Response

[
  {
    "latestReportDate": "2020-03-02"
  }
]

HTTP Status Code

Status Code Description Possible Error Messages
403 Forbidden User not Authenticated
429 Too Many Requests <Exception Message>
500 Internal server error There was an error processing the request