List residuals
GET
/accounts/{accountID}/residuals
List all residuals associated with an account.
To access this endpoint using an access token
you'll need to specify the /accounts/{accountID}/profile.read scope.
curl -X GET "https://api.moov.io/accounts/{accountID}/residuals" \
-H "Authorization: Bearer {token}" \
-H "X-Moov-Version: v2027.01.00"mc, _ := moov.NewClient()
var accountID string
mc.ListResiduals(ctx, accountID, moov.WithResidualCount(5))
The request completed successfully.
[
{
"residualID": "string",
"partnerAccountID": "string",
"periodStart": "2019-08-24T14:15:22Z",
"periodEnd": "2019-08-24T14:15:22Z",
"merchantFees": {
"currency": "USD",
"valueDecimal": "12.987654321"
},
"partnerCost": {
"currency": "USD",
"valueDecimal": "12.987654321"
},
"netIncome": {
"currency": "USD",
"valueDecimal": "12.987654321"
},
"revenueShare": "2.25",
"residualAmount": {
"currency": "USD",
"valueDecimal": "12.987654321"
},
"createdOn": "2019-08-24T14:15:22Z",
"updatedOn": "2019-08-24T14:15:22Z"
}
]Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request contained missing or expired authentication.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The user is not authorized to make the request.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
Request was refused due to rate limiting.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request failed due to an unexpected error.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
The request failed because a downstream service failed to respond.
Response headers
x-request-id
string
required
A unique identifier used to trace requests.
Headers
X-Moov-Version
string
Set this header to v2027.01.00 to use the API described in this specification.
When omitted, the server defaults to v2024.01.00, the earliest supported version, which may not match the behavior documented here.
An unrecognized well-formed version uses the latest supported version that is not newer than the requested version, when one exists.
For example,
v2026.08.00 uses v2026.07.00.
A malformed value, such as 2022, returns a 404 response.
Possible values:
v2027.01.00
Path parameters
Query parameters
startDateTime
string
<RFC-3339>
Optional date-time to inclusively filter all residuals with a period start after this date-time.
endDateTime
string
<RFC-3339>
Optional date-time to exclusively filter all residuals with a period end before this date-time.
Response
merchantFees
object
Total amount of merchant fees collected during the period. This represents the partner's revenue from merchant fees.
partnerAccountID
string
The partner account ID this residual belongs to.
A unique identifier for a Moov resource. Supports UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) or typed format with base32-encoded UUID and type suffix (e.g., kuoaydiojf7uszaokc2ggnaaaa_xfer).
residualAmount
object
The amount the partner receives as their share of the net income (netIncome × revenueShare).