Refunds: Get

Request

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

Parameters:

Parameters
pollingboolean
Tells the API to internally poll for the status of a charge until it’s status has changed from Pending (its initial status) to something else.

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/72491cc0-1906-11e7-82f4-230e1180f31c \
--header 'Authorization: Bearer {secret}.{jwt}'

Response

Code: 200

Headers:

Content-Type: application/json

Body:

{
  "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"
}