Skip to main content
POST
/
v1
/
payments
/
export
Export Payments
curl --request POST \
  --url http://api.stuut.ai/v1/payments/export \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'accept: <accept>' \
  --data '
{
  "approved_only": false,
  "since": "2023-11-07T05:31:56Z"
}
'
{
  "data": {},
  "error": "<string>",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

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

Headers

accept
enum<string>
required
Available options:
application/json,
text/csv

Body

application/json
approved_only
boolean
default:false

Whether to only export approved payment allocations.

since
string<date-time>

Export payment allocations since this date. If not provided, and approved_only is True, will default to the time of the last export where approved_only was True.

Response

Successful response