Payments
Payment resource


>>>

GET /api/v1/payments
List payments

List payments

サンプル

curl -X GET https://komoju.com/api/v1/payments \
  -u sk_123456:
{
  "resource": "list",
  "total": 1,
  "page": 1,
  "per_page": 10,
  "last_page": 1,
  "data": [
    {
      "id": "3v28jjxd18wdewfjl7plhr92v",
      "resource": "payment",
      "status": "pending",
      "amount": 300,
      "tax": 30,
      "customer": null,
      "payment_deadline": null,
      "payment_details": null,
      "payment_method_fee": 0,
      "total": 330,
      "currency": "JPY",
      "description": null,
      "subscription": null,
      "captured_at": null,
      "external_order_num": "ORDER2",
      "metadata": {
      },
      "created_at": "2017-08-09T03:00:59Z",
      "amount_refunded": 0,
      "locale": null,
      "refunds": [

      ],
      "refund_requests": [

      ]
    }
  ]
}

>>>

GET /api/v1/payments/:id
Show a payment

Show a payment

サンプル

curl -X GET https://komoju.com/api/v1/payments/2tb4xgth3043zzp9mcf36j7dk \
  -u sk_123456:
{
  "id": "2tb4xgth3043zzp9mcf36j7dk",
  "resource": "payment",
  "status": "pending",
  "amount": 300,
  "tax": 30,
  "customer": null,
  "payment_deadline": "2017-08-12T14:59:59Z",
  "payment_details": {
    "type": "konbini",
    "email": "gordon@example.com",
    "store": "lawson",
    "confirmation_code": "1111",
    "receipt": "12345",
    "instructions_url": "https://komoju.com/instructions/2tb4xgth3043zzp9mcf36j7dk"
  },
  "payment_method_fee": 0,
  "total": 330,
  "currency": "JPY",
  "description": null,
  "subscription": null,
  "captured_at": null,
  "external_order_num": "ORDER3",
  "metadata": {
  },
  "created_at": "2017-08-09T03:00:59Z",
  "amount_refunded": 0,
  "locale": null,
  "refunds": [

  ],
  "refund_requests": [

  ]
}

>>>

POST /api/v1/payments
Create a payment

Create a payment

サンプル

  • クレジットカード
  • コンビニ
  • 銀行振込
  • PayEasy
  • WebMoney
  • ビットキャッシュ
  • nanaco
  • NET CASH
curl -X POST https://komoju.com/api/v1/payments \
  -u sk_123456: \
  -d "amount=1000" \
  -d "currency=JPY" \
  -d "external_order_num=123" \
  -d "metadata[foobar]=hoge" \
  -d "payment_details[prepaid_number]=1111111111111111" \
  -d "payment_details[type]=web_money" 
curl -X POST https://komoju.com/api/v1/payments \
  -u sk_123456: \
  -d "amount=1000" \
  -d "currency=KRW" \
  -d "external_order_num=123" \
  -d "metadata[foobar]=hoge" \
  -d "payment_details[culture_id]=11111111" \
  -d "payment_details[culture_password]=11111111" \
  -d "payment_details[type]=culture_voucher" 
curl -X POST https://komoju.com/api/v1/payments \
  -u sk_123456: \
  -d "amount=1000" \
  -d "currency=JPY" \
  -d "external_order_num=123" \
  -d "metadata[foobar]=hoge" \
  -d "payment_details[prepaid_number]=1111111111111111" \
  -d "payment_details[type]=nanaco" 
curl -X POST https://komoju.com/api/v1/payments \
  -u sk_123456: \
  -d "amount=1000" \
  -d "currency=JPY" \
  -d "external_order_num=123" \
  -d "metadata[foobar]=hoge" \
  -d "payment_details[email]=test@example.com" \
  -d "payment_details[phone]=090-1111-2222" \
  -d "payment_details[store]=lawson" \
  -d "payment_details[type]=konbini" 
