Webhooks de Voucher de Troca

Criação de voucher de troca

Na criação de um voucher é disparado o webhook:

{
  "event": "created",
  "object_id": 104,
  "account_id": 1,
  "object_type": "ExchangeVoucher",
  "organization_id": 2,
  "organization_external_id": "ASD-12",
  "account_id": 2,
  "timestamp": 1667914927,
  "uuid": "562510cc-f279-4cf2-967b-db78210e1ee1"
}

Uso do voucher de troca

Quando um voucher for usado é disparado o webhook:

{
  "event": "used",
  "object_id": 104,
  "account_id": 1,
  "object_type": "ExchangeVoucher",
  "organization_id": 2,
  "organization_external_id": "ASD-12",
  "account_id": 2,
  "timestamp": 1667914927,
  "uuid": "562510cc-f279-4cf2-967b-db78210e1ee1"
}

Cancelamento de voucher de troca

Quando um voucher for cancelado é disparado o webhook:

{
  "event": "cancelled",
  "object_id": 104,
  "account_id": 1,
  "object_type": "ExchangeVoucher",
  "organization_id": 2,
  "organization_external_id": "ASD-12",
  "account_id": 2,
  "timestamp": 1667914927,
  "uuid": "562510cc-f279-4cf2-967b-db78210e1ee1"
}