Cancels: Create

Request

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

Parameters:

Parameters
metadatajson
Any metadata to associate with the cancel.

Headers:

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

Body:

curl --request POST \
--url https://api.univapay.com/stores/11e8863f-7e2d-8074-a083-2716eac36a7c/charges/11e88648-1d9b-723a-88cf-37ed9bdb6670/cancels \
--header 'Authorization: Bearer {secret}.{jwt}'
--header 'Content-type: application/json'
--data '{"metadata": {"order_id": 1234}}'

Response

Code: 201

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