GET
/
customers
/
{customer_id}
/
credits
/
top_ups
curl --request GET \
  --url https://api.withorb.com/v1/customers/{customer_id}/credits/top_ups \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "currency": "<string>",
      "threshold": "<string>",
      "amount": "<string>",
      "per_unit_cost_basis": "<string>",
      "invoice_settings": {
        "auto_collection": true,
        "net_terms": 123,
        "memo": "<string>",
        "require_successful_payment": false
      },
      "expires_after": 123,
      "expires_after_unit": "day"
    }
  ],
  "pagination_metadata": {
    "has_more": true,
    "next_cursor": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API Keys can be issued in the Orb's web application.

Path Parameters

customer_id
string | null
required

Query Parameters

limit
integer
default:
20

The number of items to fetch. Defaults to 20.

Required range: 1 < x < 100
cursor
string | null

Cursor for pagination. This can be populated by the next_cursor value returned from the initial request.

Response

200
application/json
OK
data
object[]
required
pagination_metadata
object
required