post-api2-dashboard-offers-upload_redeemable_image

Upload Redeemable Image

Allows a business to upload images for redeemables in bulk by first uploading them to a server or network and then providing the image URL in the API request. The maximum allowed image size is 500 KB.

Headers
  • Accept
    Type: string

    Set this header to application/json

  • Authorization
    Type: string
    required

    Bearer token for admin authorization, who is making a call on behalf of the customer. Send the API key in the following format: "Authorization: Bearer BUSINESS_ADMIN_KEY_GOES_HERE".

  • Content-Type
    Type: string

    Set this header to application/json

Body
application/json
  • data
    Type: array object[]

    A list of image URLs that need to be uploaded

Responses
  • 200
    Type: object
    • results
      Type: array object[]

      List of responses indicating if the entity is created or not

  • 400
    Type: object
    • error
      Type: string
  • 401
    Type: object
    • error
      Type: string
  • 403
    Type: object
    • error
      Type: string
post/api2/dashboard/offers/upload_redeemable_image
{
  "results": [
    {
      "external_id": "string",
      "success": true,
      "errors": [
        "string"
      ]
    }
  ]
}