AliExpress Affiliate icon

AliExpress Affiliate

Use the AliExpress Affiliate API

Overview

The "Get Order Info" operation of the AliExpress Affiliate node retrieves detailed information about specific orders from the AliExpress Affiliate API. This is useful for affiliate marketers or sellers who want to track order details such as status, commission, and other relevant data related to their affiliate sales.

Typical use cases include:

  • Fetching detailed information on one or multiple orders by specifying their order IDs.
  • Monitoring affiliate sales performance by analyzing order data.
  • Integrating order info into dashboards or reports for business insights.

For example, a user can input a list of order IDs separated by commas to get detailed information about those orders in a single API call.

Properties

Name Meaning
Tracking ID Your tracking ID used for affiliate tracking; optional but recommended for accurate data.
Fields Comma-separated list of response parameters to retrieve (e.g., commission_rate, sale_price).
Order IDs Comma-separated list of order IDs to query; supports querying by sub-order IDs.

Output

The output is an array of JSON objects where each object corresponds to the API response body for the requested order information. The structure of the json output field directly reflects the AliExpress Affiliate API's order detail response, which typically includes fields such as order status, commission details, product info, timestamps, and more.

No binary data output is produced by this operation.

Example output snippet (simplified):

{
  "order_id": "123456789",
  "status": "Payment Completed",
  "commission_rate": "5%",
  "sale_price": "100.00",
  ...
}

Dependencies

  • Requires an API key credential with access to the AliExpress Affiliate API.
  • The node uses the AliExpress SDK client configured with the API key and secret.
  • Network connectivity to https://api-sg.aliexpress.com/sync endpoint is required.

Troubleshooting

  • Missing Credentials: If the API key or secret is missing or invalid, the node will throw an error indicating missing required credential fields. Ensure that valid credentials are configured.
  • Invalid Order IDs: Providing incorrect or malformed order IDs may result in empty or error responses. Verify the order IDs format and existence.
  • API Response Errors: If the API returns unexpected structures or errors, the node logs the full response and throws an error unless "Continue On Fail" is enabled.
  • Tracking ID Issues: If no tracking ID is provided in the node parameters or credentials, some API calls might not return expected affiliate-specific data.

Links and References

Discussion