---
updatedAt: 2026-06-24T20:12:40.000Z
agentTools:
  projectIndex: https://developer.fastspring.com/llms.txt
---

# Query cancel survey responses

Returns a paginated list of cancel survey responses submitted within a specific date range.

Results can be filtered by `startDate`, `endDate`, and optionally by `productPath`.

Supports sorting by `creationTime` or `reasonId`, in ascending or descending order.


# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "The Subscriptions API provides full lifecycle management for recurring billing.\nCreate, update, pause, resume, and cancel subscriptions programmatically.\n\n## Authentication\nAll endpoints require HTTP Basic Auth using your API credentials.\n\n\n**Rate Limiting:** Rate limiting may be enforced. Consult FastSpring documentation for current rate limit policies. Requests that exceed applicable limits will receive a 429 Too Many Requests response.\n",
    "version": "v1.1.0-kgi27",
    "title": "FastSpring API - Subscriptions",
    "contact": {
      "name": "FastSpring Developer Support",
      "url": "https://developer.fastspring.com/support",
      "email": "devsupport@fastspring.com"
    }
  },
  "servers": [
    {
      "url": "https://api.fastspring.com"
    }
  ],
  "security": [
    {
      "auth": []
    }
  ],
  "tags": [
    {
      "name": "Subscriptions",
      "description": "Manage and retrieve subscription details, including creation, updates, cancellations, and retrieving subscription statuses or related information.\n"
    }
  ],
  "paths": {
    "/subscriptions/cancelSurvey/response/query": {
      "post": {
        "summary": "Query cancel survey responses",
        "description": "Returns a paginated list of cancel survey responses submitted within a specific date range.\n\nResults can be filtered by `startDate`, `endDate`, and optionally by `productPath`.\n\nSupports sorting by `creationTime` or `reasonId`, in ascending or descending order.\n",
        "operationId": "queryCancelSurveyResponses",
        "tags": [
          "Subscriptions"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "startDate",
                  "endDate",
                  "pagination"
                ],
                "properties": {
                  "startDate": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Start of the query window (ISO 8601 format).",
                    "example": "2025-01-01T00:00:00Z"
                  },
                  "endDate": {
                    "type": "string",
                    "format": "date-time",
                    "description": "End of the query window (ISO 8601 format).",
                    "example": "2026-01-31T23:59:59Z"
                  },
                  "productPath": {
                    "type": "string",
                    "description": "Optional filter to limit results to a specific product.",
                    "example": "my-product-path"
                  },
                  "pagination": {
                    "type": "object",
                    "required": [
                      "limit",
                      "offset"
                    ],
                    "properties": {
                      "limit": {
                        "type": "integer",
                        "description": "Max number of records to return per page.",
                        "example": 30
                      },
                      "offset": {
                        "type": "integer",
                        "description": "Number of records to skip before returning results.",
                        "example": 0
                      }
                    }
                  },
                  "sorting": {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string",
                        "enum": [
                          "creationTime",
                          "reasonId"
                        ],
                        "description": "Field to sort by. Options include:\n- `creationTime`: Time the survey was submitted\n- `reasonId`: Cancel reason ID\n",
                        "example": "creationTime"
                      },
                      "order": {
                        "type": "string",
                        "enum": [
                          "asc",
                          "desc"
                        ],
                        "description": "Sort direction.",
                        "example": "desc"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "totalRecords": {
                      "type": "integer",
                      "description": "Total number of matching cancel survey records.",
                      "example": 3
                    },
                    "totalPages": {
                      "type": "integer",
                      "description": "Number of pages based on totalRecords and page size.",
                      "example": 1
                    },
                    "surveys": {
                      "type": "array",
                      "description": "List of cancel survey responses.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Unique ID of the cancel survey response.",
                            "example": "2cDfgHIjKLmNOPqRs_tUV"
                          },
                          "subscriptionId": {
                            "type": "string",
                            "description": "ID of the subscription associated with the response.",
                            "example": "aBCDE12fGH3iJkL4mNOpqr"
                          },
                          "reasonId": {
                            "type": "string",
                            "description": "ID of the cancel reason.",
                            "example": "7"
                          },
                          "name": {
                            "type": "string",
                            "description": "Predefined name for the cancel reason.",
                            "example": "other"
                          },
                          "displayName": {
                            "type": "string",
                            "description": "Label shown to the user.",
                            "example": "Other"
                          },
                          "lang": {
                            "type": "string",
                            "description": "Language code used for the survey.",
                            "example": "en"
                          },
                          "description": {
                            "type": "string",
                            "description": "Long-form explanation of the cancel reason.",
                            "example": "Other"
                          },
                          "feedbackText": {
                            "type": "string",
                            "description": "Freeform feedback text submitted with the survey.",
                            "example": "We decided to switch to another tool that better meets our integration needs."
                          },
                          "site": {
                            "type": "string",
                            "description": "ID of the site associated with the subscription.",
                            "example": "ABC0DE1GHIJ2"
                          },
                          "productPath": {
                            "type": "string",
                            "description": "Product path of the canceled subscription.",
                            "example": "fastspring-falcon"
                          },
                          "creationTime": {
                            "type": "string",
                            "description": "Timestamp when the cancel survey response was created.",
                            "example": "Tue Mar 25 17:27:52 UTC 2025"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication credentials are missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded. Retry after the number of seconds specified in the Retry-After header.",
            "headers": {
              "Retry-After": {
                "description": "Number of seconds to wait before retrying",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "auth": {
        "type": "http",
        "scheme": "basic"
      }
    },
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "description": "Error response returned when the request fails.",
        "properties": {
          "action": {
            "type": "string",
            "description": "The action that was attempted"
          },
          "result": {
            "type": "string",
            "description": "Result status",
            "example": "error"
          },
          "error": {
            "type": "object",
            "description": "Map of field names to error messages",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
```