Skip to content

Add gift card image

You can assign an image to a gift card by using the following endpoint:

POST https://[base_url]/v1/gift-cards/{{gift_card_code}}/image

Body parameters

  • The file must be in .png or .jpg format.

  • Use Content-Type: multipart/form-data.

  • The file field must be named gift_card_image.

Endpoint response

Status code: 200

{
    "msg": "Imagen de tarjeta regalo asignada correctamente.",
    "extra_info": {
        "metadata": [
            {
                "id": 13,
                "original_name": "imagen de prueba.pdf",
                "key": "gift_cards/9e3037ef-6cf7-4625-8483-4ed2a6317bef.pdf"
            }
        ]
    }
}

Status code: 401, 403, 404

{
 "code": "Status code",
 "message":"Error description",
 "detail": "Error details"
}