Overview
The Payouts API allows you to track, filter, and reconcile money movements from Flex to your Shopify store. Using these endpoints, you can fetch payout records, filter them by date ranges, and drill into the associated balance transactions.Reconciliation
Flex provides all the data you need to reconcile payouts with your Shopify records.How money flows:
- Customers transact on your Shopify store.
- Flex processes the payment.
- An order is generated in your Shopify Admin with a corresponding payment.
- The payment amount, minus Flex fees, is deposited into your Stripe account.
- Within 24–72 hours, Stripe settles the funds into your linked bank account.
Payouts Endpoints
1. Get all payouts (no filters)
Copy
Ask AI
GET /v1/payouts
Authorization: Bearer {{token}}
Copy
Ask AI
{
"payouts": [
{
"payout_id": "fpo_01k5g4xty062bqx5xr4xf7cxct",
"status": "paid",
"amount": 5644,
"arrival_date": "2025-09-11T00:00:00Z",
"created_at": "2025-09-19T04:50:08.966956Z",
"source_type": "card",
"test_mode": false
},
{
"payout_id": "fpo_01k5amhe3gcndv5ezv1mx0svct",
"status": "paid",
"amount": 49901,
"arrival_date": "2025-09-17T00:00:00Z",
"created_at": "2025-09-17T01:27:33.232593Z",
"source_type": "card",
"test_mode": false
}
]
}
2. Filter by start_date only
Copy
Ask AI
GET /v1/payouts?start_date=2025-09-18T00:00:00Z
Authorization: Bearer {{token}}
Copy
Ask AI
{
"payouts": [
{
"payout_id": "fpo_01k5g4xty062bqx5xr4xf7cxct",
"status": "paid",
"amount": 5644,
"arrival_date": "2025-09-11T00:00:00Z",
"created_at": "2025-09-19T04:50:08.966956Z",
"source_type": "card",
"test_mode": false
}
]
}
3. Filter by end_date only
Copy
Ask AI
GET /v1/payouts?end_date=2025-09-18T00:00:00Z
Authorization: Bearer {{token}}
Copy
Ask AI
{
"payouts": [
{
"payout_id": "fpo_01k5amhe3gcndv5ezv1mx0svct",
"status": "paid",
"amount": 49901,
"arrival_date": "2025-09-17T00:00:00Z",
"created_at": "2025-09-17T01:27:33.232593Z",
"source_type": "card",
"test_mode": false
}
]
}
4. Filter by date range
Copy
Ask AI
GET /v1/payouts?start_date=2025-09-17T00:00:00Z&end_date=2025-09-18T00:00:00Z
Authorization: Bearer {{token}}
Copy
Ask AI
{
"payouts": [
{
"payout_id": "fpo_01k5amhe3gcndv5ezv1mx0svct",
"status": "paid",
"amount": 49901,
"arrival_date": "2025-09-17T00:00:00Z",
"created_at": "2025-09-17T01:27:33.232593Z",
"source_type": "card",
"test_mode": false
}
]
}
5. With limit parameter
Copy
Ask AI
GET /v1/payouts?limit=1
Authorization: Bearer {{token}}
Copy
Ask AI
{
"payouts": [
{
"payout_id": "fpo_01k5g4xty062bqx5xr4xf7cxct",
"status": "paid",
"amount": 5644,
"arrival_date": "2025-09-11T00:00:00Z",
"created_at": "2025-09-19T04:50:08.966956Z",
"source_type": "card",
"test_mode": false
}
]
}
6. Get specific payout by ID
Copy
Ask AI
GET /v1/payouts?payout_id=fpo_01k5g4xty062bqx5xr4xf7cxct
Authorization: Bearer {{token}}
Copy
Ask AI
{
"payouts": [
{
"payout_id": "fpo_01k5g4xty062bqx5xr4xf7cxct",
"status": "paid",
"amount": 5644,
"arrival_date": "2025-09-11T00:00:00Z",
"created_at": "2025-09-19T04:50:08.966956Z",
"source_type": "card",
"test_mode": false
}
]
}
7. Precise timestamp filtering
Copy
Ask AI
GET /v1/payouts?start_date=2025-09-17T01:27:33.232593Z
Authorization: Bearer {{token}}
Copy
Ask AI
{
"payouts": [
{
"payout_id": "fpo_01k5g4xty062bqx5xr4xf7cxct",
"status": "paid",
"amount": 5644,
"arrival_date": "2025-09-11T00:00:00Z",
"created_at": "2025-09-19T04:50:08.966956Z",
"source_type": "card",
"test_mode": false
},
{
"payout_id": "fpo_01k5amhe3gcndv5ezv1mx0svct",
"status": "paid",
"amount": 49901,
"arrival_date": "2025-09-17T00:00:00Z",
"created_at": "2025-09-17T01:27:33.232593Z",
"source_type": "card",
"test_mode": false
}
]
}
Balance Transactions
Balance transactions provide detailed reconciliation data, including gross amounts, Flex fees, and net amounts.Get all balance transactions
Copy
Ask AI
GET /v1/balance_transactions
Content-Type: application/json
Authorization: Bearer {{token}}
Copy
Ask AI
{
"balance_transactions": [
{
"balance_transaction_id": "fbtxn_01k5g4xv968zg8t2jvhbdn9d5t",
"amount": -49901,
"available_on": "2025-09-17T00:00:00Z",
"created_at": "2025-09-16T01:19:06Z",
"exchange_rate": null,
"fee": 0,
"net": -49901,
"reporting_category": "payout",
"checkout_session_id": null,
"client_reference_id": null,
"status": "available",
"source_id": "fpo_01k5amhe3gcndv5ezv1mx0svct",
"type": "payout",
"test_mode": false
},
{
"balance_transaction_id": "fbtxn_01k5g4xv9dbaa01fnta41a3rt7",
"amount": 18438,
"available_on": "2025-09-17T00:00:00Z",
"created_at": "2025-09-15T07:26:43Z",
"exchange_rate": null,
"fee": 675,
"net": 17763,
"reporting_category": "charge",
"checkout_session_id": "fcs_01k5648ys1vpf3tzhervv9zzgn",
"client_reference_id": "rFdxDcHpD9O3NCHgPXfZA7zTf",
"status": "available",
"source_id": "fch_01k5649q253tc5shjxw7r841pk",
"type": "payment",
"test_mode": false
}
]
}
Get balance transactions for a specific payout
Copy
Ask AI
GET /v1/balance_transactions?payout_id=fpo_01k5amhe3gcndv5ezv1mx0svct
Content-Type: application/json
Authorization: Bearer {{token}}
Copy
Ask AI
{
"balance_transactions": [
{
"balance_transaction_id": "fbtxn_01k5g4xv968zg8t2jvhbdn9d5t",
"amount": -49901,
"available_on": "2025-09-17T00:00:00Z",
"created_at": "2025-09-16T01:19:06Z",
"exchange_rate": null,
"fee": 0,
"net": -49901,
"reporting_category": "payout",
"checkout_session_id": null,
"client_reference_id": null,
"status": "available",
"source_id": "fpo_01k5amhe3gcndv5ezv1mx0svct",
"type": "payout",
"test_mode": false
}
]
}
Filter by specific balance_transaction_id
Copy
Ask AI
GET /v1/balance_transactions?balance_transaction_id=fbtxn_01k5g4xv968zg8t2jvhbdn9d5t
Authorization: Bearer {{token}}
Copy
Ask AI
{
"balance_transactions": [
{
"balance_transaction_id": "fbtxn_01k5g4xv968zg8t2jvhbdn9d5t",
"amount": -49901,
"available_on": "2025-09-17T00:00:00Z",
"created_at": "2025-09-16T01:19:06Z",
"exchange_rate": null,
"fee": 0,
"net": -49901,
"reporting_category": "payout",
"checkout_session_id": null,
"client_reference_id": null,
"status": "available",
"source_id": "fpo_01k5amhe3gcndv5ezv1mx0svct",
"type": "payout",
"test_mode": false
}
]
}
With limit parameter
Copy
Ask AI
GET /v1/balance_transactions?limit=3
Authorization: Bearer {{token}}
Copy
Ask AI
{
"balance_transactions": [
{
"balance_transaction_id": "fbtxn_01k5g4xv968zg8t2jvhbdn9d5t",
"amount": -49901,
"available_on": "2025-09-17T00:00:00Z",
"created_at": "2025-09-16T01:19:06Z",
"exchange_rate": null,
"fee": 0,
"net": -49901,
"reporting_category": "payout",
"checkout_session_id": null,
"client_reference_id": null,
"status": "available",
"source_id": "fpo_01k5amhe3gcndv5ezv1mx0svct",
"type": "payout",
"test_mode": false
},
{
"balance_transaction_id": "fbtxn_01k5g4xv9dbaa01fnta41a3rt7",
"amount": 18438,
"available_on": "2025-09-17T00:00:00Z",
"created_at": "2025-09-15T07:26:43Z",
"exchange_rate": null,
"fee": 675,
"net": 17763,
"reporting_category": "charge",
"checkout_session_id": "fcs_01k5648ys1vpf3tzhervv9zzgn",
"client_reference_id": "rFdxDcHpD9O3NCHgPXfZA7zTf",
"status": "available",
"source_id": "fch_01k5649q253tc5shjxw7r841pk",
"type": "payment",
"test_mode": false
},
{
"balance_transaction_id": "fbtxn_01k5g4xv9ka7p51tt7b17zxh4f",
"amount": 16463,
"available_on": "2025-09-17T00:00:00Z",
"created_at": "2025-09-15T07:19:55Z",
"exchange_rate": null,
"fee": 606,
"net": 15857,
"reporting_category": "charge",
"checkout_session_id": "fcs_01k563wdp0qwrmtxz99rdpcj01",
"client_reference_id": "rf7GjzjT0BrZU0lSpYLbDlDWP",
"status": "available",
"source_id": "fch_01k563x7jad8ef3hvrdjfxjrtt",
"type": "payment",
"test_mode": false
}
]
}
Pagination with ending_before
Copy
Ask AI
GET /v1/balance_transactions?ending_before=fbtxn_01k5g4xva7x1dnmak291y1pvfr&limit=3
Content-Type: application/json
Authorization: Bearer {{token}}
Copy
Ask AI
{
"balance_transactions": [
{
"balance_transaction_id": "fbtxn_01k5g4xv968zg8t2jvhbdn9d5t",
"amount": -49901,
"available_on": "2025-09-17T00:00:00Z",
"created_at": "2025-09-16T01:19:06Z",
"exchange_rate": null,
"fee": 0,
"net": -49901,
"reporting_category": "payout",
"checkout_session_id": null,
"client_reference_id": null,
"status": "available",
"source_id": "fpo_01k5amhe3gcndv5ezv1mx0svct",
"type": "payout",
"test_mode": false
},
{
"balance_transaction_id": "fbtxn_01k5g4xv9dbaa01fnta41a3rt7",
"amount": 18438,
"available_on": "2025-09-17T00:00:00Z",
"created_at": "2025-09-15T07:26:43Z",
"exchange_rate": null,
"fee": 675,
"net": 17763,
"reporting_category": "charge",
"checkout_session_id": "fcs_01k5648ys1vpf3tzhervv9zzgn",
"client_reference_id": "rFdxDcHpD9O3NCHgPXfZA7zTf",
"status": "available",
"source_id": "fch_01k5649q253tc5shjxw7r841pk",
"type": "payment",
"test_mode": false
},
{
"balance_transaction_id": "fbtxn_01k5g4xv9ka7p51tt7b17zxh4f",
"amount": 16463,
"available_on": "2025-09-17T00:00:00Z",
"created_at": "2025-09-15T07:19:55Z",
"exchange_rate": null,
"fee": 606,
"net": 15857,
"reporting_category": "charge",
"checkout_session_id": "fcs_01k563wdp0qwrmtxz99rdpcj01",
"client_reference_id": "rf7GjzjT0BrZU0lSpYLbDlDWP",
"status": "available",
"source_id": "fch_01k563x7jad8ef3hvrdjfxjrtt",
"type": "payment",
"test_mode": false
}
]
}