Payment webhook (checkout service)

POST
/webhooks/payments/{provider}

Authorization

headerx-checkout-secret<token>

Shared secret used by the checkout service for payment webhook forwarding.

Path Parameters

provider*string

Response Body

Webhook accepted

application/json
  1. response
received*boolean
result*string
Value in"applied""duplicate""amount_mismatch""order_cancelled""stale""second_payment""ignored"
Example Request
curl -X POST 'https://api-prood.vercel.app/v1/webhooks/payments/string'
Example Response
{  "received": true,  "result": "applied"}