Magidoc

orders
Query

Arguments

#

account

Return only orders made from/to account

limit = 100

Non-null

The number of results to fetch (default 10, max 1000)

offset

Non-null

The offset to use to fetch

includeHostedAccounts

If account is a host, also include hosted accounts orders

paymentMethod

Only return orders that were paid with this payment method. Must be an admin of the account owning the payment method.

includeIncognito

Whether to include incognito orders. Must be admin or root. Only with filter null or OUTGOING.

filter

Account orders filter (INCOMING or OUTGOING)

frequency

Use this field to filter orders on their frequency (ONETIME, MONTHLY or YEARLY)

status

Use this field to filter orders on their statuses

orderBy = { "field": "CREATED_AT", "direction": "DESC" }

Non-null

The order of results

minAmount

Only return orders where the amount is greater than or equal to this value (in cents)

maxAmount

Only return orders where the amount is lower than or equal to this value (in cents)

dateFrom

Only return orders that were created after this date

dateTo

Only return orders that were created before this date

searchTerm

The term to search

onlySubscriptions

Only returns orders that have a subscription (monthly/yearly). Don't use together with frequency.

onlyActiveSubscriptions

Same as onlySubscriptions, but returns only orders with active subscriptions

Response

#

Returns OrderCollection !.

Example

#