Skip to main content
POST
/
v1
/
checkout
/
sessions
/
{id}
/
refund_allocation
Preview Refund Allocation
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
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.withflex.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use a Bearer token to access this API.

Path Parameters

id
string
required
Example:

"obj_01EXAMPLE00000000000000000"

Body

application/json
checkout_session
object
required
Example:
{ "line_items": [{}] }

Response

Success

allocations
object[]
required