Voucher order created Webhook

This webhook is triggered when an order is created. The payload has the same structure as the List of Voucher-Orders response.

ParameterDescription
is_paidWhether 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_commentThe 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.
payments[].commentThe comment of the payment method (e.g. the reason for a complimentary booking). null when empty.
fulfillment_statusnone, 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.
shipping_methodpostage, 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.
{
  "id": "96bc02ca-76b3-46f1-9c84-741d9cff362f",
  "created_at": "2022-11-28T10:29:30",
  "updated_at": "2022-11-28T10:29:30",
  "order_number": "G10964",
  "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",
  "grand_total_in_cents": 17900,
  "customer": {
    "id": "6e791b3b-b452-4561-8225-cae9ea3cb69e",
    "title": "Mr",
    "first_name": "Test",
    "last_name": "User",
    "company": "Idea Creation GmbH",
    "street": "Walchestrasse 15",
    "zip": "8006",
    "city": "Zuerich",
    "country": "CH",
    "email": "[email protected]",
    "accepts_marketing": true,
    "double_opt_in_confirmed_at": "2022-02-25T12:27:41",
    "phone": "044 500 54 00"
  },
  "order_lines": [
    {
      "type": "voucher",
      "product_id": "fc9643a1-c14f-4c18-b540-4348cea9ae75",
      "name": "Family Box",
      "unit_price_in_cents": 17900,
      "quantity": 1,
      "total_price_in_cents": 17900
    }
  ],
  "payments": [
    {
      "payment_id": "1",
      "name": "Postkarte / Kreditkarte",
      "comment": null,
      "amount_in_cents": 17900,
      "is_complimentary": false
    }
  ]
}