Salla Docs
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipment API
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Merchant API
  • Merchant API
  • Salla OAuth 2.0
Partner APIs
  • App API
  • Shipment API
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Change Log
Salla CLI
Salla - Opensource
Salla - Developers Community
  1. Product
  • Overview
  • Languages
  • Notify
  • Event
  • Storage
  • Configuration
  • Forms
  • Helpers
  • Auth
    • Login
    • Logout
    • Verify
    • Resend
    • Register
    • Refresh
  • Cart
    • Latest
    • Details
    • Quick Add
    • Add Item
    • Delete Item
    • Delete Image
    • Add Coupon
    • Remove Coupon
    • Get Upload Image
    • Get Quick Order Settings
    • Create Quick Order
    • Order Status
    • Get Current Cart Id
    • Price Quote
  • Wishlist
    • Add
    • Remove
    • Toggle
  • Loyalty
    • Get Program
    • Exchange
    • Reset
  • Comment
    • Add Comment
    • Fetch
    • Get Page Comments
    • Get Product Comments
  • Profile
    • Update profile
    • Update contact
  • Product
    • Get price
    • Product availability
    • Categories
    • Offer details
    • Search products
    • Get Gift Details
    • Add Gift To Cart
    • Upload Gift Image
    • Get Product Details
    • Fetch
    • Fetch Options
    • Size Guides
  • Order
    • Create cart from order
    • Cancel
    • Send invoice
    • Show order
  • Booking
    • Add
  • Rating
    • Order
    • Store
    • Products
    • Shipping
  • Currency
    • Change
    • List
  • Component
    • Reviews
    • Menus
  1. Product

Upload Gift Image

This endpoint is used to upload a product image associated with the gifted product.
TIP
The upload gift image endpoint has been implemented in the Gifting Web Component, and It's all setup to save developer's time and effort.

Payload#

UploadGifImagePayload
multiPartData
object 
FormData
required
An object for the form that contains the details of the uploaded image.

Response#

Success
Error
product.upoladGiftImage.success
success
boolean 
success
required
Response flag
status
enum<number> 
status
required
Allowed values:
200201202
data
object 
object
required
Data is available when the success is true
url
string 
required
this is the url of the uploaded image

Usage#

To perform the action of uploading a product image associated with a gifted product, the developer may call the method uploadGiftImage() as follows.

Events#

This endpoint may trigger two events, the onGiftImageUploadSucceeded and onGiftImageUploadFailed events.

onGiftImageUploadSucceeded#

This event is triggered when uploading a product image associated with a gifted product is done without having any errors coming back from the backend.

onGiftImageUploadFailed#

This event is triggered when uploading a product image associated with a gifted product is not completed and an error has occurred.
Previous
Add Gift To Cart
Next
Get Product Details