sponsorship_activity

協賛活動一覧取得

Changed on

年度、キーワード、ステータス、担当者、協賛プランなどで絞り込み、指定順序でソートして一覧を取得。 合計金額(totalAmount)も返却。

get/sponsorship_activities

Request

  • Base URL: http://localhost:1323
  • URL: http://localhost:1323/sponsorship_activities
  • Auth: none declared

Query parameters

year_periods_idinteger

年度期間ID (指定なし時は最新年度)

keywordstring

検索キーワード(企業名、担当者名など)

activity_status'unstarted' | 'material_sent' | 'forms_sent' | 'confirmed' | 'invoice_sent' | 'payment_confirmed' | 'receipt_sent' | 'rejected'

活動ステータス

活動ステータス (ActivityStatusの値を指定)

design_progress'unstarted' | 'created_by_student' | 'created_by_company' | 'completed'

デザイン進捗

デザイン進捗ステータス (DesignProgressの値を指定)

feasibility_status'unstarted' | 'possible' | 'impossible'

協賛可否

協賛可否ステータス (FeasibilityStatusの値を指定)

user_idinteger

担当者ID

bureau_idinteger

所属局ID

sponsor_style_idsinteger[]

協賛プランID(複数指定可)

sortstring

ソート対象カラム (例: updated_at, created_at, sponsor_id)

order'asc' | 'desc'

ソート順序 (asc または desc)

Response

OK

totalAmountinteger

該当データの協賛金額合計

Example response

{
  "totalAmount": 350000,
  "activities": [
    {
      "id": 1,
      "yearPeriodsId": 5,
      "sponsorId": 101,
      "userId": 5,
      "remarks": "パンフレットと物品の併用プランです",
      "sponsor": {
        "name": "企業1",
        "tel": "09000000000",
        "email": "test@example.com",
        "address": "○○1-1",
        "representative": "長岡太郎(社長)"
      },
      "user": {
        "id": 1,
        "name": "test-user",
        "bureauID": 1,
        "roleID": 1,
        "createdAt": "0000-00-00T00:00:00Z",
        "updatedAt": "0000-00-00T00:00:00Z"
      },
      "sponsorStyles": [
        {
          "id": 10,
          "sponsorStyleId": 2,
          "style": {
            "style": "1分の1",
            "feature": "カラー",
            "price": 30000
          }
        }
      ],
      "createdAt": "2026-05-01T09:00:00Z",
      "updatedAt": "2026-05-20T10:00:00Z"
    }
  ]
}

Changes