Create Transaction

Changed on

Creates a transaction for a bundle. This is a critical, required step in the purchase flow - it tells Loop which products, box size, selling plan, and discount make up the bundle, and returns a txnId you attach to the cart.

post/2026-04/bundle/{id}/transaction

Request

  • Base URL
    https://api.loopsubscriptions.com/storefront
  • URL
    https://api.loopsubscriptions.com/storefront/2026-04/bundle/{id}/transaction
  • Auth
    none required

Path parameters

idinteger required

Bundle ID

Request body

boxSizeIdinteger
discountIdinteger
sellingPlanShopifyIdinteger

Pass null to add bundle as a one-time purchase

quantityinteger

Response

Bundles transaction created successfully

successboolean
messagestring
codestring
pageInfounknown

Example response

{
  "success": true,
  "message": "Bundles transaction created successfully",
  "data": {
    "txnId": "1855825a828a4142afd55fe7f99076e8"
  },
  "code": "SUCCESS"
}

Changes