Download OpenAPI specification:
ふるぷらショップ向けAPI
新しいショップオーナーアカウントを作成します。ショップ名、メールアドレス、パスワードが必要です。
shop_name required | string <= 100 characters ショップ名 |
email required | string <email> ショップのメールアドレス |
password required | string <password> >= 8 characters パスワード(8文字以上) |
{- "shop_name": "string",
- "email": "user@example.com",
- "password": "pa$$word"
}
{- "access_token": "string",
- "expires_in": 0,
- "shop": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "email": "user@example.com",
- "description": "string",
- "phone": "string",
- "address": {
- "postal_code": "string",
- "prefecture": "string",
- "city": "string",
- "address_line": "string"
}, - "status": "active",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
ショップのメールアドレスとパスワードでログインします。
email required | string <email> ショップのメールアドレス |
password required | string <password> パスワード |
{- "email": "user@example.com",
- "password": "pa$$word"
}
{- "access_token": "string",
- "expires_in": 0,
- "shop": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "email": "user@example.com",
- "description": "string",
- "phone": "string",
- "address": {
- "postal_code": "string",
- "prefecture": "string",
- "city": "string",
- "address_line": "string"
}, - "status": "active",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}
ショップの商品一覧を取得します。カテゴリやステータスでフィルタリング可能です。
page | integer >= 1 Default: 1 ページ番号 |
per_page | integer [ 1 .. 100 ] Default: 20 1ページあたりの件数 |
q | string 検索キーワード |
category_id | string |
status | string Enum: "active" "inactive" "draft" |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "price": 0,
- "tax_rate": 0.1,
- "category_id": "string",
- "status": "active",
- "stock_quantity": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "pagination": {
- "page": 1,
- "per_page": 20,
- "total": 0,
- "total_pages": 0
}
}
新しい商品を登録します。画像URLや在庫数も同時に設定できます。
name required | string <= 200 characters |
description | string |
price required | integer >= 0 |
tax_rate | number <float> Default: 0.1 |
category_id | string |
images | Array of strings <uri> [ items <uri > ] |
stock_quantity | integer >= 0 Default: 0 |
{- "name": "string",
- "description": "string",
- "price": 0,
- "tax_rate": 0.1,
- "category_id": "string",
- "stock_quantity": 0
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "price": 0,
- "tax_rate": 0.1,
- "category_id": "string",
- "status": "active",
- "stock_quantity": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "price": 0,
- "tax_rate": 0.1,
- "category_id": "string",
- "status": "active",
- "stock_quantity": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
ショップの注文一覧を取得します。ステータスでフィルタリング可能です。
page | integer >= 1 Default: 1 ページ番号 |
per_page | integer [ 1 .. 100 ] Default: 20 1ページあたりの件数 |
status | string Enum: "pending" "processing" "shipped" "delivered" "cancelled" |
{- "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "order_number": "string",
- "customer_id": "string",
- "items": [
- {
- "product_id": "string",
- "product_name": "string",
- "quantity": 1,
- "unit_price": 0,
- "subtotal": 0
}
], - "total_amount": 0,
- "tax_amount": 0,
- "shipping_fee": 0,
- "status": "pending",
- "shipping_address": {
- "postal_code": "string",
- "prefecture": "string",
- "city": "string",
- "street": "string",
- "building": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "pagination": {
- "page": 1,
- "per_page": 20,
- "total": 0,
- "total_pages": 0
}
}