POST

Count Arrivals


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Counts arrivals matching a filter, for dashboard tiles such as "granted today" and "denied today".

The filter accepts the same fields as Query Arrivals. To count denials, filter status DENIED with a createdDate lower bound; an arrival that a site collaborator overrode is GRANTED, since its status moved, and is counted with the grants. To count overrides, filter { "overriddenBy.wixUserId": { "$exists": true } } with a createdDate lower bound. A filter on status, source.identifiedBy, eligibilityDetails.issues, planBenefit.poolId, planBenefit.benefitKey, planBenefit.type or overriddenBy.wixUserId, fields with no index, must also have a lower bound on createdDate ($gt or $gte) no more than 400 days ago, as on Query Arrivals; otherwise the call fails with CREATED_DATE_LOWER_BOUND_REQUIRED. Counting more than 100,000 arrivals fails with TOO_MANY_TO_COUNT; narrow the filter, for example by createdDate.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permission Scopes
SCOPE.ARRIVALS.READ-ARRIVALS
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/arrivals/v1/arrivals/count

Errors
400Invalid Argument

There is 1 error with this status code.

428Failed Precondition

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?