All top-ups related paths

List top-ups

get /account_groups/{account_group_id}/payments/topups

Returns a list of top-ups.

sort

string

Field of resource to sort by

Default
"created_at"
Enum
  • id
  • created_at
Example
"id"

order

string

Sort order of the result list if the sort parameter is specified. Use ASC for ascending or DESC for descending sort order.

Default
"ASC"
Enum
  • ASC
  • DESC

limit

int

int32

Use the limit argument to specify the maximum number of items returned.

Default
100
Min
0
Max
1000

offset

int

int32

Use the offset argument to specify where in the list of results to start when returning items for a particular query.

Min
0

Response

ExamplesSchema

List of top-ups.

{
  "meta": {
    "offset": 0,
    "limit": 100,
    "count": 1,
    "total_count": 1,
    "sort": "id",
    "order": "ASC"
  },
  "data": [
    {
      "id": "1ab4fef9-a097-4c6f-9345-647025d5fde6",
      "created_at": "2020-08-24T14:15:22Z",
      "account_group_id": "1ea60f56-b67b-61fc-829a-0242ac130003",
      "cash_amount": "200.00",
      "currency": "EUR",
      "status": "CONFIRMED"
    }
  ]
}

Trigger a top-up

post /payments/topups

Triggers the creation of a top-up payment.

account_group_id

string

uuid

required

Account group unique identifier.

cash_amount

string

^[0-9]{1,9}(\.[0-9]{2})?$

required

currency

string

required

Alphabetic three-letter ISO 4217 currency code.

  • EUR - Euro
Default
"EUR"
Enum
  • EUR

Request

{
  "account_group_id": "1ea60f56-b67b-61fc-829a-0242ac130003",
  "cash_amount": "200.00",
  "currency": "EUR"
}

Response

ExamplesSchema

Top-up created.

{
  "id": "1ab4fef9-a097-4c6f-9345-647025d5fde6",
  "created_at": "2020-08-24T14:15:22Z",
  "account_group_id": "1ea60f56-b67b-61fc-829a-0242ac130003",
  "cash_amount": "200.00",
  "currency": "EUR",
  "status": "CONFIRMED",
  "settlement_reference": "1ab4fef9-a097-4c6f-9345-647025d5fde6"
}

Retrieve a top-up by ID

get /payments/topups/{topup_id}

Returns a top-up specified by its ID.

topup_id

string

uuid

required

Top up request unique identifier.

Response

ExamplesSchema

OK.

{
  "id": "1ab4fef9-a097-4c6f-9345-647025d5fde6",
  "created_at": "2020-08-24T14:15:22Z",
  "account_group_id": "1ea60f56-b67b-61fc-829a-0242ac130003",
  "cash_amount": "200.00",
  "currency": "EUR",
  "status": "CONFIRMED"
}

Cancel a top-up by ID

delete /payments/topups/{topup_id}

Cancels a top-up specified by its ID. It is only possible to cancel a top-up if it has the status NEW or CONFIRMED.

topup_id

string

uuid

required

Top up request unique identifier.

Response

ExamplesSchema

Request has been processed successfully.

Empty response

id

string

uuid

required

Event unique identifier

created_at

string

date-time

required

Date and time when the event was created. RFC 3339-5, ISO8601 UTC

type

string

required

Event type

Enum
  • TOPUP.CONFIRMED
  • TOPUP.SETTLED
  • TOPUP.CANCELLED

object

object (object)

required

webhook_id

string

uuid

required

Webhook unique identifier.

Request

{
  "id": "ac62dbc4-c94e-45e4-a16e-381c51c8de38",
  "created_at": "2022-12-05T12:34:56Z",
  "type": "TOPUP.SETTLED",
  "object": {
    "id": "a4496ff8-ce69-4e23-9f2e-6c3c7914b95c",
    "account_group_id": "2a761567-251b-450e-8615-025d61dcc95e",
    "settlement_reference": "91a44df3-7278-4dee-a1bf-2bc254eca66c",
    "cash_amount": "100.01",
    "currency": "EUR",
    "created_at": "2022-12-05T12:34:56Z",
    "status": "SETTLED"
  },
  "webhook_id": "9df39835-be87-4243-9018-f2500b39cee6"
}

Response

ExamplesSchema

Request has been processed successfully.

Empty response

Was this page helpful?