Products
/- Connect Channel Platform
- REST APIs reference
- Connect
- updateActionStatus - Update asynchronous action status
deleteOrderDocument - Delete order document
updateAnonymizeAfterDate - Update anonymization date for orders
uploadOrderDocument - Upload order document
upsertOrders - Upsert orders
updateActionStatus - Upda...
Description
Updates the final status of an asynchronous action previously initiated through a command event.
- When an asynchronous action is requested via command event, an
action_idis provided to track the action - Use this endpoint to report the final outcome (SUCCESS or FAILURE) of the action
- For failed actions, detailed error information must be provided
- Update should be sent once the action is fully completed
- Multiple errors can be provided for failed actions
- The action ID must match the one provided in the original command event
Call Frequency
Recommended usage: Send update as soon as the action is completed
Maximum usage: Once per action completion
Security
Bearer(Required scopes:
connect-channel-platform:order-a...
)The updated status and any error details for the action
List of errors encountered during action processing. Required when status is FAILED. Multiple errors can be included to provide comprehensive failure details.
- Connect Channel Platform APIhttps://miraklconnect.com/api/channel-platform/v1/orders/actions/{action_id}
curl -i -X PUT \
https://miraklconnect.com/api/channel-platform/v1/orders/actions/1ba5fc4b-c4fd-4251-880b-3052e301bbd4 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"status": "SUCCESS",
"errors": [
{
"code": "INVALID_INPUT",
"message": "Cannot process cancellation: order is already shipped"
}
]
}'