v2

latestOpenAPI 3.1.02026-08-01244220427.0 KB
Loyalty

Create Or Update Loyalty Program Voucher Card Image

Create or Update Card Voucher Image

Updates or creates a new card image for a specific voucher within a loyalty program.

  • Path Parameters:

    • programId: UUID of the loyalty program
    • voucherId: UUID of the voucher
    • type: Type of the card image (e.g., 'thumbnail', 'banner')
  • Request Body:

    • image: Image file to be uploaded.
  • Returns:

    • Updated or new card image details as a JSON object, or an error message if the image is invalid.
post/v2/loyalty/programs/{programId}/vouchers/{voucherId}/card/images/{type}

Path parameters

type'logo' | 'icon' | 'strip' | 'footer' | 'background' | 'thumbnail' required

Supported images Boarding pass: logo, icon, footer Coupon: logo, icon, strip Event ticket: logo, icon, strip, background, thumbnail If you specify a strip image, do not specify a background image or a thumbnail. Generic: logo, icon, thumbnail Store card: logo, icon, strip

Args: StrEnum (type): description

string required
OR
string required
Example:5eb7cf5a86d9755df3a6c593
string required
OR
string required
Example:5eb7cf5a86d9755df3a6c593

Headers

authorizationstring nullable

Response

Successful Response

{"stackTrail":"paths:/v2/loyalty/programs/{programId}/vouchers/{voucherId}/card/images/{type}:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}