Menu
Get orders for given filters
Get orders for given filters
/shops/{shopKey}/countries/{countryCode}/ordersUse it in a workflow
- Add a step and choose the SCAYLE Admin connector.
- Pick the Get orders for given filters action (under Orders).
- Fill in the fields below, then reference the result from later steps as
{{getOrdersForGivenFilters.response.data}}.
Request
Path parameters
shopKeystringrequiredThe shop key.
countryCodestringrequiredThe shop country code; use shop country ID instead of country code when a country is ambiguous within a shop.
Query parameters
witharray<string>Comma-separated list of additional properties that should be included in the response.
filters[id]array<integer>Comma-separated list of IDs of entities that should be used for filtering.
filters[minId]integerMinimum (inclusive) ID of entities that should be returned.
filters[maxId]integerMaximum (inclusive) ID of entities that should be returned.
filters[minCreatedAt]string (date-time)Minimum (inclusive) creation date of entities that should be returned.
filters[maxCreatedAt]string (date-time)Maximum (inclusive) creation date of entities that should be returned.
filters[minUpdatedAt]string (date-time)Minimum (inclusive) modification date of entities that should be returned.
filters[maxUpdatedAt]string (date-time)Maximum (inclusive) modification date of entities that should be returned.
filters[billingAddressCountryCode]stringOnly returns orders with the given billingAddress country code (ISO 3166-1 alpha-3).
filters[shippingAddressCountryCode]stringOnly returns orders with the given shippingAddress country code (ISO 3166-1 alpha-3).
filters[shippingAddressZipCode]stringOnly returns orders with the given zip code set for the order's shipping address.
filters[shippingAddressCity]stringOnly returns orders with the given city set for the order's shipping address.
filters[shippingAddressStreet]stringOnly returns orders with the given street set for the order's shipping address.
filters[paymentType]stringOnly returns orders with a payment method of the given type.
filters[paymentTransactionId]stringOnly returns orders with the specified payment transaction id.
filters[shipmentKey]stringOnly returns orders with a shipment matching the given shipmentKey.
filters[shipmentReturnIdentCode]stringOnly returns orders with a shipment having the specified return ident code.
filters[shipmentReturnKey]stringOnly returns orders with a shipment item having the given shipmentReturnKey.
filters[isShippingCostCharged]booleanFilters orders by whether shipping costs are charged or not.
filters[customerId]array<integer>Comma separated list of customer IDs to return the orders for
filters[minCustomerId]integerMinimum (inclusive) customer ID of entities that should be returned.
filters[maxCustomerId]integerMaximum (inclusive) customer ID of entities that should be returned.
filters[customerReferenceKey]array<string>Comma separated list of reference keys of customers
filters[referenceKey]array<string>Comma separated list of reference keys of orders
filters[status]stringFilter for a specific status of orders.
One oforder_openpayment_pendingpayment_reservedinvoice_completedcancellation_pendingcancellation_completedinvoice_partially_completed
filters[detailedStatus]stringFilter for a detailed status of orders. The value must be prefixed with billing, order or shipping.
One oforder.order_createdorder.order_openorder.order_pendedorder.order_confirmedorder.order_delegatedorder.order_shippedorder.order_invoicedorder.order_abortedorder.order_cancelledshipping.shipping_openshipping.shipping_orderedshipping.shipping_deliveredshipping.shipping_cancelledshipping.shipping_undeliverableshipping.shipping_partially_deliveredbilling.billing_openbilling.billing_pendingbilling.billing_payment_pendingbilling.billing_completedbilling.billing_payment_abortedbilling.billing_payment_cancelledbilling.billing_refundedbilling.billing_denied
filters[firstName]stringOnly returns orders belonging to a customer with the exact first name. Required if lastName is set. Requires lastName to be set.
filters[lastName]stringOnly returns orders belonging to a customer with the exact last name. Required if firstName is set. Requires firstName to be set.
filters[email]string (email)Only return orders belonging to a customer with the given email.
filters[minInvoicedAt]string (date-time)Only return orders with items invoiced at or after this value.
filters[maxInvoicedAt]string (date-time)Only return orders with items invoiced at or before this value.
filters[voucherCode]stringOnly return orders for which the specified voucherCode has been used.
filters[publicKey]stringOnly returns orders with the given public key set for the order.
filters[productId]integerOnly returns orders with the given orderProductId.
filters[variantId]integerOnly returns orders with the given variantId.
filters[merchantId]integerOnly returns orders with products by the given merchant's id.
filters[channelId]integerOnly returns orders with the given channel id.
sortstringSort by the provided column.
One ofidappIdcustomerIdcreatedAtconfirmedAtupdatedAtpaymentKeyDefault "id"
sortDirstringSort ascending or descending
One ofascdescDefault "asc"
cursorstringValid cursor used for pagination.
limitintegerMaximum number of entities in the result. When fetching entities with children, the limit always applies to the amount of parent entities (max. 100).
Default 10
Response
Returns 200 with an object. Read it in later steps with {{getOrdersForGivenFilters.response.data.<field>}}.
entitiesarray<any>cursorobjectnextstringThe cursor pointing to the next page. If null there is no next page available.
{
"entities": [
null
],
"cursor": {
"next": "MQ=="
}
}
Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.