Upload Logo Image for Brand Asset

📘

URL: POST /api/v1/brand_assets/logo_image_upload

Note: The logo image should match the promoted brand of the brand asset.

Query Parameters

ParameterDescriptionTypeRequiredPossible Values
advertiserIdThe ID of the advertiserintegerYUnique advertiser ID
BrandAssetUploadRequestBrandAssetUploadRequest is a JSON object specifying brandAssetIdstringY'BrandAssetUploadRequest="{"brandAssetId": "<BRANDASSET_ID>"}

Request Parameters

ParameterDescriptionTypeRequiredPossible Values
fileLocal file path to the desired image to be uploadedstringY
  • .png or .jpg format accepted
  • Recommended size 200KB, max 1MB

  • 300 px wide x 180 px tall (recommended)
  • Logos with transparent backgrounds must be uploaded in .png format



Sample Request

curl -X POST 'https://developer.api.stg.walmart.com/api-proxy/service/WPA/Api/v1/api/v1/brand_assets/logo_image_upload?advertiserId=400000' \ --header 'accept: application/json' \ --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' \ --form 'BrandAssetUploadRequest="{"brandAssetId":"10159"}"' \ --form 'file=@"placeholder-address:///1eec50a0-7267-4610-b8f1-64b35fb12345"' 

Response

ParameterDescriptionType
brandAssetIdThe ID of the brand asset to be updatedinteger
codeThe response code can have following values:  success, failure

Click here for more information on API Status Codes and Errors
string
detailsDetails of the error if value of response code is failure.string

Sample Response

{ "brandAssetId": 10159, "code": "success", "details": ""
}