Sample Requests and Responses for Create Entity Snapshot
Sample Request 1
curl -X POST \ 'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/snapshot/entity' \ --header 'Authorization: Bearer <auth_token>' \ --header 'WM_SEC.AUTH_SIGNATURE: ***********' \
--header 'WM_SEC.KEY_VERSION: 1' \ --header 'WM_CONSUMER.ID: adfwe-v23-faasd2r-afs-asdfqeff' \ --header 'WM_CONSUMER.intimestamp: 1565309779'\ --header 'accept: application/json' \ --data '{ "advertiserId": 600001, "entityStatus": "active", "entityTypes": ["campaign"] }'
Sample Response 1
[ { "code" : "success", "snapshotId" : "1", "details" : " ", "jobStatus" : "pending" }
]
Sample Request 2
curl -X POST \ 'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/snapshot/entity' \ --header 'Authorization: Bearer <auth_token>' \ --header 'WM_SEC.AUTH_SIGNATURE: ***********' \
--header 'WM_SEC.KEY_VERSION: 1' \ --header 'WM_CONSUMER.ID: adfwe-v23-faasd2r-afs-asdfqeff' \ --header 'WM_CONSUMER.intimestamp: 1565309779'\ --header 'accept: application/json' \ --data '{ "advertiserId": 600003, "entityStatus": "inactive", "entityTypes" : ["lineItem"] }'
Sample Response 2
[ { "code" : "success" , "snapshotId" : "2", "details" : " ", "jobStatus" : "pending" } ]
Sample Request 3
curl -X POST \ 'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/snapshot/entity' \ --header 'Authorization: Bearer <auth_token>' \ --header 'WM_SEC.AUTH_SIGNATURE: ***********' \
--header 'WM_SEC.KEY_VERSION: 1' \ --header 'WM_CONSUMER.ID: adfwe-v23-faasd2r-afs-asdfqeff' \ --header 'WM_CONSUMER.intimestamp: 1565309779'\ --header 'accept: application/json' \ --data '{ "advertiserId": 600003, "entityStatus": "enabled", "entityTypes" : ["campaign", "lineItem"]
}'
Sample Response 3
[ { "code" : "success" , "snapshotId" : 3, "details" : "", "jobStatus" : "pending" } ]
Sample Request 4
curl -X POST \ 'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/snapshot/entity' \ --header 'Authorization: Bearer <auth_token>' \ --header 'WM_SEC.AUTH_SIGNATURE: ***********' \
--header 'WM_SEC.KEY_VERSION: 1' \ --header 'WM_CONSUMER.ID: adfwe-v23-faasd2r-afs-asdfqeff' \ --header 'WM_CONSUMER.intimestamp: 1565309779'\ --header 'accept: application/json' \ --data '{ "advertiserId": 600003, "entityStatus": "inactive", "entityTypes" : "" }'
Sample Response 4
[ { "code" : "failure" , "snapshotId" : null, "details" : "Entity Types is a mandatory field. It should be either of ["campaign"] or ["lineItem"].", "jobStatus": null } ]
Sample Request 5
curl -X POST \ 'https://developer.api.us.stg.walmart.com/api-proxy/service/display/api/v1/api/v1/snapshot/entity' \ --header 'Authorization: Bearer <auth_token>' \ --header 'WM_SEC.AUTH_SIGNATURE: ***********' \
--header 'WM_SEC.KEY_VERSION: 1' \ --header 'WM_CONSUMER.ID: adfwe-v23-faasd2r-afs-asdfqeff' \ --header 'WM_CONSUMER.intimestamp: 1565309779'\ --header 'accept: application/json' \ --data '{ "advertiserId": 600003, "entityStatus": "", "entityTypes" : ["campaign"] }'
Sample Response 5
[ { "code" : "failure" , "snapshotId" : null, "details" : "Entity Status is a mandatory field. It should be either 'active','inactive' or 'all'.", "jobStatus" : null }
]
Updated 2 months ago