Alephee developers portal
  • Introduction
    • 📘API documentation
      • Introduction to integrations
    • ⚙️Using the API
      • 🔒Authentication
      • 🏹Swagger
    • 📡Overall index of methods
  • Usage limiting
    • 🕑Rate limiting
    • 🔃Limits per request
    • ♒Limits HTTP headers responses
    • ⚠️Usage limits by endpoint
  • Accounts
    • GET methods
      • Accounts
        • ⚠️Usage limiting
        • ⬆️Request and Respone
        • ⌨️Type specifications
        • ⚙️Examples
      • Marketplaces
        • ⚠️Usage limiting
        • ⬆️Request and Response
        • ⌨️Type specifications
        • ⚙️Examples
      • Price Lists
        • ⚠️Usage limiting
        • ⬆️Request and Responses
        • ⌨️Type specifications
        • ⚙️Examples
      • Stores
        • ⚠️Usage limiting
        • ⬆️Request and Response
        • ⌨️Type specifications
        • ⚙️Examples
      • Login Token
        • ⚠️Usage limiting
        • ⬆️Request and Response
        • 📊Business rules
        • Standard usage flow for Alephee B2B portal
        • ⌨️Type specifications
        • ⚙️Examples
    • PUT methods
      • Update account fiscal tax rules
        • ⚠️Usage limiting
        • ⬆️Request and Response
        • ⌨️Type specifications
        • ⚙️Examples
  • Orders
    • Logical model
      • ℹ️What is an order?
      • 📂Order model overview
      • 🛒Shopping cart orders
        • 🔳Cart order model overview
        • 〽️Mercado Libre’s shopping cart orders
      • 💴Approved payments and pending payments
      • 🗒️General notes
    • GET methods
      • 👩‍💻Orders
        • ⚠️Usage limiting
        • ⬆️Request and Response
        • ⌨️Type specifications
        • ⚙️Examples
        • ⁉️Useful tips
      • 🛒Orders List From A Shopping Cart
        • ⚠️Usage limiting
        • ⬆️Request and Response
        • ⌨️Type specifications
        • ⚙️Examples
      • 📄Orders Document
        • ⚠️Usage limiting
        • ⬆️Request and Response
      • 🧾Order Shipping Label
        • ⚠️Usage limiting
        • 📊Business rules
        • ⬆️Request and Response
        • ⚙️Examples
    • PUT methods
      • 📑Update orders status
        • ⚠️Usage limiting
        • 📊Business rules
        • ⬆️Request and Response
        • ⌨️Type specifications
        • ⚙️Examples
      • 👨‍💼Mark orders as integrated
        • ⚠️Usage limiting
        • ⬆️Request and Response
        • ⌨️Type specifications
        • ⚙️Examples
    • POST methods
      • 📑Attach document to an order
        • ⚠️Usage limiting
        • Allowed document types and formats
        • ⬆️Request and Response
        • ⚙️Examples
        • ⚙️Example using POSTMAN via form-data
        • ⚙️Example using POSTMAN via JSON body
      • 📑Split an order
        • ⚠️Usage limiting
        • ⬆️Request and Response
        • ⌨️Type specifications
      • 📨Send a message to a buyer
        • ⚠️Usage limiting
        • 📊Business rules
        • ⬆️Request and Response
        • ⚙️Examples
      • 📝Create a new order
        • ⚠️Usage limiting
        • Introduction
        • 📊Business rules
        • 📑Order mandatory sections
        • ⬆️Request and Response
        • ⌨️Type specifications
        • ⚙️Examples
    • DELETE methods
      • 📑Delete an order
        • ⚠️Usage limiting
        • 📊Business rules
        • ⬆️Request and Response
        • ⚙️Examples
  • Orders shipping
    • GET methods
      • Shipping Packaging Information
        • ⚠️Usage limiting
        • ⬆️Request and Response
        • ⌨️Type specifications
        • ⚙️Examples
      • Shipping Scheduling Information
        • ⚠️Usage limiting
        • ⬆️Request and Response
        • ⌨️Type specifications
        • ⚙️Examples
      • Shipping Transportation Information
        • ⚠️Usage limiting
        • ⬆️Request and Response
        • ⌨️Type specifications
        • ⚙️Examples
    • POST methods
      • Set Shipping Packaging Information
        • ⚠️Usage limiting
        • ⬆️Request and Response
        • ⚙️Examples
  • Products
    • GET methods
      • Products
        • ⚠️Usage limiting
        • ⬆️Request and Response
        • ⌨️Type specifications
        • ⚙️Examples
    • POST methods
      • Logical model
      • Business Rules
        • Prices considerations
        • Available prices attributes combinations to set prices
        • Stock considerations
        • Alephee B2B portals prices and stock considerations
        • Measurable quantity and price considerations
      • Update Products
        • ⚠️Usage limiting
        • ⬆️Request and Response
        • ⌨️Type specifications
        • ⚙️Examples
    • PUT methods
      • Update product fiscal information
        • ⚠️Usage limiting
        • 🗒️Notes
        • ⬆️Request and Response
        • ⌨️Type specifications
        • ⚙️Examples
    • DELETE methods
      • Delete products from a price list
        • ⚠️Usage limiting
        • 📊Business rules
        • ‼️Warnings
        • ⬆️Request and Response
        • ⌨️Type specifications
        • ⌨️Result type specifications
        • ⚙️Examples
        • Most common validation error messages and how to fix them.
  • Product listings
    • GET methods
      • Product Listings
        • ⚠️Usage limiting
        • ⬆️Request and Response
        • ⌨️Type specifications
        • ⚙️Examples
    • POST methods
      • Set product listings discounts
        • ⚠️Usage limiting
        • 📊Business rules
        • ⬆️Request and Response
        • ⌨️Type specifications
        • ⚙️Examples
    • PUT methods
      • Update product listings
        • ⚠️Usage limiting
        • 📊Business rules
        • ⬆️Request and Response
        • ⌨️Type specifications
        • ⚙️Examples
      • Set product listings status
        • ⚠️Usage limiting
        • 📊Business rules
        • ⬆️Request and Response
        • ⌨️Type specifications
        • ⚙️Examples
  • GLOSSARY
    • Conventions
    • Response status codes
    • Marketplaces/Channels ID and names list
    • Product listings status list
    • Orders and shipping glossary
      • Available order statuses codes
      • State transitions diagram
      • Automatic and manual order status updates
      • Attaching documents to orders
      • Shipping labels
  • TROUBLESHOOTING
    • ❗Important tips
    • ✅Best integrations practices
