Skip to content

API Reference / Predefined Item Groups

POST /predefined_item_groups

Create a new predefined item group

Creates a predefined item group. name is required and must be unique on the account, and items_ids lists the predefined items to bundle (up to 200). The group's cost and price are derived from its members.

Maintained by the OnePageCRM engineering team

Request body

  • namestring

    Name of the predefined item group

  • deal_itemsarray<string>

    List of IDs of the predefined/deal items in the predefined item group

Responses

201 Created
  • statusintegerint32

    Response code

  • messagestring

    Response message

  • timestampintegerunix-timestamp

    Response time

  • dataobject
    object fields β†’
    • predefined_itemobject

      A grouping of predefined/deal items. Useful if items can be sold as part of a package or compliment one another

      object fields β†’
      • idstringbson-id

        ID of the predefined item group

      • namestring

        Name of the predefined item group

      • positionintegerint32

        Position of the group in the list of predefined item groups

      • countintegerint32

        Number of predefined items in the predefined item group

      • item_idsarray<string>

        List of IDs of the predefined/deal items in the predefined item group

Standard error responses: 400 Β· 401 Β· 403 Β· 404 Β· 409 Β· 500 β€” shared across the API. See Errors.

Related guides