{
  "opencollection": "1.0.0",
  "info": {
    "name": "CyberSource Merged Spec bankAccountValidation void API",
    "version": "0.0.1"
  },
  "items": [
    {
      "info": {
        "name": "void",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Void a Payment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/pts/v2/payments/:id/voids",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The payment ID returned from a previous payment request."
              }
            ]
          },
          "docs": "Void a Payment API is only used, if you have requested Authorization and Capture together in [/pts/v2/payments](https://developer.cybersource.com/api-reference-assets/index.html#payments_payments) API call. Include the payment ID in the POST request to cancel the payment.\n"
        },
        {
          "info": {
            "name": "Void a Capture",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/pts/v2/captures/:id/voids",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The capture ID returned from a previous capture request."
              }
            ]
          },
          "docs": "Refund a capture API is only used, if you have requested Capture independenlty using [/pts/v2/payments/{id}/captures](https://developer.cybersource.com/api-reference-assets/index.html#payments_capture) API call. Include the capture ID in the POST request to cancel the capture.\n"
        },
        {
          "info": {
            "name": "Void a Refund",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/pts/v2/refunds/:id/voids",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The refund ID returned from a previous refund request."
              }
            ]
          },
          "docs": "Include the refund ID in the POST request to cancel the refund."
        },
        {
          "info": {
            "name": "Void a Credit",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/pts/v2/credits/:id/voids",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The credit ID returned from a previous credit request."
              }
            ]
          },
          "docs": "Include the credit ID in the POST request to cancel the credit."
        },
        {
          "info": {
            "name": "Timeout Void",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/pts/v2/voids"
          },
          "docs": "This is to void a previous payment, capture, refund, or credit that merchant does not receive a reply(Mostly due to timeout). To use this feature/API, make sure to pass unique value to field - clientReferenceInformation -> transactionId in your payment, capture, refund, or credit API call and use same transactionId in this API request payload to reverse the payment."
        }
      ]
    }
  ],
  "bundled": true
}