VoucherTemplate::postSaveΒΆ

{
  "version": "0.1",
   "data": {
     "id": 22,
     "name": "Cadeaubon Kano Dagtocht",
     "description": "Cadeaubon te besteden aan een dag kano huren",
     "quantity_term": "",
     "product_amount": null,
     "price": "50.00",
     "expire_days": 365,
     "expiration_date": null,
     "internal_reference": "CADEAU-2025",
     "pdf_template_id": 56,
     "confirmation_mail_subject": "Uw cadeaubon Kano Verhuur",
     "confirmation_mail_body": "Beste klant,\n\nIn de bijlage vindt u uw cadeaubon.",
     "contactform_id": null,
     "company_id": 3,
     "credit": "50.00",
     "type": "credit"
   },
  "meta": {}
}

Explanation:

  • id: integer.

  • name: string.

  • description: string.

  • quantity_term: string.

  • product_amount: integer|null.

  • price: numeric-string|null.

  • expire_days: integer|null.

  • expiration_date: non-empty-string|null.

  • internal_reference: string.

  • pdf_template_id: integer|null.

  • confirmation_mail_subject: string.

  • confirmation_mail_body: string.

  • contactform_id: integer|null.

  • company_id: integer|null.

  • credit: numeric-string|null.

  • type: non-empty-string.

Webhook selection: use VoucherTemplate::postInsert for creations and VoucherTemplate::postUpdate for updates.