Openpay
  1. Accounts
Openpay
  • Getting started
  • Authorization
    • Consent screen
      GET
    • Get an access token
      POST
    • Refresh access token
      POST
  • Accounts
    • List all accounts for user
      GET
    • Get account details
      GET
    • Create an account
      POST
    • Get spending summary
      GET
  • Members
    • List members for an account
      GET
    • Get member details
      GET
    • Add a member to an account
      POST
    • Adjust the balance for a member
      PUT
    • Payment link
      GET
  • Top-ups
    • Create a new top-up for an account
      POST
    • List all top-ups for an account
      GET
    • Get top-up details
      GET
  • Statements
    • List statements for an account
      GET
  • Schemas
    • Account
    • Member
    • Top-up
    • Statement
  1. Accounts

Get spending summary

GET
/v1/accounts/{id}/summary
Statements for the account are automatically categorized in a summary.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.openpay.dk/v1/accounts/1234/summary'
Response Response Example
{
    "summary": "Most of the money is being spend on admission fees and drinks and snacks",
    "categories": [
        {
            "description": "Admission Fees",
            "icon": "🏆",
            "total_amount": "4000.00",
            "currency": "DKK"
        },
        {
            "description": "Drinks & Snacks",
            "icon": "🍻",
            "total_amount": "2500.00",
            "currency": "DKK"
        }
    ]
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Responses

🟢200Success
application/json
Body

Modified at 2025-08-12 11:46:33
Previous
Create an account
Next
List members for an account
Built with