KashierDevelopersKashier Developers

Upload a product image

curl -X POST "https://test-api.kashier.io/v2/products/upload" \  -F image="string"
{  "data": {    "fileUrl": "string",    "fileName": "string",    "size": 0  },  "message": "string"}

Uploads an image and returns the hosted URL for it. Upload the file first, then pass the returned URL as the product's image when you create or update it. Files must be under 5 MB.

Authorization

secretKey
Authorization<token>

Merchant secret key used to identify the merchant, obtained from Kashier's dashboard. Pass the raw secret key value in the Authorization header (NOT a "Bearer" token).

In: header

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

POST
/v2/products/upload