Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.
get_api_artifactsOne API's artifacts, grouped by type.
get_openapiThe primary OpenAPI for this API.
find_similar_apisAPIs that look like this one.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/recurly:recurly-automated-exports-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Recurly Automated Exports API
version: '1.0'
description: 'Operations tagged Automated Exports across 2 of this provider''s published API definitions: recurly-openapi.yml, recurly-v3-v2019-10-10-api.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://v3.recurly.com
- url: https://v3.eu.recurly.com
security:
- api_key: []
tags:
- name: Automated Exports
description: Automated exports of customer data.
paths:
/export_dates:
get:
tags:
- Automated Exports
operationId: get_export_dates
summary: List the dates that have an available export to download
description: Returns a list of dates for which export files are available for download.
parameters:
- $ref: '#/components/parameters/accept_header'
responses:
'200':
description: Returns a list of dates.
content:
application/json:
schema:
$ref: '#/components/schemas/ExportDates'
'400':
description: Invalid or unpermitted parameter.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Incorrect site ID.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
default:
description: Unexpected error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-code-samples:
- lang: Node.js
source: "try {\n const export_dates = await client.getExportDates()\n export_dates.dates.forEach(date => {\n console.log(`Exports are available for: ${date}`)\n })\n} catch (err) {\n if (err instanceof recurly.ApiError) {\n console.log('Unexpected error', err)\n }\n}\n"
- lang: Python
source: "try:\n export_dates = client.get_export_dates()\n for date in export_dates.dates:\n print( \"Exports are available for: %s\" % date)\nexcept recurly.errors.NotFoundError:\n # If the resource was not found, you may want to alert the user or\n # just return nil\n print(\"Resource Not Found\")\n"
- lang: .NET
source: "try\n{\n ExportDates exportDates = client.GetExportDates();\n foreach (var date in exportDates.Dates)\n {\n System.Console.WriteLine($\"Exports are available for: {date}\");\n }\n}\ncatch (Recurly.Errors.ApiError ex)\n{\n // Use ApiError to catch a generic error from the API\n Console.WriteLine($\"Unexpected Recurly Error: {ex.Error.Message}\");\n}\n"
- lang: Ruby
source: "begin\n export_dates = @client.get_export_dates()\n export_dates.dates.each do |date|\n puts \"Exports are available for: #{date}\"\n end\nrescue Recurly::Errors::NotFoundError\n # If the resource was not found, you may want to alert the user or\n # just return nil\n puts \"Resource Not Found\"\nend\n"
- lang: Java
source: "try {\n ExportDates exportDates = client.getExportDates();\n for (String date : exportDates.getDates()) {\n System.out.println(\"Exports are available for: \" + date);\n }\n} catch (ApiException e) {\n // Use ApiException to catch a generic error from the API\n System.out.println(\"Unexpected Recurly Error: \" + e.getError().getMessage());\n}\n"
- lang: PHP
source: "try {\n $export_dates = $client->getExportDates();\n foreach($export_dates->getDates() as $date)\n {\n echo \"Exports are available for: {$date}\" . PHP_EOL;\n }\n} catch (\\Recurly\\RecurlyError $e) {\n echo 'Some unexpected Recurly error happened. Try again later.' . PHP_EOL;\n}\n"
- lang: Go
source: "exportDates, err := client.GetExportDates()\nif e, ok := err.(*recurly.Error); ok {\n\tfmt.Printf(\"Unexpected Recurly error: %v\", e)\n\treturn nil, err\n}\n\nfor _, date := range exportDates.Dates {\n\tfmt.Println(\"Exports are available for: \", date)\n}"
x-readme:
code-samples:
- language: node
code: "try {\n const export_dates = await client.getExportDates()\n export_dates.dates.forEach(date => {\n console.log(`Exports are available for: ${date}`)\n })\n} catch (err) {\n if (err instanceof recurly.ApiError) {\n console.log('Unexpected error', err)\n }\n}\n"
name: Node.js
- language: python
code: "try:\n export_dates = client.get_export_dates()\n for date in export_dates.dates:\n print( \"Exports are available for: %s\" % date)\nexcept recurly.errors.NotFoundError:\n # If the resource was not found, you may want to alert the user or\n # just return nil\n print(\"Resource Not Found\")\n"
name: Python
- language: csharp
code: "try\n{\n ExportDates exportDates = client.GetExportDates();\n foreach (var date in exportDates.Dates)\n {\n System.Console.WriteLine($\"Exports are available for: {date}\");\n }\n}\ncatch (Recurly.Errors.ApiError ex)\n{\n // Use ApiError to catch a generic error from the API\n Console.WriteLine($\"Unexpected Recurly Error: {ex.Error.Message}\");\n}\n"
name: .NET
- language: ruby
code: "begin\n export_dates = @client.get_export_dates()\n export_dates.dates.each do |date|\n puts \"Exports are available for: #{date}\"\n end\nrescue Recurly::Errors::NotFoundError\n # If the resource was not found, you may want to alert the user or\n # just return nil\n puts \"Resource Not Found\"\nend\n"
name: Ruby
- language: java
code: "try {\n ExportDates exportDates = client.getExportDates();\n for (String date : exportDates.getDates()) {\n System.out.println(\"Exports are available for: \" + date);\n }\n} catch (ApiException e) {\n // Use ApiException to catch a generic error from the API\n System.out.println(\"Unexpected Recurly Error: \" + e.getError().getMessage());\n}\n"
name: Java
- language: php
code: "try {\n $export_dates = $client->getExportDates();\n foreach($export_dates->getDates() as $date)\n {\n echo \"Exports are available for: {$date}\" . PHP_EOL;\n }\n} catch (\\Recurly\\RecurlyError $e) {\n echo 'Some unexpected Recurly error happened. Try again later.' . PHP_EOL;\n}\n"
name: PHP
- language: go
code: "exportDates, err := client.GetExportDates()\nif e, ok := err.(*recurly.Error); ok {\n\tfmt.Printf(\"Unexpected Recurly error: %v\", e)\n\treturn nil, err\n}\n\nfor _, date := range exportDates.Dates {\n\tfmt.Println(\"Exports are available for: \", date)\n}"
name: Go
servers:
- url: https://v3.recurly.com
- url: https://v3.eu.recurly.com
/export_dates/{export_date}/export_files:
parameters:
- $ref: '#/components/parameters/export_date'
get:
tags:
- Automated Exports
operationId: get_export_files
summary: List of the export files that are available to download
description: Returns a list of presigned URLs to download export files for the given date, with their MD5 sums.
parameters:
- $ref: '#/components/parameters/accept_header'
responses:
'200':
description: Returns a list of export files to download.
content:
application/json:
schema:
$ref: '#/components/schemas/ExportFiles'
'400':
description: Invalid or unpermitted parameter.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Incorrect site ID or date.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
default:
description: Unexpected error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-code-samples:
- lang: Node.js
source: "try {\n const export_files = await client.getExportFiles(export_date)\n export_files.files.forEach(file => {\n console.log(`Export file download URL: ${file.href}`)\n })\n} catch (err) {\n if (err instanceof recurly.ApiError) {\n console.log('Unexpected error', err)\n }\n}\n"
- lang: Python
source: "try:\n export_files = client.get_export_files(export_date)\n for file in export_files.files:\n print( \"Export file download URL: %s\" % file.href)\nexcept recurly.errors.NotFoundError:\n # If the resource was not found, you may want to alert the user or\n # just return nil\n print(\"Resource Not Found\")\n"
- lang: .NET
source: "try\n{\n ExportFiles exportFiles = client.GetExportFiles(exportDate: exportDate);\n foreach (var file in exportFiles.Files)\n {\n System.Console.WriteLine($\"Export file download URL: {file.Href}\");\n }\n}\ncatch (Recurly.Errors.ApiError ex)\n{\n // Use ApiError to catch a generic error from the API\n Console.WriteLine($\"Unexpected Recurly Error: {ex.Error.Message}\");\n}\n"
- lang: Ruby
source: "begin\n export_files = @client.get_export_files(export_date: export_date)\n export_files.files.each do |file|\n puts \"Export file download URL: #{file.href}\"\n end\nrescue Recurly::Errors::NotFoundError\n # If the resource was not found, you may want to alert the user or\n # just return nil\n puts \"Resource Not Found\"\nend\n"
- lang: Java
source: "try {\n ExportFiles exportFiles = client.getExportFiles(exportDate);\n for (ExportFile file : exportFiles.getFiles()) {\n System.out.println(\"Export file download URL: \" + file.getHref());\n }\n} catch (ApiException e) {\n // Use ApiException to catch a generic error from the API\n System.out.println(\"Unexpected Recurly Error: \" + e.getError());\n}\n"
- lang: PHP
source: "try {\n $export_files = $client->getExportFiles($export_date);\n foreach($export_files->getFiles() as $file)\n {\n echo \"Export file download URL: {$file->getHref()}\" . PHP_EOL;\n }\n} catch (\\Recurly\\RecurlyError $e) {\n echo 'Some unexpected Recurly error happened. Try again later.' . PHP_EOL;\n}\n"
- lang: Go
source: "exportFiles, err := client.GetExportFiles(exportDate)\nif e, ok := err.(*recurly.Error); ok {\n\tfmt.Printf(\"Unexpected Recurly error: %v\", e)\n\treturn nil, err\n}\n\nfor _, file := range exportFiles.Files {\n\tfmt.Println(\"Export file download URL: \", file.Href)\n}"
x-readme:
code-samples:
- language: node
code: "try {\n const export_files = await client.getExportFiles(export_date)\n export_files.files.forEach(file => {\n console.log(`Export file download URL: ${file.href}`)\n })\n} catch (err) {\n if (err instanceof recurly.ApiError) {\n console.log('Unexpected error', err)\n }\n}\n"
name: Node.js
- language: python
code: "try:\n export_files = client.get_export_files(export_date)\n for file in export_files.files:\n print( \"Export file download URL: %s\" % file.href)\nexcept recurly.errors.NotFoundError:\n # If the resource was not found, you may want to alert the user or\n # just return nil\n print(\"Resource Not Found\")\n"
name: Python
- language: csharp
code: "try\n{\n ExportFiles exportFiles = client.GetExportFiles(exportDate: exportDate);\n foreach (var file in exportFiles.Files)\n {\n System.Console.WriteLine($\"Export file download URL: {file.Href}\");\n }\n}\ncatch (Recurly.Errors.ApiError ex)\n{\n // Use ApiError to catch a generic error from the API\n Console.WriteLine($\"Unexpected Recurly Error: {ex.Error.Message}\");\n}\n"
name: .NET
- language: ruby
code: "begin\n export_files = @client.get_export_files(export_date: export_date)\n export_files.files.each do |file|\n puts \"Export file download URL: #{file.href}\"\n end\nrescue Recurly::Errors::NotFoundError\n # If the resource was not found, you may want to alert the user or\n # just return nil\n puts \"Resource Not Found\"\nend\n"
name: Ruby
- language: java
code: "try {\n ExportFiles exportFiles = client.getExportFiles(exportDate);\n for (ExportFile file : exportFiles.getFiles()) {\n System.out.println(\"Export file download URL: \" + file.getHref());\n }\n} catch (ApiException e) {\n // Use ApiException to catch a generic error from the API\n System.out.println(\"Unexpected Recurly Error: \" + e.getError());\n}\n"
name: Java
- language: php
code: "try {\n $export_files = $client->getExportFiles($export_date);\n foreach($export_files->getFiles() as $file)\n {\n echo \"Export file download URL: {$file->getHref()}\" . PHP_EOL;\n }\n} catch (\\Recurly\\RecurlyError $e) {\n echo 'Some unexpected Recurly error happened. Try again later.' . PHP_EOL;\n}\n"
name: PHP
- language: go
code: "exportFiles, err := client.GetExportFiles(exportDate)\nif e, ok := err.(*recurly.Error); ok {\n\tfmt.Printf(\"Unexpected Recurly error: %v\", e)\n\treturn nil, err\n}\n\nfor _, file := range exportFiles.Files {\n\tfmt.Println(\"Export file download URL: \", file.Href)\n}"
name: Go
servers:
- url: https://v3.recurly.com
- url: https://v3.eu.recurly.com
/sites/{site_id}/export_dates:
parameters:
- $ref: '#/components/parameters/site_id'
get:
tags:
- Automated Exports
operationId: getSitesBySiteIdExportDates
summary: List the dates that have an available export to download
description: Returns a list of dates for which export files are available for download.
responses:
'200':
description: Returns a list of dates.
content:
application/json:
schema:
$ref: '#/components/schemas/ExportDates'
'400':
description: Invalid or unpermitted parameter.
content:
application/json:
schema:
$ref: '#/components/schemas/Error_2'
'404':
description: Incorrect site ID.
content:
application/json:
schema:
$ref: '#/components/schemas/Error_2'
default:
description: Unexpected error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error_2'
x-code-samples:
- lang: Node.js
source: "try {\n const export_dates = await client.getExportDates()\n export_dates.dates.forEach(date => {\n console.log(`Exports are available for: ${date}`)\n })\n} catch (err) {\n if (err instanceof recurly.ApiError) {\n console.log('Unexpected error', err)\n }\n}\n"
- lang: Python
source: "try:\n export_dates = client.get_export_dates()\n for date in export_dates.dates:\n print( \"Exports are available for: %s\" % date)\nexcept recurly.errors.NotFoundError:\n # If the resource was not found, you may want to alert the user or\n # just return nil\n print(\"Resource Not Found\")\n"
- lang: .NET
source: "try\n{\n ExportDates exportDates = client.GetExportDates();\n foreach (var date in exportDates.Dates)\n {\n System.Console.WriteLine($\"Exports are available for: {date}\");\n }\n}\ncatch (Recurly.Errors.ApiError ex)\n{\n // Use ApiError to catch a generic error from the API\n Console.WriteLine($\"Unexpected Recurly Error: {ex.Error.Message}\");\n}\n"
- lang: Ruby
source: "begin\n export_dates = @client.get_export_dates()\n export_dates.dates.each do |date|\n puts \"Exports are available for: #{date}\"\n end\nrescue Recurly::Errors::NotFoundError\n # If the resource was not found, you may want to alert the user or\n # just return nil\n puts \"Resource Not Found\"\nend\n"
- lang: Java
source: "try {\n ExportDates exportDates = client.getExportDates();\n for (String date : exportDates.getDates()) {\n System.out.println(\"Exports are available for: \" + date);\n }\n} catch (ApiException e) {\n // Use ApiException to catch a generic error from the API\n System.out.println(\"Unexpected Recurly Error: \" + e.getError().getMessage());\n}\n"
- lang: PHP
source: "try {\n $export_dates = $client->getExportDates();\n foreach($export_dates->getDates() as $date)\n {\n echo \"Exports are available for: {$date}\" . PHP_EOL;\n }\n} catch (\\Recurly\\RecurlyError $e) {\n echo 'Some unexpected Recurly error happened. Try again later.' . PHP_EOL;\n}\n"
- lang: Go
source: "exportDates, err := client.GetExportDates()\nif e, ok := err.(*recurly.Error); ok {\n\tfmt.Printf(\"Unexpected Recurly error: %v\", e)\n\treturn nil, err\n}\n\nfor _, date := range exportDates.Dates {\n\tfmt.Println(\"Exports are available for: \", date)\n}"
x-readme:
code-samples:
- language: node
code: "try {\n const export_dates = await client.getExportDates()\n export_dates.dates.forEach(date => {\n console.log(`Exports are available for: ${date}`)\n })\n} catch (err) {\n if (err instanceof recurly.ApiError) {\n console.log('Unexpected error', err)\n }\n}\n"
name: Node.js
- language: python
code: "try:\n export_dates = client.get_export_dates()\n for date in export_dates.dates:\n print( \"Exports are available for: %s\" % date)\nexcept recurly.errors.NotFoundError:\n # If the resource was not found, you may want to alert the user or\n # just return nil\n print(\"Resource Not Found\")\n"
name: Python
- language: csharp
code: "try\n{\n ExportDates exportDates = client.GetExportDates();\n foreach (var date in exportDates.Dates)\n {\n System.Console.WriteLine($\"Exports are available for: {date}\");\n }\n}\ncatch (Recurly.Errors.ApiError ex)\n{\n // Use ApiError to catch a generic error from the API\n Console.WriteLine($\"Unexpected Recurly Error: {ex.Error.Message}\");\n}\n"
name: .NET
- language: ruby
code: "begin\n export_dates = @client.get_export_dates()\n export_dates.dates.each do |date|\n puts \"Exports are available for: #{date}\"\n end\nrescue Recurly::Errors::NotFoundError\n # If the resource was not found, you may want to alert the user or\n # just return nil\n puts \"Resource Not Found\"\nend\n"
name: Ruby
- language: java
code: "try {\n ExportDates exportDates = client.getExportDates();\n for (String date : exportDates.getDates()) {\n System.out.println(\"Exports are available for: \" + date);\n }\n} catch (ApiException e) {\n // Use ApiException to catch a generic error from the API\n System.out.println(\"Unexpected Recurly Error: \" + e.getError().getMessage());\n}\n"
name: Java
- language: php
code: "try {\n $export_dates = $client->getExportDates();\n foreach($export_dates->getDates() as $date)\n {\n echo \"Exports are available for: {$date}\" . PHP_EOL;\n }\n} catch (\\Recurly\\RecurlyError $e) {\n echo 'Some unexpected Recurly error happened. Try again later.' . PHP_EOL;\n}\n"
name: PHP
- language: go
code: "exportDates, err := client.GetExportDates()\nif e, ok := err.(*recurly.Error); ok {\n\tfmt.Printf(\"Unexpected Recurly error: %v\", e)\n\treturn nil, err\n}\n\nfor _, date := range exportDates.Dates {\n\tfmt.Println(\"Exports are available for: \", date)\n}"
name: Go
x-operation-id-source: normalized
x-operation-id-original: get_export_dates
servers:
- url: https://v3.recurly.com
/sites/{site_id}/export_dates/{export_date}/export_files:
parameters:
- $ref: '#/components/parameters/site_id'
- $ref: '#/components/parameters/export_date'
get:
tags:
- Automated Exports
operationId: getSitesBySiteIdExportDatesByExportDateExportFiles
summary: List of the export files that are available to download
description: Returns a list of presigned URLs to download export files for the given date, with their MD5 sums.
responses:
'200':
description: Returns a list of export files to download.
content:
application/json:
schema:
$ref: '#/components/schemas/ExportFiles'
'400':
description: Invalid or unpermitted parameter.
content:
application/json:
schema:
$ref: '#/components/schemas/Error_2'
'404':
description: Incorrect site ID or date.
content:
application/json:
schema:
$ref: '#/components/schemas/Error_2'
default:
description: Unexpected error.
content:
application/json:
schema:
$ref: '#/components/schemas/Error_2'
x-code-samples:
- lang: Node.js
source: "try {\n const export_files = await client.getExportFiles(export_date)\n export_files.files.forEach(file => {\n console.log(`Export file download URL: ${file.href}`)\n })\n} catch (err) {\n if (err instanceof recurly.ApiError) {\n console.log('Unexpected error', err)\n }\n}\n"
- lang: Python
source: "try:\n export_files = client.get_export_files(export_date)\n for file in export_files.files:\n print( \"Export file download URL: %s\" % file.href)\nexcept recurly.errors.NotFoundError:\n # If the resource was not found, you may want to alert the user or\n # just return nil\n print(\"Resource Not Found\")\n"
- lang: .NET
source: "try\n{\n ExportFiles exportFiles = client.GetExportFiles(exportDate: exportDate);\n foreach (var file in exportFiles.Files)\n {\n System.Console.WriteLine($\"Export file download URL: {file.Href}\");\n }\n}\ncatch (Recurly.Errors.ApiError ex)\n{\n // Use ApiError to catch a generic error from the API\n Console.WriteLine($\"Unexpected Recurly Error: {ex.Error.Message}\");\n}\n"
- lang: Ruby
source: "begin\n export_files = @client.get_export_files(export_date: export_date)\n export_files.files.each do |file|\n puts \"Export file download URL: #{file.href}\"\n end\nrescue Recurly::Errors::NotFoundError\n # If the resource was not found, you may want to alert the user or\n # just return nil\n puts \"Resource Not Found\"\nend\n"
- lang: Java
source: "try {\n ExportFiles exportFiles = client.getExportFiles(exportDate);\n for (ExportFile file : exportFiles.getFiles()) {\n System.out.println(\"Export file download URL: \" + file.getHref());\n }\n} catch (ApiException e) {\n // Use ApiException to catch a generic error from the API\n System.out.println(\"Unexpected Recurly Error: \" + e.getError());\n}\n"
- lang: PHP
source: "try {\n $export_files = $client->getExportFiles($export_date);\n foreach($export_files->getFiles() as $file)\n {\n echo \"Export file download URL: {$file->getHref()}\" . PHP_EOL;\n }\n} catch (\\Recurly\\RecurlyError $e) {\n echo 'Some unexpected Recurly error happened. Try again later.' . PHP_EOL;\n}\n"
- lang: Go
source: "exportFiles, err := client.GetExportFiles(exportDate)\nif e, ok := err.(*recurly.Error); ok {\n\tfmt.Printf(\"Unexpected Recurly error: %v\", e)\n\treturn nil, err\n}\n\nfor _, file := range exportFiles.Files {\n\tfmt.Println(\"Export file download URL: \", file.Href)\n}"
x-readme:
code-samples:
- language: node
code: "try {\n const export_files = await client.getExportFiles(export_date)\n export_files.files.forEach(file => {\n console.log(`Export file download URL: ${file.href}`)\n })\n} catch (err) {\n if (err instanceof recurly.ApiError) {\n console.log('Unexpected error', err)\n }\n}\n"
name: Node.js
- language: python
code: "try:\n export_files = client.get_export_files(export_date)\n for file in export_files.files:\n print( \"Export file download URL: %s\" % file.href)\nexcept recurly.errors.NotFoundError:\n # If the resource was not found, you may want to alert the user or\n # just return nil\n print(\"Resource Not Found\")\n"
name: Python
- language: csharp
code: "try\n{\n ExportFiles exportFiles = client.GetExportFiles(exportDate: exportDate);\n foreach (var file in exportFiles.Files)\n {\n System.Console.WriteLine($\"Export file download URL: {file.Href}\");\n }\n}\ncatch (Recurly.Errors.ApiError ex)\n{\n // Use ApiError to catch a generic error from the API\n Console.WriteLine($\"Unexpected Recurly Error: {ex.Error.Message}\");\n}\n"
name: .NET
- language: ruby
code: "begin\n export_files = @client.get_export_files(export_date: export_date)\n export_files.files.each do |file|\n puts \"Export file download URL: #{file.href}\"\n end\nrescue Recurly::Errors::NotFoundError\n # If the resource was not found, you may want to alert the user or\n # just return nil\n puts \"Resource Not Found\"\nend\n"
name: Ruby
- language: java
code: "try {\n ExportFiles exportFiles = client.getExportFiles(exportDate);\n for (ExportFile file : exportFiles.getFiles()) {\n System.out.println(\"Export file download URL: \" + file.getHref());\n }\n} catch (ApiException e) {\n // Use ApiException to catch a generic error from the API\n System.out.println(\"Unexpected Recurly Error: \" + e.getError());\n}\n"
name: Java
- language: php
code: "try {\n $export_files = $client->getExportFiles($export_date);\n foreach($export_files->getFiles() as $file)\n {\n echo \"Export file download URL: {$file->getHref()}\" . PHP_EOL;\n }\n} catch (\\Recurly\\RecurlyError $e) {\n echo 'Some unexpected Recurly error happened. Try again later.' . PHP_EOL;\n}\n"
name: PHP
- language: go
code: "exportFiles, err := client.GetExportFiles(exportDate)\nif e, ok := err.(*recurly.Error); ok {\n\tfmt.Printf(\"Unexpected Recurly error: %v\", e)\n\treturn nil, err\n}\n\nfor _, file := range exportFiles.Files {\n\tfmt.Println(\"Export file download URL: \", file.Href)\n}"
name: Go
x-operation-id-source: normalized
x-operation-id-original: get_export_files
servers:
- url: https://v3.recurly.com
components:
schemas:
ErrorTypeEnum:
type: string
enum:
- bad_request
- immutable_subscription
- internal_server_error
- invalid_api_key
- invalid_api_version
- invalid_content_type
- invalid_permissions
- invalid_token
- missing_feature
- not_found
- rate_limited
- service_not_available
- simultaneous_request
- tax_service_error
- transaction
- unauthorized
- unavailable_in_api_version
- unknown_api_version
- validation
ExportFile:
type: object
properties:
name:
type: string
title: Filename
description: Name of the export file.
md5sum:
type: string
title: MD5 hash of the export file
description: MD5 hash of the export file.
href:
type: string
title: A link to the export file
description: A presigned link to download the export file.
Error:
type: object
properties:
type:
title: Type
$ref: '#/components/schemas/ErrorTypeEnum'
message:
type: string
title: Message
params:
type: array
title: Parameter specific errors
items:
type: object
properties:
param:
type: string
ExportFiles:
type: object
properties:
object:
type: string
title: Object type
readOnly: true
files:
type: array
items:
$ref: '#/components/schemas/ExportFile'
ExportDates:
type: object
properties:
object:
type: string
title: Object type
readOnly: true
dates:
type: array
items:
type: string
title: An array of dates that have available exports.
AcceptHeaderEnum:
type: string
enum:
- application/vnd.recurly.v2021-02-25
- application/vnd.recurly.v2021-02-25+json
Error_2:
type: object
properties:
type:
type: string
title: Type
enum:
- bad_request
- internal_server_error
- immutable_subscription
- invalid_api_key
- invalid_api_version
- invalid_content_type
- invalid_permissions
- invalid_token
- not_found
- service_not_available
- simultaneous_request
- transaction
- unauthorized
- unavailable_in_api_version
- unknown_api_version
- validation
- missing_feature
- rate_limited
- tax_service_error
message:
type: string
title: Message
params:
type: array
title: Parameter specific errors
items:
type: object
properties:
param:
type: string
parameters:
export_date:
name: export_date
in: path
description: Date for which to get a list of available automated export files. Date must be in YYYY-MM-DD format.
required: true
schema:
type: string
accept_header:
name: Accept
in: header
description: The API version to use for this request, e.g. `application/vnd.recurly.v2021-02-25`. Requests without a versioned `Accept` header return a 406 response.
required: true
schema:
default: application/vnd.recurly.v2021-02-25
$ref: '#/components/schemas/AcceptHeaderEnum'
site_id:
name: site_id
in: path
description: Site ID or subdomain. For ID no prefix is used e.g. `e28zov4fw0v2`. For subdomain use prefix `subdomain-`, e.g. `subdomain-recurly`.
required: true
schema:
type: string
securitySchemes:
api_key:
type: http
description: Enter the API key as the username and set the password to an empty string. You can locate and manage your API keys from the [API Credentials](https://app.recurly.com/go/developer/api_keys) page.
scheme: basic
x-refined-from:
- recurly-openapi.yml
- recurly-v3-v2019-10-10-api.yaml
x-readme:
explorer-enabled: false