Skip to main content
POST
/
v1
/
exports
Create Export
curl --request POST \
  --url https://api.withflex.com/v1/exports \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "export": {
    "description": "string",
    "filters": {},
    "metadata": {},
    "type": "product"
  }
}
'
{
  "export": {
    "export_id": "obj_01EXAMPLE00000000000000000",
    "description": "string",
    "type": "product",
    "status": "created",
    "created_at": "2024-01-01T00:00:00Z",
    "started_at": "2024-01-01T00:00:00Z",
    "completed_at": "2024-01-01T00:00:00Z",
    "metadata": {},
    "filters": {},
    "test_mode": false
  }
}

Authorizations

Authorization
string
header
required

Use a Bearer token to access this API.

Body

application/json
export
object
required
Example:
{
"description": "string",
"filters": {
"payment": { "limit": 0, "customer": "string" }
},
"metadata": {},
"type": "product"
}

Response

Success

export
object
required

Export defines the export_type and filters needed to export a file Export types are supported for Payments, Subscriptions, Customers, CheckoutSession

Example:
{
"export_id": "obj_01EXAMPLE00000000000000000",
"description": "string",
"type": "product",
"status": "created",
"created_at": "2024-01-01T00:00:00Z",
"started_at": "2024-01-01T00:00:00Z",
"completed_at": "2024-01-01T00:00:00Z",
"metadata": {},
"filters": {
"payment": { "limit": 0, "customer": "string" }
},
"test_mode": false
}