Exports
Create Export
Creates a new export function
POST
/
v1
/
exports
Copy
curl --request POST \
--url https://api.withflex.com/v1/exports \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"export": {
"description": "<string>",
"filters": {
"payment": {
"limit": 123,
"status": "canceled",
"starting_after": "<string>",
"ending_before": "<string>",
"customer": "<string>"
}
},
"metadata": {},
"type": "product"
}
}'
Copy
{
"export": {
"export_id": "<string>",
"description": "<string>",
"type": "product",
"status": "created",
"created_at": "<string>",
"started_at": "<string>",
"completed_at": "<string>",
"metadata": {},
"filters": {
"payment": {
"limit": 123,
"status": "canceled",
"starting_after": "<string>",
"ending_before": "<string>",
"customer": "<string>"
}
}
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
The response is of type object
.
Copy
curl --request POST \
--url https://api.withflex.com/v1/exports \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"export": {
"description": "<string>",
"filters": {
"payment": {
"limit": 123,
"status": "canceled",
"starting_after": "<string>",
"ending_before": "<string>",
"customer": "<string>"
}
},
"metadata": {},
"type": "product"
}
}'
Copy
{
"export": {
"export_id": "<string>",
"description": "<string>",
"type": "product",
"status": "created",
"created_at": "<string>",
"started_at": "<string>",
"completed_at": "<string>",
"metadata": {},
"filters": {
"payment": {
"limit": 123,
"status": "canceled",
"starting_after": "<string>",
"ending_before": "<string>",
"customer": "<string>"
}
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.