Create a new checkout session that allows end users to either create a new wallet connection (onboarding) or add funds to an existing connection (topup). After creating the session, direct your users to the Lava checkout page with the checkout_session_token.
Bearer token authentication used for standard API calls. Format: 'Bearer YOUR_API_KEY'
Checkout mode: 'onboarding' creates a new wallet connection, 'topup' adds funds to an existing connection, 'subscription' creates a subscription checkout, 'credit_bundle' purchases a credit pack for an existing subscriber
onboarding, topup, subscription, credit_bundle "onboarding"
Origin url where the checkout will be opened
"https://your-app.example.com/"
Required when checkout_mode is 'topup' or 'credit_bundle' - identifies the existing connection
"con_test_01KJHF4SFJ90Y0PKK3VJ9HF6WN"
Required when checkout_mode is 'subscription' - identifies the subscription configuration to use
"sc_123"
Required when checkout_mode is 'credit_bundle' - identifies the credit bundle to purchase
"cb_abc123"
Checkout session created
Unique identifier for the checkout session
"cs_test_01KJHF4SFHW93DY4BVF227F33V"
Secure token used for authentication in the checkout process
"eyJzZWNyZXQiOiJjc3NfdGVzdF9CSy1rYUVPbWlTcWdaTHRZdmszQXV3dXcta3UzdXl0WndEb0NBZmtXV193QnVnUmNKVXl6eDNXIiwiYmFzZSI6Imh0dHA6Ly9sb2NhbGhvc3Q6MzAwMC8ifQ=="
Checkout mode: 'onboarding' creates a new wallet connection, 'topup' adds funds to an existing connection, 'subscription' creates a subscription checkout
onboarding, topup, subscription, credit_bundle "onboarding"
Origin url where the checkout will be opened
"https://your-app.example.com/"
ISO 8601 timestamp when the checkout session was created
"2023-05-15T08:30:00Z"
Identifier for the connection (only available after checkout completion)
"con_test_01KJHF4SFJFP3GJYD74W240T5E"
Identifier for the subscription configuration (only available for subscription mode)
"sc_123"
If completed, ISO 8601 timestamp when the checkout was completed
"2023-05-15T08:35:42Z"