curl --request POST \
--url https://api.withflex.com/v1/checkout/sessions/{id}/capture_allocation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"checkout_session": {
"final_capture": true,
"line_items": [
{
"product": "<string>",
"amount_to_capture": 1
}
],
"metadata": {},
"capture_metadata": {},
"amount_shipping": 123,
"amount_discount": 123,
"amount_tax": 123
}
}
'