getOrderTransactionData
The method allows you to retrieve transaction details for a selected order
Input parameters
Output data:
A sample request in PHP:
order_id | int | Order Identifier from BaseLinker order manager |
include_complex_taxes | bool | (optional, false by default) Whether to include detailed tax breakdown with order_lines structure. |
include_amazon_data | bool | (optional, true by default) Whether to include legacy Amazon fulfillment data for backward compatibility. |
Output data
The method returns the data in JSON format.
status | varchar(30) | SUCCESS - request executed correctly ERROR - an error occurred during an API request. Error details will be described in 2 additional returned fields: error_message and error_code |
currency | char(3) | Order currency code |
fulfillment_shipments | array | [Only for Amazon] An array of information about the Amazon fulfillment shipments found. Each shipment is described by the fields listed below: product_sku (varchar(40)) - product_sku product_name (varchar(200)) - product name quantity (int) - quantity of pieces fba (varchar(10)) - Amazon storage identifier |
ship_date_from | int | Ship date from (unix time format) |
ship_date_to | int | Ship date to (unix time format) |
delivery_date_from | int | Delivery date from (unix time format) |
delivery_date_to | int | Delivery date to (unix time format) |
marketplace_transaction_id | varchar(60) | Transaction identifier from marketplace |
account_id | int | Marketplace account identifier |
transaction_date | int | Transaction date (unix timestamp) |
order_items | array | (only when include_complex_taxes=true) Detailed tax breakdown per product: itemId (varchar(50)) - Product SKU or identifier outerItemId (varchar(51)) - Additional identifier ("p" + sku) shipping (object) - Shipping costs and taxes for this specific product taxes (array) - Array of tax objects applied to the product |
Sample
Input data:Output data:
A sample request in PHP: