返金: List

このリクエストでは、アプリトークン・シークレット・店舗IDを指定することで、店舗で行われた返金の一覧を取得することができます。
課金・返金などをまとめて表示させたい場合はトランザクション:Listを推奨します。

Request

GET https://api.univapay.com/stores/{storeId}/charges/{chargeId}/refunds

Headers:

Authorization: Bearer {secret}.{jwt}

Body:

curl --request GET \
--url https://api.univapay.com/stores/f1054498-18f3-11e7-93ff-bb609c8f3ef7/charges/f96eeb3e-18f3-11e7-93ff-1fbf78b8196b/refunds \
--header 'Authorization: Bearer {secret}.{jwt}'

Response

Code: 200

Headers:

Content-Type: application/json

Body:

{
  "items": [
    {
      "id": "72491cc0-1906-11e7-82f4-230e1180f31c",
      "charge_id": "f96eeb3e-18f3-11e7-93ff-1fbf78b8196b",
      "status": "successful",
      "amount": 250,
      "currency": "USD",
      "amount_formatted": 2.5,
      "reason": "customer_request",
      "message": "15 percent off",
      "error": null,
      "metadata": {
        "coupon": "VIP007"
      },
      "mode": "test",
      "created_on": "2018-07-13T02:55:00.07367Z"
    },
    {
      "id": "f9537b94-1905-11e7-82f4-374ff9c60203",
      "charge_id": "f96eeb3e-18f3-11e7-93ff-1fbf78b8196b",
      "status": "pending",
      "amount": 15,
      "currency": "USD",
      "amount_formatted": 0.15,
      "reason": "customer_request",
      "message": "10 percent off",
      "error": null,
      "metadata": {
        "coupon": "HP877"
      },
      "mode": "test",
      "created_on": "2018-07-13T02:55:00.07367Z"
    }
  ],
  "has_more": false
}