Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request POST \ --url https://api.withflex.com/v1/checkout/sessions/{id}/refund_allocation \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "checkout_session": { "line_items": [] } } '
{ "allocations": [ { "payment_method_id": "obj_01EXAMPLE00000000000000000", "last4": "4242", "amount": 0 } ] }
Preview how a refund would be allocated across payment methods.
Use a Bearer token to access this API.
"obj_01EXAMPLE00000000000000000"
Show child attributes
{ "line_items": [{}] }
Success