Offerings catalog

Offering Sets

An OfferingSet groups offerings together so they can be referenced in other places.

get/shop/offering-sets

List OfferingSets

listOfferingSets

Use this endpoint to retrieve a list of OfferingSets for a site.

Query parameters

  • pageintegeroptional

    The page to retrieve results from

  • per_pageintegeroptional

    The number of results to return per page

  • site_idstringoptional

    Filter results by the site they belong to

Responses

  • 200

    The OfferingSets were successfully retrieved.

  • 401

    The user is unauthenticated

  • 404

    The resource couldn't be found

post/shop/offering-sets

Create OfferingSet

createOfferingSet

Use this endpoint to create a new OfferingSet for a site.

Query parameters

  • site_idstringoptional

    Filter results by the site they belong to

Request body

  • namestringoptional

    Display name of the offering set, shown in the admin UI when picking a set to apply (e.g. as a coupon restriction or to scope a commission rate). Offering sets are reusable groupings of treatments, classes, or products. 1-120 characters.

  • offeringsobject[]optional

    The offerings that belong to this set.

Responses

  • 201

    The OfferingSet was successfully retrieved.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found

  • 422

    The request didn't pass validation

get/shop/offering-sets/{offeringSetId}

Show OfferingSet

getOfferingSet

Use this endpoint to retrieve a single OfferingSet.

Path parameters

Query parameters

  • site_idstringoptional

    Filter results by the site they belong to

Responses

  • 200

    The OfferingSet was successfully retrieved.

  • 401

    The user is unauthenticated

  • 404

    The resource couldn't be found

put/shop/offering-sets/{offeringSetId}

Update OfferingSet

updateOfferingSet

Use this endpoint to update an OfferingSet.

Path parameters

Query parameters

  • site_idstringoptional

    Filter results by the site they belong to

Request body

  • namestringoptional

    Display name of the offering set, shown in the admin UI when picking a set to apply (e.g. as a coupon restriction or to scope a commission rate). Offering sets are reusable groupings of treatments, classes, or products. 1-120 characters.

  • offeringsobject[]optional

    The offerings that belong to this set.

Responses

  • 200

    The OfferingSet was successfully retrieved.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found

  • 422

    The request didn't pass validation

delete/shop/offering-sets/{offeringSetId}

Delete OfferingSet

deleteOfferingSet

Use this endpoint to delete an OfferingSet.

Path parameters

Query parameters

  • site_idstringoptional

    Filter results by the site they belong to

Responses

  • 204

    The OfferingSet was successfully deleted.

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found