curl -X POST https://komoju.com/api/v1/payments \
  -u sk_123456: \
  -d "amount=1000" \
  -d "currency=JPY" \
  -d "external_order_num=123" \
  -d "metadata[foobar]=hoge" \
  -d "payment_details[email]=test@example.com" \
  -d "payment_details[family_name]=山田" \
  -d "payment_details[family_name_kana]=ヤマダ" \
  -d "payment_details[given_name]=太郎" \
  -d "payment_details[given_name_kana]=タロウ" \
  -d "payment_details[phone]=090-1111-2222" \
  -d "payment_details[type]=pay_easy" 
curl -X POST https://komoju.com/api/v1/payments \
  -u sk_123456: \
  -d "amount=1000" \
  -d "currency=JPY" \
  -d "external_order_num=123" \
  -d "metadata[foobar]=hoge" \
  -d "payment_details[prepaid_number]=1111111111111111" \
  -d "payment_details[type]=net_cash" 
curl -X POST https://komoju.com/api/v1/payments \
  -u sk_123456: \
  -d "amount=1000" \
  -d "currency=JPY" \
  -d "external_order_num=123" \
  -d "metadata[foobar]=hoge" \
  -d "payment_details[email]=test@example.com" \
  -d "payment_details[family_name]=山田" \
  -d "payment_details[family_name_kana]=ヤマダ" \
  -d "payment_details[given_name]=太郎" \
  -d "payment_details[given_name_kana]=タロウ" \
  -d "payment_details[phone]=080-1111-2222" \
  -d "payment_details[type]=bank_transfer" 
curl -X POST https://komoju.com/api/v1/payments \
  -u sk_123456: \
  -d "amount=1000" \
  -d "currency=JPY" \
  -d "external_order_num=123" \
  -d "metadata[foobar]=hoge" \
  -d "payment_details[family_name]=Yamada" \
  -d "payment_details[given_name]=Taro" \
  -d "payment_details[month]=1" \
  -d "payment_details[number]=4111111111111111" \
  -d "payment_details[type]=credit_card" \
  -d "payment_details[verification_value]=123" \
  -d "payment_details[year]=2018" 
