Skip to content

Get metered usage for the current period

GET
/v1/billing/usage
curl --request GET \
--url https://api.feitpay.com/v1/billing/usage \
--header 'Authorization: Bearer <token>' \
--header 'FeitPay-Environment: test'
FeitPay-Organization
string

Active organization for dashboard sessions. Ignored for API keys (the key determines the organization).

FeitPay-Environment
string
default: test
Allowed values: test live

test (default) or live for dashboard sessions. API keys determine the environment. Until the platform is in production, configuration (stores, webhook endpoints, payment links) is live and money movement answers payments_not_enabled.

Current fee schedule and metered usage by month.

Media typeapplication/json

fee_schedule name and features are in the request’s language (locale query parameter or Accept-Language), English where there is no translation.

object
object
required
string
Allowed value: usage
livemode
required
boolean
fee_schedule
required
One of:
object
id
required
string
name
required
string
version
required
integer
currency
required
string
percentage_bps
required
integer
fixed_fee
required

Decimal string. Never a float.

string
/^(0|[1-9][0-9]*)(\.[0-9]+)?$/
monthly_fee
required

Decimal string. Never a float.

string
/^(0|[1-9][0-9]*)(\.[0-9]+)?$/
minimum_monthly_fee
required

Decimal string. Never a float.

string
/^(0|[1-9][0-9]*)(\.[0-9]+)?$/
included_volume
required
string | null
availability
required
string
Allowed values: available indicative contact_sales
features
required
Array<string>
public
required
boolean
effective_from
required
string format: date-time
retired_at
required
string | null format: date-time
periods
required
Array<object>
object
period
required
string format: date
gmv_currency
required
string
fee_currency
required
string
payments_count
required
integer
gmv
required

Decimal string. Never a float.

string
/^(0|[1-9][0-9]*)(\.[0-9]+)?$/
fees
required

Decimal string. Never a float.

string
/^(0|[1-9][0-9]*)(\.[0-9]+)?$/
notes
required

Billing notes in English.

Array<string>
note_codes
required

The same notes as stable codes, in the same order.

Array<string>
Allowed values: fees_on_payouts fees_per_payment fees_invoiced test_usage_illustrative

Example

{
"object": "usage",
"fee_schedule": {
"fixed_fee": "59.90",
"monthly_fee": "59.90",
"minimum_monthly_fee": "59.90",
"availability": "available"
},
"periods": [
{
"gmv": "59.90",
"fees": "59.90"
}
],
"note_codes": [
"fees_on_payouts"
]
}

Missing or invalid credentials.

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error idempotency_error rate_limit_error feature_unavailable_error api_error
code
required

Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.

string
message
required

Human-readable explanation in English.

string
param
string
request_id
required
string

Example

{
"error": {
"type": "invalid_request_error"
}
}

Authenticated but not permitted. Any route may also answer request_blocked when abuse protection has blocked the client IP for a while.

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error idempotency_error rate_limit_error feature_unavailable_error api_error
code
required

Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.

string
message
required

Human-readable explanation in English.

string
param
string
request_id
required
string

Example

{
"error": {
"type": "invalid_request_error"
}
}

Too many requests. See Retry-After.

Media typeapplication/json
object
error
required
object
type
required
string
Allowed values: invalid_request_error authentication_error permission_error not_found_error conflict_error idempotency_error rate_limit_error feature_unavailable_error api_error
code
required

Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.

string
message
required

Human-readable explanation in English.

string
param
string
request_id
required
string

Example

{
"error": {
"type": "invalid_request_error"
}
}
Retry-After
integer