List events
GET
/v1/events
package main
import ( "fmt" "net/http" "io")
func main() {
url := "https://api.feitpay.com/v1/events?limit=25&event_type=payment_intent.created"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Gryphem-Environment", "test") req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}const url = 'https://api.feitpay.com/v1/events?limit=25&event_type=payment_intent.created';const options = { method: 'GET', headers: {'Gryphem-Environment': 'test', 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.feitpay.com/v1/events?limit=25&event_type=payment_intent.created' \ --header 'Authorization: Bearer <token>' \ --header 'Gryphem-Environment: test'Each event is exactly the JSON body POSTed to webhook endpoints (see the webhooks section).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Gryphem-Organization
string
Active organization for dashboard sessions. Ignored for API keys (the key determines the organization).
Gryphem-Environment
string
test (default) or live for dashboard sessions. API keys determine the environment.
Query Parameters
Section titled “Query Parameters”limit
integer
starting_after
string
Cursor — the id of the last item from the previous page.
event_type
string
object_id
string
Responses
Section titled “Responses”Events (the exact payloads delivered to webhooks).
Media typeapplication/json
object
object
required
string
data
required
Array<object>
Exactly the JSON body POSTed to webhook endpoints. Per-event data shapes are defined in the webhooks section.
object
event_id
required
string
event_type
required
string
api_version
required
string
created_at
required
string format: date-time
merchant_id
required
string
store_id
required
string | null
environment
required
string
object
required
object
type
required
string
id
required
string
data
required
Event-specific payload; see the webhooks section.
object
key
additional properties
any
has_more
required
boolean
next_cursor
required
string | null
Example
{ "object": "list", "data": [ { "event_type": "payment_intent.created", "environment": "test" } ]}Missing or invalid credentials.
Media typeapplication/json
object
error
required
object
type
required
string
code
required
string
message
required
string
param
string
request_id
required
string
Example
{ "error": { "type": "invalid_request_error" }}Authenticated but not permitted.
Media typeapplication/json
object
error
required
object
type
required
string
code
required
string
message
required
string
param
string
request_id
required
string
Example
{ "error": { "type": "invalid_request_error" }}Too many requests. See Retry-After.
Media typeapplication/json
object
error
required
object
type
required
string
code
required
string
message
required
string
param
string
request_id
required
string
Example
{ "error": { "type": "invalid_request_error" }}Headers
Section titled “Headers”Retry-After
integer