curl -X POST https://komoju.com/api/v1/payments \
  -u sk_123456: \
  -d "amount=100" \
  -d "currency=JPY" \
  -d "payment_details[prepaid_number]=1111111111111111" \
  -d "payment_details[type]=bit_cash" 
{
  "id": "4ryt098e0lxwoz2kq86z0ie8r",
  "resource": "payment",
  "status": "captured",
  "amount": 1000,
  "tax": 80,
  "customer": null,
  "payment_deadline": null,
  "payment_details": {
    "type": "web_money",
    "email": null,
    "short_amount": 0,
    "prepaid_cards": [
      {
        "last_four_digits": "1111",
        "points": 1080
      }
    ]
  },
  "payment_method_fee": 0,
  "total": 1080,
  "currency": "JPY",
  "description": null,
  "subscription": null,
  "captured_at": "2017-08-09T03:00:54Z",
  "external_order_num": "123",
  "metadata": {
    "foobar": "hoge"
  },
  "created_at": "2017-08-09T03:00:54Z",
  "amount_refunded": 0,
  "locale": "ja",
  "refunds": [

  ],
  "refund_requests": [

  ]
}
{
  "id": "bph2u8oiyj4izasowmd1cug7t",
  "resource": "payment",
  "status": "captured",
  "amount": 1000,
  "tax": 80,
  "customer": null,
  "payment_deadline": null,
  "payment_details": {
    "type": "culture_voucher",
    "culture_id": "11111111"
  },
  "payment_method_fee": 0,
  "total": 1080,
  "currency": "KRW",
  "description": null,
  "subscription": null,
  "captured_at": "2017-08-09T03:00:54Z",
  "external_order_num": "123",
  "metadata": {
    "foobar": "hoge"
  },
  "created_at": "2017-08-09T03:00:54Z",
  "amount_refunded": 0,
  "locale": "ja",
  "refunds": [

  ],
  "refund_requests": [

  ]
}
{
  "id": "896af4ipkykf48a0vvdgubuqh",
  "resource": "payment",
  "status": "captured",
  "amount": 1000,
  "tax": 80,
  "customer": null,
  "payment_deadline": "2017-08-16T03:00:55Z",
  "payment_details": {
    "type": "nanaco",
    "email": null,
    "short_amount": 0,
    "prepaid_cards": [
      {
        "last_four_digits": "1111",
        "points": 1080
      }
    ]
  },
  "payment_method_fee": 0,
  "total": 1080,
  "currency": "JPY",
  "description": null,
  "subscription": null,
  "captured_at": "2017-08-09T03:00:55Z",
  "external_order_num": "123",
  "metadata": {
    "foobar": "hoge"
  },
  "created_at": "2017-08-09T03:00:55Z",
  "amount_refunded": 0,
  "locale": "ja",
  "refunds": [

  ],
  "refund_requests": [

  ]
}
{
  "id": "1j3x9dj19i6xvniieigqv70j2",
  "resource": "payment",
  "status": "authorized",
  "amount": 1000,
  "tax": 80,
  "customer": null,
  "payment_deadline": "2017-08-12T14:59:59Z",
  "payment_details": {
    "type": "konbini",
    "email": "test@example.com",
    "store": "lawson",
    "confirmation_code": null,
    "receipt": "90865708838",
    "instructions_url": "https://komoju.com/ja/instructions/1j3x9dj19i6xvniieigqv70j2"
  },
  "payment_method_fee": 0,
  "total": 1080,
  "currency": "JPY",
  "description": null,
  "subscription": null,
  "captured_at": null,
  "external_order_num": "123",
  "metadata": {
    "foobar": "hoge"
  },
  "created_at": "2017-08-09T03:00:55Z",
  "amount_refunded": 0,
  "locale": "ja",
  "refunds": [

  ],
  "refund_requests": [

  ]
}
{
  "id": "6mivjk8hfizwk9q3rwodalz4u",
  "resource": "payment",
  "status": "authorized",
  "amount": 1000,
  "tax": 80,
  "customer": null,
  "payment_deadline": "2017-08-19T14:59:59Z",
  "payment_details": {
    "type": "pay_easy",
    "email": "test@example.com",
    "bank_id": "58191",
    "customer_id": "20001900030947960025",
    "confirmation_id": "288916",
    "instructions_url": "https://komoju.com/ja/instructions/6mivjk8hfizwk9q3rwodalz4u"
  },
  "payment_method_fee": 0,
  "total": 1080,
  "currency": "JPY",
  "description": null,
  "subscription": null,
  "captured_at": null,
  "external_order_num": "123",
  "metadata": {
    "foobar": "hoge"
  },
  "created_at": "2017-08-09T03:00:56Z",
  "amount_refunded": 0,
  "locale": "ja",
  "refunds": [

  ],
  "refund_requests": [

  ]
}
{
  "id": "3282yjcp66woc6qdys1891z3d",
  "resource": "payment",
  "status": "captured",
  "amount": 1000,
  "tax": 80,
  "customer": null,
  "payment_deadline": "2017-08-16T03:00:57Z",
  "payment_details": {
    "type": "net_cash",
    "email": null,
    "short_amount": 0,
    "prepaid_cards": [
      {
        "last_four_digits": "1111",
        "points": 1080
      }
    ]
  },
  "payment_method_fee": 0,
  "total": 1080,
  "currency": "JPY",
  "description": null,
  "subscription": null,
  "captured_at": "2017-08-09T03:00:57Z",
  "external_order_num": "123",
  "metadata": {
    "foobar": "hoge"
  },
  "created_at": "2017-08-09T03:00:57Z",
  "amount_refunded": 0,
  "locale": "ja",
  "refunds": [

  ],
  "refund_requests": [

  ]
}
{
  "id": "4pjz08lkrmb4492kw10vnpo8c",
  "resource": "payment",
  "status": "authorized",
  "amount": 1000,
  "tax": 80,
  "customer": null,
  "payment_deadline": "2017-08-16T14:59:59Z",
  "payment_details": {
    "type": "bank_transfer",
    "email": "test@example.com",
    "order_id": "P9684482944",
    "bank_name": "三井住友銀行",
    "account_branch_name": "ひなぎく",
    "account_number": "47",
    "account_type": "普通預金",
    "account_name": "株式会社DEGICA(カブシキガイシャ デジカ)",
    "instructions_url": "https://komoju.com/ja/instructions/4pjz08lkrmb4492kw10vnpo8c"
  },
  "payment_method_fee": 0,
  "total": 1080,
  "currency": "JPY",
  "description": null,
  "subscription": null,
  "captured_at": null,
  "external_order_num": "123",
  "metadata": {
    "foobar": "hoge"
  },
  "created_at": "2017-08-09T03:00:57Z",
  "amount_refunded": 0,
  "locale": "ja",
  "refunds": [

  ],
  "refund_requests": [

  ]
}
{
  "id": "blet8tdbk9wpx1u7ewt1exvq5",
  "resource": "payment",
  "status": "captured",
  "amount": 1000,
  "tax": 80,
  "customer": null,
  "payment_deadline": "2017-08-16T14:59:59Z",
  "payment_details": {
    "type": "credit_card",
    "email": null,
    "brand": "visa",
    "last_four_digits": "1111",
    "month": 1,
    "year": 2018
  },
  "payment_method_fee": 0,
  "total": 1080,
  "currency": "JPY",
  "description": null,
  "subscription": null,
  "captured_at": "2017-08-09T03:00:57Z",
  "external_order_num": "123",
  "metadata": {
    "foobar": "hoge"
  },
  "created_at": "2017-08-09T03:00:57Z",
  "amount_refunded": 0,
  "locale": "ja",
  "refunds": [

  ],
  "refund_requests": [

  ]
}
{
  "id": "eeo4ti87zim60j9hi4dwptsgu",
  "resource": "payment",
  "status": "captured",
  "amount": 100,
  "tax": 8,
  "customer": null,
  "payment_deadline": null,
  "payment_details": {
    "type": "bit_cash",
    "email": null
  },
  "payment_method_fee": 0,
  "total": 108,
  "currency": "JPY",
  "description": null,
  "subscription": null,
  "captured_at": "2017-08-09T03:01:03Z",
  "external_order_num": null,
  "metadata": {
  },
  "created_at": "2017-08-09T03:01:03Z",
  "amount_refunded": 0,
  "locale": "ja",
  "refunds": [

  ],
  "refund_requests": [

  ]
}

