Create a file upload for the return portal
POST {{baseUrl}}/brand/:brand_domain/return-portal/uploads
Currently only used for images, this endpoint allows users to upload media that may be used during the return creation purposes. The response from this endpoint contains filenames used to identify the files in later requests.
Note: - Files are only kept for 48 hours after upload, unless used somewhere else (for example, when creating a return). - The URLs returned in this response will only be available for 48 hours. - This endpoint allows a maximum of 10 files, so groups larger than that should be batched. - Files should be smaller than 10MB.
Note: This API is currently in in beta, and may change in the near future.
Request Body
[{"name"=>"dolord", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"ex_4", "value"=>"<string>", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
[{"name":"\u003cstring\u003e","filename":"\u003cstring\u003e","path":"\u003curi\u003e"},{"name":"\u003cstring\u003e","filename":"\u003cstring\u003e","path":"\u003curi\u003e"}]