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>

Your secret key from the Kashier dashboard. Send the raw key value in the Authorization header, without a Bearer prefix.

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