パラメータ

名前 説明
amount
必須
The amount to be charged before tax. Must be equal or greater than 0. Use a ‘.’ as a decimal separator, and no thousands separator
currency
必須
3 letter ISO currency code of the transaction
capture
任意
If true, the payment will be immediately captured. This option is ignored if a payment type is not credit_card
description
任意
Description of the payment (used in e-mail receipts if enabled).
tax
任意
The amount of tax to be charged, or ‘auto’ to use the current consumption tax rate in Japan. Use a ‘.’ as a decimal separator, and no thousands separator. If the tax is more precise than the currency allows, it will be rounded using a round half up algorithm.
locale
任意
Sets language of instruction page for supported payment methods. Valid options are 'en', 'ja', and 'ko'.
metadata
任意
A set of key-value pairs
payment_details
任意
A hash or token describing the payment method used to make the payment.
customer
任意
The ID of an existing customer in which to provide payment details for the payment.

>>>

PATCH /api/v1/payments/:id
Update a payment

Update a payment

サンプル

curl -X PATCH https://komoju.com/api/v1/payments/6m9xcwq5c9q172voqk7ku8iv8 \
  -u sk_123456: \
  -d "description=updated description" \
  -d "metadata[updated]=metadata" 
{
  "id": "6m9xcwq5c9q172voqk7ku8iv8",
  "resource": "payment",
  "status": "pending",
  "amount": 300,
  "tax": 30,
  "customer": null,
  "payment_deadline": "2017-08-12T14:59:59Z",
  "payment_details": {
    "type": "konbini",
    "email": "gordon@example.com",
    "store": "lawson",
    "confirmation_code": "1111",
    "receipt": "12345",
    "instructions_url": "https://komoju.com/instructions/6m9xcwq5c9q172voqk7ku8iv8"
  },
  "payment_method_fee": 0,
  "total": 330,
  "currency": "JPY",
  "description": "updated description",
  "subscription": null,
  "captured_at": null,
  "external_order_num": "ORDER1",
  "metadata": {
    "updated": "metadata"
  },
  "created_at": "2017-08-09T03:00:50Z",
  "amount_refunded": 0,
  "locale": null,
  "refunds": [

  ],
  "refund_requests": [

  ]
}

