Skip to content

API Reference / Predefined Item Groups

GET /predefined_item_groups

Get the list of predefined item groups (for the logged API user's account)

Returns the account's predefined item groups. A group bundles predefined items under one name, and its cost and price are the sums of its members. Pass include_items to embed the items themselves.

Maintained by the OnePageCRM engineering team

Responses

200 OK
  • statusintegerint32

    Response code

  • messagestring

    Response message

  • timestampintegerunix-timestamp

    Response time

  • dataobject
    object fields β†’
    • predefined_item_groupsarray<object>
      array item fields β†’
      • predefined_item_groupobject

        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