トランザクション: List

Request

GET https://api../stores/{storeId}/transaction_history
すべての店舗を表示する
GET https://api../transaction_history

Parameters:

Parameters
fromstring (ISO-8601)
指定された日時以降で絞り込み。
tostring (ISO-8601)
指定された日時以前で絞り込み。
searchstring
課金ID, 返金ID, メタデータの情報、カード名義人名、カード名義人メールアドレス、カード番号下4桁のいずれかで絞り込み。
typestring
charge refundのいずれか
statusstring
状態で絞り込み。課金 もしくは 返金 の状態のいずれか
modestring
実行モードで絞り込み。liveまたはtest

Headers:

Authorization: Bearer {secret}.{jwt}

Body:

curl --request GET \
--url https://api../stores/37ff5664-18c6-11e7-8221-ff4914d76afc/transaction_history \
--header 'Authorization: Bearer {secret}.{jwt}'
List charges for all stores
curl --request GET \
--url https://api../transaction_history \
--header 'Authorization: Bearer {secret}.{jwt}'

Response

Code: 200

Headers:

Content-Type: application/json

Body:

{
  "items": [
    {
      "store_id": "11e8863f-7e2d-8074-a083-2716eac36a7c",
      "resource_id": "11e88648-1d9b-723a-88cf-37ed9bdb6670",
      "amount": 1000,
      "currency": "JPY",
      "amount_formatted": 1000,
      "type": "charge",
      "status": "canceled",
      "metadata": {},
      "created_on": "2018-07-13T02:54:52.729168Z",
      "mode": "test"
    },
    {
      "store_id": "11e8863f-7e2d-8074-a083-2716eac36a7c",
      "resource_id": "11e88647-f441-fe0e-88cf-075cd85209c0",
      "amount": 1000,
      "currency": "JPY",
      "amount_formatted": 1000,
      "type": "charge",
      "status": "successful",
      "metadata": {},
      "created_on": "2018-07-13T02:53:43.356352Z",
      "mode": "test"
    },
    {
      "store_id": "11e8863f-7e2d-8074-a083-2716eac36a7c",
      "resource_id": "11e88647-343e-486a-88cf-1b72d10ba675",
      "amount": 1000,
      "currency": "JPY",
      "amount_formatted": 1000,
      "type": "refund",
      "status": "canceled",
      "metadata": {},
      "created_on": "2018-07-13T02:48:21.209227Z",
      "mode": "test"
    }
  ],
  "has_more": false
}