---
updatedAt: 2026-11-09T08:30:49.000Z
agentTools:
  projectIndex: https://developers.e-guma.ch/llms.txt
---

# List of Voucher-Orders

```text URL
GET https://api.e-guma.ch/v1/vouchers/orders.json?apikey={api-key}
```

## Parameters

| Parameter               | Description                                                          |
| ----------------------- | -------------------------------------------------------------------- |
| **api-key** `required`  |                                                                      |
| **updated\_at\_after**  | Show orders modified at or after date (format: 2019-06-04T23:15:14). |
| **updated\_at\_before** | Show orders modified before date (format: 2019-07-04T23:15:14).      |

## Return

| Parameter                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **id**                         | The ID of the order.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **created\_at**                | The autogenerated date and time (ISO 8601 format) when the order was created. E.g. 2019-06-03T19:16:43                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| **updated\_at**                | The date and time (ISO 8601 format) when the order was last modified. This value changes when an order line (voucher) gets cancelled, an order gets cancelled, a value of the customer object gets updated, or `fulfillment_status` changes after the order was created (marked as shipped, that mark reverted, or a voucher that was held until payment is released once the invoice is paid). When an order is created then *updated\_at* has the same value as *created\_at*, including the fulfillment status assigned at creation. Poll `updated_at_after` to follow orders that become ready to ship and orders that have been shipped. |
| **order\_number**              | The order number                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| **status**                     | *completed* or *cancelled*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| **fulfillment\_status**        | *none*, *unfulfilled* or *fulfilled*. *unfulfilled* means the order is waiting to be marked as shipped (postal shipping or pickup). *fulfilled* means it was marked as shipped, or it never needed shipping (print at home, or a counter sale). *none* means the voucher is held until the invoice is paid. The invoice itself has already been sent. Once that invoice is paid, print at home moves to *fulfilled* and postal shipping to *unfulfilled*.                                                                                                                                                                                     |
| **currency**                   | The three-letter code (ISO 4217 format) for the currency. Each shop only supports one currency.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| **language**                   | Language as a two-letter code (ISO 639-1).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| **reference\_number**          | Optional reference number. This value is alphanumeric.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| **location**                   | *web* or *local*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| **is\_paid**                   | Whether the order is fully paid. Same meaning as the Paid column in the Backoffice CSV order export. Also returned for cancelled orders; to follow up on unpaid invoices, additionally filter `status != "cancelled"`.                                                                                                                                                                                                                                                                                                                                                                                                                        |
| **discount\_in\_cents**        | The total discounts applied to the price of the order.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| **discount\_comment**          | The comment of the discount payment (e.g. the reason for a discount). Discount payments are excluded from the `payments` array because their amount is already included in `discount_in_cents`. *null* when there is no discount comment.                                                                                                                                                                                                                                                                                                                                                                                                     |
| **shipping\_method**           | *postage*, *pick\_up* or *print\_at\_home* for online orders (`location` = *web*). *null* for counter sales and imports, which have no shop shipping choice. *postage* is postal shipping. A pickup order is *pick\_up* even when the merchant prints the vouchers. To list postal orders that still need shipping, filter `shipping_method` = *postage* and `fulfillment_status` = *unfulfilled*.                                                                                                                                                                                                                                            |
| **shipping\_costs\_in\_cents** | The total shipping fee applied to the order.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| **grand\_total\_in\_cents**    | The sum of all line item prices, shipping fee and added discounts.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| **customer**                   | Customer, see customer object below for details.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| **order\_lines**               | List of order lines, see order line object below for details.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| **payments**                   | List of payments, see payment object below for details.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |

## Customer object

|                                    |                                                                                                                                                                                |
| :--------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **id**                             | The ID of the customer.                                                                                                                                                        |
| **title**                          | *Mr*, *Mrs*, *Company* or *Other*                                                                                                                                              |
| **first\_name**                    | First name                                                                                                                                                                     |
| **last\_name**                     | Last name                                                                                                                                                                      |
| **company**                        | Company name                                                                                                                                                                   |
| **street**                         | Street                                                                                                                                                                         |
| **zip**                            | Zip code                                                                                                                                                                       |
| **city**                           | City                                                                                                                                                                           |
| **country**                        | Country as two-letter code (ISO 3166-1 alpha-2).                                                                                                                               |
| **email**                          | Email address                                                                                                                                                                  |
| **accepts\_marketing**             | Whether the customer consented (Double Opt-in) to receive email newsletters.                                                                                                   |
| **double\_opt\_in\_confirmed\_at** | If the customer consented to receive the email newsletter then the date and time (ISO 8601 format) of the Double Opt-in will be returned. Otherwise this value will be *null*. |
| **phone**                          | Phone number                                                                                                                                                                   |

