{
  "opencollection": "1.0.0",
  "info": {
    "name": "Commerce Layer addresses refunds API",
    "version": "7.10.1"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "refunds",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve the refunds associated to the capture",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{your_organization_slug}.commercelayer.io/api/captures/:captureId/refunds",
            "params": [
              {
                "name": "captureId",
                "value": "",
                "type": "path",
                "description": "The resource's id"
              }
            ]
          },
          "docs": "Retrieve the refunds associated to the capture"
        },
        {
          "info": {
            "name": "Retrieve the refunds associated to the order",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{your_organization_slug}.commercelayer.io/api/orders/:orderId/refunds",
            "params": [
              {
                "name": "orderId",
                "value": "",
                "type": "path",
                "description": "The resource's id"
              }
            ]
          },
          "docs": "Retrieve the refunds associated to the order"
        },
        {
          "info": {
            "name": "List all refunds",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{your_organization_slug}.commercelayer.io/api/refunds"
          },
          "docs": "List all refunds"
        },
        {
          "info": {
            "name": "Retrieve a refund",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{your_organization_slug}.commercelayer.io/api/refunds/:refundId",
            "params": [
              {
                "name": "refundId",
                "value": "",
                "type": "path",
                "description": "The resource's id"
              }
            ]
          },
          "docs": "Retrieve a refund"
        },
        {
          "info": {
            "name": "Update a refund",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{your_organization_slug}.commercelayer.io/api/refunds/:refundId",
            "params": [
              {
                "name": "refundId",
                "value": "",
                "type": "path",
                "description": "The resource's id"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a refund"
        },
        {
          "info": {
            "name": "Retrieve the reference refund associated to the return",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{your_organization_slug}.commercelayer.io/api/returns/:returnId/reference_refund",
            "params": [
              {
                "name": "returnId",
                "value": "",
                "type": "path",
                "description": "The resource's id"
              }
            ]
          },
          "docs": "Retrieve the reference refund associated to the return"
        }
      ]
    }
  ],
  "bundled": true
}