Sample webhook for when form submission

{
  "event": "form-submit",
  "data": {
    "form_id": 210,
    "form_title": "Deposit Crazy Brochure Sales",
    "record_type": "Transaction",
    "record_id": "LINK-02046",
    "main_data": {
      "id": "01jfps609t08vjb8d5exq27bz6",
      "payer_name": "Muhammad Faris",
      "payer_email": "khairul@webimpian.com",
      "payer_telephone_number": "+601234567890",
      "order_number": "LINK-02046",
      "transaction_type": "test",
      "currency": "MYR",
      "amount": "476.00",
      "fee_amount": "1.00",
      "items": [
        {
          "item": "Deposit 50%",
          "quantity": "1",
          "unit_amount": "475",
          "amount": 475,
          "option": "",
          "access_url": "",
          "index": 0
        }
      ],
      "payment_channel": "FPX",
      "status": "0"
    },
    "custom_fields_data": {
      "Paper Size": "A3 (5,000pcs)",
      "address_line1": "18 Lipat Jasin Melaka",
      "country": "MY",
      "state": "Selangor",
      "city": "Kajang",
      "postal_code": "43007"
    }
  }
}
JSON

Sample webhook for after payment received

{
  "event": "payment-success",
  "data": {
    "form_id": 210,
    "form_title": "Deposit Crazy Brochure Sales",
    "record_type": "Transaction",
    "record_id": "LINK-02046",
    "main_data": {
      "id": "01jfps609t08vjb8d5exq27bz6",
      "payer_name": "Muhammad Faris",
      "payer_email": "khairul@webimpian.com",
      "payer_telephone_number": "+601234567890",
      "order_number": "LINK-02046",
      "transaction_type": "test",
      "currency": "MYR",
      "amount": "476.00",
      "fee_amount": "1.00",
      "items": [
        {
          "item": "Deposit 50%",
          "quantity": "1",
          "unit_amount": "475",
          "amount": 475,
          "option": "",
          "access_url": "",
          "index": 0
        }
      ],
      "payment_channel": "FPX",
      "status": 3,
      "status_description": "Approved"
    },
    "receipt_url": "https://bayarcash-link.test/storage/pdf/LINK-02046.pdf",
    "custom_fields_data": {
      "address_line1": "18 Lipat Jasin Melaka",
      "city": "Kajang",
      "country": "MY",
      "Paper Size": "A3 (5,000pcs)",
      "postal_code": "43007",
      "state": "Selangor"
    }
  }
}
JSON

Leave a Reply

Your email address will not be published. Required fields are marked *