cURL
curl --request POST \ --url https://api.withflex.com/v1/exports \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "export": { "type": "product", "description": "<string>", "filters": { "payment": { "limit": 123, "status": "canceled", "starting_after": "<string>", "ending_before": "<string>", "customer": "<string>" } }, "metadata": {} } } '
{ "export": { "export_id": "<string>", "type": "product", "status": "created", "created_at": "<string>", "test_mode": true, "description": "<string>", "started_at": "<string>", "completed_at": "<string>", "metadata": {}, "filters": { "payment": { "limit": 123, "status": "canceled", "starting_after": "<string>", "ending_before": "<string>", "customer": "<string>" } } } }
Creates a new export function
Use a Bearer token to access this API.
Show child attributes
Export defines the export_type and filters needed to export a file Export types are supported for Payments, Subscriptions, Customers, CheckoutSession