# List Refunds Cursor based endpoint to retrieve all account refunds. Endpoint: GET /refund Version: 2.0 Security: accountId, apiKey ## Query parameters: - `cursor` (string) The cursor parameter is used for pagination. It specifies the pointer to the start of the next set of results in a sequence of paginated data. Typically, this is a unique identifier of the last item from the previous response. If not provided, the API fetches the first page of results. - `limit` (number) The limit parameter is used for pagination. It specifies the maximum number of entries to return in a single page of results. Max 100. - `created_at` (string) Filter records by creation datetime interval in UTC. Maximum allowed range is 30 days. Format: interval(YYYY-MM-DD HH:MM,YYYY-MM-DD HH:MM). Example: "interval(2006-01-02 15:04,2006-01-02 15:04)" - `updated_at` (string) Filter records by update datetime interval. Maximum range of 30 days. Format: interval(YYYY-MM-DD HH:MM,YYYY-MM-DD HH:MM) Example: "interval(2006-01-02 15:04,2006-01-02 15:04)" ## Response 200 fields (application/json): - `metadata` (object) An object containing additional information about the response. It includes details that help manage and navigate the retrieved data. - `metadata.next_cursor` (string) Provides the cursor for the next set of records. This value should be used as the cursor parameter in subsequent requests to continue paginating through the data. If the cursor is an empty string or null, it indicates that there are no more results. To retrieve all available results, continue making subsequent requests until next_cursor is empty or null. - `metadata.count` (number) The total number of records in the current response. This field indicates the number of items returned in the current set of results. Example: 5 - `data` (array) - `data.id` (string) A unique identifier for the resource. While typically formatted as a UUID (Universally Unique Identifier), it can also be in other formats as defined by the user. This field ensures the resource can be distinctly recognized and referenced. - `data.status` (any) Indicates the current status of the refund. Possible values include: - waiting: The payment instruction has been given, but the chosen payment method requires confirmation from an external entity before the status of the operation is finalized. - pending: This is the initial state, and it means that the refund is queued. - success: The refund has been completed successfully. - failed: The refund could not be completed due to an error or issue. This field provides a clear indication of the current state of the refund, helping users understand its progress and outcome. Enum: "success", "pending", "failed", "waiting" - `data.transaction_key` (string) A customizable text field for users to input their own identifier for the resource. This can be any string that helps the user uniquely identify or reference the resource in their own system. - `data.value` (number) The monetary amount requested for the transaction. This field is formatted as a double, and will be rounded to two decimal places. The value must be greater than or equal to 0.5. Example: 10.89 - `data.iban` (string) The International Bank Account Number of the account to which the refund will be sent. This field is used to uniquely identify the recipient's bank account across international borders. Example: "PT50007950088428437201551" - `data.email` (string) The email address of the account holder. This field is used for communication purposes, including sending notifications about the refund stat. Example: "customer@example.pt" - `data.phone` (string) The contact phone number of the account holder, including the country code indicator (e.g., "+351"). This field is used for communication purposes, such as contacting the account holder for verification. Example: "+351912345678" - `data.account_holder` (string) The name of the person or entity that holds the bank account. This field ensures that the refund is directed to the correct recipient. - `data.capture` (object) The targeted Capture details. - `data.capture.payment_id` (string) A unique identifier for the resource. While typically formatted as a UUID (Universally Unique Identifier), it can also be in other formats as defined by the user. This field ensures the resource can be distinctly recognized and referenced. - `data.capture.payment_type` (string) Specifies the type of payment processed. Possible values include: - Single: A one-time payment transaction. - Frequent: A payment that occurs regularly but is not part of a subscription (e.g., recurring manual payments). - Subscription: A recurring payment that is part of a subscription plan, automatically processed at regular intervals. This field helps to categorize and manage different payment methods based on their frequency and nature. - `data.create_at` (string) The timestamp indicating when the resource was created. It is formatted as "YYYY-MM-DD HH:MM" Example: "2025-12-02 16:00:00" - `data.update_at` (string) The timestamp indicating when the resource was updated. It is formatted as "YYYY-MM-DD HH:MM". Example: "2025-12-02 16:00:00" ## Response 400 fields (application/json): - `status` (string, required) - `message` (array, required) An array of human-readable messages included in the response. These messages provide detailed information about the success of the operation or explain the reasons for any failure. This field is always present in the response to ensure clarity and transparency regarding the outcome of the API request. ## Response 403 fields (application/json): - `status` (string, required) - `message` (array, required) An array of human-readable messages included in the response. These messages provide detailed information about the success of the operation or explain the reasons for any failure. This field is always present in the response to ensure clarity and transparency regarding the outcome of the API request. ## Response 412 fields (application/json): - `status` (string, required) - `message` (array, required) An array of human-readable messages included in the response. These messages provide detailed information about the success of the operation or explain the reasons for any failure. This field is always present in the response to ensure clarity and transparency regarding the outcome of the API request. ## Response 500 fields (application/json): - `status` (string, required) - `message` (array, required) An array of human-readable messages included in the response. These messages provide detailed information about the success of the operation or explain the reasons for any failure. This field is always present in the response to ensure clarity and transparency regarding the outcome of the API request.