Powered by GitBook
On this page
  • Retrieves a list of orders that meet the specified criteria
  • Parameters details
  • statusType
  • dateCreatedFrom
  • saleDateFrom
  • statusDateFrom
  • idFrom
  • idTo
  • externalOrderIdFrom
  • externalOrderIdTo
  • Integrated
  • erpStatus
  • marketplaceId
  • includePendingPayments
  • additionalInfo
  • sort
  • limit
  • offset

Was this helpful?

  1. Orders
  2. GET methods
  3. Orders

Request and Response

Request to the API endpoint

Retrieves a list of orders that meet the specified criteria

GET https://api.alephcrm.com/v2/orders

Query Parameters

Name
Type
Description

API_KEY *

string

(default=none)

accountId *

integer

(default=none)

statusType

integer

(default=none)

sort

string

(default=none)

limit

integer

(default=100)

offset

integer

(default=100)

dateCreatedFrom

date (yyyy-mm-dd)

(default=none)

saleDateFrom

date (yyyy-mm-dd)

(default=none)

statusDateFrom

date (yyyy-mm-dd)

(default=none)

idFrom

integer

(default=none)

idTo

integer

(default=none)

externalOrderIdFrom

string

(default=none)

externalOrderIdTo

string

(default=none)

Integrated

boolean

(default=false)

erpStatus

string

(default=none)

marketplaceId

integer

includePendingPayments

boolean

(default=false)

additionalInfo

string

{
  "Paging": {
    "Limit": integer,
    "Offset": integer,
    "Total": integer
  },
  "SortBy": {
    "Id": string,
    "Name": string
  },
  "AvailableSorts": [
    {
      "Id": string,
      "Name": string
    },
    {
      "Id": string,
      "Name": string
    }
  ],
  "Total": integer,
  "Results": [
    { OBJECT }
  ]
}
{
   "Total": integer,
   "Paging": {
       "Limit": integer,
       "Offset": integer,
       "Total": integer,
   },
   "SortBy": {
       "Id": string,
       "Name": string
   },
   "AvailableSorts": [{
       "Id": string,
       "Name": string
   }],
   "Results":[ OrderType ]
}

Parameters details

statusType

Filters the orders by their current status type. Status type is an aggregation of several statuses of an order. Available values are:

Value
Description

0

New

1

Pending

2

Closed

99

Cancelled

This status type aggregation parameter includes the following individual statuses:

Status type
Includes order with statuses (the actual status of an order)

0 = New

0 = No status yet Only for orders from the Alephee B2B portal

1 = Pending

10 = Pending shipping / Ready to ship

17 = Arrived at the pickup point/warehouse location and ready to ship

