GoCardless Exports API.
Pre-generated data exports (CSV format) triggered from the GoCardless Dashboard.
Poll or use webhooks to detect when an export is ready, then download via download_url.
Export statuses
initialising— export is being queuedqueued— waiting to be processedprocessing— being generatedready— available for download atdownload_urlfailed— generation failed
Example
{:ok, export} = GoCardlessClient.Resources.Exports.get(client, "EX123")
if export["status"] == "ready" do
# download from export["download_url"]
end
Summary
Functions
@spec collect_all(GoCardlessClient.Client.t(), map(), keyword()) :: {:ok, [map()]} | {:error, GoCardlessClient.APIError.t() | GoCardlessClient.Error.t()}
Eagerly collects all exports into a list.
@spec get(GoCardlessClient.Client.t(), String.t(), keyword()) :: {:ok, map()} | {:error, GoCardlessClient.APIError.t() | GoCardlessClient.Error.t()}
Retrieves a single export by ID.
@spec list(GoCardlessClient.Client.t(), map(), keyword()) :: {:ok, %{items: [map()], meta: map()}} | {:error, GoCardlessClient.APIError.t() | GoCardlessClient.Error.t()}
Returns a page of exports.
@spec stream(GoCardlessClient.Client.t(), map(), keyword()) :: Enumerable.t()
Returns a lazy Stream over all pages of exports.