POST
/
sources
/
{id}
/
events
/
bulk-approve
Bulk approve source events
curl --request POST \
  --url https://api.paygentic.io/v0/sources/{id}/events/bulk-approve \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "eventIds": [
    "<string>"
  ]
}'
{
  "processed": 123,
  "failed": 123,
  "details": {
    "processed": [
      "<string>"
    ],
    "failed": [
      {
        "id": "<string>",
        "error": "<string>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Unique identifier for a source

Body

application/json

Response

200
application/json

Bulk approval results

The response is of type object.