Orders
User order retrieval and cancellation
Retrieves paginated list of orders for the authenticated user. Includes order items, discounts, addresses, and payment details.
For guest users, returns only the most recent order.
Supports filtering and search by order number.
Session cookie for authentication
Filter orders from last 30 days only
Search by order number
Page number for pagination
Session cookie in format sessionid=<value>.
May use site-specific cookie name (e.g., osessionid).
List of orders
Authentication required
Login required (redirects to login page)
GET /users/orders/ HTTP/1.1
Host: sandbox.akinon.com
Accept: */*
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"pk": 1,
"number": "text",
"status": {
"value": "text",
"label": "text"
},
"currency": {
"value": "text",
"label": "text"
},
"amount": "text",
"discount_amount": "text",
"amount_without_discount": "text",
"shipping_amount": "text",
"shipping_tax_rate": null,
"refund_amount": "text",
"discount_refund_amount": "text",
"shipping_refund_amount": "text",
"is_cancelled": true,
"is_cancellable": true,
"is_refundable": true,
"is_payable": true,
"tracking_url": null,
"tracking_number": null,
"invoice_number": null,
"invoice_date": null,
"e_archive_url": null,
"order_type": {
"value": "text",
"label": "text"
},
"user_email": "name@gmail.com",
"has_gift_box": null,
"gift_box_note": null,
"notes": null,
"installment_count": 1,
"installment_interest_amount": "text",
"bin_number": null,
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z",
"shipping_address": {
"pk": 1,
"email": null,
"phone_number": "text",
"first_name": "text",
"last_name": "text",
"country": {
"pk": 1,
"name": "text",
"code": "text"
},
"city": {
"pk": 1,
"name": "text",
"code": "text"
},
"line": "text",
"title": "text",
"township": {
"pk": 1,
"name": "text",
"code": "text"
},
"district": {
"pk": 1,
"name": "text",
"code": "text"
},
"postcode": null,
"notes": null,
"company_name": null,
"tax_office": null,
"tax_no": null,
"e_bill_taxpayer": null,
"hash_data": "text",
"address_type": {
"value": "text",
"label": "text"
},
"retail_store": {},
"remote_id": null,
"identity_number": null,
"extra_field": null,
"user": null,
"is_corporate": null,
"primary": null
},
"billing_address": {
"pk": 1,
"email": null,
"phone_number": "text",
"first_name": "text",
"last_name": "text",
"country": {
"pk": 1,
"name": "text",
"code": "text"
},
"city": {
"pk": 1,
"name": "text",
"code": "text"
},
"line": "text",
"title": "text",
"township": {
"pk": 1,
"name": "text",
"code": "text"
},
"district": {
"pk": 1,
"name": "text",
"code": "text"
},
"postcode": null,
"notes": null,
"company_name": null,
"tax_office": null,
"tax_no": null,
"e_bill_taxpayer": null,
"hash_data": "text",
"address_type": {
"value": "text",
"label": "text"
},
"retail_store": {},
"remote_id": null,
"identity_number": null,
"extra_field": null,
"user": null,
"is_corporate": null,
"primary": null
},
"shipping_company": {
"value": "text",
"label": "text"
},
"client_type": {
"value": "text",
"label": "text"
},
"payment_option": {
"pk": 1,
"name": "text",
"payment_type": "text",
"slug": "text"
},
"bank": {
"pk": 1,
"name": "text",
"slug": "text",
"logo": null,
"logo_path": null
},
"extra_field": null,
"orderitem_set": [
{
"pk": 1,
"product": {
"pk": 1,
"sku": "text",
"base_code": "text",
"name": "text",
"image": null,
"absolute_url": "text",
"attributes": {},
"attributes_kwargs": {},
"form_schema": [],
"data_source": null,
"extra_attributes": {},
"category": null,
"attribute_set": []
},
"order": 1,
"price": "text",
"tax_rate": "text",
"retail_price": null,
"discount_amount": null,
"discounted_price": "text",
"status": {
"value": "text",
"label": "text"
},
"price_currency": {
"value": "text",
"label": "text"
},
"is_cancelled": true,
"is_cancellable": true,
"is_refundable": true,
"is_tradable": true,
"tracking_url": null,
"tracking_number": null,
"invoice_number": null,
"invoice_date": null,
"e_archive_url": null,
"shipping_company": {
"value": "text",
"label": "text"
},
"shipping_option_group": {
"pk": 1,
"amount": "text",
"shipping_option_name": "text",
"shipping_option_logo": null
},
"estimated_delivery_date": null,
"shipped_date": null,
"delivered_date": null,
"image": null,
"attributes": null,
"attributes_kwargs": null,
"extra_field": null,
"cancellationrequest_set": [
{
"pk": 1,
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"order_item": 1,
"reason": 1,
"cancellation_type": {
"value": "text",
"label": "text"
},
"status": {
"value": "text",
"label": "text"
},
"description": null,
"iban": null,
"holder_name": null,
"easy_return": {
"shipping_company": {
"value": "text",
"label": "text"
},
"code": "text",
"start_date": null,
"end_date": null,
"status": {
"value": "text",
"label": "text"
},
"tracking_number": null,
"tracking_url": null,
"pickup_date": {
"date": "2026-01-01",
"hour_range": {
"start": "text",
"end": "text"
}
}
},
"quantity": null,
"fully_refund_as_loyalty_money": null,
"cancellation_request_image_set": [
{
"pk": 1,
"cancellation_request": 1,
"image": "https://example.com",
"description": null,
"is_uploaded_by_user": true,
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z"
}
],
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z"
}
],
"active_cancellation_request": {
"pk": 1,
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"order_item": 1,
"reason": 1,
"cancellation_type": {
"value": "text",
"label": "text"
},
"status": {
"value": "text",
"label": "text"
},
"description": null,
"iban": null,
"holder_name": null,
"easy_return": {
"shipping_company": {
"value": "text",
"label": "text"
},
"code": "text",
"start_date": null,
"end_date": null,
"status": {
"value": "text",
"label": "text"
},
"tracking_number": null,
"tracking_url": null,
"pickup_date": {
"date": "2026-01-01",
"hour_range": {
"start": "text",
"end": "text"
}
}
},
"quantity": null,
"fully_refund_as_loyalty_money": null,
"cancellation_request_image_set": [
{
"pk": 1,
"cancellation_request": 1,
"image": "https://example.com",
"description": null,
"is_uploaded_by_user": true,
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z"
}
],
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z"
},
"available_easy_return_shipping_companies": [
{
"pk": 1,
"shipping_company": {
"value": "text",
"label": "text"
},
"name": "text"
}
],
"datasource_detailed": null,
"extra_product_stock_detailed": null,
"extra_product_price_detailed": null
}
],
"discountitem_set": [
{
"name": "text",
"amount": "text",
"created_date": "2026-01-01T00:00:00.000Z",
"order_number": "text",
"currency": {
"value": "text",
"label": "text"
}
}
],
"loyaltytransaction_set": [
{
"pk": 1,
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"amount": "text",
"order": null,
"user": null,
"user_email": null,
"reference": null
}
]
}
]
}Retrieves detailed information for a specific order. User can only access their own orders.
Guest User Behavior: For guest users, this endpoint ignores the pk parameter and always returns their most recent order (ordered by -pk, first result). This is because guest users are restricted to viewing only their latest order.
Access Control: Users cannot access orders belonging to other users. Attempting to access another user's order returns 404 Not Found.
Response Format:
JSON requests: Returns order data directly
HTML requests: Wraps response in
{"data": {...}}format
Session cookie for authentication
Order ID. Must belong to the authenticated user. For guest users, this parameter is ignored and the most recent order is returned instead.
Session cookie in format sessionid=<value>.
May use site-specific cookie name (e.g., osessionid).
Order details retrieved successfully
User order with all related data including items, discounts, addresses, and payment details.
Order ID
Order number (unique identifier)
Order total amount
Total discount applied
Amount before discounts (computed field)
Shipping cost
Tax rate for shipping
Total refund amount
Refunded discount amount
Refunded shipping amount
Whether order is fully cancelled
Whether order can be cancelled
Whether order is eligible for refund
Whether order has pending payment
Shipment tracking URL
Shipment tracking number
Invoice number
Invoice date
E-Archive document URL
Email address used for order
Whether order includes gift box
Gift box message/note
Order delivery instructions
Number of payment installments
Interest amount for installment payment
Credit card BIN number (first 6-8 digits)
Additional order data (rewards, custom fields, etc.)
Authentication required
Login required (redirects to login page)
Order not found or doesn't belong to user. Guest users with no orders will also receive 404.
GET /users/orders/{pk}/ HTTP/1.1
Host: sandbox.akinon.com
Accept: */*
{
"pk": 1,
"number": "text",
"status": {
"value": "text",
"label": "text"
},
"currency": {
"value": "text",
"label": "text"
},
"amount": "text",
"discount_amount": "text",
"amount_without_discount": "text",
"shipping_amount": "text",
"shipping_tax_rate": null,
"refund_amount": "text",
"discount_refund_amount": "text",
"shipping_refund_amount": "text",
"is_cancelled": true,
"is_cancellable": true,
"is_refundable": true,
"is_payable": true,
"tracking_url": null,
"tracking_number": null,
"invoice_number": null,
"invoice_date": null,
"e_archive_url": null,
"order_type": {
"value": "text",
"label": "text"
},
"user_email": "name@gmail.com",
"has_gift_box": null,
"gift_box_note": null,
"notes": null,
"installment_count": 1,
"installment_interest_amount": "text",
"bin_number": null,
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z",
"shipping_address": {
"pk": 1,
"email": null,
"phone_number": "text",
"first_name": "text",
"last_name": "text",
"country": {
"pk": 1,
"name": "text",
"code": "text"
},
"city": {
"pk": 1,
"name": "text",
"code": "text"
},
"line": "text",
"title": "text",
"township": {
"pk": 1,
"name": "text",
"code": "text"
},
"district": {
"pk": 1,
"name": "text",
"code": "text"
},
"postcode": null,
"notes": null,
"company_name": null,
"tax_office": null,
"tax_no": null,
"e_bill_taxpayer": null,
"hash_data": "text",
"address_type": {
"value": "text",
"label": "text"
},
"retail_store": {},
"remote_id": null,
"identity_number": null,
"extra_field": null,
"user": null,
"is_corporate": null,
"primary": null
},
"billing_address": {
"pk": 1,
"email": null,
"phone_number": "text",
"first_name": "text",
"last_name": "text",
"country": {
"pk": 1,
"name": "text",
"code": "text"
},
"city": {
"pk": 1,
"name": "text",
"code": "text"
},
"line": "text",
"title": "text",
"township": {
"pk": 1,
"name": "text",
"code": "text"
},
"district": {
"pk": 1,
"name": "text",
"code": "text"
},
"postcode": null,
"notes": null,
"company_name": null,
"tax_office": null,
"tax_no": null,
"e_bill_taxpayer": null,
"hash_data": "text",
"address_type": {
"value": "text",
"label": "text"
},
"retail_store": {},
"remote_id": null,
"identity_number": null,
"extra_field": null,
"user": null,
"is_corporate": null,
"primary": null
},
"shipping_company": {
"value": "text",
"label": "text"
},
"client_type": {
"value": "text",
"label": "text"
},
"payment_option": {
"pk": 1,
"name": "text",
"payment_type": "text",
"slug": "text"
},
"bank": {
"pk": 1,
"name": "text",
"slug": "text",
"logo": null,
"logo_path": null
},
"extra_field": null,
"orderitem_set": [
{
"pk": 1,
"product": {
"pk": 1,
"sku": "text",
"base_code": "text",
"name": "text",
"image": null,
"absolute_url": "text",
"attributes": {},
"attributes_kwargs": {},
"form_schema": [],
"data_source": null,
"extra_attributes": {},
"category": null,
"attribute_set": []
},
"order": 1,
"price": "text",
"tax_rate": "text",
"retail_price": null,
"discount_amount": null,
"discounted_price": "text",
"status": {
"value": "text",
"label": "text"
},
"price_currency": {
"value": "text",
"label": "text"
},
"is_cancelled": true,
"is_cancellable": true,
"is_refundable": true,
"is_tradable": true,
"tracking_url": null,
"tracking_number": null,
"invoice_number": null,
"invoice_date": null,
"e_archive_url": null,
"shipping_company": {
"value": "text",
"label": "text"
},
"shipping_option_group": {
"pk": 1,
"amount": "text",
"shipping_option_name": "text",
"shipping_option_logo": null
},
"estimated_delivery_date": null,
"shipped_date": null,
"delivered_date": null,
"image": null,
"attributes": null,
"attributes_kwargs": null,
"extra_field": null,
"cancellationrequest_set": [
{
"pk": 1,
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"order_item": 1,
"reason": 1,
"cancellation_type": {
"value": "text",
"label": "text"
},
"status": {
"value": "text",
"label": "text"
},
"description": null,
"iban": null,
"holder_name": null,
"easy_return": {
"shipping_company": {
"value": "text",
"label": "text"
},
"code": "text",
"start_date": null,
"end_date": null,
"status": {
"value": "text",
"label": "text"
},
"tracking_number": null,
"tracking_url": null,
"pickup_date": {
"date": "2026-01-01",
"hour_range": {
"start": "text",
"end": "text"
}
}
},
"quantity": null,
"fully_refund_as_loyalty_money": null,
"cancellation_request_image_set": [
{
"pk": 1,
"cancellation_request": 1,
"image": "https://example.com",
"description": null,
"is_uploaded_by_user": true,
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z"
}
],
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z"
}
],
"active_cancellation_request": {
"pk": 1,
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"order_item": 1,
"reason": 1,
"cancellation_type": {
"value": "text",
"label": "text"
},
"status": {
"value": "text",
"label": "text"
},
"description": null,
"iban": null,
"holder_name": null,
"easy_return": {
"shipping_company": {
"value": "text",
"label": "text"
},
"code": "text",
"start_date": null,
"end_date": null,
"status": {
"value": "text",
"label": "text"
},
"tracking_number": null,
"tracking_url": null,
"pickup_date": {
"date": "2026-01-01",
"hour_range": {
"start": "text",
"end": "text"
}
}
},
"quantity": null,
"fully_refund_as_loyalty_money": null,
"cancellation_request_image_set": [
{
"pk": 1,
"cancellation_request": 1,
"image": "https://example.com",
"description": null,
"is_uploaded_by_user": true,
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z"
}
],
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z"
},
"available_easy_return_shipping_companies": [
{
"pk": 1,
"shipping_company": {
"value": "text",
"label": "text"
},
"name": "text"
}
],
"datasource_detailed": null,
"extra_product_stock_detailed": null,
"extra_product_price_detailed": null
}
],
"discountitem_set": [
{
"name": "text",
"amount": "text",
"created_date": "2026-01-01T00:00:00.000Z",
"order_number": "text",
"currency": {
"value": "text",
"label": "text"
}
}
],
"loyaltytransaction_set": [
{
"pk": 1,
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"amount": "text",
"order": null,
"user": null,
"user_email": null,
"reference": null
}
]
}Retrieves order information relevant for cancellation. Typically used to display cancellation page/form.
Guest User Behavior: For guest users, this endpoint ignores the pk parameter and always returns their last order (ordered by -created_date, last result). This is because guest users are restricted to viewing only their most recent order for cancellation.
Access Control: Users can only access their own orders. Attempting to access another user's order returns 404 Not Found.
Response Format:
JSON requests: Returns order data directly
HTML requests: Wraps response in
{"data": {...}}format
Session cookie for authentication
Order ID. Must belong to the authenticated user. For guest users, this parameter is ignored and the last order (by created_date) is returned instead.
Session cookie in format sessionid=<value>.
May use site-specific cookie name (e.g., osessionid).
Order cancellation details retrieved successfully
User order with all related data including items, discounts, addresses, and payment details.
Order ID
Order number (unique identifier)
Order total amount
Total discount applied
Amount before discounts (computed field)
Shipping cost
Tax rate for shipping
Total refund amount
Refunded discount amount
Refunded shipping amount
Whether order is fully cancelled
Whether order can be cancelled
Whether order is eligible for refund
Whether order has pending payment
Shipment tracking URL
Shipment tracking number
Invoice number
Invoice date
E-Archive document URL
Email address used for order
Whether order includes gift box
Gift box message/note
Order delivery instructions
Number of payment installments
Interest amount for installment payment
Credit card BIN number (first 6-8 digits)
Additional order data (rewards, custom fields, etc.)
Authentication required
Login required (redirects to login page)
Order not found or doesn't belong to user. Guest users with no orders will also receive 404.
GET /users/orders/{pk}/cancellation/ HTTP/1.1
Host: sandbox.akinon.com
Accept: */*
{
"pk": 1,
"number": "text",
"status": {
"value": "text",
"label": "text"
},
"currency": {
"value": "text",
"label": "text"
},
"amount": "text",
"discount_amount": "text",
"amount_without_discount": "text",
"shipping_amount": "text",
"shipping_tax_rate": null,
"refund_amount": "text",
"discount_refund_amount": "text",
"shipping_refund_amount": "text",
"is_cancelled": true,
"is_cancellable": true,
"is_refundable": true,
"is_payable": true,
"tracking_url": null,
"tracking_number": null,
"invoice_number": null,
"invoice_date": null,
"e_archive_url": null,
"order_type": {
"value": "text",
"label": "text"
},
"user_email": "name@gmail.com",
"has_gift_box": null,
"gift_box_note": null,
"notes": null,
"installment_count": 1,
"installment_interest_amount": "text",
"bin_number": null,
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z",
"shipping_address": {
"pk": 1,
"email": null,
"phone_number": "text",
"first_name": "text",
"last_name": "text",
"country": {
"pk": 1,
"name": "text",
"code": "text"
},
"city": {
"pk": 1,
"name": "text",
"code": "text"
},
"line": "text",
"title": "text",
"township": {
"pk": 1,
"name": "text",
"code": "text"
},
"district": {
"pk": 1,
"name": "text",
"code": "text"
},
"postcode": null,
"notes": null,
"company_name": null,
"tax_office": null,
"tax_no": null,
"e_bill_taxpayer": null,
"hash_data": "text",
"address_type": {
"value": "text",
"label": "text"
},
"retail_store": {},
"remote_id": null,
"identity_number": null,
"extra_field": null,
"user": null,
"is_corporate": null,
"primary": null
},
"billing_address": {
"pk": 1,
"email": null,
"phone_number": "text",
"first_name": "text",
"last_name": "text",
"country": {
"pk": 1,
"name": "text",
"code": "text"
},
"city": {
"pk": 1,
"name": "text",
"code": "text"
},
"line": "text",
"title": "text",
"township": {
"pk": 1,
"name": "text",
"code": "text"
},
"district": {
"pk": 1,
"name": "text",
"code": "text"
},
"postcode": null,
"notes": null,
"company_name": null,
"tax_office": null,
"tax_no": null,
"e_bill_taxpayer": null,
"hash_data": "text",
"address_type": {
"value": "text",
"label": "text"
},
"retail_store": {},
"remote_id": null,
"identity_number": null,
"extra_field": null,
"user": null,
"is_corporate": null,
"primary": null
},
"shipping_company": {
"value": "text",
"label": "text"
},
"client_type": {
"value": "text",
"label": "text"
},
"payment_option": {
"pk": 1,
"name": "text",
"payment_type": "text",
"slug": "text"
},
"bank": {
"pk": 1,
"name": "text",
"slug": "text",
"logo": null,
"logo_path": null
},
"extra_field": null,
"orderitem_set": [
{
"pk": 1,
"product": {
"pk": 1,
"sku": "text",
"base_code": "text",
"name": "text",
"image": null,
"absolute_url": "text",
"attributes": {},
"attributes_kwargs": {},
"form_schema": [],
"data_source": null,
"extra_attributes": {},
"category": null,
"attribute_set": []
},
"order": 1,
"price": "text",
"tax_rate": "text",
"retail_price": null,
"discount_amount": null,
"discounted_price": "text",
"status": {
"value": "text",
"label": "text"
},
"price_currency": {
"value": "text",
"label": "text"
},
"is_cancelled": true,
"is_cancellable": true,
"is_refundable": true,
"is_tradable": true,
"tracking_url": null,
"tracking_number": null,
"invoice_number": null,
"invoice_date": null,
"e_archive_url": null,
"shipping_company": {
"value": "text",
"label": "text"
},
"shipping_option_group": {
"pk": 1,
"amount": "text",
"shipping_option_name": "text",
"shipping_option_logo": null
},
"estimated_delivery_date": null,
"shipped_date": null,
"delivered_date": null,
"image": null,
"attributes": null,
"attributes_kwargs": null,
"extra_field": null,
"cancellationrequest_set": [
{
"pk": 1,
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"order_item": 1,
"reason": 1,
"cancellation_type": {
"value": "text",
"label": "text"
},
"status": {
"value": "text",
"label": "text"
},
"description": null,
"iban": null,
"holder_name": null,
"easy_return": {
"shipping_company": {
"value": "text",
"label": "text"
},
"code": "text",
"start_date": null,
"end_date": null,
"status": {
"value": "text",
"label": "text"
},
"tracking_number": null,
"tracking_url": null,
"pickup_date": {
"date": "2026-01-01",
"hour_range": {
"start": "text",
"end": "text"
}
}
},
"quantity": null,
"fully_refund_as_loyalty_money": null,
"cancellation_request_image_set": [
{
"pk": 1,
"cancellation_request": 1,
"image": "https://example.com",
"description": null,
"is_uploaded_by_user": true,
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z"
}
],
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z"
}
],
"active_cancellation_request": {
"pk": 1,
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"order_item": 1,
"reason": 1,
"cancellation_type": {
"value": "text",
"label": "text"
},
"status": {
"value": "text",
"label": "text"
},
"description": null,
"iban": null,
"holder_name": null,
"easy_return": {
"shipping_company": {
"value": "text",
"label": "text"
},
"code": "text",
"start_date": null,
"end_date": null,
"status": {
"value": "text",
"label": "text"
},
"tracking_number": null,
"tracking_url": null,
"pickup_date": {
"date": "2026-01-01",
"hour_range": {
"start": "text",
"end": "text"
}
}
},
"quantity": null,
"fully_refund_as_loyalty_money": null,
"cancellation_request_image_set": [
{
"pk": 1,
"cancellation_request": 1,
"image": "https://example.com",
"description": null,
"is_uploaded_by_user": true,
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z"
}
],
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z"
},
"available_easy_return_shipping_companies": [
{
"pk": 1,
"shipping_company": {
"value": "text",
"label": "text"
},
"name": "text"
}
],
"datasource_detailed": null,
"extra_product_stock_detailed": null,
"extra_product_price_detailed": null
}
],
"discountitem_set": [
{
"name": "text",
"amount": "text",
"created_date": "2026-01-01T00:00:00.000Z",
"order_number": "text",
"currency": {
"value": "text",
"label": "text"
}
}
],
"loyaltytransaction_set": [
{
"pk": 1,
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"amount": "text",
"order": null,
"user": null,
"user_email": null,
"reference": null
}
]
}Retrieves paginated list of archived orders. These are typically migrated historical orders from legacy systems.
Guest User Access: Not available for guest users (returns empty list).
Filtering & Search:
Currency filter: Filter by currency type (e.g.,
?currency=tryor?currency=usd)Number search: Search by order number using
searchparameterCustom ordering: Order by any field using
sortparameter
Session cookie for authentication
Filter orders by currency type
Search by order number
Field to order by.
Use - prefix for descending order.
Examples: created_date, -created_date, amount, -number
Available fields: number, user_email, status, created_date, amount,
discount_amount, currency, payment_type, bank, installment_count,
tracking_number, shipping_company, shipping_address, billing_address
-created_datePage number for pagination
Session cookie in format sessionid=<value>.
May use site-specific cookie name (e.g., osessionid).
List of old orders retrieved successfully
Authentication required
Login required (redirects to login page)
GET /users/old-orders/ HTTP/1.1
Host: sandbox.akinon.com
Accept: */*
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"pk": 1,
"number": "text",
"user_email": "name@gmail.com",
"status": "text",
"created_date": "2026-01-01T00:00:00.000Z",
"amount": "text",
"discount_amount": "text",
"currency": {
"value": "text",
"label": "text"
},
"payment_type": null,
"bank": null,
"installment_count": 1,
"tracking_number": null,
"shipping_company": {
"value": "text",
"label": "text"
},
"shipping_address": null,
"billing_address": null,
"extra_field": {},
"oldorderitem_set": [
{
"pk": 1,
"product": null,
"sku": null,
"quantity": null,
"price": "text",
"image": null,
"image_url": null,
"extra_field": {}
}
]
}
]
}Retrieves detailed information for a specific archived order. User can only access their own orders.
Guest User Access: Not available for guest users, returns 404 Not Found for any pk value.
Access Control: Users cannot access orders belonging to other users. Attempting to access another user's order returns 404 Not Found.
Response Format:
JSON requests: Returns order data directly
HTML requests: Wraps response in
{"data": {...}}format
Session cookie for authentication
Old order ID. Must belong to the authenticated user. Guest users will always receive 404.
Session cookie in format sessionid=<value>.
May use site-specific cookie name (e.g., osessionid).
Old order details retrieved successfully
Archived order from legacy systems with basic order information.
Order number (unique identifier)
User email associated with order
Order status (stored as plain string from legacy system)
Order total amount
Total discount applied
Payment type from legacy system
Bank name from legacy system
Number of installments
Shipment tracking number
Shipping address (stored as plain text from legacy system)
Billing address (stored as plain text from legacy system)
Additional legacy data
Authentication required
Login required (redirects to login page)
Order not found or doesn't belong to user. Guest users always receive 404 for this endpoint.
GET /users/old-orders/{pk}/ HTTP/1.1
Host: sandbox.akinon.com
Accept: */*
{
"pk": 1,
"number": "text",
"user_email": "name@gmail.com",
"status": "text",
"created_date": "2026-01-01T00:00:00.000Z",
"amount": "text",
"discount_amount": "text",
"currency": {
"value": "text",
"label": "text"
},
"payment_type": null,
"bank": null,
"installment_count": 1,
"tracking_number": null,
"shipping_company": {
"value": "text",
"label": "text"
},
"shipping_address": null,
"billing_address": null,
"extra_field": {},
"oldorderitem_set": [
{
"pk": 1,
"product": null,
"sku": null,
"quantity": null,
"price": "text",
"image": null,
"image_url": null,
"extra_field": {}
}
]
}Last updated
Was this helpful?

