younifyd
Menu

Get orders for given filters

Get orders for given filters

GET/shops/{shopKey}/countries/{countryCode}/orders

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Get orders for given filters action (under Orders).
  3. Fill in the fields below, then reference the result from later steps as {{getOrdersForGivenFilters.response.data}}.

Request

Path parameters

shopKeystringrequired

The shop key.

countryCodestringrequired

The 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]integer

Minimum (inclusive) ID of entities that should be returned.

filters[maxId]integer

Maximum (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]string

Only returns orders with the given billingAddress country code (ISO 3166-1 alpha-3).

filters[shippingAddressCountryCode]string

Only returns orders with the given shippingAddress country code (ISO 3166-1 alpha-3).

filters[shippingAddressZipCode]string

Only returns orders with the given zip code set for the order's shipping address.

filters[shippingAddressCity]string

Only returns orders with the given city set for the order's shipping address.

filters[shippingAddressStreet]string

Only returns orders with the given street set for the order's shipping address.

filters[paymentType]string

Only returns orders with a payment method of the given type.

filters[paymentTransactionId]string

Only returns orders with the specified payment transaction id.

filters[shipmentKey]string

Only returns orders with a shipment matching the given shipmentKey.

filters[shipmentReturnIdentCode]string

Only returns orders with a shipment having the specified return ident code.

filters[shipmentReturnKey]string

Only returns orders with a shipment item having the given shipmentReturnKey.

filters[isShippingCostCharged]boolean

Filters 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]integer

Minimum (inclusive) customer ID of entities that should be returned.

filters[maxCustomerId]integer

Maximum (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]string

Filter for a specific status of orders.

One oforder_openpayment_pendingpayment_reservedinvoice_completedcancellation_pendingcancellation_completedinvoice_partially_completed

filters[detailedStatus]string

Filter 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]string

Only returns orders belonging to a customer with the exact first name. Required if lastName is set. Requires lastName to be set.

filters[lastName]string

Only 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]string

Only return orders for which the specified voucherCode has been used.

filters[publicKey]string

Only returns orders with the given public key set for the order.

filters[productId]integer

Only returns orders with the given orderProductId.

filters[variantId]integer

Only returns orders with the given variantId.

filters[merchantId]integer

Only returns orders with products by the given merchant's id.

filters[channelId]integer

Only returns orders with the given channel id.

sortstring

Sort by the provided column.

One ofidappIdcustomerIdcreatedAtconfirmedAtupdatedAtpaymentKeyDefault "id"

sortDirstring

Sort ascending or descending

One ofascdescDefault "asc"

cursorstring

Valid cursor used for pagination.

limitinteger

Maximum 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>
cursorobject
nextstring

The cursor pointing to the next page. If null there is no next page available.

json
{
  "entities": [
    null
  ],
  "cursor": {
    "next": "MQ=="
  }
}

Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.

Get orders for given filters — SCAYLE Admin — Documentation