Cancels: Get

Request

GET https://api.univapay.com/stores/{storeId}/charges/{chargeId}/cancels/{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/11e8863f-7e2d-8074-a083-2716eac36a7c/charges/11e88648-1d9b-723a-88cf-37ed9bdb6670/cancels/11e88647-9c8f-2e02-9cf0-b34df056714e \
--header 'Authorization: Bearer {secret}.{jwt}'

Response

Code: 200

Headers:

Content-Type: application/json

Body:

{
  "id": "11e88647-9c8f-2e02-9cf0-b34df056714e",
  "charge_id": "11e88647-343e-486a-88cf-1b72d10ba675",
  "store_id": "11e8863f-7e2d-8074-a083-2716eac36a7c",
  "status": "pending",
  "error": null,
  "metadata": {
    "order_id": 1234
  },
  "mode": "test",
  "created_on": "2018-07-13T02:51:16.222647Z"
}