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