Skip to main content
POST
/
v3
/
stores
/
{store_id}
/
public
/
orders
/
{secret_slug}
/
transfer-proof-upload
Create a transfer proof upload URL
curl --request POST \
  --url https://api.scalev.com/v3/stores/{store_id}/public/orders/{secret_slug}/transfer-proof-upload \
  --header 'Content-Type: application/json' \
  --header 'X-Scalev-Storefront-Api-Key: <x-scalev-storefront-api-key>' \
  --data '
{
  "filename": "transfer-proof.png",
  "content_length": 5242880
}
'
{
  "key": "<string>",
  "filename": "<string>",
  "content_type": "<string>",
  "size_in_bytes": 123,
  "file_url": "<string>",
  "upload_url": "<string>"
}

Headers

X-Scalev-Storefront-Api-Key
string
required

Publishable storefront public API key for the target store. Page public API keys are not accepted on Storefront public routes.

Path Parameters

store_id
string
required

Store unique_id.

secret_slug
string
required

Body

application/json
filename
string
required
Example:

"transfer-proof.png"

content_type
enum<string>
required
Available options:
image/jpeg,
image/png,
image/webp
content_length
integer
required

File size in bytes. Maximum 10 MB.

Required range: 1 <= x <= 10485760

Response

Transfer proof upload metadata

key
string
required

Storage object key created by Scalev.

filename
string
required
content_type
string
required
size_in_bytes
integer
required
file_url
string<uri>
required

Public file URL to send as transferproof_url after upload succeeds.

upload_url
string<uri>
required

Presigned URL for direct PUT upload.