Events
Event Resource


>>>
List events

サンプル

curl -X GET https://komoju.com/api/v1/events \
  -u sk_123456:
{
  "resource": "list",
  "total": 2,
  "page": 1,
  "per_page": 10,
  "last_page": 1,
  "data": [
    {
      "id": "7tqtbbnnrnfqojsmg95qp6xmc",
      "type": "payment.captured",
      "resource": "event",
      "data": {
        "id": "69glc6k9ixnxow94svp6e3eqf",
        "resource": "payment",
        "status": "captured",
        "amount": 300,
        "tax": 30,
        "customer": null,
        "payment_deadline": "2018-10-22T14:59:59Z",
        "payment_details": {
          "type": "credit_card",
          "email": "gordon@example.com",
          "brand": "visa",
          "last_four_digits": "1111",
          "month": 3,
          "year": 2019
        },
        "payment_method_fee": 0,
        "total": 330,
        "currency": "JPY",
        "description": null,
        "captured_at": "2018-10-13T14:59:59Z",
        "external_order_num": "ORDER6",
        "metadata": {
        },
        "created_at": "2018-10-15T03:13:55Z",
        "amount_refunded": 0,
        "locale": "en",
        "refunds": [

        ],
        "refund_requests": [

        ]
      },
      "created_at": "2018-10-15T03:13:55Z"
    },
    {
      "id": "38qxdcue7u7o92hiux9urt6hq",
      "type": "payment.updated",
      "resource": "event",
      "data": {
        "id": "69glc6k9ixnxow94svp6e3eqf",
        "resource": "payment",
        "status": "captured",
        "amount": 300,
        "tax": 30,
        "customer": null,
        "payment_deadline": "2018-10-22T14:59:59Z",
        "payment_details": {
          "type": "credit_card",
          "email": "gordon@example.com",
          "brand": "visa",
          "last_four_digits": "1111",
          "month": 3,
          "year": 2019
        },
        "payment_method_fee": 0,
        "total": 330,
        "currency": "JPY",
        "description": null,
        "captured_at": "2018-10-13T14:59:59Z",
        "external_order_num": "ORDER6",
        "metadata": {
        },
        "created_at": "2018-10-15T03:13:55Z",
        "amount_refunded": 0,
        "locale": "en",
        "refunds": [

        ],
        "refund_requests": [

        ]
      },
      "created_at": "2018-10-15T03:13:55Z"
    }
  ]
}

>>>
Show a event

サンプル

curl -X GET https://komoju.com/api/v1/events/6828ek3hhycykugpuaw6g2tc9 \
  -u sk_123456:
{
  "id": "6828ek3hhycykugpuaw6g2tc9",
  "type": "payment.captured",
  "resource": "event",
  "data": {
    "id": "az2pyz6roo8pw1zzv0ipvhmdt",
    "resource": "payment",
    "status": "captured",
    "amount": 300,
    "tax": 30,
    "customer": null,
    "payment_deadline": "2018-10-22T14:59:59Z",
    "payment_details": {
      "type": "credit_card",
      "email": "gordon@example.com",
      "brand": "visa",
      "last_four_digits": "1111",
      "month": 3,
      "year": 2019
    },
    "payment_method_fee": 0,
    "total": 330,
    "currency": "JPY",
    "description": null,
    "captured_at": "2018-10-13T14:59:59Z",
    "external_order_num": "ORDER5",
    "metadata": {
    },
    "created_at": "2018-10-15T03:13:55Z",
    "amount_refunded": 0,
    "locale": "en",
    "refunds": [

    ],
    "refund_requests": [

    ]
  },
  "created_at": "2018-10-15T03:13:55Z"
}