{
  "opencollection": "1.0.0",
  "info": {
    "name": "PayU GPO Europe REST Authorize Refund API",
    "version": "2.1.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Refund",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve ALL Refunds Data for the Specified Order",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://secure.payu.com/api/v2_1/orders/:orderId/refunds",
            "headers": [
              {
                "name": "Content-Type",
                "value": "application/json"
              },
              {
                "name": "Authorization",
                "value": "Bearer 3e5cac39-7e38-4139-8fd6-30adc06a61bd"
              }
            ],
            "params": [
              {
                "name": "orderId",
                "value": "WZHF5FFDRJ140731GUEST000P01",
                "type": "path",
                "description": "Order ID generated by the PayU system"
              }
            ]
          },
          "docs": "Retrieve ALL Refunds Data for the Specified Order"
        },
        {
          "info": {
            "name": "Create a Refund",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://secure.payu.com/api/v2_1/orders/:orderId/refunds",
            "headers": [
              {
                "name": "Content-Type",
                "value": "application/json"
              },
              {
                "name": "Authorization",
                "value": "Bearer 3e5cac39-7e38-4139-8fd6-30adc06a61bd"
              }
            ],
            "params": [
              {
                "name": "orderId",
                "value": "WZGF5FFDRJ140731GUEST000P01",
                "type": "path",
                "description": "Order ID generated by the PayU system"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create new refund - this request is idempotent, so if exactly same data will be provided, response will return data of already previously created refund instead of creating new refund."
        },
        {
          "info": {
            "name": "Retrieve Specific Refund Data",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://secure.payu.com/api/v2_1/orders/:orderId/refunds/:refundId",
            "headers": [
              {
                "name": "Content-Type",
                "value": "application/json"
              },
              {
                "name": "Authorization",
                "value": "Bearer 3e5cac39-7e38-4139-8fd6-30adc06a61bd"
              }
            ],
            "params": [
              {
                "name": "orderId",
                "value": "WZHF5FFDRJ140731GUEST000P01",
                "type": "path",
                "description": "Order ID generated by the PayU system"
              },
              {
                "name": "refundId",
                "value": "5000000142",
                "type": "path",
                "description": "Refund identifier in the PayU system."
              }
            ]
          },
          "docs": "Retrieve Specific Refund Data"
        }
      ]
    }
  ],
  "bundled": true
}