Use this API to update the notification setting
curl --request PUT \ --url https://api.sandbox.hit-pay.com/v1/notifications \ --header 'Content-Type: application/json' \ --header 'X-BUSINESS-API-KEY: <x-business-api-key>' \ --data '{ "customer_receipt@email": true, "daily_collection@email": true, "daily_collection@push_notification": true, "daily_payout@email": true, "incoming_payment@email": true, "incoming_payment@push_notification": true, "new_order@email": true, "new_order@push_notification": true, "pending_order@email": true, "mall_gto_sync@email": true }'
[ { "event": "customer_receipt", "channel": "email" }, { "event": "daily_collection", "channel": "email" }, { "event": "daily_collection", "channel": "push_notification" }, { "event": "daily_payout", "channel": "email" }, { "event": "incoming_payment", "channel": "email" }, { "event": "incoming_payment", "channel": "push_notification" }, { "event": "new_order", "channel": "email" }, { "event": "new_order", "channel": "push_notification" } ]
Was this page helpful?