Skip to main content

Opportunity

Possible sources and actions for opportunity webhooks.

Possible sources

Attachment
Discussion
Member transaction
Opportunity document
Opportunity item

Generic actions

create
update
destroy
discuss
attach
detach
custom_view_export

Specific actions

allocate
allocate_item *
auto_allocate
auto_return
book_out
book_out_item *
cancel
check_in
check_in_item *
checkout
clear_deal_price
complete
confirm
convert_to_draft
convert_to_order
convert_to_quotation
create_item
destroy_item
enable_auto_costing
finalise
mark_as_provisional
mark_as_reserved
mark_as_lost
mark_as_dead
prepare
prepare_item *
print
reinstate
revert_status
revert_to_quotation
set_deal_price
toggle_pricing_locked
update_item
swap_component

* When an asset is scanned (opportunity_allocate_item, opportunity_prepare_item, opportunity_book_out_item, opportunity_check_in_item) on an opportunity, an additional content field is available in the webhook request body e.g.

{
"action":
{
"id":1364,
...,
"content":
{
"opportunity_item_assets":
[
{
"id": 1234
"stock_level_id": 3245,
"quantity": 1
},
...
]
}
}
}

This will contain a list of the opportunity item assets and stock levels that were scanned, along with the quantity scanned.

Did this answer your question?