SalesChannelCreateOrder
Was this helpful?
Was this helpful?
Creates a new order in the system for the specified channel
The channel ID of the resource.
5
Order data containing all necessary information
POST /api/v1/channel/{channel_id}/create_orders/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 2087
{
"order": {
"number": "1234567890",
"channel": 1,
"status": "cancellation_waiting",
"date_placed": "2025-01-01T00:00:00Z",
"customer": 1,
"shipping_address": 1,
"billing_address": 1,
"currency": "try",
"amount": 100,
"shipping_amount": 10,
"shipping_tax_rate": 10,
"extra_field": {
"id": 1,
"name": "test"
},
"payment_option": 1,
"payment_option_slug": "credit_card",
"bin_number": "123456",
"installment": 1,
"installment_count": 1,
"delivery_type": "same_day",
"installment_interest_amount": 10,
"cargo_company": 1,
"invoice_number": "1234567890",
"invoice_date": "2025-01-01T00:00:00Z",
"e_archive_url": "https://e-archive.com/1234567890",
"refund_amount": 10,
"discount_refund_amount": 10,
"shipping_refund_amount": 10,
"discount_amount": 10,
"is_send": false,
"shipping_interest_amount": 10,
"tracking_number": "1234567890",
"carrier_shipping_code": "1234567890",
"remote_addr": "0.0.0.127",
"fundstransfertransaction_set": [
1
],
"has_gift_box": true,
"gift_box_note": "text",
"external_status": 1,
"client_type": "default",
"language_code": "text",
"notes": "text",
"delivery_range": {
"start": "2025-05-22T09:57:02.290Z",
"end": "2025-05-22T09:57:02.290Z"
},
"shipping_option_slug": "text",
"segment": "text",
"modified_date": "2025-05-22T09:57:02.290Z",
"checkout_provider_id": 1,
"created_date": "2025-05-22T09:57:02.290Z",
"cancellation_info": {},
"defined_tracking_url": "https://tracking.com/1234567890"
},
"order_item": [
{
"order": 1,
"product": 1,
"status": "waiting",
"price_currency": "try",
"price": 100,
"quantity": 1,
"unit_price": 100,
"total_price": 100,
"tax_rate": 10,
"tax_amount": 10,
"extra_field": {
"id": 1,
"name": "test"
},
"price_list": 1,
"stock_list": 1,
"shipping_company": "ups",
"shipment_code": "1234567890",
"attributes": {},
"cancel_status": "waiting",
"installment_interest_amount": 10,
"is_tradable": false,
"datasource": 1,
"localized_attributes": {},
"localized_attributes_kwargs": {},
"cancellation_reconciliation": 1,
"reconciliation": 1,
"forced_refund": false,
"original_stock": 1,
"shipping_option_group": 1,
"discount_amount": 10,
"retail_price": 100,
"image": "binary",
"parent": 1,
"estimated_delivery_date": "2025-01-01",
"defined_tracking_url": "https://tracking.com/1234567890",
"defined_shipping_company": "ups"
}
]
}
{
"number": "1234567890",
"channel": 1,
"status": "cancellation_waiting",
"date_placed": "2025-01-01T00:00:00Z",
"customer": 1,
"shipping_address": 1,
"billing_address": 1,
"currency": "try",
"amount": 100,
"shipping_amount": 10,
"shipping_tax_rate": 10,
"extra_field": {
"id": 1,
"name": "test"
},
"payment_option": 1,
"payment_option_slug": "credit_card",
"bin_number": "123456",
"installment": 1,
"installment_count": 1,
"delivery_type": "same_day",
"installment_interest_amount": 10,
"cargo_company": 1,
"invoice_number": "1234567890",
"invoice_date": "2025-01-01T00:00:00Z",
"e_archive_url": "https://e-archive.com/1234567890",
"refund_amount": 10,
"discount_refund_amount": 10,
"shipping_refund_amount": 10,
"discount_amount": 10,
"is_send": false,
"net_shipping_amount": 10,
"shipping_interest_amount": 10,
"tracking_number": "1234567890",
"carrier_shipping_code": "1234567890",
"remote_addr": "0.0.0.127",
"fundstransfertransaction_set": [
1
],
"has_gift_box": true,
"gift_box_note": "text",
"external_status": 1,
"client_type": "default",
"language_code": "text",
"notes": "text",
"delivery_range": {
"start": "2025-05-22T09:57:02.290Z",
"end": "2025-05-22T09:57:02.290Z"
},
"shipping_option_slug": "text",
"segment": "text",
"modified_date": "2025-05-22T09:57:02.290Z",
"checkout_provider_id": 1,
"created_date": "2025-05-22T09:57:02.290Z",
"cancellation_info": {},
"shipping_company": "yurtici",
"cancel_status": "waiting",
"defined_tracking_url": "https://tracking.com/1234567890",
"installment_free": true,
"first_refund_strategy": "text"
}