## Order line object

|                             |                                                                                                                               |
| :-------------------------- | :---------------------------------------------------------------------------------------------------------------------------- |
| **type**                    | Returns the order line type (`voucher`, `product`, or `charge`). This property is omitted if Order Management is not enabled. |
| **product\_id**             | The ID of the voucher template or product.                                                                                    |
| **name**                    | The name of the voucher (e.g. Candle Light Dinner) or the product.                                                            |
| **unit\_price\_in\_cents**  | Unit Price                                                                                                                    |
| **quantity**                | Quantity                                                                                                                      |
| **total\_price\_in\_cents** | *quantity* x *unit\_price\_in\_cents*                                                                                         |

## Payment object

|                       |                                                                                                     |
| :-------------------- | :-------------------------------------------------------------------------------------------------- |
| **payment\_id**       | The ID of the payment method.                                                                       |
| **name**              | The name of the payment method. E.g. Credit Card                                                    |
| **comment**           | The comment of the payment method (e.g. the reason for a complimentary booking). *null* when empty. |
| **amount\_in\_cents** | Amount                                                                                              |
| **is\_complimentary** | Indicates if a payment is complimentary.                                                            |

## Example

```text Request
GET https://api.e-guma.ch/v1/vouchers/orders.json?updated_at_after=2019-07-29T00:00:00&apikey=5bb668e394f2811f3ca4a9db
```

```json Response
[
  {
    "id": "c004033d-ded1-4b74-958f-76ef47e747d6",
    "created_at": "2019-07-29T14:41:05",
    "updated_at": "2019-07-29T14:41:05",
    "order_number": "GI10023",
    "status": "completed",
    "fulfillment_status": "fulfilled",
    "currency": "CHF",
    "language": "de",
    "location": "web",
    "reference_number": "123456789",
    "is_paid": true,
    "discount_in_cents": 0,
    "discount_comment": null,
    "shipping_method": "print_at_home",
    "shipping_costs_in_cents": 0,
    "grand_total_in_cents": 30000,
    "customer": {
      "id": "4c3150ad-7117-4516-aa7c-2ca6d5c7a597",
      "title": "Mr",
      "first_name": "Christoph",
      "last_name": "Thomet",
      "company": "Idea Creation GmbH",
      "street": "Walchestrasse 15",
      "zip": "8006",
      "city": "Zurich",
      "country": "CH",
      "email": "ch.thomet@e-guma.ch",
      "accepts_marketing": true,
      "double_opt_in_confirmed_at": "2019-07-29T12:13:53",
      "phone": "044 500 54 00"
    },
    "order_lines": [
      {
        "type": "voucher",
        "product_id": "13a7b4a7-2256-4f23-b690-2d562d98e171",
        "name": "Wertgutschein",
        "unit_price_in_cents": 10000,
        "quantity": 3,
        "total_price_in_cents": 30000
      }
    ],
    "payments": [
      {
        "payment_id": "1",
        "name": "Postkarte / Kreditkarte",
        "comment": null,
        "amount_in_cents": 30000,
        "is_complimentary": false
      }
    ]
  },
  {
    "id": "7a7f2b66-feab-43fd-b579-d284af14173e",
    "created_at": "2019-07-29T14:44:41",
    "updated_at": "2019-07-29T14:45:44",
    "order_number": "GI10024",
    "status": "completed",
    "fulfillment_status": "fulfilled",
    "currency": "CHF",
    "language": "de",
    "location": "local",
    "is_paid": false,
    "discount_in_cents": 0,
    "discount_comment": null,
    "shipping_method": null,
    "grand_total_in_cents": 50000,
    "customer": {
      "id": "2f1744d6-1c43-4620-bd74-4c6983b3cf88",
      "title": "Mr",
      "first_name": "Hans",
      "last_name": "Muster",
      "company": "",
      "street": "Bahnhofstrasse 99",
      "zip": "8006",
      "city": "Zurich",
      "country": "CH",
      "email": "",
      "accepts_marketing": false,
      "double_opt_in_confirmed_at": null,
      "phone": ""
    },
    "order_lines": [
      {
        "type": "voucher",
        "product_id": "57186abe-7cd6-489f-8434-1c8acf3d3f10",
        "name": "Individueller Gutschein",
        "unit_price_in_cents": 50000,
        "quantity": 1,
        "total_price_in_cents": 50000
      }
    ],
    "payments": [
      {
        "payment_id": "2",
        "name": "Rechnung",
        "comment": null,
        "amount_in_cents": 50000,
        "is_complimentary": false
      }
    ]
  }
]
```