Get a person's balances in the back office
Returns a person's ledger balances, as an advisor (what they earn) and as a traveler (their rewards): one row per agency, kind and currency they hold an account in, with what is available, pending and owed back; an overdrawn bucket reads zero and its shortfall is owed back, as everywhere else in Nicer. The person's orders are read with GET /backoffice/orders, by advisorUserId or payerUserId. The agency is named by the x-nicer-company header and nothing else. Nicer staff who name no agency read the person's accounts in every agency's ledger; with an agency named, staff and its admins read that agency's ledger only: the person's accounts there, and nothing of other agencies. An agency admin may name only an agency they administer, and may leave the header out when they administer one. An empty list means the person holds no account in the ledgers read. Errors: 400 ERROR_COMPANY_REQUIRED for an admin of several agencies who names none; 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is neither Nicer staff nor an admin of the agency named.
Authorization
Path parameters
Header parameters
Returns
200
OK