Openpay
  1. Top-ups
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. Top-ups

Create a new top-up for an account

Developing
POST
/v1/accounts/{account_id}/top_ups
Be default, the top-up will apply to all members, effecting their individual balance.
The amount can also be set on an individual basis.
It's also possible to apply the top-up to only certain members by providing the ids.
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location --request POST 'https://api.openpay.dk/v1/accounts/1234/top_ups' \
--header 'Content-Type: application/json' \
--data-raw '{
    "description": "Monthly fee",
    "total_amount": "200.00"
}'
Response Response Example
All members
{
    "id": "1234",
    "description": "Monthly fee",
    "total_amount": "200.00",
    "paid_amount": "0.00",
    "currency": "DKK"
}

Request

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

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

Modified at 2025-08-09 09:45:14
Previous
Payment link
Next
List all top-ups for an account
Built with