Replace a subscription
Update the events that you are subscribed to.
You can use the PUT operation to add, remove, or replace events in a subscription. For example, you can replace the bill.created event with bill.updated in your subscription.
Path parameters
BILL-generated ID of the subscription
Headers
API session ID generated with /v3/login
Developer key sent to you by BILL when you create a developer account. Set sessionId and devKey for organization-level BILL v3 API webhook events.
Application key sent to you by BILL when you create a partner account. Set sessionId and appKey for partner-level BILL v3 API webhook events.
Access token for Spend & Expense API authentication. Set apiToken for Spend & Expense webhook events.
Request body
Example request
{
"name": "Bill management",
"status": {
"enabled": true
},
"events": [
{
"type": "bill.created",
"version": "1"
},
{
"type": "bill.updated",
"version": "1"
},
{
"type": "bill.archived",
"version": "1"
}
],
"notificationUrl": "{{webhook_notification_url}}"
}Response
replaceSubscription 200 response
Changes
No recorded changes to this endpoint across all 1 revision of this API.