パラメータ

名前 説明
description
任意
Description of the payment (used in e-mail receipts if enabled).
metadata
任意
A set of key-value pairs

>>>

POST /api/v1/payments/:id/capture
Capture a payment

Capture a payment

サンプル

curl -X POST https://komoju.com/api/v1/payments/4g6q2fqa3uxjwo2wn9ipbdkta/capture \
  -u sk_123456:
{
  "id": "4g6q2fqa3uxjwo2wn9ipbdkta",
  "resource": "payment",
  "status": "captured",
  "amount": 1000,
  "tax": 80,
  "customer": null,
  "payment_deadline": "2017-08-16T14:59:59Z",
  "payment_details": {
    "type": "credit_card",
    "email": null,
    "brand": "visa",
    "last_four_digits": "1111",
    "month": 1,
    "year": 2018
  },
  "payment_method_fee": 0,
  "total": 1080,
  "currency": "JPY",
  "description": null,
  "subscription": null,
  "captured_at": "2017-08-09T03:00:56Z",
  "external_order_num": "123",
  "metadata": {
    "foobar": "hoge"
  },
  "created_at": "2017-08-09T03:00:56Z",
  "amount_refunded": 0,
  "locale": "ja",
  "refunds": [

  ],
  "refund_requests": [

  ]
}

>>>

POST /api/v1/payments/:id/refund
Refund a payment

Refund a payment

サンプル

  • クレジットカード
  • ビットキャッシュ
  • nanaco
  • NET CASH
curl -X POST https://komoju.com/api/v1/payments/2vf94gpydhik6red1fwg66n19/refund \
  -u sk_123456: \
  -d "amount=500" 
curl -X POST https://komoju.com/api/v1/payments/5ksvqjh58qqinvjzot0n3ggp6/refund \
  -u sk_123456:
curl -X POST https://komoju.com/api/v1/payments/4vpwdrlzw4fn7t9usldj8pi3i/refund \
  -u sk_123456:
