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

# Updates an existing order group

Updates an existing order group.

# 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/{orderGroupId}": {
      "put": {
        "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": "The order group ID",
            "example": 123,
            "in": "path",
            "name": "orderGroupId",
            "required": true,
            "schema": {
              "format": "int64",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Order group has been updated successfully"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Invalid data provided to update an order group"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Forbidden to update an order group"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Order group does not exist"
          }
        },
        "tags": [
          "Order Groups"
        ],
        "description": "Updates an existing order group.",
        "operationId": "updateOrderGroup",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/B2BUpdateOrderGroupRequest"
              }
            }
          },
          "required": true
        },
        "summary": "Updates an existing order group"
      }
    }
  },
  "components": {
    "schemas": {
      "B2BOrderItemProductOptionRequest": {
        "description": "A product option for an order item.",
        "properties": {
          "amount": {
            "description": "The total amount of the product option. For example: if a product option costs € 0,50 but the `quantity` is `2`, the amount should be set to `1.00`.",
            "example": 1,
            "type": "number"
          },
          "amount_original": {
            "description": "The original total amount of the product option, if an `discount_type` is set for the corresponding order item.",
            "example": 0.75,
            "type": "number"
          },
          "constraint": {
            "description": "The constraint for the product option. When set to `SINGLE` only one product option for the entire order item should be set. Otherwise, multiple are allowed but with different `quantity`'s. This should (but is not required) be the kept as the configuration of the product option.",
            "enum": [
              "SINGLE",
              "MULTIPLE_UNIQUE",
              "MULTIPLE"
            ],
            "type": "string"
          },
          "name": {
            "description": "The name of the product option. This should (but is not required) be the kept as the configuration of the product option.",
            "example": "Sauce, Extra bag",
            "type": "string"
          },
          "price": {
            "description": "The price of a single item of the product option. For example: if a product option costs € 0,50, the amount should be set to `0.50`.",
            "example": 0.5,
            "type": "number"
          },
          "price_original": {
            "description": "The original price of the product option, if an `discount_type` is set for the corresponding order item.",
            "example": 0.25,
            "type": "number"
          },
          "product_option_id": {
            "description": "The ID of the product option.",
            "example": "558c1b17-73e7-434b-81d5-ae593996a89b",
            "format": "uuid",
            "type": "string"
          },
          "quantity": {
            "description": "The quantity for the product option. Should be positive.",
            "format": "int32",
            "type": "integer"
          },
          "required": {
            "description": "Whether the product option is required for the order item or not. This should (but is not required) be the kept as the configuration of the product option.",
            "type": "boolean"
          }
        },
        "required": [
          "amount",
          "constraint",
          "name",
          "price",
          "product_option_id",
          "quantity",
          "required"
        ],
        "type": "object"
      },
      "B2BOrderItemRequest": {
        "description": "An item in an order or an order group.",
        "properties": {
          "amount": {
            "description": "The price of a single item for this order group.",
            "example": 1.23,
            "type": "number"
          },
          "amount_original": {
            "description": "The original price of a single item for this order group, if an `discount_type` is set for this order item.",
            "example": 0.75,
            "type": "number"
          },
          "category_name": {
            "description": "An optional category name of the product for this order item.",
            "example": "Fruit",
            "type": "string"
          },
          "discount_amount": {
            "description": "The optional discount amount for a single item of this order item. If `discount_type` is set to `PERCENT`, this can be a value between `0` and `100.00`. If the `discount_type` is set to `AMOUNT`, the value can be a value between `0` and the set price of this order item.",
            "type": "number"
          },
          "discount_description": {
            "description": "An optional description for the discount if a `discount_type` is set.",
            "type": "string"
          },
          "discount_type": {
            "description": "The optional discount type for this order item.",
            "enum": [
              "PERCENT",
              "AMOUNT"
            ],
            "type": "string"
          },
          "favorite_id": {
            "description": "The optional ID of a known SmartPin product that is set for this order item.",
            "example": 123,
            "format": "int64",
            "type": "integer"
          },
          "name": {
            "description": "The name of the order item.",
            "example": "Apple",
            "type": "string"
          },
          "product_options": {
            "description": "The product options, if any, for this order item.",
            "items": {
              "$ref": "#/components/schemas/B2BOrderItemProductOptionRequest"
            },
            "type": "array"
          },
          "quantity": {
            "description": "The quantity of the articles in this order item. Must be a positive amount. If an order item is created for a product that uses units, this should always be set to `1`. A product uses units when `unit`, `unit_base`, `unit_price_base` and `unit_amount` is set.",
            "example": 10,
            "type": "number"
          },
          "third_party_id": {
            "description": "An optional third party ID for this order item.",
            "type": "string"
          },
          "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. If this is set `quantity` should be set to `1`.",
            "example": "g, kg, cm",
            "type": "string"
          },
          "unit_amount": {
            "description": "The unit amount for a product, if a product which uses units is set. For example: if 250 g of Apples is sold, the `unit_amount` should be set to `250.0`. If this is set `quantity` should be set to `1`.",
            "example": 250,
            "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`. If this is set `quantity` should be set to `1`.",
            "type": "number"
          },
          "unit_price_base": {
            "description": "The price per base amount set in `unit_base`, if a product which uses units is set. For example: if an item is sold for € 15.00 per 100 g, the `unit_price_base` is set to `15.00`. If this is set `quantity` should be set to `1`.",
            "example": 15,
            "type": "number"
          },
          "vat_type": {
            "description": "The VAT type for this order item.",
            "enum": [
              "REGULAR",
              "LOW",
              "ZERO",
              "LOW_6"
            ],
            "type": "string"
          }
        },
        "required": [
          "amount",
          "vat_type"
        ],
        "type": "object"
      },
      "B2BUpdateOrderGroupRequest": {
        "properties": {
          "discount_description": {
            "description": "Optional discount description.",
            "type": "string"
          },
          "discount_percentage": {
            "description": "Optional discount percentage.",
            "type": "number"
          },
          "name": {
            "description": "The name of reference for the order group.",
            "maxLength": 255,
            "minLength": 0,
            "type": "string"
          },
          "order_items": {
            "description": "The order items. Order items can be added later but at least one should exist when performing payments on the order group.",
            "items": {
              "$ref": "#/components/schemas/B2BOrderItemRequest"
            },
            "type": "array"
          },
          "third_party_id": {
            "description": "The optional (unique) third party ID such as invoice numbers.",
            "maxLength": 255,
            "minLength": 0,
            "type": "string"
          },
          "user_id": {
            "description": "Optional user ID. This can be used to show specific order groups only to the user with the ID set with this property.",
            "example": 123,
            "format": "int64",
            "type": "integer"
          },
          "visible": {
            "description": "Whether the order group should be visible (for example in the SmartPin app).",
            "type": "boolean"
          }
        },
        "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
  }
}
```