Create a Fully Hosted Session

This endpoint is only relevant to Fully Hosted integrations.

A POST request to /sessions/ initiates a Session of the Fully Hosted Forage Checkout UI. On success, the API creates a Forage Order.

The response payload represents the Fully Hosted Session. The ref and redirect_url fields are the most important:

  • ref represents the Order
    • Store this ref so that you can pass it in a future request to Retrieve the Order outcome
  • redirect_url is the URL that launches the customer-facing Forage Checkout UI
    • Point customers to this URL when they’re ready to complete checkout

How to use the snap_total and ebt_cash_total params

Keep snap_total to SNAP eligible items only, and ebt_cash_total to EBT Cash eligible items only.

A customer might apply less than the total eligible amount of benefits to the Order. Retrieve the Order outcome and inspect the receipt field to confirm the final spending breakdown across payment types.

Pass the tax_rate of every item in the product_list body param so that Forage can handle taxes.

Forage calculates the taxes for the Order depending on how the customer decides to pay. SNAP eligible items are only subject to taxes when purchased with a credit/debit card, per FNS regulations. Retrieve the Order outcome and inspect the sales_tax_applied response value to find the final tax amount charged to the customer, or review the taxes_charged on a per item level in the product_list field.

📘

Guides

Language
Authorization
OAuth2
URL