List webhook deliveries for a session
GET
/gateway/sessions/{session_id}/webhooks/
const url = 'https://api.paymee.online/api/v1/gateway/sessions/example/webhooks/';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.paymee.online/api/v1/gateway/sessions/example/webhooks/ \ --header 'Authorization: Bearer <token>'List the most recent webhook delivery attempts for a single payment session.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”session_id
required
string
Prefixed public id of the payment session (e.g. ps_...).
Responses
Section titled “Responses”Media typeapplication/json
Webhook deliveries for a single payment session (most recent first).
object
data
required
Array<object>
Serializer for merchant webhook delivery history.
object
id
required
string
session_id
required
string
event
required
Event type
E.g. session.succeeded, session.failed
string
event_id
Stable ID shared across retries for merchant deduplication
string
url
required
Webhook URL
string format: uri
attempt_number
integer
status
PENDING- PendingSUCCEEDED- SucceededFAILED- Failed
string
http_status_code
integer
response_time_ms
Response time (ms)
integer
error_message
string
next_retry_at
Scheduled time for next retry attempt
string format: date-time
created_at
required
string format: date-time
Example
{ "data": [ { "status": "PENDING" } ]}The referenced payment session does not exist for this merchant account.
Media typeapplication/json
RFC 9457 problem detail body (application/problem+json).
object
type
required
URI identifying the error type.
string format: uri
title
required
Short, human-readable summary of the error type.
string
status
required
HTTP status code.
integer
detail
required
Human-readable explanation specific to this occurrence.
string
Examplegenerated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example"}