curl -X POST https://komoju.com/api/v1/payments/auv5i1b52rb2ro42gref1wi00/refund \
  -u sk_123456:
{
  "id": "2vf94gpydhik6red1fwg66n19",
  "resource": "payment",
  "status": "captured",
  "amount": 1000,
  "tax": 80,
  "customer": null,
  "payment_deadline": "2017-08-16T14:59:59Z",
  "payment_details": {
    "type": "credit_card",
    "email": null,
    "brand": "visa",
    "last_four_digits": "1111",
    "month": 1,
    "year": 2018
  },
  "payment_method_fee": 0,
  "total": 1080,
  "currency": "JPY",
  "description": null,
  "subscription": null,
  "captured_at": "2017-08-09T03:00:59Z",
  "external_order_num": null,
  "metadata": {
  },
  "created_at": "2017-08-09T03:00:59Z",
  "amount_refunded": 500,
  "locale": "ja",
  "refunds": [
    {
      "id": "8wly8kgevjaldrpbx5r8km82y",
      "resource": "refund",
      "amount": 500,
      "currency": "JPY",
      "payment": "2vf94gpydhik6red1fwg66n19",
      "description": null,
      "created_at": "2017-08-09T03:00:59Z",
      "chargeback": null
    }
  ],
  "refund_requests": [

  ]
}
{
  "id": "5ksvqjh58qqinvjzot0n3ggp6",
  "resource": "payment",
  "status": "refunded",
  "amount": 100,
  "tax": 8,
  "customer": null,
  "payment_deadline": null,
  "payment_details": {
    "type": "bit_cash",
    "email": null
  },
  "payment_method_fee": 0,
  "total": 108,
  "currency": "JPY",
  "description": null,
  "subscription": null,
  "captured_at": "2017-08-09T03:01:02Z",
  "external_order_num": null,
  "metadata": {
  },
  "created_at": "2017-08-09T03:01:02Z",
  "amount_refunded": 108,
  "locale": "ja",
  "refunds": [
    {
      "id": "2t3hwp1u22z9h8oo6utplxczj",
      "resource": "refund",
      "amount": 108,
      "currency": "JPY",
      "payment": "5ksvqjh58qqinvjzot0n3ggp6",
      "description": null,
      "created_at": "2017-08-09T03:01:02Z",
      "chargeback": null
    }
  ],
  "refund_requests": [

  ]
}
{
  "id": "4vpwdrlzw4fn7t9usldj8pi3i",
  "resource": "payment",
  "status": "refunded",
  "amount": 1000,
  "tax": 80,
  "customer": null,
  "payment_deadline": "2017-08-16T03:01:05Z",
  "payment_details": {
    "type": "net_cash",
    "email": null,
    "short_amount": 0,
    "prepaid_cards": [
      {
        "last_four_digits": "cdef",
        "points": 1080
      }
    ]
  },
  "payment_method_fee": 0,
  "total": 1080,
  "currency": "JPY",
  "description": null,
  "subscription": null,
  "captured_at": "2017-08-09T03:01:05Z",
  "external_order_num": null,
  "metadata": {
  },
  "created_at": "2017-08-09T03:01:05Z",
  "amount_refunded": 1080,
  "locale": "ja",
  "refunds": [
    {
      "id": "2ou1p5t66xmeq39uwdyctnpvy",
      "resource": "refund",
      "amount": 1080,
      "currency": "JPY",
      "payment": "4vpwdrlzw4fn7t9usldj8pi3i",
      "description": null,
      "created_at": "2017-08-09T03:01:05Z",
      "chargeback": null
    }
  ],
  "refund_requests": [

  ]
}
{
  "id": "auv5i1b52rb2ro42gref1wi00",
  "resource": "payment",
  "status": "refunded",
  "amount": 1000,
  "tax": 80,
  "customer": null,
  "payment_deadline": "2017-08-16T03:01:10Z",
  "payment_details": {
    "type": "nanaco",
    "email": null,
    "short_amount": 0,
    "prepaid_cards": [
      {
        "last_four_digits": "cdef",
        "points": 1080
      }
    ]
  },
  "payment_method_fee": 0,
  "total": 1080,
  "currency": "JPY",
  "description": null,
  "subscription": null,
  "captured_at": "2017-08-09T03:01:10Z",
  "external_order_num": null,
  "metadata": {
  },
  "created_at": "2017-08-09T03:01:10Z",
  "amount_refunded": 1080,
  "locale": "ja",
  "refunds": [
    {
      "id": "d3aas288bhpv2nq9kspo4v084",
      "resource": "refund",
      "amount": 1080,
      "currency": "JPY",
      "payment": "auv5i1b52rb2ro42gref1wi00",
      "description": null,
      "created_at": "2017-08-09T03:01:11Z",
      "chargeback": null
    }
  ],
  "refund_requests": [

  ]
}

