---
agentTools:
  projectIndex: https://zafepay.readme.io/llms.txt
---

# List subscriptions

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Onlypays",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://api.staging.zafepay.com/api"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/integration/subscriptions": {
      "get": {
        "summary": "List subscriptions",
        "description": "",
        "operationId": "list-subscriptions",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "Header to access api endpoints (Check the authentication section).",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Comma-separated subscription statuses.",
            "schema": {
              "type": "string",
              "enum": [
                "active",
                "inactive"
              ]
            }
          },
          {
            "name": "recurrence",
            "in": "query",
            "description": "Comma-separated recurrence types",
            "schema": {
              "type": "string",
              "enum": [
                "week",
                "month",
                "quarter",
                "semester",
                "year",
                "bimonth",
                "custom"
              ]
            }
          },
          {
            "name": "price_min",
            "in": "query",
            "description": "Minimum price filter",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "price_max",
            "in": "query",
            "description": "Maximum price filter",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "buyer_status",
            "in": "query",
            "description": "Comma-separated subscription_buyer statuses",
            "schema": {
              "type": "string",
              "enum": [
                "pending",
                "active",
                "indebt",
                "canceled",
                "active_pending",
                "finished",
                "paused",
                "problem_on_charge"
              ]
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Page number to retrieve from a paginated collection",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"data\": [\n        {\n            \"id\": \"a3a50c65-0dbc-4fd9-9735-b3c36feb37ea\",\n            \"created_at\": \"2023-10-07T12:49:32\",\n            \"custom_recurrence_amount\": 0,\n            \"dop\": null,\n            \"expiration_time\": null,\n            \"external_id\": null,\n            \"extra_fields\": [],\n            \"has_apportion\": null,\n            \"inscription_link\": \"http://localhost:8080/subscriptions/a3a50c65-0dbc-4fd9-9735-b3c36feb37ea\",\n            \"name\": \"July gym subscription\",\n            \"periods\": null,\n            \"products\": [\n                {\n                    \"id\": \"219bbac0-c429-4803-8ef4-7965945665ac\",\n                    \"created_at\": \"2023-10-06 22:57:53 UTC\",\n                    \"currency\": \"CLP\",\n                    \"description\": \"First semester 2023\",\n                    \"external_id\": \"001\",\n                    \"image\": null,\n                    \"name\": \"Boxing classes\",\n                    \"updated_at\": \"2023-10-06 22:57:53 UTC\",\n                    \"value\": 40990,\n                    \"status\": \"active\"\n                }\n            ],\n            \"promotional_discount_percentage\": null,\n\t\t\t\t    \"promotional_periods\": null,\n            \"recurrence\": \"week\",\n            \"start_at\": null,\n            \"status\": \"active\",\n            \"updated_at\": \"2023-10-07T12:49:32\",\n            \"value\": 40990\n        },\n        {\n            \"id\": \"9c2c2de1-c644-41da-a63d-b8dd44855fc3\",\n            \"custom_recurrence_amount\": 0,\n            \"dop\": null,\n            \"expiration_time\": null,\n            \"external_id\": null,\n            \"extra_fields\": [\n                {\n                    \"id\": \"97b5f66b-9f76-4f1f-a0b6-6b9537f6da45\",\n                    \"mandatory\": true,\n                    \"question\": \"sexo\"\n                }\n            ],\n            \"has_apportion\": null,\n            \"inscription_link\": \"http://localhost:8080/subscriptions/9c2c2de1-c644-41da-a63d-b8dd44855fc3\",\n            \"name\": \"Mindfullness subscription\",\n            \"periods\": null,\n            \"products\": [\n                {\n                    \"id\": \"d872179a-3de5-46f3-966f-a2d1a24859a4\",\n                    \"created_at\": \"2023-10-07 12:50:12 UTC\",\n                    \"currency\": \"CLP\",\n                    \"description\": \"First semester 2023\",\n                    \"external_id\": \"002\",\n                    \"image\": null,\n                    \"name\": \"Breath classes\",\n                    \"updated_at\": \"2023-10-07 12:50:12 UTC\",\n                    \"value\": 34990\n                }\n            ],\n            \"promotional_discount_percentage\": null,\n\t\t\t\t    \"promotional_periods\": null,\n            \"recurrence\": \"week\",\n            \"start_at\": null,\n            \"status\": \"active\",\n            \"value\": 34990\n        }\n    ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "example": "a3a50c65-0dbc-4fd9-9735-b3c36feb37ea"
                          },
                          "created_at": {
                            "type": "string",
                            "example": "2023-10-07T12:49:32"
                          },
                          "custom_recurrence_amount": {
                            "type": "integer",
                            "example": 0,
                            "default": 0
                          },
                          "dop": {},
                          "expiration_time": {},
                          "external_id": {},
                          "extra_fields": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {}
                            }
                          },
                          "has_apportion": {},
                          "inscription_link": {
                            "type": "string",
                            "example": "http://localhost:8080/subscriptions/a3a50c65-0dbc-4fd9-9735-b3c36feb37ea"
                          },
                          "name": {
                            "type": "string",
                            "example": "July gym subscription"
                          },
                          "periods": {},
                          "products": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "example": "219bbac0-c429-4803-8ef4-7965945665ac"
                                },
                                "created_at": {
                                  "type": "string",
                                  "example": "2023-10-06 22:57:53 UTC"
                                },
                                "currency": {
                                  "type": "string",
                                  "example": "CLP"
                                },
                                "description": {
                                  "type": "string",
                                  "example": "First semester 2023"
                                },
                                "external_id": {
                                  "type": "string",
                                  "example": "001"
                                },
                                "image": {},
                                "name": {
                                  "type": "string",
                                  "example": "Boxing classes"
                                },
                                "updated_at": {
                                  "type": "string",
                                  "example": "2023-10-06 22:57:53 UTC"
                                },
                                "value": {
                                  "type": "integer",
                                  "example": 40990,
                                  "default": 0
                                },
                                "status": {
                                  "type": "string",
                                  "example": "active"
                                }
                              }
                            }
                          },
                          "promotional_discount_percentage": {},
                          "promotional_periods": {},
                          "recurrence": {
                            "type": "string",
                            "example": "week"
                          },
                          "start_at": {},
                          "status": {
                            "type": "string",
                            "example": "active"
                          },
                          "updated_at": {
                            "type": "string",
                            "example": "2023-10-07T12:49:32"
                          },
                          "value": {
                            "type": "integer",
                            "example": 40990,
                            "default": 0
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "64c97d0ad3b2f2002d150a5d:64e9231adb463e1ec3452956"
}
```