---
title: "Margin earnings"
method: GET
path: "/credits/earnings"
tags: ["Ledger"]
---

# Margin earnings

`GET /credits/earnings`

## Request

- Base URL: `https://api.paywithlocus.com/api`
- URL: `https://api.paywithlocus.com/api/credits/earnings`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Returns the workspace margin earnings from end-user markup: accrued, matured, and paid out, as USD decimal strings.

## Response `200`

Accrued / matured / paid-out margin (USD decimal strings)

- object
  - `accrued` string
  - `matured` string
  - `paidOut` string

---

[API](https://skmtc.dev/paywithlocus/apis/locus-pro-api.md) - [All operations](https://skmtc.dev/paywithlocus/apis/locus-pro-api/llms.txt) - [OpenAPI document](https://skmtc.dev/paywithlocus/apis/locus-pro-api/revisions/aab8fa5d6cef?raw)
