Export payments as CSV or JSON
GET
/v1/reports/payments
package main
import ( "fmt" "net/http" "io")
func main() {
url := "https://api.feitpay.com/v1/reports/payments?from=2026-04-15T12%3A00%3A00Z&to=2026-04-15T12%3A00%3A00Z&format=csv"
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/reports/payments?from=2026-04-15T12%3A00%3A00Z&to=2026-04-15T12%3A00%3A00Z&format=csv';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/reports/payments?from=2026-04-15T12%3A00%3A00Z&to=2026-04-15T12%3A00%3A00Z&format=csv' \ --header 'Authorization: Bearer <token>' \ --header 'Gryphem-Environment: test'from and to are RFC 3339 timestamps; the range may span at most 366 days.
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”from
required
string format: date-time
to
required
string format: date-time
format
string
Responses
Section titled “Responses”Payments report with UTC timestamps.
string
object
object
required
string
generated_at
required
string format: date-time
from
required
string format: date-time
to
required
string format: date-time
rows
required
Array<object>
object
key
additional properties
any
Example
{ "object": "payments_report"}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