preloader

USING WEBHOOKS
TO KEEP YOUR
WEBSITE OR POS SYSTEM
UP TO DATE

particle One particle Two particle Three particle Four particle Five

Using Webhooks to keep your site up to date

Often you may want to update your pos system when an even happens on Neves Business Solutions platform. The quickest way to update your site is to use a webhook. There are numerous events that can be sent to a webhook.

Setting UP A Webhook

To setup a webhook in the merchant portal you will first need a url for the actual webhook to call. A webhook generates a get or post request to that call any time there is an event on our system.

If you have authentication credentials for the script that your hooking into you can add them on the webhooks screen.

Webhook Call Format

Every time a webhook is called a http get or post request is sent to your script using the provided URL on the webhook setup screen and with the fields provided below. The fields are specific to the individual call. But there will be a common field which provides the transactionType.

Any of the fields with the following number 123e4567-e89b-12d3-a456-426655440000 represents a UUID number that is assigned using our system.

Events Sent To Webhooks

Gift Card Events

Issue Gift Card

Description: Issue gift card event occured

Fields

transactionType: "issue_gift_card"

gift_card_type': 'regular' || 'promotional'

gift_card_id: 123e4567-e89b-12d3-a456-426655440000

cashier_no: 'pos cashier id.'

activation_location_id: 123e4567-e89b-12d3-a456-426655440000

amount: ######.##

Activate Physical Gift Card

Description: activate physical gift card event occured

Fields

transactionType: "activate_physical_card"

gift_card_type': 'physical' || 'physicalpromotional'

gift_card_id: 123e4567-e89b-12d3-a456-426655440000

cashier_no: 'pos cashier id.'

activation_location_id: 123e4567-e89b-12d3-a456-426655440000

amount: ######.##

Credit Gift Card

Description: Apply credit to gift card event occured

Fields

transactionType: "credit_gift_card

gift_card_id: 123e4567-e89b-12d3-a456-426655440000

cashier_no: pos cashier id.

location_id: 123e4567-e89b-12d3-a456-426655440000

amount: ######.##

Debit Gift Card

Description: Apply debit to gift card event occured

Fields

transactionType: "debitgift_card

gift_card_id: 123e4567-e89b-12d3-a456-426655440000

cashier_no: 'pos cashier id.'

location_id: 123e4567-e89b-12d3-a456-426655440000

amount: ######.##

Reseller Activate Gift Card

Description: Apply debit to gift card event occured

Fields

transactionType: "debitgift_card

gift_card_id: 123e4567-e89b-12d3-a456-426655440000

reseller_id: 123e4567-e89b-12d3-a456-426655440000

amount: ######.##

Vouchers

Issue Voucher

Description: Issue voucher event occured

Fields

transactionType: 'voucher_sale',

voucher_type: 'voucher' || 'promotionalvoucher' || 'scratchandsavepromovoucher' || 'ticket' || 'promotionalticket',

sold_voucher_id: '123e4567-e89b-12d3-a456-426655440000',

amount: ######.##

cashier_no: 'pos cashier id.'

location_id: '123e4567-e89b-12d3-a456-426655440000'

Voucher Redeem

Description: Voucher redeem event occured

Fields

transactionType: 'voucher_redeem',

voucher_type: 'voucher' || 'promotionalvoucher' || 'scratchandsavepromovoucher' || 'ticket' || 'promotionalticket',

sold_voucher_id: '123e4567-e89b-12d3-a456-426655440000',

amount: ######.##

cashier_no: 'pos cashier id.'

location_id: 123e4567-e89b-12d3-a456-426655440000

Loyalty Points Events

Issue Points Account

Description: Issue new points account.

Fields

transactionType: issue_points_account

points_account_id: '123e4567-e89b-12d3-a456-426655440000'

location_id: '123e4567-e89b-12d3-a456-426655440000'

cashier_no: 'pos cashier id.'

Add Points to Account

Description: add points to account occured.

Field

transactionType: "add_points_to_account"

points_account_id => '123e4567-e89b-12d3-a456-426655440000'

points: #######

location_id: '123e4567-e89b-12d3-a456-426655440000'

cashier_no: 'pos cashier id.'

Redeem Points in Account

Description: add points to account occured.

Field

transactionType: "debit_points_from_account"

points_account_id => '123e4567-e89b-12d3-a456-426655440000'

points: #######

location_id: '123e4567-e89b-12d3-a456-426655440000'

cashier_no: 'pos cashier id.'

Stamp Card Loyalty Events

Issue Stamp Card

Description: issue gift card event occured

Fields

transactionType: 'issue_stamp_card'

loyalty_stamp_card_id: '123e4567-e89b-12d3-a456-426655440000'

cashier_no: 'pos cashier id.'

location_id: '123e4567-e89b-12d3-a456-426655440000'

Stamp Card

Description: stamp card event occured

Fields

transactionType: 'stamp_card'

loyalty_stamp_card_id: '123e4567-e89b-12d3-a456-426655440000'

cashier_no: 'pos cashier id.'

location_id: '123e4567-e89b-12d3-a456-426655440000'

Redeem Stamp Card

Description: redeem stamp card event occured

Fields

transactionType: 'redeem_stamp_card'

loyalty_stamp_card_id: '123e4567-e89b-12d3-a456-426655440000'

cashier_no: 'pos cashier id.'

location_id: '123e4567-e89b-12d3-a456-426655440000'

Reservation System

Create Reservation

Description: create reservation event occured

Fields

transactionType: 'create_reservation'

reservationId: 123e4567-e89b-12d3-a456-42665544000

locationid: 123e4567-e89b-12d3-a456-42665544000

contact_name: contact name

contact_phone: contact phone

contact_email: contact email

starttime: YYYY-MM-DD H:M:s

endtime: YYYY-MM-DD H:M:s

attendees: ##

notes: Reservation notes

Edit Reservation

Description: edit reservation event occured

Fields

transactionType: 'edit_reservation'

reservationId: 123e4567-e89b-12d3-a456-42665544000

locationid: 123e4567-e89b-12d3-a456-42665544000

contact_name: contact name

contact_phone: contact phone

contact_email: contact email

starttime: YYYY-MM-DD H:M:s

endtime: YYYY-MM-DD H:M:s

attendees: ##

notes: Reservation notes