Exports

Cancels an export, setting its status to cancelled. An export that has already completed cannot be cancelled; an already-cancelled export is returned unchanged.

post/v1/exports/{id}/cancel

Request

  • Base URL
    https://api.withflex.com
  • URL
    https://api.withflex.com/v1/exports/{id}/cancel
  • Auth
    HTTP bearer

Path parameters

idstring required
Example:fxprt_01J9XR8M3K7VZ8N2YB4WJ6T0RA

Response

An envelope wrapping a single export object.

Example response

{
  "export": {
    "export_id": "fxprt_01J9XR8M3K7VZ8N2YB4WJ6T0RA",
    "description": "Premium SPF 50 mineral sunscreen",
    "type": "product",
    "status": "created",
    "created_at": "2026-06-15T14:30:00Z",
    "started_at": "2026-06-15T14:30:00Z",
    "completed_at": "2026-06-15T14:30:00Z",
    "metadata": {
      "order_id": "8842",
      "channel": "shopify"
    },
    "filters": {
      "payment": {
        "limit": 0,
        "status": "canceled",
        "starting_after": "string",
        "ending_before": "string",
        "customer": "fcus_01J9XR8M3K7VZ8N2YB4WJ6T0RA"
      },
      "checkout_session": {
        "limit": 0,
        "offset": 0,
        "payment_intent": "fpi_01J9XR8M3K7VZ8N2YB4WJ6T0RA",
        "client_reference_id": "string",
        "start_date": "string",
        "end_date": "string"
      },
      "subscription": {
        "limit": 0,
        "offset": 0,
        "start_date": "string",
        "end_date": "string"
      },
      "customer": {
        "limit": 0,
        "offset": 0,
        "starting_after": "string",
        "ending_before": "string"
      },
      "product": {
        "limit": 0,
        "offset": 0,
        "starting_after": "string",
        "ending_before": "string"
      },
      "charge_reconciliation": {
        "start_date": "string",
        "end_date": "string"
      },
      "payout": {
        "start_date": "string",
        "end_date": "string"
      },
      "dispute": {
        "start_date": "string",
        "end_date": "string"
      },
      "line_item": {
        "start_date": "string",
        "end_date": "string"
      },
      "line_item_revenue": {
        "start_date": "string",
        "end_date": "string"
      },
      "balance_activity": {
        "start_date": "string",
        "end_date": "string"
      }
    },
    "test_mode": false
  }
}

Changes

    • warning

      removed the optional property /////// from the response with the status

    • warning

      removed the optional property /////// from the response with the status

    • warning

      added the new balance_activity enum value to the / response property for the response status

    • info

      added the optional property ////// to the response with the status