Overview

Model

Webhook model is same as API response model in PEAKAPI.CORE

ApiType

ApiType refers to the type of API in PEAKAPI.CORE, where the following ApiTypes will send data via Webhook if an action matches the specified EventTypes.

ApiType / EvenrTypeCreateEditVoidPaidPaymentVoidPayment
ApiQuotation
ApiPurchaseOrder
ApiInvoice
ApiExpense
ApiReceipt
ApiProduct
ApiService
ApiContact
ApiPaymentMethod

Endpoints

Each ApiType can specify one or more endpoints to which data can be sent. For each ApiType, multiple endpoints is allowed.

example

ApiTypeEndpoint
ApiQuotation{endpoint}/quotation
ApiPurchaseOrder{endpoint}/purchaseOrder
ApiInvoice{endpoint}/invoice
ApiExpense{endpoint}/expense
ApiReceipt{endpoint}/receipt
ApiProduct{endpoint}/product
ApiService{endpoint}/service
ApiContact{endpoint}/contact
ApiPaymentMethod{endpoint}/paymentMethod

Header

A custom header key and value can be specified for each endpoint.
example

KeyValue
x-api-keypeak1234