API DocumentationWebhooks
Create a webhook
POST
Creates a webhook for one event type on the authenticated account. The URL must use HTTPS and resolve to a public address. Save the returned id for deletion and secret for decrypting deliveries. Deliveries contain a JSON payload field encrypted with AES-256-GCM and an X-Phasio-Signature HMAC-SHA256 header.
Phasio API Bearer Tokenheader
AuthorizationBearer <token>application/json- body
url*stringPublic HTTPS URL that will receive webhook deliveries
type*stringEvent to subscribe to; ORDER means order created
Value in
"ORDER""REVISION""ORDER_UPDATED""QUOTE_CONVERTED""CUSTOMER_ORGANISATION_CREATED""CUSTOMER_ORGANISATION_UPDATED""SPECIFICATION_CREATED""WORKFLOW_PROGRESS_PARTS""CART_CREATED""CART_UPDATED""CUSTOMER_COMMENTED""MANUFACTURER_COMMENTED"Webhook successfully created
application/json- response
id*stringFormat
uuidurl*stringtype*stringsecret*stringcurl -X POST 'https://m-api.eu.phas.io/api/manufacturer/v1/webhook' \ -H 'Content-Type: application/json' \ -d '{ "url": "string", "type": "ORDER"}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "url": "string", "type": "string", "secret": "string"}