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": {
- "shopId": "70542939-296f-4335-b0b1-f4e5a2513ef7",
- "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": {
- "shopId": "70542939-296f-4335-b0b1-f4e5a2513ef7",
- "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 ページ番号 |
| pageSize | integer [ 1 .. 100 ] Default: 20 1ページあたりの件数 |
| q | string 検索キーワード |
| categoryId | integer <int64> |
| status | string Enum: "active" "inactive" "draft" |
{- "data": [
- {
- "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",
- "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
}{- "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",
- "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"
}{- "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",
- "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 ページ番号 |
| pageSize | integer [ 1 .. 100 ] Default: 20 1ページあたりの件数 |
| status | string Enum: "pending" "processing" "shipped" "delivered" "cancelled" |
{- "data": [
- {
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "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
}
}注文の配送先情報とユーザー情報を取得
| orderId required | integer 注文ID |
{- "name": "string",
- "shippingAddress": {
- "postalCode": "123-4567",
- "prefecture": "東京都",
- "city": "渋谷区",
- "streetAddress": "渋谷1-2-3",
- "buildingName": "渋谷ビル 301号室"
}, - "status": "string"
}注文商品を配達済みとしてマーク
| orderId required | integer 注文ID |
| purchaseItemIds | Array of integers 配達済みにする購入アイテムID |
| rentalItemIds | Array of integers 配達済みにするレンタルアイテムID |
{- "purchaseItemIds": [
- 0
], - "rentalItemIds": [
- 0
]
}{- "message": "string"
}注文商品をキャンセル
| orderId required | integer 注文ID |
| purchaseItemIds | Array of integers キャンセルする購入アイテムID |
| rentalItemIds | Array of integers キャンセルするレンタルアイテムID |
| cancellationReason required | string キャンセル理由 |
{- "purchaseItemIds": [
- 0
], - "rentalItemIds": [
- 0
], - "cancellationReason": "string"
}{- "message": "string",
- "order": {
- "orderId": 0,
- "userId": 0,
- "userName": "string",
- "paymentMethod": "string",
- "paymentIntentId": "string",
- "itemsPrice": 0.1,
- "taxPrice": 0.1,
- "shippingPrice": 0.1,
- "totalPrice": 0.1,
- "status": "pending",
- "paidAt": "2019-08-24T14:15:22Z",
- "canceledAt": "2019-08-24T14:15:22Z",
- "postalCode": "string",
- "prefecture": "string",
- "city": "string",
- "streetAddress": "string",
- "buildingName": "string"
}
}