Eligibility-Gated Checkout
A 3-step recipe with Tamara. We can help you get access.
Recipe · 3 steps
Eligibility-Gated Checkout
with Tamara
Gate Tamara checkout-session creation behind a pre-checkout eligibility check.
- Check whether the supplied customer is treated as eligible by Tamara for the order amount before presenting Tamara at checkout.
- Create a hosted checkout session for the eligible customer so Tamara can complete the BNPL or Pay-Now flow.
- Read the order Tamara created to surface its initial status to the caller.
What you'll need to have ready
- merchantToken: Tamara-issued merchant API bearer token.
- eligibilityOrder: Eligibility order object with amount and currency.
- eligibilityCustomer: Optional eligibility customer object with an E.164 phone.
- orderReferenceId: The merchant's own reference id for the order.
- totalAmount: Money object with amount and currency for the order total.
- description: Short description of the order (max 256 chars).
- countryCode: Two-letter country code (SA, AE, BH, KW, OM).
- paymentType: PAY_BY_INSTALMENTS or PAY_NOW.
- items: Line items in the order.
- consumer: Consumer first_name, last_name, phone_number and optional details.
- shippingAddress: Shipping address for the order.
- taxAmount: Money object for the total tax amount.
For your developer
Arazzo workflow tamara:eligibility-gated-checkout, 3 operations: preCheckoutEligibility → createCheckoutSession → getOrderDetails. Specs on APIs.io.