PUT
/BizEvent/Cancel
Usage Notes
When
- Cancel pending events before processing
- Remove events created in error
Requirements
- Event must be in pending state
Notes
- Cancels the event and all of its child events in one call;
datalists the BizEventIDs that were cancelled - All or nothing: if the event or any child event has already been processed, no events are cancelled
Description
Cancels a pending event together with every child event beneath it, and returns the list of cancelled BizEventIDs. If any event in that tree has already been processed the request is refused and nothing is cancelled.
Required Headers - See Authentication
| Header | Value | Description |
|---|---|---|
| Authorization | {accessToken} | Bearer token for API access |
| Version | 2.0 | API version identifier |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
ProductID |
integer | Native 7G identifier for the product. | |
ExternalProductId |
string | External system identifier for the product (alternative to ProductID). | |
BizEventID |
integer | Native 7G identifier for the business event. |
ProductID
Native 7G identifier for the product.
ExternalProductId
External system identifier for the product (alternative to ProductID).
BizEventID
Native 7G identifier for the business event.
Example Requests
bash
# Cancel with ProductID and BizEventID
curl -X PUT 'https://api.7g.com.au/BizEvent/Cancel?ProductID=100&BizEventID=12345' \
-H 'Authorization: {accessToken}' \
-H 'Version: 2.0'
# Cancel with External Product ID
curl -X PUT 'https://api.7g.com.au/BizEvent/Cancel?ExternalProductId=PROD-001&BizEventID=12345' \
-H 'Authorization: {accessToken}' \
-H 'Version: 2.0'Response Examples
json
{
"result": true,
"message": "3 BizEvent(s) cancelled (event 12345 and its child events).",
"data": [12345, 12346, 12347]
}