Revenue
Revenue summary, provider transactions and manual payments.
GET
/v1/revenue/manual/Get revenue manualGET/v1/revenue/summary/Get revenue summaryGET/v1/revenue/transactions/Get revenue transactionsGet revenue manual
GET
revenue:read/v1/revenue/manual/Parameters
| Name | In | Type | Notes |
|---|---|---|---|
date_from | query | string (date) | — |
date_to | query | string (date) | — |
updated_since | query | string (date-time) | — |
cursor | query | string | — |
page_size | query | integer | min 1 · max 100 |
status | query | string | one of PENDING, PROCESSING, COMPLETE, CANCELLED |
payment_type | query | string | one of FULL, DEPOSIT, INSTALLMENT |
Response fields (200)
| Field | Type | Notes |
|---|---|---|
datarequired | object[] | — |
data[].amount | integer | read-only |
data[].due_at | string (date-time) | read-only |
data[].id | string | read-only |
data[].installment_counter | string | read-only |
data[].lead_id | string | read-only |
data[].paid_at | string (date-time) | read-only |
data[].payment_type | string | read-only |
data[].status | string | read-only |
next_cursorrequired | string | null | — |
Responses
200Success400The request is invalid.401Authentication is missing, invalid, or revoked.403The authenticated identity lacks the required scope or capability.404The resource is unavailable or not visible to this organization.429The request-rate budget is exhausted.
Example request
curl
curl -X GET "https://api.themochi.app/v1/revenue/manual/" \
-H "Authorization: Bearer $MOCHI_API_KEY"Get revenue summary
GET
revenue:read/v1/revenue/summary/Parameters
| Name | In | Type | Notes |
|---|---|---|---|
date_fromrequired | query | string (date) | — |
date_torequired | query | string (date) | — |
source | query | string | one of transactions, manual |
Response fields (200)
| Field | Type | Notes |
|---|---|---|
computed_at | string (date-time) | read-only |
metrics | object | read-only |
metrics.amount | integer | read-only |
metrics.by_payment_type | object[] | read-only |
metrics.by_payment_type[].amount | integer | read-only |
metrics.by_payment_type[].count | integer | read-only |
metrics.by_payment_type[].payment_type | string | read-only |
metrics.by_product | object[] | read-only |
metrics.by_product[].amount | integer | read-only |
metrics.by_product[].count | integer | read-only |
metrics.by_product[].fee | integer | read-only |
metrics.by_product[].net | integer | read-only |
metrics.by_product[].product_name | string | read-only |
metrics.by_provider | object[] | read-only |
metrics.by_provider[].amount | integer | read-only |
metrics.by_provider[].count | integer | read-only |
metrics.by_provider[].fee | integer | read-only |
metrics.by_provider[].net | integer | read-only |
metrics.by_provider[].provider | string | read-only |
metrics.by_status | object[] | read-only |
metrics.by_status[].amount | integer | read-only |
metrics.by_status[].count | integer | read-only |
metrics.by_status[].status | string | read-only |
metrics.conversion | object | read-only |
metrics.conversion.pending | boolean | read-only |
metrics.conversion.unconverted_count | integer | read-only |
metrics.currency | string | read-only |
metrics.fee | integer | null | read-only |
metrics.net | integer | null | read-only |
metrics.source | string | read-only |
period | object | read-only |
period.end | string (date) | read-only |
period.start | string (date) | read-only |
Responses
200Success400The request is invalid.401Authentication is missing, invalid, or revoked.403The authenticated identity lacks the required scope or capability.404The resource is unavailable or not visible to this organization.429The request-rate budget is exhausted.
Example request
curl
curl -X GET "https://api.themochi.app/v1/revenue/summary/" \
-H "Authorization: Bearer $MOCHI_API_KEY"Get revenue transactions
GET
revenue:read/v1/revenue/transactions/Parameters
| Name | In | Type | Notes |
|---|---|---|---|
date_from | query | string (date) | — |
date_to | query | string (date) | — |
updated_since | query | string (date-time) | — |
cursor | query | string | — |
page_size | query | integer | min 1 · max 100 |
Response fields (200)
| Field | Type | Notes |
|---|---|---|
datarequired | object[] | — |
data[].amount | integer | read-only |
data[].currency | string | read-only |
data[].fee | integer | read-only |
data[].id | string | read-only |
data[].kind | string | read-only |
data[].lead_id | string | read-only |
data[].net | integer | read-only |
data[].occurred_at | string (date-time) | read-only |
data[].product_name | string | read-only |
data[].provider | string | read-only |
data[].status | string | read-only |
next_cursorrequired | string | null | — |
Responses
200Success400The request is invalid.401Authentication is missing, invalid, or revoked.403The authenticated identity lacks the required scope or capability.404The resource is unavailable or not visible to this organization.429The request-rate budget is exhausted.
Example request
curl
curl -X GET "https://api.themochi.app/v1/revenue/transactions/" \
-H "Authorization: Bearer $MOCHI_API_KEY"