Skip to main content
POST
/
v0
/
sources
/
{id}
/
events
/
{eventId}
/
approve
Approve
curl --request POST \
  --url https://api.paygentic.io/v0/sources/{id}/events/{eventId}/approve \
  --header 'Authorization: Bearer <token>'
{
  "id": "sev_c3d4e5f6g7h8i9j0",
  "createdAt": "2024-03-10T15:30:00Z",
  "customerId": "cus_q3r4s5t6u7v8w9x0",
  "errorMessage": null,
  "externalEventId": "evt_stripe_345678",
  "processedAt": "2024-03-10T16:00:00Z",
  "processedBy": "usr_platform",
  "rawData": {
    "amount": 50000,
    "currency": "usd",
    "description": "Stripe revenue event"
  },
  "sourceId": "src_x3y4z5a6b7c8d9e0",
  "status": "processed",
  "subscriptionId": "sub_z1a2b3c4d5e6f7g8",
  "updatedAt": "2024-03-10T16:00:00Z",
  "usageEventIds": [
    "usg_a1b2c3d4e5f6g7h8"
  ]
}

Authorizations

Authorization
string
header
required

API key authentication

Path Parameters

id
string
required

Unique identifier for a source

eventId
string
required

Unique identifier for a source event

Response

Event approved successfully

id
string
required

Unique identifier for a source event

createdAt
string<date-time>
required
externalEventId
string
required
rawData
object
required
sourceId
string
required

Unique identifier for a source

status
enum<string>
required
Available options:
pending,
processed,
failed,
rejected
updatedAt
string<date-time>
required
customerId
string

The customer associated with this source event

errorMessage
string
processedAt
string<date-time>
processedBy
string
subscriptionId
string

The subscription associated with this source event

usageEventIds
string[]