API ReferenceapipaymentsPOST /v1/admin/webhooks/replay

POST /v1/admin/webhooks/replay

Service: payments · operationId: (none)

Replay a stored Stripe webhook payload against the local /v1/webhooks/stripe handler

Required scopes

(no scope declared — review service config)

Request body

{
  "type": "object",
  "properties": {
    "event_id": {
      "type": "string",
      "minLength": 1,
      "example": "evt_1234567890"
    }
  },
  "required": [
    "event_id"
  ]
}

Responses

200 Webhook replay completed

{
  "type": "object",
  "properties": {
    "event_id": {
      "type": "string"
    },
    "stripe_event_id": {
      "type": "string"
    },
    "event_type": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "http_status": {
      "type": "integer"
    }
  },
  "required": [
    "event_id",
    "stripe_event_id",
    "event_type",
    "status",
    "http_status"
  ]
}

404 Stored webhook event not found

{
  "type": "object",
  "properties": {
    "error": {
      "type": "string"
    },
    "message": {
      "type": "string"
    }
  },
  "required": [
    "error",
    "message"
  ]
}

500 Replay request failed

{
  "type": "object",
  "properties": {
    "error": {
      "type": "string"
    },
    "message": {
      "type": "string"
    }
  },
  "required": [
    "error",
    "message"
  ]
}

Example

curl -X POST https://payments.platform.loop.health/v1/admin/webhooks/replay \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ ... }'