Get payment and refund totals for a merchant
/v1/transactions/merchant-summaryReturns the total of successful payments (net), the total refunded (including chargebacks), and the difference, for one merchant between fromDate and toDate (calendar dates, at most 90 days apart). For API key callers the reseller is taken from the key and the merchant must belong to it, otherwise 404. Body keys may be camelCase or snake_case.
Endpoint destination URL
https://sandbox-portal.datmanlabs.com/api/v1/transactions/merchant-summaryApiKeyAuthapi_key<token>Partner API key issued by Datman.
Request Parameters
application/json- body
Keys may be camelCase or snake_case (merchant_id, from_date, to_date).
merchantId*|Merchant to summarize. A numeric string is accepted.
fromDate*stringStart calendar date (YYYY-MM-DD), inclusive.
^\d{4}-\d{2}-\d{2}$toDate*stringEnd calendar date (YYYY-MM-DD), inclusive. At most 90 days after fromDate.
^\d{4}-\d{2}-\d{2}$timezone?stringIANA timezone the dates are in. Recommended for API key callers; when omitted the dates are interpreted in UTC.
resellerId?integerIgnored for API key callers (the key's reseller is always used).
Response parameters & Errors
The merchant's totals. is_liable is true when the merchant is a liable account (totals then come from its own payments regardless of reseller scope). When the reseller has no queryable configuration the totals are zero and is_liable is omitted.
application/json- response
data*
