업로드
주문 입력 이미지 업로드 자리 발급
파일 바이트는 이 API를 거치지 않는다 — 응답 `uploadUrl`에 파일을 그대로 PUT하면(1시간 유효) `url`이 공개 주소가 되고, 그 주소를 담기·바로 구매의 `customInputs` 값(타입 `image`, 여러 장이면 줄바꿈으로 잇는다)에 넣는다. 형식·크기는 상품 이미지와 같다.
POST
파일 바이트는 이 API를 거치지 않는다 — 응답 uploadUrl에 파일을 그대로 PUT하면(1시간 유효) url이 공개 주소가 되고, 그 주소를 담기·바로 구매의 customInputs 값(타입 image, 여러 장이면 줄바꿈으로 잇는다)에 넣는다. 형식·크기는 상품 이미지와 같다.
header
AuthorizationBearer <JWT>회원 accessToken
x-cart-token*stringapplication/json- body
filename*stringLength
1 <= length <= 200size?integer바이트. 주면 상한을 넘을 때 미리 거절한다
Range
0 < value자리 발급 완료
application/json- response
meta*data*error*|nullcurl -X POST 'https://api.sayren.io/storefront/v1/uploads/order-inputs' \ -H 'x-cart-token: string' \ -H 'Content-Type: application/json' \ -d '{ "filename": "string"}'Example Response
{ "meta": { "status": 201, "code": "OK", "message": "OK", "isSuccess": true }, "data": { "url": "http://example.com", "uploadUrl": "http://example.com" }, "error": null}