APG PayAPG Paydocs

Webhooks

Update webhook delivery

PATCH/webhooks/{webhookId}/deliveries/{deliveryId}

Act on one delivery. Today the only action is to send it again. A delivery that does not belong to this webhook is a 404, not a redirect.

Permissions

Required permission
webhookSubscriptions:update

Requires the `update` action on `webhookSubscriptions` for the supplied runtime context

Path parameters

webhookIdstring
required
deliveryIdstring
required

Request body

This body is a tagged shape: type is always "WebhookDeliveryUpdRedeliver". Send it; more variants can be added, and a caller that switches on it keeps working when they are.

Discriminated by type
type = "WebhookDeliveryUpdRedeliver"

This variant has no additional fields.

curl -X PATCH https://api.tst.au.apgpay.dev/webhooks/{webhookId}/deliveries/{deliveryId} \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "type": "WebhookDeliveryUpdRedeliver"
}'

Responses

The response is a tagged shape: type is always "WebhookDeliveryUpdateRspAttributes". Switch on it; subtypes can be added, and a client that already reads it will not break.

Discriminated by type
type = "WebhookDeliveryUpdateRspAttributes"

The resource as it stands after the change.

Example
{
  "type": "WebhookDeliveryUpdateRspAttributes",
  "updated": {
    "type": "WebhookDeliveryViewAttributes",
    "webhookDeliveryId": "whdlv_9f2Kd8QpLzXw",
    "webhookId": "webhook_9f2Kd8QpLzXw",
    "event": "MerchantCreated",
    "status": "Pending",
    "attempts": 1250,
    "lastStatusCode": 1250,
    "lastError": "string",
    "lastAttemptAt": "2026-08-19T04:21:07Z",
    "lastSentTo": "string",
    "lastResponseBody": "string",
    "lastResponseHeaders": {
      "type": "WebhookResponseHeadersAttributes",
      "server": "string",
      "via": "string",
      "cfRay": "string",
      "amznRequestId": "string",
      "amznTraceId": "string",
      "requestId": "string",
      "cache": "string",
      "location": "string"
    },
    "deliveredAt": "2026-08-19T04:21:07Z",
    "idempotencyKey": "string",
    "eventPublishedAt": "2026-08-19T04:21:07Z",
    "createdAt": "2026-08-19T04:21:07Z",
    "updatedAt": "2026-08-19T04:21:07Z"
  }
}

Error responses