Langsung ke konten utama
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_type": "image/jpeg",
  "content_length": 5242880
}
'
{
  "key": "<string>",
  "filename": "<string>",
  "content_type": "<string>",
  "size_in_bytes": 123,
  "file_url": "<string>",
  "upload_url": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.scalev.com/llms.txt

Use this file to discover all available pages before exploring further.

Header

X-Scalev-Storefront-Api-Key
string
wajib

Publishable storefront public API key for the target store.

Parameter Path

store_id
string
wajib

Store unique_id.

secret_slug
string
wajib

Body

application/json
filename
string
wajib
Contoh:

"transfer-proof.png"

content_type
enum<string>
wajib
Opsi yang tersedia:
image/jpeg,
image/png,
image/webp
content_length
integer
wajib

File size in bytes. Maximum 10 MB.

Rentang yang diperlukan: 1 <= x <= 10485760

Respons

Transfer proof upload metadata

key
string
wajib

Storage object key created by Scalev.

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

Public file URL to send as transferproof_url after upload succeeds.

upload_url
string<uri>
wajib

Presigned URL for direct PUT upload.