20 = Shipped (in transit)

30 = Assigned to distributor

31 = Assigned to pickup

87 = The shipment recipient could not be found. Could not be delivered

89 = Could not be delivered due to logistics issues

91 = Awaiting refund

92 = Refunded

2 = Closed

80 = Delivered

99 = Cancelled

11 = Fraudulent order

90 = Cancelled

93 = Cancelled by the buyer after being delivered

dateCreatedFrom

Filters orders which were created in Alephee after the provided date. (Format yyyy-mm-dd HH:mm with HH in 24 hours-format) The creation date is the date on which the order was created or generated in Alephee. It is not the sale date of the order.

saleDateFrom

(Format yyyy-mm-dd HH:mm with HH in 24 hours-format) The sale date is the date on which the order was sold (in whatever marketplace of origin)

statusDateFrom

Filters orders which had a change in status after the provided date. (Format yyyy-mm-dd HH:mm with HH in 24 hours-format) The status date is the date on which the order underwent any novelty or modification in Alephee.

idFrom

Filters orders which ids are equal or greater than the provided one. ID is the internal ID assigned by Alephee to the order.

idTo

Filters orders which ids are equal or lower than the provided one. ID is the internal ID assigned by Alephee to the order.

externalOrderIdFrom

Filters orders which external ids are equal or greater than the provided one. ExternalID is the ID assigned by the marketplace of origin to the order.

externalOrderIdTo

Filters orders which external ids are equal or greater than the provided one. ExternalID is the ID assigned by the marketplace of origin to the order.

Integrated

Filters orders which have been marked as “integrated” or not.

erpStatus

Filters orders which ERP status equals the provided one.

marketplaceId

Filters orders which origin marketplace matches the provided one. Refer to marketplaces ID section and the GET marketplaces endpoint for the coding reference

includePendingPayments

additionalInfo

A collection of additional information to the orders and filters to the result orders list. There is several parameters and filters. Some are assumed by default. You can combine more than one parameter using the “comma” separator. List of available values for the "additionalInfo" parameter:

Parameter
Function

IncludeKitContainerItems

(default)

Will include all order items with an item type “Kit” and its related components. Please refer to the ItemType object.

NotIncludeKitContainerItems

Filter all order items with an item type “Kit”.

IncludeStockMovementDetails

Will include the “StockMovements” collection of objects in the order.

NotIncludeStockMovementDetails

(default)

Will exclude the “StockMovements” collection of objects in the order.

IncludeExternalJson

Will include the origin-marketplace order JSON in the original format and contents.

NotIncludeExternalJson

(default)

Will not include the the origin-marketplace order JSON in the original format and contents.

IncludeWithPendingPayment

This endpoint will include orders that have payments pending approval (payments not yet approved).

By default, the endpoint will only return orders with explicit approved payment.

Please refer to the approved payments and pending payments section for more information

NotIncludeWithPendingPayment

(default)

The opposite of the IncludeWithPendingPayment function.

IncludeIncompletePacksOrders

(default)

Include orders from a shopping cart that are incomplete at the moment you call the order endpoint.

The pack order can be completed over time.

NotIncludeIncompletePacksOrders

Filters orders from a shopping cart that are incomplete at the moment you call the order endpoint.

Will NOT include incomplete pack orders.

OnlyWithAttachedElectronicInvoice

Will return ONLY orders that have a previously attached document.

And only those with the “Electronic Invoice” (Brazil only) document type.

OnlyWithAttachedReceipt

Will return ONLY orders that have a previously attached document.

And only those with the “Receipt” document type.

OnlyWithAttachedInvoice

Will return ONLY orders that have a previously attached document.

And only those with the “Invoice” document type.

Example of the "additionalInfo" parameter:

https://api.alephcrm.com/v2/orders/?........ &additionalInfo=NotIncludeIncompletePacksOrders, OnlyWithAttachedElectronicInvoice This will return orders without incomplete pack orders AND only with attached electronic invoice.

sort

Indicates the field to be sorted by (ascending only). Available fields: ID, dateCreated

limit

Used for paging. Defines the number of records to be returned. For example, limit=10 gets only 10 records.

offset

Used for paging. Moves the inferior limit of the records to the provided one. For example, offset=50 gets the rows skipping the first 50 records.

PreviousUsage limitingNextType specifications

Last updated 29 days ago

Was this helpful?

(defaults = )

When true, this endpoint will include orders that have payments pending approval (payments not yet approved). By default, the endpoint will only return orders with explicit approved payment. Please refer to the for more information.

👩‍💻
⬆️
approved payments and pending payments section
see table below