パラメータ

名前 説明
amount
任意
The amount to be charged before tax. Must be equal or greater than 0. Use a ‘.’ as a decimal separator, and no thousands separator
description
任意
Description of the payment (used in e-mail receipts if enabled).

>>>

POST /api/v1/payments/:id/cancel
Cancel a payment

Cancel a payment

サンプル

  • コンビニ
  • 銀行振込
  • PayEasy
curl -X POST https://komoju.com/api/v1/payments/6azd67pin8cac9uxy0ww9c08b/cancel \
  -u sk_123456:
curl -X POST https://komoju.com/api/v1/payments/azzyyj606rt79ykw06cije7ze/cancel \
  -u sk_123456:
curl -X POST https://komoju.com/api/v1/payments/8n0qple635efuxu8leszjzq8q/cancel \
  -u sk_123456:
{
  "id": "6azd67pin8cac9uxy0ww9c08b",
  "resource": "payment",
  "status": "cancelled",
  "amount": 1000,
  "tax": 80,
  "customer": null,
  "payment_deadline": "2017-08-19T14:59:59Z",
  "payment_details": {
    "type": "pay_easy",
    "email": "test@example.com",
    "bank_id": "t0nix",
    "customer_id": "w0iuj7wc4h",
    "confirmation_id": "ufltu3hyrm",
    "instructions_url": "https://komoju.com/ja/instructions/6azd67pin8cac9uxy0ww9c08b"
  },
  "payment_method_fee": 0,
  "total": 1080,
  "currency": "JPY",
  "description": null,
  "subscription": null,
  "captured_at": null,
  "external_order_num": null,
  "metadata": {
  },
  "created_at": "2017-08-09T03:00:50Z",
  "amount_refunded": 0,
  "locale": "ja",
  "refunds": [

  ],
  "refund_requests": [

  ]
}
{
  "id": "azzyyj606rt79ykw06cije7ze",
  "resource": "payment",
  "status": "cancelled",
  "amount": 1000,
  "tax": 80,
  "customer": null,
  "payment_deadline": "2017-08-16T14:59:59Z",
  "payment_details": {
    "type": "bank_transfer",
    "email": "test@example.com",
    "order_id": "T3386544223",
    "bank_name": "三井住友銀行",
    "account_branch_name": "ひなぎく",
    "account_number": "11",
    "account_type": "普通預金",
    "account_name": "株式会社DEGICA(カブシキガイシャ デジカ)",
    "instructions_url": "https://komoju.com/ja/instructions/azzyyj606rt79ykw06cije7ze"
  },
  "payment_method_fee": 0,
  "total": 1080,
  "currency": "JPY",
  "description": null,
  "subscription": null,
  "captured_at": null,
  "external_order_num": null,
  "metadata": {
  },
  "created_at": "2017-08-09T03:00:52Z",
  "amount_refunded": 0,
  "locale": "ja",
  "refunds": [

  ],
  "refund_requests": [

  ]
}
{
  "id": "8n0qple635efuxu8leszjzq8q",
  "resource": "payment",
  "status": "cancelled",
  "amount": 1000,
  "tax": 80,
  "customer": null,
  "payment_deadline": "2017-08-12T14:59:59Z",
  "payment_details": {
    "type": "konbini",
    "email": "test@example.com",
    "store": "lawson",
    "confirmation_code": "2222",
    "receipt": "90865881197",
    "instructions_url": "https://komoju.com/ja/instructions/8n0qple635efuxu8leszjzq8q"
  },
  "payment_method_fee": 0,
  "total": 1080,
  "currency": "JPY",
  "description": null,
  "subscription": null,
  "captured_at": null,
  "external_order_num": null,
  "metadata": {
  },
  "created_at": "2017-08-09T03:00:52Z",
  "amount_refunded": 0,
  "locale": "ja",
  "refunds": [

  ],
  "refund_requests": [

  ]
}