List workspace sales
Minimum role: VIEWER. Active workspace via the X-Workspace-Id header.
/salesAuthorizationAPI key · headerrequiredAPI key prefixed with Bearer . Alternative: the x-api-key header with the raw key. Available scopes: read and write (see /.well-known/oauth-protected-resource).
x-api-keyAPI key · headerrequiredRaw API key (without Bearer ), alternative to Authorization.
statusstringPENDING|CONFIRMED|ABANDONED|CANCELLED|REFUNDED
PENDINGCONFIRMEDABANDONEDCANCELLEDREFUNDEDchannelstringWEB|MOBILE|POS|ADMIN
WEBMOBILEPOSADMINeventstringevent id
eventDatestringevent date id
referencestringsale reference/code (partial match)
buyerstringbuyer name or email (partial match)
fromstringstart date (ISO 8601, applied to created_at)
tostringend date (ISO 8601, applied to created_at)
limitinteger1-100, default 20
cursorstringX-Workspace-IdstringActive workspace to operate on. Optional: when omitted, the default workspace of the user who owns the key is used (pickActiveOrg).
OK
dataSale[]requiredShow propertiesHide properties
SaleidstringrequiredreferencestringrequiredstatusstringrequiredPENDINGCONFIRMEDABANDONEDCANCELLEDREFUNDEDchannelstringrequiredsubtotalnumberrequireddiscountAmountnumberrequiredserviceFeenumberrequiredivanumberrequiredtotalnumberrequiredcurrencystringrequiredbuyerNamestringrequiredbuyerEmailstringrequiredbuyerPhonestring | nullrequiredShow propertiesHide properties
stringnullbuyerDocumentTypestring | nullrequiredShow propertiesHide properties
stringnullbuyerDocumentNumberstring | nullrequiredShow propertiesHide properties
stringnullorganizationIdstring | nullrequiredShow propertiesHide properties
stringnullpaymentProviderstring | nullrequiredShow propertiesHide properties
stringnullpaymentRefstring | nullrequiredShow propertiesHide properties
stringnullconfirmedAtstring | nullrequiredShow propertiesHide properties
stringnullcreatedAtstringrequiredfailureReasonstring | nullrequiredShow propertiesHide properties
stringnullpaymentStatusstring | nullrequiredStatus of the latest payment event. Usually the payment gateway's RAW status in its own vocabulary. Values prefixed with FT_ come from FreeTicket, not the gateway: currently FT_SALE_APPROVED_POST_CONFIRM, which marks that the gateway re-notified an already-confirmed charge — this is how Bold reports its refunds. A CONFIRMED sale with this status may have money refunded that is not yet recorded.
Show propertiesHide properties
stringnulldeclineCodestring | nullrequiredShow propertiesHide properties
stringnullpagePagerequiredShow propertiesHide properties
nextCursorstring | nullrequiredShow propertiesHide properties
stringnullhasMorebooleanrequiredtotalintegerwarningsWarning[]Show propertiesHide properties
WarningcodestringrequiredmessagestringrequiredfieldstringactiveWorkspaceIdstringactiveWorkspaceNamestringaccessibleWorkspacesintegersuggestedWorkspaceIdstringsuggestedWorkspaceNamestringBad request: malformed parameters.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsanyMissing or invalid credential.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsanyInsufficient role or resource not accessible.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsanyResource does not exist or is out of scope.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsanyRequest body/parameter validation failed.
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsany
