Skip to content
cuppa.

Tutorial

Embed an eSIM in booking checkout.

Add connectivity as a line in a checkout you already trust. Provision after the booking reference exists, then show installation on the confirmation.

Code and responses on this page are illustrative. They show the shape of an integration. Confirm the production schema in your Cuppa account before you ship.

The line item

Read plans for the trip destination. Let the buyer add one. Price it with your retail rules. Do not provision while they are still changing the basket.

After payment

Send the fulfilment with the booking reference. Store the response on the booking. The confirmation page reads that record. If the call fails, the booking still exists and connectivity stays pending.

Illustrative fulfilment
POST /v1/fulfilments
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{
  "product_id": "example_plan",
  "reference": "booking_4821"
}