For the complete documentation index, see llms.txt. This page is also available as Markdown.

Publish

Publish built campaigns and pages to make them live on your storefront. Requires a prior successful build.

Get Published Catalog Item

get

Returns the currently published version of an offer, add-on, or discount. Responds with 404 if the item is not currently published. Use this to check whether an item is live and which version is published before publishing again.

Authorizations
AuthorizationstringRequired

OAuth 2.0 Bearer token for authenticated API access. Required for order submission, object management, and administrative operations.

Obtain a token via the OAuth flow described in OAuth Bearer Token.

Pass the token in the Authorization header: Bearer <token>

Path parameters
path_typestring · enumRequired

The type of catalog item to publish. Publishable types are offers (offers), add-ons (add_ons), discounts (discounts), and agents (agents). Note the URL segment for offers is offers, while the offer's catalog path uses the /offers2/ prefix (see the request body below).

Example: offersPossible values:
idstringRequired

The catalog item's unique id (the id field on the offer, add-on, or discount).

Example: abcxyz123456
Responses
200

The published version record for the item.

No content

get/objects/limio/{path_type}/{id}/published
GET /api/objects/limio/{path_type}/{id}/published HTTP/1.1
Host: your-environment.prod.limio.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Publish Catalog Item

put

Publishes an offer, add-on, or discount directly, making the new version immediately live in Limio for Salesforce, upgrade and downgrade options, cross-sells and upsells, and purchase links. (Shop pages still require a page rebuild and republish for changes to appear.)

If you do not hold the id, GET /api/catalog_items answers it for every item of a record type.

There are two ways to publish:

  • Recommended — publish from the catalog. Send path (the item's catalog path) together with expectedVersion (the version you last saved). Limio reads the item from the catalog at path, checks it still matches expectedVersion, and publishes exactly that content. If the item changed since you saved it (someone else saved in between), the request fails with 409 so you never publish content you have not reviewed.

  • Publish a known version directly. Send version alone to publish an existing version record whose content you already vouch for.

Provide either path + expectedVersion, or version — not both.

Authorizations
AuthorizationstringRequired

OAuth 2.0 Bearer token for authenticated API access. Required for order submission, object management, and administrative operations.

Obtain a token via the OAuth flow described in OAuth Bearer Token.

Pass the token in the Authorization header: Bearer <token>

Path parameters
path_typestring · enumRequired

The type of catalog item to publish. Publishable types are offers (offers), add-ons (add_ons), discounts (discounts), and agents (agents). Note the URL segment for offers is offers, while the offer's catalog path uses the /offers2/ prefix (see the request body below).

Example: offersPossible values:
idstringRequired

The catalog item's unique id (the id field on the offer, add-on, or discount).

Example: abcxyz123456
Body
pathstringOptional

The catalog path of the item to publish. Offers use the /offers2/ prefix, add-ons /add_ons/, and discounts /discounts/. Must be sent together with expectedVersion.

Example: /offers2/UK Annual Membership
expectedVersionstringOptional

The version (content hash) you last saved. The publish fails with 409 if the item's current version no longer matches. Required when path is provided.

Example: 4dd34671f26fdbbf240560b78f7f2f54654cde72
versionstringOptional

Publish an existing version record directly, by its version hash. Use this instead of path + expectedVersion.

Example: 4dd34671f26fdbbf240560b78f7f2f54654cde72
Responses
200

The item was published.

application/json
successbooleanOptional

Indicates whether the publish or unpublish operation succeeded.

Example: true
put/objects/limio/{path_type}/{id}/published
PUT /api/objects/limio/{path_type}/{id}/published HTTP/1.1
Host: your-environment.prod.limio.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 154

{
  "path": "/offers2/UK Annual Membership",
  "expectedVersion": "4dd34671f26fdbbf240560b78f7f2f54654cde72",
  "version": "4dd34671f26fdbbf240560b78f7f2f54654cde72"
}
{
  "success": true
}

Unpublish Catalog Item

delete

Unpublishes an offer, add-on, or discount, removing its published version so it is no longer live.

Authorizations
AuthorizationstringRequired

OAuth 2.0 Bearer token for authenticated API access. Required for order submission, object management, and administrative operations.

Obtain a token via the OAuth flow described in OAuth Bearer Token.

Pass the token in the Authorization header: Bearer <token>

Path parameters
path_typestring · enumRequired

The type of catalog item to publish. Publishable types are offers (offers), add-ons (add_ons), discounts (discounts), and agents (agents). Note the URL segment for offers is offers, while the offer's catalog path uses the /offers2/ prefix (see the request body below).

Example: offersPossible values:
idstringRequired

The catalog item's unique id (the id field on the offer, add-on, or discount).

Example: abcxyz123456
Responses
200

The item was unpublished.

application/json
successbooleanOptional

Indicates whether the publish or unpublish operation succeeded.

Example: true
delete/objects/limio/{path_type}/{id}/published
DELETE /api/objects/limio/{path_type}/{id}/published HTTP/1.1
Host: your-environment.prod.limio.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "success": true
}

Publish Campaigns and Pages

post

This API allows you to publish campaigns and pages in Limio. You can use this API to publish campaigns and pages to make them live on your website. This can be useful for activities such as launching new products, promoting sales, or creating seasonal campaigns.

Authorizations
AuthorizationstringRequired

OAuth 2.0 Bearer token for authenticated API access. Required for order submission, object management, and administrative operations.

Obtain a token via the OAuth flow described in OAuth Bearer Token.

Pass the token in the Authorization header: Bearer <token>

Body
tagsarrayRequired

The list of campaigns and pages to publish

Example: ["/tags/uk-uk/default"]
buildIdstringRequired

The build ID of the campaigns and pages to publish

Example: build-shard-shop:b83ee127-2301-4358-b993-cb3d7f009718
namestringRequired

The name of one of the campaigns / pages to be published

Example: Default
Responses
200

OK

application/json
successbooleanOptional

Indicates whether the operation was successful

Example: true
post/publish
POST /api/publish HTTP/1.1
Host: your-environment.prod.limio.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 115

{
  "tags": [
    "/tags/uk-uk/default"
  ],
  "buildId": "build-shard-shop:b83ee127-2301-4358-b993-cb3d7f009718",
  "name": "Default"
}
{
  "success": true,
  "publishedData": {
    "pages": {
      "/default/": [
        {
          "path": "/default/",
          "isDefault": true,
          "pathPrefix": "/__v/956ec1a_1712754608",
          "type": "page",
          "codebuildId": "build-shard-shop:b83ee127-2301-4358-b993-cb3d7f009718",
          "buildDate": "2024-04-10T13:11:05.534Z",
          "name": "Campaign",
          "publishedDate": "2024-04-10T13:13:05.081Z",
          "userName": "user@limio.com"
        }
      ],
      "/checkout/": [
        {
          "path": "/checkout/",
          "isDefault": false,
          "pathPrefix": "/__v/4b09596_1712311159",
          "type": "page",
          "codebuildId": "build-shard-shop:b83ee127-2301-4358-b993-cb3d7f009718",
          "buildDate": "2024-04-05T10:00:39.455Z",
          "name": "Checkout",
          "publishedDate": "2024-04-05T10:01:07.401Z",
          "userName": "user@limio.com"
        }
      ]
    }
  },
  "ommitedWithError": {
    "pages": {}
  }
}

Last updated

Was this helpful?