Cancels: Update

Request

PATCH https://api.univapay.com/stores/{storeId}/charges/{chargeId}/cancels/{id}

Parameters:

Parameters
metadatajson
See metadata for more details.

Headers:

Content-Type: application/json
Authorization: Bearer {secret}.{jwt}

Body:

curl --request PATCH \
--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}'
--header 'Content-type: application/json'
--data '{"metadata": {"order_id": 1234, "reason": "expired"}}'

Response

Code: 200

Headers:

Content-Type: application/json

Body:

{
  "id": "11e88648-21fc-556a-9cf0-fb19704baa9e",
  "charge_id": "11e88648-1d9b-723a-88cf-37ed9bdb6670",
  "store_id": "11e8863f-7e2d-8074-a083-2716eac36a7c",
  "status": "successful",
  "error": null,
  "metadata": {
    "reason": "expired",
    "order_id": 1234
  },
  "mode": "test",
  "created_on": "2018-07-13T02:55:00.07367Z"
}