refreshPayload( )


Important: This is a handler function. Implement it only as part of the service plugin.


If an automation's action is delayed, implement this method to retrieve the latest data in the trigger payload before the action fires.

For example, if an automation is triggered but its action is set to fire only 24 hours later, Wix calls Refresh Payload before starting the action. This fetches the latest data in the trigger payload. The returned data can be used to update the trigger payload that is passed to the action.

Method Declaration
Copy
Method Parameters
payloadRefreshPayloadEnvelope
Returns
Return Type:RefreshPayloadResponse | Promise<RefreshPayloadResponse>
Did this help?