Openpay
  1. Authorization
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. Authorization

Get an access token

POST
/oauth/token
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.openpay.dk/oauth/token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "grant_type": "authorization_code",
    "code": GRANT_TOKEN,
    "redirect_uri": "https://your-app.com/redirect",
    "client_id": YOUR_APPLICATION_ID,
    "client_secret": YOUR_SECRET_KEY
}'
Response Response Example
{
    "access_token": ACCESS_TOKEN,
    "token_type": "Bearer",
    "expires_in": 7200,
    "refresh_token": REFRESH_TOKEN,
    "scope": "offline_access"
}

Request

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

Modified at 2025-08-09 10:05:52
Previous
Consent screen
Next
Refresh access token
Built with