Ordexs API v1 Get an API key

Products

Create an image upload slot

POSThttps://api.ordexs.com/v1/uploads

For a file you have rather than a public URL. PUT the image's bytes to upload_url (with the headers given, within 15 minutes), then pass id as upload_id to POST /v1/products/{product_id}/images. A slot that is never used is deleted after a day.

Body

  • content_typestringRequired

    One of image/jpeg, image/png, image/webp, image/avif

  • sizeintegerRequired

    Bytes. Images are 3 MB at most.

    1–3145728

Returns

201 Created · The slot. Upload

  • objectstring

    always "upload"

  • idstring

    starts with upl_

  • upload_urlstring
  • methodstring

    always "PUT"

  • headersobject
  • max_bytesinteger
  • expires_atstring

    ISO 8601 date-time, UTC

Errors

Every error has the same shape. This endpoint can answer with: