Simulate Webhooks
1 min
Below API can be used to simulate the webhooks which are triggered by Pay3's system. Webhooks are sent to the API endpoint shared during client onboarding in the webhooks payload format.
This API can be used for testing the back-end of client application asynchronously even when order is not being performed from UI.
The list for possible statuses can be found here.
Note: This does not create any state changes or orders in Pay3's system.
Simulate Webhook
Simulate receiving webhook data
POST
https://your-hostname.pay3.app/v1/client/simulate-webhook
curl --location 'https://your-hostname.pay3.app/v1/client/simulate-webhook' \
--header 'access-token: dynamic-access-token' \
--header 'Content-Type: application/json' \
--data '{
"requestId":"bc77de4c-9b63-4e3b-ab3e-9c509518dcf3",
"clientId":"320f1376-84b7-4d80-8358-bcb97c9d43a8",
"orderId":"10520f5d-6c20-481f-b17e-01e1ed1e75bb",
"orderStatus":"FAILED",
"orderType":"CHECKOUT",
"eventType":"pay3-sdk-transaction-status",
"errorCode": "9005"
}'