---
updatedAt: 2025-08-20T15:27:41.000Z
agentTools:
  projectIndex: https://docs.developer.rabobank.com/smartpay/llms.txt
---

# Get a list of order groups

Get a list of order groups, with filters applied.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "SmartPin API",
    "title": "SmartPin Public API",
    "version": "1.3.4",
    "x-api-id": "54b1a324-fe2b-41fe-95de-62380de2174b",
    "x-ibm-name": "smartpin-backend-api"
  },
  "servers": [
    {
      "url": "https://api.rabobank.nl/api/v1",
      "description": "Production server"
    }
  ],
  "paths": {
    "/order-groups/open": {
      "get": {
        "parameters": [
          {
            "description": "The contract ID",
            "example": "123456, C123456, U412345",
            "in": "header",
            "name": "Contract",
            "required": false,
            "schema": {
              "pattern": "^([A-Z][A-Z0-9]{1,10})|$",
              "type": "string"
            }
          },
          {
            "description": "Whether to return visible, invisible or all order groups",
            "in": "query",
            "name": "visible",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/OrderGroupResponse"
                  },
                  "type": "array"
                }
              }
            },
            "description": "A list of orders"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/OrderGroupResponse"
                  },
                  "type": "array"
                }
              }
            },
            "description": "It is forbidden to access the list of open order groups"
          }
        },
        "tags": [
          "Order Groups"
        ],
        "description": "Get a list of order groups, with filters applied.",
        "operationId": "getOpenOrderGroups",
        "summary": "Get a list of order groups"
      }
    }
  },
  "components": {
    "schemas": {
      "LocationResponse": {
        "properties": {
          "latitude": {
            "format": "double",
            "type": "number"
          },
          "longitude": {
            "format": "double",
            "type": "number"
          }
        },
        "type": "object"
      },
      "OrderGroupResponse": {
        "description": "An order group object.",
        "properties": {
          "can_close": {
            "description": "Whether the order group can be closed manually, without having to handle the open amount.",
            "type": "boolean"
          },
          "can_delete": {
            "description": "Whether the order group can be deleted.",
            "type": "boolean"
          },
          "closed": {
            "description": "Whether the order group has been completely been paid for and is closed. A closed order group cannot be modified anymore.",
            "type": "boolean"
          },
          "closed_amount": {
            "description": "Total amount already paid for.",
            "type": "number"
          },
          "created_date_time": {
            "description": "The created date and time of this order group.",
            "format": "date-time",
            "type": "string"
          },
          "discount_amount": {
            "description": "Total discount amount.",
            "type": "number"
          },
          "discount_description": {
            "description": "The optional discount description of this order group.",
            "type": "string"
          },
          "discount_percentage": {
            "description": "The optionsl discount percentage of this order group.",
            "type": "number"
          },
          "external_id": {
            "description": "The external ID of the site or commercial unit this order group is assigned to. This is the same as `site_external_id`.",
            "type": "string"
          },
          "id": {
            "description": "The ID of the order group.",
            "format": "int64",
            "type": "integer"
          },
          "modified_date_time": {
            "description": "The modified date and time of this order group.",
            "format": "date-time",
            "type": "string"
          },
          "name": {
            "description": "The name or reference for the order group.",
            "type": "string"
          },
          "open_amount": {
            "description": "Total amount for which still has to be paid for.",
            "type": "number"
          },
          "order_items": {
            "description": "The order items for this order group.",
            "items": {
              "$ref": "#/components/schemas/OrderItemResponse"
            },
            "type": "array"
          },
          "orders": {
            "description": "The orders that have been started for this order group. The orders may or may not bee completed or failed. An order group is closed when all orders for the total amount of this order group have been successful.",
            "items": {
              "$ref": "#/components/schemas/OrderResponse"
            },
            "type": "array"
          },
          "pending": {
            "description": "Whether the order group has been partially been paid for but is not yet closed. A pending order group cannot be modified anymore.",
            "type": "boolean"
          },
          "show_vat": {
            "description": "Whether the order group and the potential orders use VAT or not.",
            "type": "boolean"
          },
          "site_external_id": {
            "description": "The external ID of the site or commercial unit to which this order group is assigned. This is the same as `site_external_id`",
            "type": "string"
          },
          "split": {
            "description": "Whether the order group has been split into multiple payments.",
            "type": "boolean"
          },
          "third_party_id": {
            "description": "The optional (unique) third party ID (such as invoice numbers).",
            "type": "string"
          },
          "total_amount": {
            "description": "The total amount for this order group.",
            "type": "number"
          },
          "total_amount_low_vat": {
            "description": "The total amount of low VAT.",
            "type": "number"
          },
          "total_amount_low_vat_base": {
            "description": "The total amount over which low VAT was calculated.",
            "type": "number"
          },
          "total_amount_regular_vat": {
            "description": "The total amount of high or regular VAT.",
            "type": "number"
          },
          "total_amount_regular_vat_base": {
            "description": "The total amount over which high or regular VAT was calculated.",
            "type": "number"
          },
          "total_amount_vat": {
            "description": "The total VAT amount for this order group.",
            "type": "number"
          },
          "total_amount_vat_base": {
            "description": "The total amount over which VAT was calculated (total amount without VAT).",
            "type": "number"
          },
          "total_amount_without_discount": {
            "description": "The total amount excluding the discount for this order group.",
            "type": "number"
          },
          "total_amount_zero_vat": {
            "description": "The total amount of zero VAT (which is always 0.00).",
            "type": "number"
          },
          "total_amount_zero_vat_base": {
            "description": "The total amount over which zero VAT was calculated.",
            "type": "number"
          },
          "user_id": {
            "description": "The user ID which is assigned or who created (in the SmartPin app) the order group.",
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "can_close",
          "can_delete",
          "closed",
          "closed_amount",
          "discount_amount",
          "open_amount",
          "order_items",
          "orders",
          "pending",
          "show_vat",
          "split",
          "total_amount",
          "total_amount_low_vat",
          "total_amount_low_vat_base",
          "total_amount_regular_vat",
          "total_amount_regular_vat_base",
          "total_amount_vat",
          "total_amount_vat_base",
          "total_amount_without_discount",
          "total_amount_zero_vat",
          "total_amount_zero_vat_base"
        ],
        "type": "object"
      },
      "OrderItemProductOptionsResponse": {
        "properties": {
          "amount": {
            "type": "number"
          },
          "amount_original": {
            "type": "number"
          },
          "constraint": {
            "enum": [
              "SINGLE",
              "MULTIPLE_UNIQUE",
              "MULTIPLE"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "price": {
            "type": "number"
          },
          "price_original": {
            "type": "number"
          },
          "product_option_id": {
            "format": "uuid",
            "type": "string"
          },
          "quantity": {
            "format": "int32",
            "type": "integer"
          },
          "required": {
            "type": "boolean"
          },
          "sequence": {
            "format": "int32",
            "type": "integer"
          }
        },
        "required": [
          "product_option_id"
        ],
        "type": "object"
      },
      "OrderItemResponse": {
        "properties": {
          "amount": {
            "description": "The total amount for all items (price * quantity), including any item discount.",
            "type": "number"
          },
          "amount_original": {
            "description": "The total amount for all items (price_original * quantity), excluding any item discount.",
            "type": "number"
          },
          "category_name": {
            "description": "Optional name of the category when using a product in a category.",
            "type": "string"
          },
          "name": {
            "description": "The name of the order item. It can be either a product name or a self assigned name.",
            "type": "string"
          },
          "price": {
            "description": "The price for a single item, including any item discount.",
            "type": "number"
          },
          "price_original": {
            "description": "The price for a single item, excluding any item discount.",
            "type": "number"
          },
          "product_options": {
            "items": {
              "$ref": "#/components/schemas/OrderItemProductOptionsResponse"
            },
            "type": "array"
          },
          "quantity": {
            "description": "The quantity of the items.",
            "type": "number"
          },
          "unit": {
            "description": "The unit of the order item, if a product which uses units is set. A product uses units, if it is sold per unit. For example: a product is sold per 100 g. ",
            "type": "string"
          },
          "unit_amount": {
            "type": "number"
          },
          "unit_base": {
            "description": "The unit quantity of the unit, if a product which uses units is set. For example: if a product is sold per 100 g, the `unit_base` would be set to `100.0`. ",
            "type": "number"
          },
          "unit_price_base": {
            "type": "number"
          },
          "vat_type": {
            "description": "The VAT type",
            "enum": [
              "REGULAR",
              "LOW",
              "ZERO",
              "LOW_6"
            ],
            "type": "string"
          }
        },
        "required": [
          "quantity"
        ],
        "type": "object"
      },
      "OrderResponse": {
        "properties": {
          "aid": {
            "type": "string"
          },
          "amount": {
            "type": "number"
          },
          "auth_code": {
            "type": "string"
          },
          "authorization_code": {
            "type": "string"
          },
          "card_type": {
            "type": "string"
          },
          "change_amount": {
            "type": "number"
          },
          "date_time": {
            "format": "date-time",
            "type": "string"
          },
          "discount_description": {
            "type": "string"
          },
          "discount_percent": {
            "type": "number"
          },
          "error_code": {
            "format": "int64",
            "type": "integer"
          },
          "external_id": {
            "type": "string"
          },
          "id": {
            "format": "int64",
            "type": "integer"
          },
          "ledger_id": {
            "format": "int32",
            "type": "integer"
          },
          "location": {
            "$ref": "#/components/schemas/LocationResponse"
          },
          "order_items": {
            "items": {
              "$ref": "#/components/schemas/OrderItemResponse"
            },
            "type": "array"
          },
          "paid_amount": {
            "type": "number"
          },
          "receipt_name": {
            "type": "string"
          },
          "reference": {
            "type": "string"
          },
          "site_external_id": {
            "type": "string"
          },
          "site_id": {
            "format": "int32",
            "type": "integer"
          },
          "state": {
            "enum": [
              "APPROVED",
              "DECLINED",
              "PENDING"
            ],
            "type": "string"
          },
          "status": {
            "format": "int32",
            "type": "integer"
          },
          "terminal_external_id": {
            "type": "string"
          },
          "terminal_id": {
            "format": "int32",
            "type": "integer"
          },
          "third_party_reference": {
            "type": "string"
          },
          "transaction_id": {
            "type": "string"
          },
          "truncated_pan": {
            "type": "string"
          },
          "type": {
            "enum": [
              "PIN",
              "CASH",
              "IDEAL",
              "PAYMENTREQ"
            ],
            "type": "string"
          },
          "user_id": {
            "format": "int64",
            "type": "integer"
          },
          "vat_enabled": {
            "type": "boolean"
          },
          "vat_high_amount": {
            "type": "number"
          },
          "vat_high_base_amount": {
            "type": "number"
          },
          "vat_low_amount": {
            "type": "number"
          },
          "vat_low_base_amount": {
            "type": "number"
          },
          "vat_zero_amount": {
            "type": "number"
          },
          "vat_zero_base_amount": {
            "type": "number"
          },
          "verified": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "verified"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "clientId": {
        "description": "ClientId as provided by the Rabobank developer portal.",
        "in": "header",
        "name": "X-IBM-Client-Id",
        "type": "apiKey"
      }
    }
  },
  "security": [
    {
      "clientId": []
    }
  ],
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": false
  }
}
```