コンテンツにスキップ

商品画像一覧取得

GET
/product_images
curl --request GET \
--url 'https://api.smaregi.dev/TARGET-CONTRACT-ID/ec-b2b/product_images?limit=10&page=1' \
--header 'Authorization: Bearer <token>'

商品画像情報の一覧を取得します。

limit
integer
default: 10 >= 1 <= 100

取得件数

page
integer
default: 1 >= 1

ページ

url
string

画像URLで絞り込み(完全一致)

移行データではファイル名(相対パス)が格納・返却される場合があります。

alt
string

代替テキストで絞り込み(完全一致)

取得成功

Media typeapplication/json
Array
ProductImageResponse
object
id

商品画像ID

string format: uuid
url

画像URL

完全なURLを推奨します。ただし現行システムからの移行データではファイル名(相対パス)が格納・返却される場合があるため、URL形式の検証は行わず素の文字列として扱います。

string
alt

代替テキスト

string
nullable
Examples
Exampledefault
[
{
"id": "33333333-3333-3333-3333-333333333333",
"url": "https://example.com/images/product01.jpg",
"alt": "商品画像01"
},
{
"id": "33333333-3333-3333-3333-444444444444",
"url": "https://example.com/images/product02.jpg",
"alt": null
}
]
Link
string

<前ページURI>; rel="prev", <次ページURI>; rel="next"

  • 入力チェックエラーの場合
Media typeapplication/json
object
type
required
string
title
required
string
detail
string
status
integer
Examples
{
"type": "about:blank",
"title": "Bad Request",
"detail": "request_json:[limit]は100以下の数字を指定してください。",
"status": 400
}