Skip to main content

Order Services

All services related to orders are listed in this document.

GET Order List

This method is used to get a detailed list of orders.

Path: /api/v1/oms/orders/

Request

  • Headers:
  • Authorization: Token
  • Body Parameters: None
  • Request Body: None

Response 200 OK

{
"count": 722,
"next": "{domain_url}/api/v1/oms/orders/?limit=2&page=2",
"previous": null,
"results": [
{
"id": 6998,
"state": {
"id": 6,
"created_date": "2021-06-30T14:43:26.601899Z",
"modified_date": "2022-10-14T10:39:33.629710Z",
"translations": {
"en-us": {
"name": "Approved"
},
"tr-tr": {
"name": "Onaylanmış"
}
},
"name": "Approved",
"config": {},
"enum_class": "OrderStatus",
"enum_value": "400",
"content_type": 2
},
"commands": [],
"orderitem_set": [
{
"id": 6899,
"state": {
"id": 27,
"created_date": "2021-06-30T14:43:26.792596Z",
"modified_date": "2022-10-14T10:39:33.571042Z",
"translations": {
"en-us": {
"name": "Inactive"
},
"tr-tr": {
"name": "Aktif Olmayan"
}
},
"name": "Inactive",
"config": {},
"enum_class": "OrderStatus",
"enum_value": "425",
"content_type": 3
},
"product": {
"id": 365,
"productimage_set": [
{
"order": 0,
"id": 465,
"url": "{cdn_url}/products/2022/09/07/8362/38f3cfef-d582-489e-bcc2-324cd0455c72.jpg",
"product": 365
}
],
"created_date": "2022-11-10T06:57:37.198392Z",
"modified_date": "2022-11-10T06:57:37.198402Z",
"omnitron_id": 8362,
"name": "Ultimate Organic Cotton T Shirt With Crew Neck",
"base_code": "AKN-008",
"sku": "AKN-008",
"barcode": null,
"attributes": {
"hallo": "Voorbeeld",
"integration_kol_boyu": "kısa"
},
"attributes_kwargs": {
"hallo": {
"label": "Voorbeeld",
"value": "Voorbeeld",
"data_type": "valuelabel"
},
"integration_kol_boyu": {
"label": "kısa",
"value": "kısa",
"data_type": "dropdown"
}
},
"extra_attributes": {},
"remote_modified_date": "2022-09-07T11:49:23.777608Z"
},
"created_date": "2023-05-17T13:45:55.677011Z",
"modified_date": "2023-05-17T13:45:55.677031Z",
"omnitron_id": 70193,
"net_amount": "250.00",
"price": "250.00",
"price_currency": "try",
"retail_price": "1000.00",
"tax_rate": "8.00",
"tax_amount": null,
"discount_amount": "125.00",
"without_net_amount": null,
"installment_interest_amount": null,
"attributes": {},
"attributes_kwargs": {},
"image": null,
"price_list": {
"pk": 34,
"code": "pz_fiyat_list",
"name": "pz_fiyat_list",
"currency": "try",
"created_date": "2021-02-25T13:41:08.252536Z",
"is_auto_sync": false,
"modified_date": "2023-02-02T13:27:03.825072Z"
},
"stock_list": {
"pk": 34,
"code": null,
"name": "pz_stok_list",
"created_date": "2021-02-25T13:41:20.523128Z",
"is_auto_sync": false,
"modified_date": "2021-02-25T13:41:20.523152Z"
},
"extra_field": {
"price_extra_field": {},
"stock_extra_field": {}
},
"parent_omnitron_id": null,
"order": 6998
}
],
"customer": {
"email": "example@mail.com",
"first_name": "John",
"last_name": "Doe",
"phone_number": null,
"erp_code": null,
"pk": 3433,
"channel": 1
},
"shipping_address": {
"id": 5908,
"city": {
"pk": 7,
"name": "MILANO",
"country": 1,
"is_active": true,
"longitude": "32.85404900",
"latitude": "39.92076300"
},
"country": {
"pk": 1,
"name": "Italy",
"code": "it",
"is_active": true,
"longitude": "35.30207500",
"latitude": "39.05625600"
},
"township": {
"pk": 84,
"name": "20158 Milano MI",
"city": 7,
"is_active": true,
"longitude": "32.85342000",
"latitude": "39.92003000"
},
"district": {
"pk": 6245,
"name": "Lorem Ipsum",
"city": 7,
"township": 84,
"is_active": true,
"longitude": "32.87055100",
"latitude": "39.90130400"
},
"customer": {
"email": "example@mail.com",
"first_name": "John",
"last_name": "Doe",
"phone_number": null,
"erp_code": null,
"pk": 3433,
"channel": 1
},
"address_type": "customer",
"created_date": "2023-05-17T13:37:44.752820Z",
"modified_date": "2023-05-17T13:45:55.646535Z",
"omnitron_id": 10033,
"mapping": null,
"title": "dolor sit amet",
"is_active": true,
"line": "Viale Edoardo Jenner",
"postcode": "06290",
"notes": null,
"email": "example@mail.com",
"phone_number": "+90 555XXX0000",
"first_name": "John",
"last_name": "Doe",
"company_name": "",
"tax_office": "",
"tax_no": "",
"e_bill_taxpayer": false
},
"billing_address": {
"id": 5908,
"city": {
"pk": 7,
"name": "MILANO",
"country": 1,
"is_active": true,
"longitude": "32.85404900",
"latitude": "39.92076300"
},
"country": {
"pk": 1,
"name": "Italy",
"code": "it",
"is_active": true,
"longitude": "35.30207500",
"latitude": "39.05625600"
},
"township": {
"pk": 84,
"name": "20158 Milano MI",
"city": 7,
"is_active": true,
"longitude": "32.85342000",
"latitude": "39.92003000"
},
"district": {
"pk": 6245,
"name": "Lorem Ipsum",
"city": 7,
"township": 84,
"is_active": true,
"longitude": "32.87055100",
"latitude": "39.90130400"
},
"customer": {
"email": "example@mail.com",
"first_name": "John",
"last_name": "Doe",
"phone_number": null,
"erp_code": null,
"pk": 3433,
"channel": 1
},
"address_type": "customer",
"created_date": "2023-05-17T13:37:44.752820Z",
"modified_date": "2023-05-17T13:45:55.646535Z",
"omnitron_id": 10033,
"mapping": null,
"title": "dolor sit amet",
"is_active": true,
"line": "Viale Edoardo Jenner",
"postcode": "06290",
"notes": null,
"email": "example@mail.com",
"phone_number": "+90 555XXX0000",
"first_name": "John",
"last_name": "Doe",
"company_name": "",
"tax_office": "",
"tax_no": "",
"e_bill_taxpayer": false
},
"channel": {
"id": 1,
"channel_type": "web",
"created_date": "2021-07-06T09:49:30.220001Z",
"modified_date": "2023-02-16T15:16:54.433413Z",
"omnitron_id": 1,
"name": "PZ Shop",
"configuration": {
"server": "{domain_url}/api/v1",
"password": "c44a3qSzp56TRwEu",
"username": "omnitron",
"sales_url": "{domain_url}/",
"auth_token": "e8f9971734a0878e4359e9e57d3af3a4172d6e28",
"feature_flags": {},
"cancel_mail_subject": "{}",
"cancel_mail_template_url": "{}",
"localized_cancel_mail_subject": {},
"direct_cancel_mail_template_url": "{}"
},
"is_active": true
},
"payment_type": "credit_card",
"retail_store": null,
"delivery_range": null,
"client_type": "default",
"delivery_type": "standard",
"created_date": "2023-05-17T13:45:55.657199Z",
"modified_date": "2023-05-17T13:45:55.657222Z",
"omnitron_id": 63461,
"number": "2291090711512921",
"date_placed": "2023-05-17T13:45:20.568681Z",
"tracking_number": null,
"has_gift_box": false,
"gift_box_note": null,
"notes": null,
"segment": null,
"cargo_company": 34
},
{
"id": 6997,
"state": {
"id": 6,
"created_date": "2021-06-30T14:43:26.601899Z",
"modified_date": "2022-10-14T10:39:33.629710Z",
"translations": {
"en-us": {
"name": "Approved"
},
"tr-tr": {
"name": "Onaylanmış"
}
},
"name": "Approved",
"config": {},
"enum_class": "OrderStatus",
"enum_value": "400",
"content_type": 2
},
"commands": [],
"orderitem_set": [
{
"id": 6898,
"state": {
"id": 27,
"created_date": "2021-06-30T14:43:26.792596Z",
"modified_date": "2022-10-14T10:39:33.571042Z",
"translations": {
"en-us": {
"name": "Inactive"
},
"tr-tr": {
"name": "Aktif Olmayan"
}
},
"name": "Inactive",
"config": {},
"enum_class": "OrderStatus",
"enum_value": "425",
"content_type": 3
},
"product": {
"id": 365,
"productimage_set": [
{
"order": 0,
"id": 465,
"url": "{cdn_url}/products/2022/09/07/8362/38f3cfef-d582-489e-bcc2-324cd0455c72.jpg",
"product": 365
}
],
"created_date": "2022-11-10T06:57:37.198392Z",
"modified_date": "2022-11-10T06:57:37.198402Z",
"omnitron_id": 8362,
"name": "Ultimate Organic Cotton T Shirt With Crew Neck",
"base_code": "AKN-008",
"sku": "AKN-008",
"barcode": null,
"attributes": {
"hallo": "Voorbeeld",
"integration_kol_boyu": "kısa"
},
"attributes_kwargs": {
"hallo": {
"label": "Voorbeeld",
"value": "Voorbeeld",
"data_type": "valuelabel"
},
"integration_kol_boyu": {
"label": "kısa",
"value": "kısa",
"data_type": "dropdown"
}
},
"extra_attributes": {},
"remote_modified_date": "2022-09-07T11:49:23.777608Z"
},
"created_date": "2023-05-17T13:37:45.074792Z",
"modified_date": "2023-05-17T13:37:45.074813Z",
"omnitron_id": 70192,
"net_amount": "250.00",
"price": "250.00",
"price_currency": "try",
"retail_price": "1000.00",
"tax_rate": "8.00",
"tax_amount": null,
"discount_amount": "125.00",
"without_net_amount": null,
"installment_interest_amount": null,
"attributes": {},
"attributes_kwargs": {},
"image": null,
"price_list": {
"pk": 34,
"code": "pz_fiyat_list",
"name": "pz_fiyat_list",
"currency": "try",
"created_date": "2021-02-25T13:41:08.252536Z",
"is_auto_sync": false,
"modified_date": "2023-02-02T13:27:03.825072Z"
},
"stock_list": {
"pk": 34,
"code": null,
"name": "pz_stok_list",
"created_date": "2021-02-25T13:41:20.523128Z",
"is_auto_sync": false,
"modified_date": "2021-02-25T13:41:20.523152Z"
},
"extra_field": {
"price_extra_field": {},
"stock_extra_field": {}
},
"parent_omnitron_id": null,
"order": 6997
}
],
"customer": {
"email": "example@mail.com",
"first_name": "John",
"last_name": "Doe",
"phone_number": null,
"erp_code": null,
"pk": 3433,
"channel": 1
},
"shipping_address": {
"id": 5908,
"city": {
"pk": 7,
"name": "MILANO",
"country": 1,
"is_active": true,
"longitude": "32.85404900",
"latitude": "39.92076300"
},
"country": {
"pk": 1,
"name": "Italy",
"code": "it",
"is_active": true,
"longitude": "35.30207500",
"latitude": "39.05625600"
},
"township": {
"pk": 84,
"name": "20158 Milano MI",
"city": 7,
"is_active": true,
"longitude": "32.85342000",
"latitude": "39.92003000"
},
"district": {
"pk": 6245,
"name": "Lorem Ipsum",
"city": 7,
"township": 84,
"is_active": true,
"longitude": "32.87055100",
"latitude": "39.90130400"
},
"customer": {
"email": "example@mail.com",
"first_name": "John",
"last_name": "Doe",
"phone_number": null,
"erp_code": null,
"pk": 3433,
"channel": 1
},
"address_type": "customer",
"created_date": "2023-05-17T13:37:44.752820Z",
"modified_date": "2023-05-17T13:45:55.646535Z",
"omnitron_id": 10033,
"mapping": null,
"title": "dolor sit amet",
"is_active": true,
"line": "Viale Edoardo Jenner",
"postcode": "06290",
"notes": null,
"email": "example@mail.com",
"phone_number": "+90 555XXX0000",
"first_name": "John",
"last_name": "Doe",
"company_name": "",
"tax_office": "",
"tax_no": "",
"e_bill_taxpayer": false
},
"billing_address": {
"id": 5908,
"city": {
"pk": 7,
"name": "MILANO",
"country": 1,
"is_active": true,
"longitude": "32.85404900",
"latitude": "39.92076300"
},
"country": {
"pk": 1,
"name": "Italy",
"code": "it",
"is_active": true,
"longitude": "35.30207500",
"latitude": "39.05625600"
},
"township": {
"pk": 84,
"name": "20158 Milano MI",
"city": 7,
"is_active": true,
"longitude": "32.85342000",
"latitude": "39.92003000"
},
"district": {
"pk": 6245,
"name": "Lorem Ipsum",
"city": 7,
"township": 84,
"is_active": true,
"longitude": "32.87055100",
"latitude": "39.90130400"
},
"customer": {
"email": "example@mail.com",
"first_name": "John",
"last_name": "Doe",
"phone_number": null,
"erp_code": null,
"pk": 3433,
"channel": 1
},
"address_type": "customer",
"created_date": "2023-05-17T13:37:44.752820Z",
"modified_date": "2023-05-17T13:45:55.646535Z",
"omnitron_id": 10033,
"mapping": null,
"title": "dolor sit amet",
"is_active": true,
"line": "Viale Edoardo Jenner",
"postcode": "06290",
"notes": null,
"email": "example@mail.com",
"phone_number": "+90 555XXX0000",
"first_name": "John",
"last_name": "Doe",
"company_name": "",
"tax_office": "",
"tax_no": "",
"e_bill_taxpayer": false
},
"channel": {
"id": 1,
"channel_type": "web",
"created_date": "2021-07-06T09:49:30.220001Z",
"modified_date": "2023-02-16T15:16:54.433413Z",
"omnitron_id": 1,
"name": "PZ Shop",
"configuration": {
"server": "{domain_url}/api/v1",
"password": "c44a3qSzp56TRwEu",
"username": "omnitron",
"sales_url": "{domain_url}/",
"auth_token": "e8f9971734a0878e4359e9e57d3af3a4172d6e28",
"feature_flags": {},
"cancel_mail_subject": "{}",
"cancel_mail_template_url": "{}",
"localized_cancel_mail_subject": {},
"direct_cancel_mail_template_url": "{}"
},
"is_active": true
},
"payment_type": "credit_card",
"retail_store": null,
"delivery_range": null,
"client_type": "default",
"delivery_type": "standard",
"created_date": "2023-05-17T13:37:44.851795Z",
"modified_date": "2023-05-17T13:37:44.851827Z",
"omnitron_id": 63460,
"number": "2291086068212691",
"date_placed": "2023-05-17T13:37:37.930719Z",
"tracking_number": null,
"has_gift_box": false,
"gift_box_note": null,
"notes": null,
"segment": null,
"cargo_company": 34
}
]
}

Response Description

This API provides a comprehensive list of orders, including their states, shipping and billing addresses, order items, available commands, channels, and customer details.

Response Status Codes

  • 200 OK: The request was successful and the requested resource is returned in the response.
  • 401 Unauthorized: The requested user is not authorized to access the requested resource.
  • 403 Forbidden: The server understands the request, but the client is not authorized to access the requested resource.
  • 429 Too Many Requests: Made too many requests in a given amount of time and the server is rate limiting the request.
  • 500 Internal Server Error: An unexpected error occurred on the server.

GET Order List - Short

This method is used to get a less detailed list of orders.

In comparison to the "Order List" method, several fields may be omitted, and instead of providing the detailed orderitem_set, the response includes an attribute called order_item_count for each order.

Path: /api/v1/oms/orders/short/

Request

  • Headers:
  • Authorization: Token
  • Body Parameters: None
  • Request Body: None

Response 200 OK

{
"count": 722,
"next": "{domain_url}/api/v1/oms/orders/short/?limit=2&page=2",
"previous": null,
"results": [
{
"id": 6998,
"number": "2291090711512921",
"order_item_count": 1,
"channel": {
"id": 1,
"name": "PZ Shop"
},
"customer": {
"id": 3433,
"first_name": "John",
"last_name": "Doe",
"phone_number": null
},
"has_retail_store": false,
"delivery_type": "standard",
"payment_type": "credit_card",
"date_placed": "2023-05-17T13:45:20.568681Z"
},
{
"id": 6997,
"number": "2291086068212691",
"order_item_count": 1,
"channel": {
"id": 1,
"name": "PZ Shop"
},
"customer": {
"id": 3433,
"first_name": "John",
"last_name": "Doe",
"phone_number": null
},
"has_retail_store": false,
"delivery_type": "standard",
"payment_type": "credit_card",
"date_placed": "2023-05-17T13:37:37.930719Z"
}
]
}

Response Description

The API response for the orders list page in OMS is optimized to include only the necessary fields. Instead of recursively providing detailed information for all related objects, the response contains keys or references to these objects.

Response Status Codes

  • 200 OK: The request was successful and the requested resource is returned in the response.
  • 401 Unauthorized: The requested user is not authorized to access the requested resource.
  • 403 Forbidden: The server understands the request, but the client is not authorized to access the requested resource.
  • 429 Too Many Requests: Made too many requests in a given amount of time and the server is rate limiting the request.
  • 500 Internal Server Error: An unexpected error occurred on the server.

GET Order List - Simple

This method is used to get a less detailed list of orders.

Path: /api/v1/oms/orders/list-simple/

Request

  • Headers:
  • Authorization: Token
  • Body Parameters: None
  • Request Body: None

Response 200 OK

{
"count": 723,
"next": "{domain_url}/api/v1/oms/orders/list-simple/?limit=2&page=2",
"previous": null,
"results": [
{
"id": 7030,
"state": {
"id": 6,
"created_date": "2021-06-30T14:43:26.601899Z",
"modified_date": "2022-10-14T10:39:33.629710Z",
"translations": {
"en-us": {
"name": "Approved"
},
"tr-tr": {
"name": "Onaylanmış"
}
},
"name": "Approved",
"config": {},
"enum_class": "OrderStatus",
"enum_value": "400",
"content_type": 2
},
"commands": [],
"payment_type": "credit_card",
"delivery_range": null,
"client_type": "default",
"delivery_type": "standard",
"created_date": "2023-05-23T14:00:47.184889Z",
"modified_date": "2023-05-23T14:00:47.184926Z",
"omnitron_id": 63526,
"number": "2296283876512638",
"date_placed": "2023-05-23T14:00:32.299954Z",
"tracking_number": null,
"has_gift_box": false,
"gift_box_note": null,
"notes": null,
"segment": null,
"channel": 1,
"customer": 3466,
"shipping_address": 5941,
"billing_address": 5941,
"cargo_company": 1,
"retail_store": null
},
{
"id": 6998,
"state": {
"id": 6,
"created_date": "2021-06-30T14:43:26.601899Z",
"modified_date": "2022-10-14T10:39:33.629710Z",
"translations": {
"en-us": {
"name": "Approved"
},
"tr-tr": {
"name": "Onaylanmış"
}
},
"name": "Approved",
"config": {},
"enum_class": "OrderStatus",
"enum_value": "400",
"content_type": 2
},
"commands": [],
"payment_type": "credit_card",
"delivery_range": null,
"client_type": "default",
"delivery_type": "standard",
"created_date": "2023-05-17T13:45:55.657199Z",
"modified_date": "2023-05-17T13:45:55.657222Z",
"omnitron_id": 63461,
"number": "2291090711512921",
"date_placed": "2023-05-17T13:45:20.568681Z",
"tracking_number": null,
"has_gift_box": false,
"gift_box_note": null,
"notes": null,
"segment": null,
"channel": 1,
"customer": 3433,
"shipping_address": 5908,
"billing_address": 5908,
"cargo_company": 34,
"retail_store": null
}
]
}

Response Description

This endpoint was specifically designed for the BI tool. Consequently, it includes essential data such as created_date and modified_date fields, but it does not include many other fields commonly found in other endpoints.

Response Status Codes

  • 200 OK: The request was successful and the requested resource is returned in the response.
  • 401 Unauthorized: The requested user is not authorized to access the requested resource.
  • 403 Forbidden: The server understands the request, but the client is not authorized to access the requested resource.
  • 429 Too Many Requests: Made too many requests in a given amount of time and the server is rate limiting the request.
  • 500 Internal Server Error: An unexpected error occurred on the server.

GET Order Detail

This method is used to get a detailed view of a single order based on its ID of the pk.

Path: /api/v1/oms/orders/pk/

Request

  • Headers:
  • Authorization: Token
  • Body Parameters: None
  • Request Body: None

Response 200 OK

{
"id": 7030,
"state": {
"id": 6,
"created_date": "2021-06-30T14:43:26.601899Z",
"modified_date": "2022-10-14T10:39:33.629710Z",
"translations": {
"en-us": {
"name": "Approved"
},
"tr-tr": {
"name": "Onaylanmış"
}
},
"name": "Approved",
"config": {},
"enum_class": "OrderStatus",
"enum_value": "400",
"content_type": 2
},
"commands": [],
"orderitem_set": [
{
"id": 6931,
"state": {
"id": 23,
"created_date": "2021-06-30T14:43:26.758043Z",
"modified_date": "2022-10-14T10:39:33.582140Z",
"translations": {
"en-us": {
"name": "Approved"
},
"tr-tr": {
"name": "Onaylanmış"
}
},
"name": "Approved",
"config": {},
"enum_class": "OrderStatus",
"enum_value": "400",
"content_type": 3
},
"product": {
"id": 232,
"productimage_set": [
{
"order": 1,
"id": 332,
"url": "{cdn_url}/products/2021/03/17/10/748c76d9-f848-475f-9f3d-d278bed884f0.jpg",
"product": 232
}
],
"created_date": "2022-06-15T14:57:40.773252Z",
"modified_date": "2022-11-22T12:02:11.999302Z",
"omnitron_id": 10,
"name": "PzUrun10",
"base_code": "10",
"sku": "10",
"barcode": null,
"attributes": {
"renk": "BEYAZ",
"beden": "S",
"hallo": "Voorbeeld",
"multiple": "multickle",
"ColorDesc": "123",
"integration_size": "L",
"integration_color": "SİYAH",
"integration_gram1": "One size",
"integration_SizeId": "L",
"integration_ColorId": "BEYAZ",
"integration_kol_boyu": "kısa"
},
"attributes_kwargs": {
"renk": {
"label": "BEYAZ",
"value": "BEYAZ",
"data_type": "dropdown"
},
"beden": {
"label": "Small",
"value": "S",
"data_type": "dropdown"
},
"hallo": {
"label": "Voorbeeld",
"value": "Voorbeeld",
"data_type": "valuelabel"
},
"integration_size": {
"label": "L",
"value": "L"
},
"integration_color": {
"label": "BLACK",
"value": "SİYAH",
"data_type": "dropdown"
},
"integration_gram1": {
"label": "One Size",
"value": "One size",
"data_type": "dropdown"
},
"integration_SizeId": {
"label": "L",
"value": "L",
"data_type": "dropdown"
},
"integration_ColorId": {
"label": "White",
"value": "BEYAZ",
"data_type": "dropdown"
},
"integration_kol_boyu": {
"label": "kısa",
"value": "kısa",
"data_type": "dropdown"
}
},
"extra_attributes": {},
"remote_modified_date": "2022-09-29T08:43:44.752426Z"
},
"created_date": "2023-05-23T14:00:47.260717Z",
"modified_date": "2023-05-23T14:00:47.260740Z",
"omnitron_id": 70258,
"net_amount": "699.99",
"price": "699.99",
"price_currency": "try",
"retail_price": "1000.00",
"tax_rate": "8.00",
"tax_amount": null,
"discount_amount": "0.00",
"without_net_amount": null,
"installment_interest_amount": null,
"attributes": {},
"attributes_kwargs": {},
"image": null,
"price_list": {
"pk": 34,
"code": "pz_fiyat_list",
"name": "pz_fiyat_list",
"currency": "try",
"created_date": "2021-02-25T13:41:08.252536Z",
"is_auto_sync": false,
"modified_date": "2023-02-02T13:27:03.825072Z"
},
"stock_list": {
"pk": 34,
"code": null,
"name": "pz_stok_list",
"created_date": "2021-02-25T13:41:20.523128Z",
"is_auto_sync": false,
"modified_date": "2021-02-25T13:41:20.523152Z"
},
"extra_field": {
"price_extra_field": {},
"stock_extra_field": {}
},
"parent_omnitron_id": null,
"order": 7030
}
],
"customer": {
"email": "example@mail.com",
"first_name": "John",
"last_name": "Doe",
"phone_number": "+90 555XXX0000",
"erp_code": null,
"pk": 3466,
"channel": 1
},
"shipping_address": {
"id": 5941,
"city": {
"pk": 1,
"name": "MILANO",
"country": 1,
"is_active": true,
"longitude": "35.31945700",
"latitude": "37.00294000"
},
"country": {
"pk": 1,
"name": "Italy",
"code": "it",
"is_active": true,
"longitude": "35.30207500",
"latitude": "39.05625600"
},
"township": {
"pk": 15,
"name": "20158 Milano MI",
"city": 1,
"is_active": true,
"longitude": "35.39515800",
"latitude": "37.54682700"
},
"district": {
"pk": 828,
"name": "Lorem Ipsum",
"city": 1,
"township": 15,
"is_active": true,
"longitude": "35.44861700",
"latitude": "37.45437300"
},
"customer": {
"email": "example@mail.com",
"first_name": "John",
"last_name": "Doe",
"phone_number": "+90 555XXX0000",
"erp_code": null,
"pk": 3466,
"channel": 1
},
"address_type": "customer",
"created_date": "2023-05-23T14:00:47.109395Z",
"modified_date": "2023-05-23T14:00:47.161725Z",
"omnitron_id": 10066,
"mapping": null,
"title": "dolor sit amet",
"is_active": true,
"line": "Viale Edoardo Jenner",
"postcode": "34444",
"notes": null,
"email": "example@mail.com",
"phone_number": "+90 555XXX0000",
"first_name": "John",
"last_name": "Doe",
"company_name": "",
"tax_office": "",
"tax_no": "",
"e_bill_taxpayer": false
},
"billing_address": {
"id": 5941,
"city": {
"pk": 1,
"name": "MILANO",
"country": 1,
"is_active": true,
"longitude": "35.31945700",
"latitude": "37.00294000"
},
"country": {
"pk": 1,
"name": "Italy",
"code": "it",
"is_active": true,
"longitude": "35.30207500",
"latitude": "39.05625600"
},
"township": {
"pk": 15,
"name": "20158 Milano MI",
"city": 1,
"is_active": true,
"longitude": "35.39515800",
"latitude": "37.54682700"
},
"district": {
"pk": 828,
"name": "Lorem Ipsum",
"city": 1,
"township": 15,
"is_active": true,
"longitude": "35.44861700",
"latitude": "37.45437300"
},
"customer": {
"email": "example@mail.com",
"first_name": "John",
"last_name": "Doe",
"phone_number": "+90 555XXX0000",
"erp_code": null,
"pk": 3466,
"channel": 1
},
"address_type": "customer",
"created_date": "2023-05-23T14:00:47.109395Z",
"modified_date": "2023-05-23T14:00:47.161725Z",
"omnitron_id": 10066,
"mapping": null,
"title": "dolor sit amet",
"is_active": true,
"line": "Viale Edoardo Jenner",
"postcode": "34444",
"notes": null,
"email": "example@mail.com",
"phone_number": "+90 555XXX0000",
"first_name": "John",
"last_name": "Doe",
"company_name": "",
"tax_office": "",
"tax_no": "",
"e_bill_taxpayer": false
},
"channel": {
"id": 1,
"channel_type": "web",
"created_date": "2021-07-06T09:49:30.220001Z",
"modified_date": "2023-02-16T15:16:54.433413Z",
"omnitron_id": 1,
"name": "PZ Shop",
"configuration": {
"server": "{domain_url}/api/v1",
"password": "c44a3qSzp56TRwEu",
"username": "omnitron",
"sales_url": "{domain_url}/",
"auth_token": "e8f9971734a0878e4359e9e57d3af3a4172d6e28",
"feature_flags": {},
"cancel_mail_subject": "{}",
"cancel_mail_template_url": "{}",
"localized_cancel_mail_subject": {},
"direct_cancel_mail_template_url": "{}"
},
"is_active": true
},
"payment_type": "credit_card",
"retail_store": null,
"delivery_range": null,
"client_type": "default",
"delivery_type": "standard",
"created_date": "2023-05-23T14:00:47.184889Z",
"modified_date": "2023-05-23T14:00:47.184926Z",
"omnitron_id": 63526,
"number": "2296283876512638",
"date_placed": "2023-05-23T14:00:32.299954Z",
"tracking_number": null,
"has_gift_box": false,
"gift_box_note": null,
"notes": null,
"segment": null,
"cargo_company": 1
}

Response Description

The API response includes comprehensive information about the order, including its associated channel, customer, order items, current state, available commands, shipping and billing addresses.

Response Status Codes

  • 200 OK: The request was successful and the requested resource is returned in the response.
  • 401 Unauthorized: The requested user is not authorized to access the requested resource.
  • 403 Forbidden: The server understands the request, but the client is not authorized to access the requested resource.
  • 429 Too Many Requests: Made too many requests in a given amount of time and the server is rate limiting the request.
  • 500 Internal Server Error: An unexpected error occurred on the server.

GET Order Detail - Short

This method is used to get a less detailed view of a single order based on its ID of the pk. In comparison to the "Order Detail" method, the response for this request provides fewer details about the order.

Path: /api/v1/oms/orders/pk/short/

Request

  • Headers:
  • Authorization: Token
  • Body Parameters: None
  • Request Body: None

Response 200 OK

{
"id": 7030,
"omnitron_id": 63526,
"number": "2296283876512638",
"date_placed": "2023-05-23T14:00:32.299954Z",
"payment_type": "credit_card",
"customer": {
"id": 3466,
"first_name": "John",
"last_name": "Doe",
"phone_number": "+90 555XXX0000"
},
"shipping_address": {
"id": 5941,
"title": "dolor sit amet",
"line": "Viale Edoardo Jenner",
"city": {
"id": 1,
"name": "MILANO"
},
"township": {
"id": 15,
"name": "20158 Milano MI"
}
},
"billing_address": {
"id": 5941,
"title": "Test",
"line": "Viale Edoardo Jenner",
"city": {
"id": 1,
"name": "MILANO"
},
"township": {
"id": 15,
"name": "20158 Milano MI"
}
},
"channel": {
"id": 1,
"name": "PZ Shop"
},
"retail_store": null
}

Response Description

The API response includes only the fields that are required for the OMS Order Detail page.

Response Status Codes

  • 200 OK: The request was successful and the requested resource is returned in the response.
  • 401 Unauthorized: The requested user is not authorized to access the requested resource.
  • 403 Forbidden: The server understands the request, but the client is not authorized to access the requested resource.
  • 429 Too Many Requests: Made too many requests in a given amount of time and the server is rate limiting the request.
  • 500 Internal Server Error: An unexpected error occurred on the server.

GET Order Webhook Event List

This method is used to get a detailed list of webhook events associated with a single order based on its ID of the pk.

Path: /api/v1/oms/orders/pk/webhook_events/

Request

  • Headers:
  • Authorization: Token
  • Body Parameters: None
  • Request Body: None

Response 200 OK


{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": 2344,
"webhook": {
"id": 398,
"retry_countdown_config": {
"choice": "fixed",
"kwargs": {
"seconds": 60
}
},
"created_date": "2021-11-04T14:36:48.439156Z",
"modified_date": "2023-03-30T11:49:41.529919Z",
"target_url": "{domain_url}/Https_GAPEcommOMSServiceTest/api/packages",
"is_active": false,
"secret_key": null,
"event_type": "order.fulfillment.multiple_packages",
"callback": null,
"additional_headers": {},
"config": {}
},
"created_date": "2021-11-04T14:42:03.372070Z",
"modified_date": "2022-12-26T08:21:04.841964Z",
"uuid": "66ee60b1-1d18-49c4-8467-38e2622e91bf",
"request_payload": {
"event": {
"type": "order.fulfillment.multiple_packages",
"uuid": "66ee60b11d1849c4846738e2622e91bf"
},
"payload": {
"id": 5446,
"notes": null,
"state": {
"id": 6,
"name": "Approved",
"config": {},
"enum_class": "OrderStatus",
"enum_value": "400",
"content_type": 19,
"created_date": "2019-07-04T15:14:51.439830Z",
"translations": null,
"modified_date": "2019-07-04T15:14:51.439852Z"
},
"number": "1808148714512655",
"channel": {
"id": 1,
"name": "E-Commerce",
"is_active": true,
"omnitron_id": 1,
"channel_type": "web",
"created_date": "2019-07-04T15:14:51.118810Z",
"configuration": {},
"modified_date": "2019-07-04T15:14:51.118833Z"
},
"segment": null,
"commands": [],
"customer": {
"pk": 1339,
"email": "example@mail.com",
"channel": 1,
"erp_code": null,
"last_name": "Doe",
"first_name": "John",
"phone_number": "+90 555XXX0000"
},
"packages": [
{
"id": 161742,
"city": "MILANO",
"state": {
"id": 33,
"name": "Waiting",
"config": {},
"enum_class": "PackageStatus",
"enum_value": "100",
"content_type": 25,
"created_date": "2019-07-04T15:14:52.354690Z",
"translations": null,
"modified_date": "2021-10-05T14:47:06.729905Z"
},
"number": "1808148714512655P1",
"commands": [
{
"id": 1049,
"label": "hazırla",
"command": "PKG_STATE_TRANSITION",
"source_state": 33,
"translations": null,
"ui_visibility": [
"oms_web"
],
"destination_state": 34,
"is_packageitem_parameter_required": false
},
{
"id": 125,
"label": "Ürün Bulunamadı / Hatalı Ürün",
"command": "DETECTED_OUT_OF_STOCK_ITEM",
"source_state": 33,
"translations": null,
"ui_visibility": [
"oms_web",
"instore",
"third_party"
],
"destination_state": 46,
"is_packageitem_parameter_required": true
},
{
"id": 786,
"label": "kargolamadan paketle",
"command": "COMPLETE_PACKAGING_WITHOUT_SHIPMENT",
"source_state": 33,
"translations": null,
"ui_visibility": [
"oms_web",
"instore",
"third_party"
],
"destination_state": 37,
"is_packageitem_parameter_required": false
},
{
"id": 2,
"label": "Paketle",
"command": "COMPLETE_PACKAGING",
"source_state": 33,
"translations": null,
"ui_visibility": [
"oms_web",
"instore",
"third_party"
],
"destination_state": 37,
"is_packageitem_parameter_required": false
},
{
"id": 917,
"label": "Paketle (Marketplace)",
"command": "CHANNEL_BASED_COMPLETE_PACKAGING",
"source_state": 33,
"translations": null,
"ui_visibility": [
"oms_web",
"third_party",
"instore"
],
"destination_state": 37,
"is_packageitem_parameter_required": false
}
],
"order_id": 5446,
"shipment": null,
"remote_id": null,
"date_placed": "2021-11-04T14:41:34.494898Z",
"order_notes": null,
"channel_name": "E-Commerce",
"created_date": "2021-11-04T14:41:52.619994Z",
"order_number": "1808148714512655",
"payment_type": "credit_card",
"modified_date": "2021-11-04T14:41:52.630000Z",
"shipment_date": null,
"delivery_range": null,
"invoice_number": null,
"shipping_label": null,
"stock_location": {
"id": 210,
"conf": {},
"name": "Akinon A1 Mağaza",
"email": "",
"engine": 209,
"address": {
"id": 375,
"city": {
"pk": 40,
"name": "MILANO",
"country": 1,
"latitude": "41.00823760",
"is_active": true,
"longitude": "28.97835890"
},
"line": "Viale Edoardo Jenner",
"notes": null,
"title": "dolor sit amet",
"country": {
"pk": 1,
"code": "it",
"name": "Italy",
"latitude": "38.96374500",
"is_active": true,
"longitude": "35.24332200"
},
"mapping": null,
"district": null,
"latitude": null,
"postcode": null,
"township": {
"pk": 470,
"city": 40,
"name": "20158 Milano MI",
"latitude": "41.07941330",
"is_active": true,
"longitude": "28.85385450"
},
"is_active": true,
"longitude": null
},
"category": null,
"erp_code": "aki100",
"priority": 10,
"is_active": true,
"fax_number": null,
"omnitron_id": 4,
"created_date": "2021-03-03T15:15:14.840086Z",
"daytime_phone": "5554443322",
"evening_phone": "5554443322",
"modified_date": "2021-09-14T09:27:33.571012Z",
"is_pickup_location": false,
"is_return_available": true,
"stock_location_type": "store",
"is_delivery_location": false,
"is_fulfillment_center": true,
"target_packing_interval": "5 00:00:00",
"use_as_shipper_location": false,
"target_transfer_interval": "3 00:00:00",
"is_fast_delivery_available": false
},
"packageitem_set": [
{
"id": 276606,
"state": {
"id": 47,
"name": "Waiting",
"config": {},
"enum_class": "PackageItemStatus",
"enum_value": "100",
"content_type": 26,
"created_date": "2019-07-04T15:14:52.508854Z",
"translations": null,
"modified_date": "2019-07-04T15:14:52.508875Z"
},
"package": 161742,
"commands": [],
"serial_no": null,
"order_item": {
"id": 4598,
"image": null,
"order": 5446,
"price": "100.00",
"state": {
"id": 22,
"name": "Approved",
"config": {},
"enum_class": "OrderStatus",
"enum_value": "400",
"content_type": 20,
"created_date": "2019-07-04T15:14:51.986693Z",
"translations": null,
"modified_date": "2019-07-04T15:14:51.986716Z"
},
"product": {
"id": 31,
"sku": "1185165001",
"name": "TEK DAL ÇİÇEK TURUNCU 57 CM (TR) - Test",
"barcode": null,
"base_code": "1185165",
"attributes": {
"renk": "RENKSİZ",
"beden": "Standart",
"ebat_en": "10.0",
"erp_Msb": "False",
"erp_Yil": "2017",
"cinsiyet": "Genel",
"ebat_boy": "57.0",
"erp_Beden": "000",
"erp_Sezon": "Devamlı",
"erp_EbatEn": "10.0",
"erp_Outlet": "False",
"erp_AnaRenk": "X",
"erp_EbatBoy": "57.0",
"ebat_agirlik": "0.0",
"erp_AsilRenk": "RENKSİZ",
"erp_Cinsiyet": "Genel",
"variant_renk": "RENKSİZ",
"erp_AnaMalTip": "0",
"erp_VaryantNo": "1185165-000",
"ebat_yukseklik": "0.0",
"erp_MalGrupAdi": "CONCEPT",
"erp_UretimYeri": "TÜRKİYE",
"erp_EbatAgirlik": "0.0",
"erp_MalDetayAdi": "DAL ÇİÇEK",
"erp_MalSinifAdi": "BİTKİ GRUBU",
"integration_Msb": "False",
"integration_Yil": "2017",
"erp_EbatYukseklik": "0.0",
"erp_MalAltGrupAdi": "DEKORATIF",
"extra_product_sku": "0101010101",
"integration_Beden": "000",
"integration_Sezon": "Devamlı",
"erp_MalAltSinifAdi": "ÇİÇEK GRUBU",
"integration_EbatEn": "10.0",
"integration_Outlet": "False",
"erp_AciklayiciBilgi": "<p> </p><p>En: 10</p><p>Boy: 57</p><p>Yükseklik: 0</p>",
"integration_AnaRenk": "X",
"integration_EbatBoy": "57.0",
"integration_AsilRenk": "RENKSİZ",
"integration_Cinsiyet": "Genel",
"integration_AnaMalTip": "0",
"integration_VaryantNo": "1185165-000",
"integration_MalGrupAdi": "CONCEPT",
"integration_UretimYeri": "TÜRKİYE",
"integration_EbatAgirlik": "0.0",
"integration_MalDetayAdi": "DAL ÇİÇEK",
"integration_MalSinifAdi": "BİTKİ GRUBU",
"integration_EbatYukseklik": "0.0",
"integration_MalAltGrupAdi": "DEKORATIF",
"integration_MalAltSinifAdi": "ÇİÇEK GRUBU",
"integration_AciklayiciBilgi": "<p> </p><p>En: 10</p><p>Boy: 57</p><p>Yükseklik: 0</p>",
"integration_erenp_erenbarkod": "integration_erenp_erenbarkod"
},
"omnitron_id": 56,
"created_date": "2019-07-10T08:11:57.123423Z",
"modified_date": "2021-08-26T14:52:50.994844Z",
"extra_attributes": {},
"productimage_set": [
{
"id": 1662,
"url": "{cdn_url}/products/2021/06/10/56/a9016559-f34a-4a5e-a1b6-d5fc63669634.jpg",
"order": 0,
"product": 31
},
{
"id": 1086,
"url": "{cdn_url}/products/2017/03/24/56/f9636424-0534-43e6-8110-671ac9ef4b3e.jpg",
"order": 1,
"product": 31
},
{
"id": 1087,
"url": "{cdn_url}/products/2017/03/24/56/c7f4a5f8-07f8-4da1-b7e8-ad2e79b5197d.jpg",
"order": 2,
"product": 31
}
],
"attributes_kwargs": {
"renk": {
"label": "RENKSİZ",
"value": "RENKSİZ",
"data_type": "dropdown"
},
"beden": {
"label": "Standart",
"value": "Standart",
"data_type": "dropdown"
},
"erp_Msb": {
"label": "False",
"value": "False",
"data_type": "dropdown"
},
"cinsiyet": {
"label": "Genel",
"value": "Genel",
"data_type": "dropdown"
},
"erp_Beden": {
"label": "000",
"value": "000",
"data_type": "dropdown"
},
"erp_Outlet": {
"label": "False",
"value": "False",
"data_type": "dropdown"
},
"erp_AnaRenk": {
"label": "X",
"value": "X",
"data_type": "dropdown"
},
"erp_AsilRenk": {
"label": "RENKSİZ",
"value": "RENKSİZ",
"data_type": "dropdown"
},
"erp_Cinsiyet": {
"label": "Genel",
"value": "Genel",
"data_type": "dropdown"
},
"variant_renk": {
"label": "RENKSİZ",
"value": "RENKSİZ",
"data_type": "dropdown"
},
"erp_AnaMalTip": {
"label": "0",
"value": "0",
"data_type": "dropdown"
},
"erp_MalGrupAdi": {
"label": "CONCEPT",
"value": "CONCEPT",
"data_type": "dropdown"
},
"erp_UretimYeri": {
"label": "TÜRKİYE",
"value": "TÜRKİYE",
"data_type": "dropdown"
},
"erp_MalDetayAdi": {
"label": "DAL ÇİÇEK",
"value": "DAL ÇİÇEK",
"data_type": "dropdown"
},
"erp_MalSinifAdi": {
"label": "BİTKİ GRUBU",
"value": "BİTKİ GRUBU",
"data_type": "dropdown"
},
"erp_MalAltGrupAdi": {
"label": "DEKORATIF",
"value": "DEKORATIF",
"data_type": "dropdown"
},
"erp_MalAltSinifAdi": {
"label": "ÇİÇEK GRUBU",
"value": "ÇİÇEK GRUBU",
"data_type": "dropdown"
}
},
"remote_modified_date": "2021-07-11T01:09:03.482316Z"
},
"commands": [],
"tax_rate": "18.00",
"attributes": {},
"net_amount": "100.00",
"price_list": {
"pk": 1,
"code": null,
"name": "Demo Price List",
"created_date": "2019-05-22T14:59:02.904438Z",
"is_auto_sync": false,
"modified_date": "2019-05-22T14:59:02.904461Z"
},
"stock_list": {
"pk": 1,
"code": null,
"name": "Demo Stock List",
"created_date": "2019-05-22T14:59:20.055271Z",
"is_auto_sync": false,
"modified_date": "2019-05-22T14:59:20.055292Z"
},
"tax_amount": null,
"extra_field": {
"price_extra_field": {},
"stock_extra_field": {}
},
"omnitron_id": 395888,
"created_date": "2021-11-04T14:41:37.462970Z",
"retail_price": "200.00",
"modified_date": "2021-11-04T14:41:37.462993Z",
"price_currency": "try",
"discount_amount": "0.00",
"attributes_kwargs": {},
"parent_omnitron_id": null,
"without_net_amount": null,
"installment_interest_amount": null
},
"unit_weight": null,
"created_date": "2021-11-04T14:41:52.627366Z",
"denial_reason": null,
"modified_date": "2021-11-04T14:41:52.627390Z",
"transfer_order": null,
"selected_barcode": null,
"discrepancy_reason": null
}
],
"tracking_number": null,
"shipping_address": {
"id": 3359,
"city": {
"pk": 40,
"name": "MILANO",
"country": 1,
"latitude": "41.00823760",
"is_active": true,
"longitude": "28.97835890"
},
"line": "Viale Edoardo Jenner",
"email": "example@mail.com",
"notes": null,
"title": "dolor sit amet",
"tax_no": "",
"country": {
"pk": 1,
"code": "it",
"name": "Italy",
"latitude": "38.96374500",
"is_active": true,
"longitude": "35.24332200"
},
"mapping": null,
"customer": {
"pk": 1339,
"email": "example@mail.com",
"channel": 1,
"erp_code": null,
"last_name": "Doe",
"first_name": "John",
"phone_number": "+90 555XXX0000"
},
"district": {
"pk": 36202,
"city": 40,
"name": "Lorem Ipsum",
"latitude": null,
"township": 477,
"is_active": true,
"longitude": null
},
"postcode": "",
"township": {
"pk": 477,
"city": 40,
"name": "20158 Milano MI",
"latitude": "41.04220660",
"is_active": true,
"longitude": "29.00670370"
},
"is_active": true,
"last_name": "Doe",
"first_name": "John",
"tax_office": "",
"omnitron_id": 133851,
"address_type": "customer",
"company_name": "",
"created_date": "2021-07-09T06:01:08.030981Z",
"phone_number": "+90 555XXX0000",
"modified_date": "2021-11-04T14:41:37.428844Z",
"e_bill_taxpayer": false
},
"extra_information": {},
"order_has_gift_box": false,
"channel_omnitron_id": 1,
"order_gift_box_note": null,
"target_packing_date": "2021-11-09T14:41:34.494898Z",
"is_click_and_collect": false,
"order_retail_store_id": null
}
],
"client_type": "default",
"date_placed": "2021-11-04T14:41:34.494898Z",
"omnitron_id": 676047,
"created_date": "2021-11-04T14:41:37.442935Z",
"has_gift_box": false,
"payment_type": "credit_card",
"retail_store": null,
"cargo_company": 84,
"gift_box_note": null,
"modified_date": "2021-11-04T14:41:37.442958Z",
"orderitem_set": [
{
"id": 4598,
"image": null,
"order": 5446,
"price": "100.00",
"state": {
"id": 22,
"name": "Approved",
"config": {},
"enum_class": "OrderStatus",
"enum_value": "400",
"content_type": 20,
"created_date": "2019-07-04T15:14:51.986693Z",
"translations": null,
"modified_date": "2019-07-04T15:14:51.986716Z"
},
"product": {
"id": 31,
"sku": "1185165001",
"name": "TEK DAL ÇİÇEK TURUNCU 57 CM (TR) - Test",
"barcode": null,
"base_code": "1185165",
"attributes": {
"renk": "RENKSİZ",
"beden": "Standart",
"ebat_en": "10.0",
"erp_Msb": "False",
"erp_Yil": "2017",
"cinsiyet": "Genel",
"ebat_boy": "57.0",
"erp_Beden": "000",
"erp_Sezon": "Devamlı",
"erp_EbatEn": "10.0",
"erp_Outlet": "False",
"erp_AnaRenk": "X",
"erp_EbatBoy": "57.0",
"ebat_agirlik": "0.0",
"erp_AsilRenk": "RENKSİZ",
"erp_Cinsiyet": "Genel",
"variant_renk": "RENKSİZ",
"erp_AnaMalTip": "0",
"erp_VaryantNo": "1185165-000",
"ebat_yukseklik": "0.0",
"erp_MalGrupAdi": "CONCEPT",
"erp_UretimYeri": "TÜRKİYE",
"erp_EbatAgirlik": "0.0",
"erp_MalDetayAdi": "DAL ÇİÇEK",
"erp_MalSinifAdi": "BİTKİ GRUBU",
"integration_Msb": "False",
"integration_Yil": "2017",
"erp_EbatYukseklik": "0.0",
"erp_MalAltGrupAdi": "DEKORATIF",
"extra_product_sku": "0101010101",
"integration_Beden": "000",
"integration_Sezon": "Devamlı",
"erp_MalAltSinifAdi": "ÇİÇEK GRUBU",
"integration_EbatEn": "10.0",
"integration_Outlet": "False",
"erp_AciklayiciBilgi": "<p> </p><p>En: 10</p><p>Boy: 57</p><p>Yükseklik: 0</p>",
"integration_AnaRenk": "X",
"integration_EbatBoy": "57.0",
"integration_AsilRenk": "RENKSİZ",
"integration_Cinsiyet": "Genel",
"integration_AnaMalTip": "0",
"integration_VaryantNo": "1185165-000",
"integration_MalGrupAdi": "CONCEPT",
"integration_UretimYeri": "TÜRKİYE",
"integration_EbatAgirlik": "0.0",
"integration_MalDetayAdi": "DAL ÇİÇEK",
"integration_MalSinifAdi": "BİTKİ GRUBU",
"integration_EbatYukseklik": "0.0",
"integration_MalAltGrupAdi": "DEKORATIF",
"integration_MalAltSinifAdi": "ÇİÇEK GRUBU",
"integration_AciklayiciBilgi": "<p> </p><p>En: 10</p><p>Boy: 57</p><p>Yükseklik: 0</p>",
"integration_erenp_erenbarkod": "integration_erenp_erenbarkod"
},
"omnitron_id": 56,
"created_date": "2019-07-10T08:11:57.123423Z",
"modified_date": "2021-08-26T14:52:50.994844Z",
"extra_attributes": {},
"productimage_set": [
{
"id": 1662,
"url": "{cdn_url}/products/2021/06/10/56/a9016559-f34a-4a5e-a1b6-d5fc63669634.jpg",
"order": 0,
"product": 31
},
{
"id": 1086,
"url": "{cdn_url}/products/2017/03/24/56/f9636424-0534-43e6-8110-671ac9ef4b3e.jpg",
"order": 1,
"product": 31
},
{
"id": 1087,
"url": "{cdn_url}/products/2017/03/24/56/c7f4a5f8-07f8-4da1-b7e8-ad2e79b5197d.jpg",
"order": 2,
"product": 31
}
],
"attributes_kwargs": {
"renk": {
"label": "RENKSİZ",
"value": "RENKSİZ",
"data_type": "dropdown"
},
"beden": {
"label": "Standart",
"value": "Standart",
"data_type": "dropdown"
},
"erp_Msb": {
"label": "False",
"value": "False",
"data_type": "dropdown"
},
"cinsiyet": {
"label": "Genel",
"value": "Genel",
"data_type": "dropdown"
},
"erp_Beden": {
"label": "000",
"value": "000",
"data_type": "dropdown"
},
"erp_Outlet": {
"label": "False",
"value": "False",
"data_type": "dropdown"
},
"erp_AnaRenk": {
"label": "X",
"value": "X",
"data_type": "dropdown"
},
"erp_AsilRenk": {
"label": "RENKSİZ",
"value": "RENKSİZ",
"data_type": "dropdown"
},
"erp_Cinsiyet": {
"label": "Genel",
"value": "Genel",
"data_type": "dropdown"
},
"variant_renk": {
"label": "RENKSİZ",
"value": "RENKSİZ",
"data_type": "dropdown"
},
"erp_AnaMalTip": {
"label": "0",
"value": "0",
"data_type": "dropdown"
},
"erp_MalGrupAdi": {
"label": "CONCEPT",
"value": "CONCEPT",
"data_type": "dropdown"
},
"erp_UretimYeri": {
"label": "TÜRKİYE",
"value": "TÜRKİYE",
"data_type": "dropdown"
},
"erp_MalDetayAdi": {
"label": "DAL ÇİÇEK",
"value": "DAL ÇİÇEK",
"data_type": "dropdown"
},
"erp_MalSinifAdi": {
"label": "BİTKİ GRUBU",
"value": "BİTKİ GRUBU",
"data_type": "dropdown"
},
"erp_MalAltGrupAdi": {
"label": "DEKORATIF",
"value": "DEKORATIF",
"data_type": "dropdown"
},
"erp_MalAltSinifAdi": {
"label": "ÇİÇEK GRUBU",
"value": "ÇİÇEK GRUBU",
"data_type": "dropdown"
}
},
"remote_modified_date": "2021-07-11T01:09:03.482316Z"
},
"commands": [],
"tax_rate": "18.00",
"attributes": {},
"net_amount": "100.00",
"price_list": {
"pk": 1,
"code": null,
"name": "Demo Price List",
"created_date": "2019-05-22T14:59:02.904438Z",
"is_auto_sync": false,
"modified_date": "2019-05-22T14:59:02.904461Z"
},
"stock_list": {
"pk": 1,
"code": null,
"name": "Demo Stock List",
"created_date": "2019-05-22T14:59:20.055271Z",
"is_auto_sync": false,
"modified_date": "2019-05-22T14:59:20.055292Z"
},
"tax_amount": null,
"extra_field": {
"price_extra_field": {},
"stock_extra_field": {}
},
"omnitron_id": 395888,
"created_date": "2021-11-04T14:41:37.462970Z",
"retail_price": "200.00",
"modified_date": "2021-11-04T14:41:37.462993Z",
"price_currency": "try",
"discount_amount": "0.00",
"attributes_kwargs": {},
"parent_omnitron_id": null,
"without_net_amount": null,
"installment_interest_amount": null
},
{
"id": 4599,
"image": null,
"order": 5446,
"price": "100.00",
"state": {
"id": 110,
"name": "Inactive",
"config": {},
"enum_class": "OrderStatus",
"enum_value": "425",
"content_type": 20,
"created_date": "2020-04-14T20:31:34.193944Z",
"translations": null,
"modified_date": "2020-04-14T20:31:34.193970Z"
},
"product": {
"id": 6,
"sku": "1185185001",
"name": "YAPAY SUKULENT CAM TERARYUM 10 CM",
"barcode": null,
"base_code": "1185185",
"attributes": {
"renk": "RENKSİZ",
"beden": "Standart",
"ebat_en": "10.0",
"erp_Msb": "False",
"erp_Yil": "2017",
"cinsiyet": "Genel",
"ebat_boy": "10.0",
"erp_Beden": "000",
"erp_Sezon": "Devamlı",
"erp_EbatEn": "10.0",
"erp_Outlet": "False",
"erp_AnaRenk": "X",
"erp_EbatBoy": "10.0",
"ebat_agirlik": "0.0",
"erp_AsilRenk": "RENKSİZ",
"erp_Cinsiyet": "Genel",
"oms_excluded": "true",
"variant_renk": "RENKSİZ",
"erp_AnaMalTip": "0",
"erp_VaryantNo": "1185185-000",
"ebat_yukseklik": "1.0",
"erp_MalGrupAdi": "CONCEPT",
"erp_UretimYeri": "TÜRKİYE",
"erp_EbatAgirlik": "0.0",
"erp_MalDetayAdi": "SAKSILI ÇİÇEK",
"erp_MalSinifAdi": "BİTKİ GRUBU",
"integration_Msb": "False",
"integration_Yil": "2017",
"erp_EbatYukseklik": "1.0",
"erp_MalAltGrupAdi": "DEKORATIF",
"integration_Beden": "000",
"integration_Sezon": "Devamlı",
"erp_MalAltSinifAdi": "ÇİÇEK GRUBU",
"integration_EbatEn": "10.0",
"integration_Outlet": "False",
"erp_AciklayiciBilgi": "<p> </p><p>En: 10</p><p>Boy: 10</p><p>Yükseklik: 1</p><p>Menşei: TÜRKİYE</p>",
"integration_AnaRenk": "X",
"integration_EbatBoy": "10.0",
"integration_AsilRenk": "RENKSİZ",
"integration_Cinsiyet": "Genel",
"integration_AnaMalTip": "0",
"integration_VaryantNo": "1185185-000",
"integration_MalGrupAdi": "CONCEPT",
"integration_UretimYeri": "TÜRKİYE",
"integration_EbatAgirlik": "0.0",
"integration_MalDetayAdi": "SAKSILI ÇİÇEK",
"integration_MalSinifAdi": "BİTKİ GRUBU",
"integration_EbatYukseklik": "1.0",
"integration_MalAltGrupAdi": "DEKORATIF",
"integration_MalAltSinifAdi": "ÇİÇEK GRUBU",
"integration_AciklayiciBilgi": "<p> </p><p>En: 10</p><p>Boy: 10</p><p>Yükseklik: 1</p><p>Menşei: TÜRKİYE</p>"
},
"omnitron_id": 76,
"created_date": "2019-07-04T15:15:17.333869Z",
"modified_date": "2021-11-04T14:41:37.468028Z",
"extra_attributes": {},
"productimage_set": [
{
"id": 26,
"url": "{cdn_url}/products/2019/03/17/76/b80e0320-b8da-44be-8b4d-b6353e5f6a45.jpg",
"order": 11,
"product": 6
},
{
"id": 27,
"url": "{cdn_url}/products/2019/03/17/76/fc659aa8-214d-44b6-bd35-a69205dbd5dd.jpg",
"order": 42,
"product": 6
},
{
"id": 28,
"url": "{cdn_url}/products/2019/03/17/76/2a9452da-8696-4348-a7ad-a0e1457149f4.jpg",
"order": 63,
"product": 6
}
],
"attributes_kwargs": {
"renk": {
"label": "RENKSİZ",
"value": "RENKSİZ",
"data_type": "dropdown"
},
"beden": {
"label": "Standart",
"value": "Standart",
"data_type": "dropdown"
},
"erp_Msb": {
"label": "False",
"value": "False",
"data_type": "dropdown"
},
"cinsiyet": {
"label": "Genel",
"value": "Genel",
"data_type": "dropdown"
},
"erp_Beden": {
"label": "000",
"value": "000",
"data_type": "dropdown"
},
"erp_Outlet": {
"label": "False",
"value": "False",
"data_type": "dropdown"
},
"erp_AnaRenk": {
"label": "X",
"value": "X",
"data_type": "dropdown"
},
"erp_AsilRenk": {
"label": "RENKSİZ",
"value": "RENKSİZ",
"data_type": "dropdown"
},
"erp_Cinsiyet": {
"label": "Genel",
"value": "Genel",
"data_type": "dropdown"
},
"oms_excluded": {
"label": "true",
"value": "true",
"data_type": "dropdown"
},
"variant_renk": {
"label": "RENKSİZ",
"value": "RENKSİZ",
"data_type": "dropdown"
},
"erp_AnaMalTip": {
"label": "0",
"value": "0",
"data_type": "dropdown"
},
"erp_MalGrupAdi": {
"label": "CONCEPT",
"value": "CONCEPT",
"data_type": "dropdown"
},
"erp_UretimYeri": {
"label": "TÜRKİYE",
"value": "TÜRKİYE",
"data_type": "dropdown"
},
"erp_MalDetayAdi": {
"label": "SAKSILI ÇİÇEK",
"value": "SAKSILI ÇİÇEK",
"data_type": "dropdown"
},
"erp_MalSinifAdi": {
"label": "BİTKİ GRUBU",
"value": "BİTKİ GRUBU",
"data_type": "dropdown"
},
"erp_MalAltGrupAdi": {
"label": "DEKORATIF",
"value": "DEKORATIF",
"data_type": "dropdown"
},
"erp_MalAltSinifAdi": {
"label": "ÇİÇEK GRUBU",
"value": "ÇİÇEK GRUBU",
"data_type": "dropdown"
}
},
"remote_modified_date": "2021-06-13T22:07:09.401051Z"
},
"commands": [],
"tax_rate": "18.00",
"attributes": {},
"net_amount": "100.00",
"price_list": {
"pk": 1,
"code": null,
"name": "Demo Price List",
"created_date": "2019-05-22T14:59:02.904438Z",
"is_auto_sync": false,
"modified_date": "2019-05-22T14:59:02.904461Z"
},
"stock_list": {
"pk": 1,
"code": null,
"name": "Demo Stock List",
"created_date": "2019-05-22T14:59:20.055271Z",
"is_auto_sync": false,
"modified_date": "2019-05-22T14:59:20.055292Z"
},
"tax_amount": null,
"extra_field": {
"price_extra_field": {},
"stock_extra_field": {}
},
"omnitron_id": 395887,
"created_date": "2021-11-04T14:41:37.509889Z",
"retail_price": "200.00",
"modified_date": "2021-11-04T14:41:37.509913Z",
"price_currency": "try",
"discount_amount": "0.00",
"attributes_kwargs": {},
"parent_omnitron_id": null,
"without_net_amount": null,
"installment_interest_amount": null
}
],
"delivery_range": null,
"billing_address": {
"id": 3359,
"city": {
"pk": 40,
"name": "MILANO",
"country": 1,
"latitude": "41.00823760",
"is_active": true,
"longitude": "28.97835890"
},
"line": "Viale Edoardo Jenner",
"email": "example@mail.com",
"notes": null,
"title": "dolor sit amet",
"tax_no": "",
"country": {
"pk": 1,
"code": "it",
"name": "Italy",
"latitude": "38.96374500",
"is_active": true,
"longitude": "35.24332200"
},
"mapping": null,
"customer": {
"pk": 1339,
"email": "example@mail.com",
"channel": 1,
"erp_code": null,
"last_name": "Doe",
"first_name": "John",
"phone_number": "+90 555XXX0000"
},
"district": {
"pk": 36202,
"city": 40,
"name": "Lorem Ipsum",
"latitude": null,
"township": 477,
"is_active": true,
"longitude": null
},
"postcode": "",
"township": {
"pk": 477,
"city": 40,
"name": "20158 Milano MI",
"latitude": "41.04220660",
"is_active": true,
"longitude": "29.00670370"
},
"is_active": true,
"last_name": "Doe",
"first_name": "John",
"tax_office": "",
"omnitron_id": 133851,
"address_type": "customer",
"company_name": "",
"created_date": "2021-07-09T06:01:08.030981Z",
"phone_number": "+90 555XXX0000",
"modified_date": "2021-11-04T14:41:37.428844Z",
"e_bill_taxpayer": false
},
"tracking_number": null,
"transfer_orders": [],
"shipping_address": {
"id": 3359,
"city": {
"pk": 40,
"name": "MILANO",
"country": 1,
"latitude": "41.00823760",
"is_active": true,
"longitude": "28.97835890"
},
"line": "Viale Edoardo Jenner",
"email": "example@mail.com",
"notes": null,
"title": "dolor sit amet",
"tax_no": "",
"country": {
"pk": 1,
"code": "it",
"name": "Italy",
"latitude": "38.96374500",
"is_active": true,
"longitude": "35.24332200"
},
"mapping": null,
"customer": {
"pk": 1339,
"email": "example@mail.com",
"channel": 1,
"erp_code": null,
"last_name": "Doe",
"first_name": "John",
"phone_number": "+90 555XXX0000"
},
"district": {
"pk": 36202,
"city": 40,
"name": "Lorem Ipsum",
"latitude": null,
"township": 477,
"is_active": true,
"longitude": null
},
"postcode": "",
"township": {
"pk": 477,
"city": 40,
"name": "20158 Milano MI",
"latitude": "41.04220660",
"is_active": true,
"longitude": "29.00670370"
},
"is_active": true,
"last_name": "Doe",
"first_name": "John",
"tax_office": "",
"omnitron_id": 133851,
"address_type": "customer",
"company_name": "",
"created_date": "2021-07-09T06:01:08.030981Z",
"phone_number": "+90 555XXX0000",
"modified_date": "2021-11-04T14:41:37.428844Z",
"e_bill_taxpayer": false
}
}
},
"response_content": "HTTPSConnectionPool(host='{domain_url}', port=443): Max retries exceeded with url: /Https_GAPEcommOMSServiceTest/api/packages (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f245b28fc18>, 'Connection to {domain_url} timed out. (connect timeout=59)'))",
"response_http_status": 500,
"delivered": false,
"request_datetimes": [
"2022-12-26T08:20:05.784681Z",
"2022-12-09T14:46:50.905701Z",
"2022-12-05T08:37:33.795787Z",
"2022-11-29T08:26:23.826133Z",
"2022-11-23T12:48:21.246813Z",
"2022-11-23T12:43:20.966759Z",
"2022-11-23T12:41:20.879594Z",
"2022-11-23T12:35:15.436024Z",
"2022-11-23T12:31:50.133976Z",
"2022-11-23T12:27:04.868069Z",
"2022-11-23T12:25:15.793979Z",
"2022-11-23T12:24:02.043899Z",
"2021-11-04T17:00:00.075326Z",
"2021-11-04T16:45:00.102725Z",
"2021-11-04T16:30:00.038504Z",
"2021-11-04T16:15:00.051363Z",
"2021-11-04T16:00:00.089528Z",
"2021-11-04T15:45:00.088005Z",
"2021-11-04T15:30:00.077029Z",
"2021-11-04T15:15:00.042412Z",
"2021-11-04T15:00:38.925576Z",
"2021-11-04T14:51:55.912821Z",
"2021-11-04T14:47:29.793569Z",
"2021-11-04T14:45:11.602671Z",
"2021-11-04T14:43:57.491865Z",
"2021-11-04T14:43:15.282636Z",
"2021-11-04T14:42:49.123505Z",
"2021-11-04T14:42:31.031998Z",
"2021-11-04T14:42:16.966993Z",
"2021-11-04T14:42:04.839705Z",
"2021-11-04T14:41:52.983678Z"
],
"retry_count": 34,
"object_id": 5446,
"content_type": 19
}
]
}

Response Description

The response includes comprehensive details about the webhook, including the complete payload.

Response Status Codes

  • 200 OK: The request was successful and the requested resource is returned in the response.
  • 401 Unauthorized: The requested user is not authorized to access the requested resource.
  • 403 Forbidden: The server understands the request, but the client is not authorized to access the requested resource.
  • 429 Too Many Requests: Made too many requests in a given amount of time and the server is rate limiting the request.
  • 500 Internal Server Error: An unexpected error occurred on the server.

GET Order Webhook Event List - Short

This method is used to get a less detailed list of webhook events associated with a specific order, identified by its ID of the pk. In contrast to the "Order Webhook Event List" method, this response provides fewer details about each webhook event, and the payload associated with each event is omitted to reduce the size of the response.

Path: /api/v1/oms/orders/pk/webhook_events/short/

Request

  • Headers:
  • Authorization: Token
  • Body Parameters: None
  • Request Body: None

Response 200 OK

{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": 2344,
"webhook": {
"id": 398,
"target_url": "{domain_url}/Https_GAPEcommOMSServiceTest/api/packages",
"is_active": false,
"event_type": "order.fulfillment.multiple_packages"
},
"created_date": "2021-11-04T14:42:03.372070Z",
"modified_date": "2022-12-26T08:21:04.841964Z",
"delivered": false
}
]
}

Response Description

The response includes only the fields that are required for the OMS Order Detail page's webhook events list.

Response Status Codes

  • 200 OK: The request was successful and the requested resource is returned in the response.
  • 401 Unauthorized: The requested user is not authorized to access the requested resource.
  • 403 Forbidden: The server understands the request, but the client is not authorized to access the requested resource.
  • 429 Too Many Requests: Made too many requests in a given amount of time and the server is rate limiting the request.
  • 500 Internal Server Error: An unexpected error occurred on the server.

GET Order Webhook Event Details

This method is used to get the details of a specific webhook event based on its webhook_event_id that is associated with a particular order identified by its ID of the pk.

Path: /api/v1/oms/orders/pk/webhook_events/webhook_event_id/

Request

  • Headers:
  • Authorization: Token
  • Body Parameters: None
  • Request Body: None

Response 200 OK

{
"id": 2344,
"webhook": {
"id": 398,
"retry_countdown_config": {
"choice": "fixed",
"kwargs": {
"seconds": 60
}
},
"created_date": "2021-11-04T14:36:48.439156Z",
"modified_date": "2023-03-30T11:49:41.529919Z",
"target_url": "{domain_url}/Https_GAPEcommOMSServiceTest/api/packages",
"is_active": false,
"secret_key": null,
"event_type": "order.fulfillment.multiple_packages",
"callback": null,
"additional_headers": {},
"config": {}
},
"created_date": "2021-11-04T14:42:03.372070Z",
"modified_date": "2022-12-26T08:21:04.841964Z",
"uuid": "66ee60b1-1d18-49c4-8467-38e2622e91bf",
"request_payload": {
"event": {
"type": "order.fulfillment.multiple_packages",
"uuid": "66ee60b11d1849c4846738e2622e91bf"
},
"payload": {
"id": 5446,
"notes": null,
"state": {
"id": 6,
"name": "Approved",
"config": {},
"enum_class": "OrderStatus",
"enum_value": "400",
"content_type": 19,
"created_date": "2019-07-04T15:14:51.439830Z",
"translations": null,
"modified_date": "2019-07-04T15:14:51.439852Z"
},
"number": "1808148714512655",
"channel": {
"id": 1,
"name": "E-Commerce",
"is_active": true,
"omnitron_id": 1,
"channel_type": "web",
"created_date": "2019-07-04T15:14:51.118810Z",
"configuration": {},
"modified_date": "2019-07-04T15:14:51.118833Z"
},
"segment": null,
"commands": [],
"customer": {
"pk": 1339,
"email": "example@mail.com",
"channel": 1,
"erp_code": null,
"last_name": "Doe",
"first_name": "John",
"phone_number": "+90 555XXX0000"
},
"packages": [
{
"id": 161742,
"city": "MILANO",
"state": {
"id": 33,
"name": "Waiting",
"config": {},
"enum_class": "PackageStatus",
"enum_value": "100",
"content_type": 25,
"created_date": "2019-07-04T15:14:52.354690Z",
"translations": null,
"modified_date": "2021-10-05T14:47:06.729905Z"
},
"number": "1808148714512655P1",
"commands": [
{
"id": 1049,
"label": "hazırla",
"command": "PKG_STATE_TRANSITION",
"source_state": 33,
"translations": null,
"ui_visibility": [
"oms_web"
],
"destination_state": 34,
"is_packageitem_parameter_required": false
},
{
"id": 125,
"label": "Ürün Bulunamadı / Hatalı Ürün",
"command": "DETECTED_OUT_OF_STOCK_ITEM",
"source_state": 33,
"translations": null,
"ui_visibility": [
"oms_web",
"instore",
"third_party"
],
"destination_state": 46,
"is_packageitem_parameter_required": true
},
{
"id": 786,
"label": "kargolamadan paketle",
"command": "COMPLETE_PACKAGING_WITHOUT_SHIPMENT",
"source_state": 33,
"translations": null,
"ui_visibility": [
"oms_web",
"instore",
"third_party"
],
"destination_state": 37,
"is_packageitem_parameter_required": false
},
{
"id": 2,
"label": "Paketle",
"command": "COMPLETE_PACKAGING",
"source_state": 33,
"translations": null,
"ui_visibility": [
"oms_web",
"instore",
"third_party"
],
"destination_state": 37,
"is_packageitem_parameter_required": false
},
{
"id": 917,
"label": "Paketle (Marketplace)",
"command": "CHANNEL_BASED_COMPLETE_PACKAGING",
"source_state": 33,
"translations": null,
"ui_visibility": [
"oms_web",
"third_party",
"instore"
],
"destination_state": 37,
"is_packageitem_parameter_required": false
}
],
"order_id": 5446,
"shipment": null,
"remote_id": null,
"date_placed": "2021-11-04T14:41:34.494898Z",
"order_notes": null,
"channel_name": "E-Commerce",
"created_date": "2021-11-04T14:41:52.619994Z",
"order_number": "1808148714512655",
"payment_type": "credit_card",
"modified_date": "2021-11-04T14:41:52.630000Z",
"shipment_date": null,
"delivery_range": null,
"invoice_number": null,
"shipping_label": null,
"stock_location": {
"id": 210,
"conf": {},
"name": "Akinon A1 Mağaza",
"email": "",
"engine": 209,
"address": {
"id": 375,
"city": {
"pk": 40,
"name": "MILANO",
"country": 1,
"latitude": "41.00823760",
"is_active": true,
"longitude": "28.97835890"
},
"line": "Viale Edoardo Jenner",
"notes": null,
"title": "dolor sit amet",
"country": {
"pk": 1,
"code": "it",
"name": "Italy",
"latitude": "38.96374500",
"is_active": true,
"longitude": "35.24332200"
},
"mapping": null,
"district": null,
"latitude": null,
"postcode": null,
"township": {
"pk": 470,
"city": 40,
"name": "20158 Milano MI",
"latitude": "41.07941330",
"is_active": true,
"longitude": "28.85385450"
},
"is_active": true,
"longitude": null
},
"category": null,
"erp_code": "aki100",
"priority": 10,
"is_active": true,
"fax_number": null,
"omnitron_id": 4,
"created_date": "2021-03-03T15:15:14.840086Z",
"daytime_phone": "5554443322",
"evening_phone": "5554443322",
"modified_date": "2021-09-14T09:27:33.571012Z",
"is_pickup_location": false,
"is_return_available": true,
"stock_location_type": "store",
"is_delivery_location": false,
"is_fulfillment_center": true,
"target_packing_interval": "5 00:00:00",
"use_as_shipper_location": false,
"target_transfer_interval": "3 00:00:00",
"is_fast_delivery_available": false
},
"packageitem_set": [
{
"id": 276606,
"state": {
"id": 47,
"name": "Waiting",
"config": {},
"enum_class": "PackageItemStatus",
"enum_value": "100",
"content_type": 26,
"created_date": "2019-07-04T15:14:52.508854Z",
"translations": null,
"modified_date": "2019-07-04T15:14:52.508875Z"
},
"package": 161742,
"commands": [],
"serial_no": null,
"order_item": {
"id": 4598,
"image": null,
"order": 5446,
"price": "100.00",
"state": {
"id": 22,
"name": "Approved",
"config": {},
"enum_class": "OrderStatus",
"enum_value": "400",
"content_type": 20,
"created_date": "2019-07-04T15:14:51.986693Z",
"translations": null,
"modified_date": "2019-07-04T15:14:51.986716Z"
},
"product": {
"id": 31,
"sku": "1185165001",
"name": "TEK DAL ÇİÇEK TURUNCU 57 CM (TR) - Test",
"barcode": null,
"base_code": "1185165",
"attributes": {
"renk": "RENKSİZ",
"beden": "Standart",
"ebat_en": "10.0",
"erp_Msb": "False",
"erp_Yil": "2017",
"cinsiyet": "Genel",
"ebat_boy": "57.0",
"erp_Beden": "000",
"erp_Sezon": "Devamlı",
"erp_EbatEn": "10.0",
"erp_Outlet": "False",
"erp_AnaRenk": "X",
"erp_EbatBoy": "57.0",
"ebat_agirlik": "0.0",
"erp_AsilRenk": "RENKSİZ",
"erp_Cinsiyet": "Genel",
"variant_renk": "RENKSİZ",
"erp_AnaMalTip": "0",
"erp_VaryantNo": "1185165-000",
"ebat_yukseklik": "0.0",
"erp_MalGrupAdi": "CONCEPT",
"erp_UretimYeri": "TÜRKİYE",
"erp_EbatAgirlik": "0.0",
"erp_MalDetayAdi": "DAL ÇİÇEK",
"erp_MalSinifAdi": "BİTKİ GRUBU",
"integration_Msb": "False",
"integration_Yil": "2017",
"erp_EbatYukseklik": "0.0",
"erp_MalAltGrupAdi": "DEKORATIF",
"extra_product_sku": "0101010101",
"integration_Beden": "000",
"integration_Sezon": "Devamlı",
"erp_MalAltSinifAdi": "ÇİÇEK GRUBU",
"integration_EbatEn": "10.0",
"integration_Outlet": "False",
"erp_AciklayiciBilgi": "<p> </p><p>En: 10</p><p>Boy: 57</p><p>Yükseklik: 0</p>",
"integration_AnaRenk": "X",
"integration_EbatBoy": "57.0",
"integration_AsilRenk": "RENKSİZ",
"integration_Cinsiyet": "Genel",
"integration_AnaMalTip": "0",
"integration_VaryantNo": "1185165-000",
"integration_MalGrupAdi": "CONCEPT",
"integration_UretimYeri": "TÜRKİYE",
"integration_EbatAgirlik": "0.0",
"integration_MalDetayAdi": "DAL ÇİÇEK",
"integration_MalSinifAdi": "BİTKİ GRUBU",
"integration_EbatYukseklik": "0.0",
"integration_MalAltGrupAdi": "DEKORATIF",
"integration_MalAltSinifAdi": "ÇİÇEK GRUBU",
"integration_AciklayiciBilgi": "<p> </p><p>En: 10</p><p>Boy: 57</p><p>Yükseklik: 0</p>",
"integration_erenp_erenbarkod": "integration_erenp_erenbarkod"
},
"omnitron_id": 56,
"created_date": "2019-07-10T08:11:57.123423Z",
"modified_date": "2021-08-26T14:52:50.994844Z",
"extra_attributes": {},
"productimage_set": [
{
"id": 1662,
"url": "{cdn_url}/products/2021/06/10/56/a9016559-f34a-4a5e-a1b6-d5fc63669634.jpg",
"order": 0,
"product": 31
},
{
"id": 1086,
"url": "{cdn_url}/products/2017/03/24/56/f9636424-0534-43e6-8110-671ac9ef4b3e.jpg",
"order": 1,
"product": 31
},
{
"id": 1087,
"url": "{cdn_url}/products/2017/03/24/56/c7f4a5f8-07f8-4da1-b7e8-ad2e79b5197d.jpg",
"order": 2,
"product": 31
}
],
"attributes_kwargs": {
"renk": {
"label": "RENKSİZ",
"value": "RENKSİZ",
"data_type": "dropdown"
},
"beden": {
"label": "Standart",
"value": "Standart",
"data_type": "dropdown"
},
"erp_Msb": {
"label": "False",
"value": "False",
"data_type": "dropdown"
},
"cinsiyet": {
"label": "Genel",
"value": "Genel",
"data_type": "dropdown"
},
"erp_Beden": {
"label": "000",
"value": "000",
"data_type": "dropdown"
},
"erp_Outlet": {
"label": "False",
"value": "False",
"data_type": "dropdown"
},
"erp_AnaRenk": {
"label": "X",
"value": "X",
"data_type": "dropdown"
},
"erp_AsilRenk": {
"label": "RENKSİZ",
"value": "RENKSİZ",
"data_type": "dropdown"
},
"erp_Cinsiyet": {
"label": "Genel",
"value": "Genel",
"data_type": "dropdown"
},
"variant_renk": {
"label": "RENKSİZ",
"value": "RENKSİZ",
"data_type": "dropdown"
},
"erp_AnaMalTip": {
"label": "0",
"value": "0",
"data_type": "dropdown"
},
"erp_MalGrupAdi": {
"label": "CONCEPT",
"value": "CONCEPT",
"data_type": "dropdown"
},
"erp_UretimYeri": {
"label": "TÜRKİYE",
"value": "TÜRKİYE",
"data_type": "dropdown"
},
"erp_MalDetayAdi": {
"label": "DAL ÇİÇEK",
"value": "DAL ÇİÇEK",
"data_type": "dropdown"
},
"erp_MalSinifAdi": {
"label": "BİTKİ GRUBU",
"value": "BİTKİ GRUBU",
"data_type": "dropdown"
},
"erp_MalAltGrupAdi": {
"label": "DEKORATIF",
"value": "DEKORATIF",
"data_type": "dropdown"
},
"erp_MalAltSinifAdi": {
"label": "ÇİÇEK GRUBU",
"value": "ÇİÇEK GRUBU",
"data_type": "dropdown"
}
},
"remote_modified_date": "2021-07-11T01:09:03.482316Z"
},
"commands": [],
"tax_rate": "18.00",
"attributes": {},
"net_amount": "100.00",
"price_list": {
"pk": 1,
"code": null,
"name": "Demo Price List",
"created_date": "2019-05-22T14:59:02.904438Z",
"is_auto_sync": false,
"modified_date": "2019-05-22T14:59:02.904461Z"
},
"stock_list": {
"pk": 1,
"code": null,
"name": "Demo Stock List",
"created_date": "2019-05-22T14:59:20.055271Z",
"is_auto_sync": false,
"modified_date": "2019-05-22T14:59:20.055292Z"
},
"tax_amount": null,
"extra_field": {
"price_extra_field": {},
"stock_extra_field": {}
},
"omnitron_id": 395888,
"created_date": "2021-11-04T14:41:37.462970Z",
"retail_price": "200.00",
"modified_date": "2021-11-04T14:41:37.462993Z",
"price_currency": "try",
"discount_amount": "0.00",
"attributes_kwargs": {},
"parent_omnitron_id": null,
"without_net_amount": null,
"installment_interest_amount": null
},
"unit_weight": null,
"created_date": "2021-11-04T14:41:52.627366Z",
"denial_reason": null,
"modified_date": "2021-11-04T14:41:52.627390Z",
"transfer_order": null,
"selected_barcode": null,
"discrepancy_reason": null
}
],
"tracking_number": null,
"shipping_address": {
"id": 3359,
"city": {
"pk": 40,
"name": "MILANO",
"country": 1,
"latitude": "41.00823760",
"is_active": true,
"longitude": "28.97835890"
},
"line": "Viale Edoardo Jenner",
"email": "example@mail.com",
"notes": null,
"title": "dolor sit amet",
"tax_no": "",
"country": {
"pk": 1,
"code": "it",
"name": "Italy",
"latitude": "38.96374500",
"is_active": true,
"longitude": "35.24332200"
},
"mapping": null,
"customer": {
"pk": 1339,
"email": "example@mail.com",
"channel": 1,
"erp_code": null,
"last_name": "Doe",
"first_name": "John",
"phone_number": "+90 555XXX0000"
},
"district": {
"pk": 36202,
"city": 40,
"name": "Lorem Ipsum",
"latitude": null,
"township": 477,
"is_active": true,
"longitude": null
},
"postcode": "",
"township": {
"pk": 477,
"city": 40,
"name": "20158 Milano MI",
"latitude": "41.04220660",
"is_active": true,
"longitude": "29.00670370"
},
"is_active": true,
"last_name": "Doe",
"first_name": "John",
"tax_office": "",
"omnitron_id": 133851,
"address_type": "customer",
"company_name": "",
"created_date": "2021-07-09T06:01:08.030981Z",
"phone_number": "+90 555XXX0000",
"modified_date": "2021-11-04T14:41:37.428844Z",
"e_bill_taxpayer": false
},
"extra_information": {},
"order_has_gift_box": false,
"channel_omnitron_id": 1,
"order_gift_box_note": null,
"target_packing_date": "2021-11-09T14:41:34.494898Z",
"is_click_and_collect": false,
"order_retail_store_id": null
}
],
"client_type": "default",
"date_placed": "2021-11-04T14:41:34.494898Z",
"omnitron_id": 676047,
"created_date": "2021-11-04T14:41:37.442935Z",
"has_gift_box": false,
"payment_type": "credit_card",
"retail_store": null,
"cargo_company": 84,
"gift_box_note": null,
"modified_date": "2021-11-04T14:41:37.442958Z",
"orderitem_set": [
{
"id": 4598,
"image": null,
"order": 5446,
"price": "100.00",
"state": {
"id": 22,
"name": "Approved",
"config": {},
"enum_class": "OrderStatus",
"enum_value": "400",
"content_type": 20,
"created_date": "2019-07-04T15:14:51.986693Z",
"translations": null,
"modified_date": "2019-07-04T15:14:51.986716Z"
},
"product": {
"id": 31,
"sku": "1185165001",
"name": "TEK DAL ÇİÇEK TURUNCU 57 CM (TR) - Test",
"barcode": null,
"base_code": "1185165",
"attributes": {
"renk": "RENKSİZ",
"beden": "Standart",
"ebat_en": "10.0",
"erp_Msb": "False",
"erp_Yil": "2017",
"cinsiyet": "Genel",
"ebat_boy": "57.0",
"erp_Beden": "000",
"erp_Sezon": "Devamlı",
"erp_EbatEn": "10.0",
"erp_Outlet": "False",
"erp_AnaRenk": "X",
"erp_EbatBoy": "57.0",
"ebat_agirlik": "0.0",
"erp_AsilRenk": "RENKSİZ",
"erp_Cinsiyet": "Genel",
"variant_renk": "RENKSİZ",
"erp_AnaMalTip": "0",
"erp_VaryantNo": "1185165-000",
"ebat_yukseklik": "0.0",
"erp_MalGrupAdi": "CONCEPT",
"erp_UretimYeri": "TÜRKİYE",
"erp_EbatAgirlik": "0.0",
"erp_MalDetayAdi": "DAL ÇİÇEK",
"erp_MalSinifAdi": "BİTKİ GRUBU",
"integration_Msb": "False",
"integration_Yil": "2017",
"erp_EbatYukseklik": "0.0",
"erp_MalAltGrupAdi": "DEKORATIF",
"extra_product_sku": "0101010101",
"integration_Beden": "000",
"integration_Sezon": "Devamlı",
"erp_MalAltSinifAdi": "ÇİÇEK GRUBU",
"integration_EbatEn": "10.0",
"integration_Outlet": "False",
"erp_AciklayiciBilgi": "<p> </p><p>En: 10</p><p>Boy: 57</p><p>Yükseklik: 0</p>",
"integration_AnaRenk": "X",
"integration_EbatBoy": "57.0",
"integration_AsilRenk": "RENKSİZ",
"integration_Cinsiyet": "Genel",
"integration_AnaMalTip": "0",
"integration_VaryantNo": "1185165-000",
"integration_MalGrupAdi": "CONCEPT",
"integration_UretimYeri": "TÜRKİYE",
"integration_EbatAgirlik": "0.0",
"integration_MalDetayAdi": "DAL ÇİÇEK",
"integration_MalSinifAdi": "BİTKİ GRUBU",
"integration_EbatYukseklik": "0.0",
"integration_MalAltGrupAdi": "DEKORATIF",
"integration_MalAltSinifAdi": "ÇİÇEK GRUBU",
"integration_AciklayiciBilgi": "<p> </p><p>En: 10</p><p>Boy: 57</p><p>Yükseklik: 0</p>",
"integration_erenp_erenbarkod": "integration_erenp_erenbarkod"
},
"omnitron_id": 56,
"created_date": "2019-07-10T08:11:57.123423Z",
"modified_date": "2021-08-26T14:52:50.994844Z",
"extra_attributes": {},
"productimage_set": [
{
"id": 1662,
"url": "{cdn_url}/products/2021/06/10/56/a9016559-f34a-4a5e-a1b6-d5fc63669634.jpg",
"order": 0,
"product": 31
},
{
"id": 1086,
"url": "{cdn_url}/products/2017/03/24/56/f9636424-0534-43e6-8110-671ac9ef4b3e.jpg",
"order": 1,
"product": 31
},
{
"id": 1087,
"url": "{cdn_url}/products/2017/03/24/56/c7f4a5f8-07f8-4da1-b7e8-ad2e79b5197d.jpg",
"order": 2,
"product": 31
}
],
"attributes_kwargs": {
"renk": {
"label": "RENKSİZ",
"value": "RENKSİZ",
"data_type": "dropdown"
},
"beden": {
"label": "Standart",
"value": "Standart",
"data_type": "dropdown"
},
"erp_Msb": {
"label": "False",
"value": "False",
"data_type": "dropdown"
},
"cinsiyet": {
"label": "Genel",
"value": "Genel",
"data_type": "dropdown"
},
"erp_Beden": {
"label": "000",
"value": "000",
"data_type": "dropdown"
},
"erp_Outlet": {
"label": "False",
"value": "False",
"data_type": "dropdown"
},
"erp_AnaRenk": {
"label": "X",
"value": "X",
"data_type": "dropdown"
},
"erp_AsilRenk": {
"label": "RENKSİZ",
"value": "RENKSİZ",
"data_type": "dropdown"
},
"erp_Cinsiyet": {
"label": "Genel",
"value": "Genel",
"data_type": "dropdown"
},
"variant_renk": {
"label": "RENKSİZ",
"value": "RENKSİZ",
"data_type": "dropdown"
},
"erp_AnaMalTip": {
"label": "0",
"value": "0",
"data_type": "dropdown"
},
"erp_MalGrupAdi": {
"label": "CONCEPT",
"value": "CONCEPT",
"data_type": "dropdown"
},
"erp_UretimYeri": {
"label": "TÜRKİYE",
"value": "TÜRKİYE",
"data_type": "dropdown"
},
"erp_MalDetayAdi": {
"label": "DAL ÇİÇEK",
"value": "DAL ÇİÇEK",
"data_type": "dropdown"
},
"erp_MalSinifAdi": {
"label": "BİTKİ GRUBU",
"value": "BİTKİ GRUBU",
"data_type": "dropdown"
},
"erp_MalAltGrupAdi": {
"label": "DEKORATIF",
"value": "DEKORATIF",
"data_type": "dropdown"
},
"erp_MalAltSinifAdi": {
"label": "ÇİÇEK GRUBU",
"value": "ÇİÇEK GRUBU",
"data_type": "dropdown"
}
},
"remote_modified_date": "2021-07-11T01:09:03.482316Z"
},
"commands": [],
"tax_rate": "18.00",
"attributes": {},
"net_amount": "100.00",
"price_list": {
"pk": 1,
"code": null,
"name": "Demo Price List",
"created_date": "2019-05-22T14:59:02.904438Z",
"is_auto_sync": false,
"modified_date": "2019-05-22T14:59:02.904461Z"
},
"stock_list": {
"pk": 1,
"code": null,
"name": "Demo Stock List",
"created_date": "2019-05-22T14:59:20.055271Z",
"is_auto_sync": false,
"modified_date": "2019-05-22T14:59:20.055292Z"
},
"tax_amount": null,
"extra_field": {
"price_extra_field": {},
"stock_extra_field": {}
},
"omnitron_id": 395888,
"created_date": "2021-11-04T14:41:37.462970Z",
"retail_price": "200.00",
"modified_date": "2021-11-04T14:41:37.462993Z",
"price_currency": "try",
"discount_amount": "0.00",
"attributes_kwargs": {},
"parent_omnitron_id": null,
"without_net_amount": null,
"installment_interest_amount": null
},
{
"id": 4599,
"image": null,
"order": 5446,
"price": "100.00",
"state": {
"id": 110,
"name": "Inactive",
"config": {},
"enum_class": "OrderStatus",
"enum_value": "425",
"content_type": 20,
"created_date": "2020-04-14T20:31:34.193944Z",
"translations": null,
"modified_date": "2020-04-14T20:31:34.193970Z"
},
"product": {
"id": 6,
"sku": "1185185001",
"name": "YAPAY SUKULENT CAM TERARYUM 10 CM",
"barcode": null,
"base_code": "1185185",
"attributes": {
"renk": "RENKSİZ",
"beden": "Standart",
"ebat_en": "10.0",
"erp_Msb": "False",
"erp_Yil": "2017",
"cinsiyet": "Genel",
"ebat_boy": "10.0",
"erp_Beden": "000",
"erp_Sezon": "Devamlı",
"erp_EbatEn": "10.0",
"erp_Outlet": "False",
"erp_AnaRenk": "X",
"erp_EbatBoy": "10.0",
"ebat_agirlik": "0.0",
"erp_AsilRenk": "RENKSİZ",
"erp_Cinsiyet": "Genel",
"oms_excluded": "true",
"variant_renk": "RENKSİZ",
"erp_AnaMalTip": "0",
"erp_VaryantNo": "1185185-000",
"ebat_yukseklik": "1.0",
"erp_MalGrupAdi": "CONCEPT",
"erp_UretimYeri": "TÜRKİYE",
"erp_EbatAgirlik": "0.0",
"erp_MalDetayAdi": "SAKSILI ÇİÇEK",
"erp_MalSinifAdi": "BİTKİ GRUBU",
"integration_Msb": "False",
"integration_Yil": "2017",
"erp_EbatYukseklik": "1.0",
"erp_MalAltGrupAdi": "DEKORATIF",
"integration_Beden": "000",
"integration_Sezon": "Devamlı",
"erp_MalAltSinifAdi": "ÇİÇEK GRUBU",
"integration_EbatEn": "10.0",
"integration_Outlet": "False",
"erp_AciklayiciBilgi": "<p> </p><p>En: 10</p><p>Boy: 10</p><p>Yükseklik: 1</p><p>Menşei: TÜRKİYE</p>",
"integration_AnaRenk": "X",
"integration_EbatBoy": "10.0",
"integration_AsilRenk": "RENKSİZ",
"integration_Cinsiyet": "Genel",
"integration_AnaMalTip": "0",
"integration_VaryantNo": "1185185-000",
"integration_MalGrupAdi": "CONCEPT",
"integration_UretimYeri": "TÜRKİYE",
"integration_EbatAgirlik": "0.0",
"integration_MalDetayAdi": "SAKSILI ÇİÇEK",
"integration_MalSinifAdi": "BİTKİ GRUBU",
"integration_EbatYukseklik": "1.0",
"integration_MalAltGrupAdi": "DEKORATIF",
"integration_MalAltSinifAdi": "ÇİÇEK GRUBU",
"integration_AciklayiciBilgi": "<p> </p><p>En: 10</p><p>Boy: 10</p><p>Yükseklik: 1</p><p>Menşei: TÜRKİYE</p>"
},
"omnitron_id": 76,
"created_date": "2019-07-04T15:15:17.333869Z",
"modified_date": "2021-11-04T14:41:37.468028Z",
"extra_attributes": {},
"productimage_set": [
{
"id": 26,
"url": "{cdn_url}/products/2019/03/17/76/b80e0320-b8da-44be-8b4d-b6353e5f6a45.jpg",
"order": 11,
"product": 6
},
{
"id": 27,
"url": "{cdn_url}/products/2019/03/17/76/fc659aa8-214d-44b6-bd35-a69205dbd5dd.jpg",
"order": 42,
"product": 6
},
{
"id": 28,
"url": "{cdn_url}/products/2019/03/17/76/2a9452da-8696-4348-a7ad-a0e1457149f4.jpg",
"order": 63,
"product": 6
}
],
"attributes_kwargs": {
"renk": {
"label": "RENKSİZ",
"value": "RENKSİZ",
"data_type": "dropdown"
},
"beden": {
"label": "Standart",
"value": "Standart",
"data_type": "dropdown"
},
"erp_Msb": {
"label": "False",
"value": "False",
"data_type": "dropdown"
},
"cinsiyet": {
"label": "Genel",
"value": "Genel",
"data_type": "dropdown"
},
"erp_Beden": {
"label": "000",
"value": "000",
"data_type": "dropdown"
},
"erp_Outlet": {
"label": "False",
"value": "False",
"data_type": "dropdown"
},
"erp_AnaRenk": {
"label": "X",
"value": "X",
"data_type": "dropdown"
},
"erp_AsilRenk": {
"label": "RENKSİZ",
"value": "RENKSİZ",
"data_type": "dropdown"
},
"erp_Cinsiyet": {
"label": "Genel",
"value": "Genel",
"data_type": "dropdown"
},
"oms_excluded": {
"label": "true",
"value": "true",
"data_type": "dropdown"
},
"variant_renk": {
"label": "RENKSİZ",
"value": "RENKSİZ",
"data_type": "dropdown"
},
"erp_AnaMalTip": {
"label": "0",
"value": "0",
"data_type": "dropdown"
},
"erp_MalGrupAdi": {
"label": "CONCEPT",
"value": "CONCEPT",
"data_type": "dropdown"
},
"erp_UretimYeri": {
"label": "TÜRKİYE",
"value": "TÜRKİYE",
"data_type": "dropdown"
},
"erp_MalDetayAdi": {
"label": "SAKSILI ÇİÇEK",
"value": "SAKSILI ÇİÇEK",
"data_type": "dropdown"
},
"erp_MalSinifAdi": {
"label": "BİTKİ GRUBU",
"value": "BİTKİ GRUBU",
"data_type": "dropdown"
},
"erp_MalAltGrupAdi": {
"label": "DEKORATIF",
"value": "DEKORATIF",
"data_type": "dropdown"
},
"erp_MalAltSinifAdi": {
"label": "ÇİÇEK GRUBU",
"value": "ÇİÇEK GRUBU",
"data_type": "dropdown"
}
},
"remote_modified_date": "2021-06-13T22:07:09.401051Z"
},
"commands": [],
"tax_rate": "18.00",
"attributes": {},
"net_amount": "100.00",
"price_list": {
"pk": 1,
"code": null,
"name": "Demo Price List",
"created_date": "2019-05-22T14:59:02.904438Z",
"is_auto_sync": false,
"modified_date": "2019-05-22T14:59:02.904461Z"
},
"stock_list": {
"pk": 1,
"code": null,
"name": "Demo Stock List",
"created_date": "2019-05-22T14:59:20.055271Z",
"is_auto_sync": false,
"modified_date": "2019-05-22T14:59:20.055292Z"
},
"tax_amount": null,
"extra_field": {
"price_extra_field": {},
"stock_extra_field": {}
},
"omnitron_id": 395887,
"created_date": "2021-11-04T14:41:37.509889Z",
"retail_price": "200.00",
"modified_date": "2021-11-04T14:41:37.509913Z",
"price_currency": "try",
"discount_amount": "0.00",
"attributes_kwargs": {},
"parent_omnitron_id": null,
"without_net_amount": null,
"installment_interest_amount": null
}
],
"delivery_range": null,
"billing_address": {
"id": 3359,
"city": {
"pk": 40,
"name": "MILANO",
"country": 1,
"latitude": "41.00823760",
"is_active": true,
"longitude": "28.97835890"
},
"line": "Viale Edoardo Jenner",
"email": "example@mail.com",
"notes": null,
"title": "dolor sit amet",
"tax_no": "",
"country": {
"pk": 1,
"code": "it",
"name": "Italy",
"latitude": "38.96374500",
"is_active": true,
"longitude": "35.24332200"
},
"mapping": null,
"customer": {
"pk": 1339,
"email": "example@mail.com",
"channel": 1,
"erp_code": null,
"last_name": "Doe",
"first_name": "John",
"phone_number": "+90 555XXX0000"
},
"district": {
"pk": 36202,
"city": 40,
"name": "Lorem Ipsum",
"latitude": null,
"township": 477,
"is_active": true,
"longitude": null
},
"postcode": "",
"township": {
"pk": 477,
"city": 40,
"name": "20158 Milano MI",
"latitude": "41.04220660",
"is_active": true,
"longitude": "29.00670370"
},
"is_active": true,
"last_name": "Doe",
"first_name": "John",
"tax_office": "",
"omnitron_id": 133851,
"address_type": "customer",
"company_name": "",
"created_date": "2021-07-09T06:01:08.030981Z",
"phone_number": "+90 555XXX0000",
"modified_date": "2021-11-04T14:41:37.428844Z",
"e_bill_taxpayer": false
},
"tracking_number": null,
"transfer_orders": [],
"shipping_address": {
"id": 3359,
"city": {
"pk": 40,
"name": "MILANO",
"country": 1,
"latitude": "41.00823760",
"is_active": true,
"longitude": "28.97835890"
},
"line": "Viale Edoardo Jenner",
"email": "example@mail.com",
"notes": null,
"title": "dolor sit amet",
"tax_no": "",
"country": {
"pk": 1,
"code": "it",
"name": "Italy",
"latitude": "38.96374500",
"is_active": true,
"longitude": "35.24332200"
},
"mapping": null,
"customer": {
"pk": 1339,
"email": "example@mail.com",
"channel": 1,
"erp_code": null,
"last_name": "Doe",
"first_name": "John",
"phone_number": "+90 555XXX0000"
},
"district": {
"pk": 36202,
"city": 40,
"name": "Lorem Ipsum",
"latitude": null,
"township": 477,
"is_active": true,
"longitude": null
},
"postcode": "",
"township": {
"pk": 477,
"city": 40,
"name": "20158 Milano MI",
"latitude": "41.04220660",
"is_active": true,
"longitude": "29.00670370"
},
"is_active": true,
"last_name": "Doe",
"first_name": "John",
"tax_office": "",
"omnitron_id": 133851,
"address_type": "customer",
"company_name": "",
"created_date": "2021-07-09T06:01:08.030981Z",
"phone_number": "+90 555XXX0000",
"modified_date": "2021-11-04T14:41:37.428844Z",
"e_bill_taxpayer": false
}
}
},
"response_content": "HTTPSConnectionPool(host='{domain_url}', port=443): Max retries exceeded with url: /Https_GAPEcommOMSServiceTest/api/packages (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f245b28fc18>, 'Connection to {domain_url} timed out. (connect timeout=59)'))",
"response_http_status": 500,
"delivered": false,
"request_datetimes": [
"2022-12-26T08:20:05.784681Z",
"2022-12-09T14:46:50.905701Z",
"2022-12-05T08:37:33.795787Z",
"2022-11-29T08:26:23.826133Z",
"2022-11-23T12:48:21.246813Z",
"2022-11-23T12:43:20.966759Z",
"2022-11-23T12:41:20.879594Z",
"2022-11-23T12:35:15.436024Z",
"2022-11-23T12:31:50.133976Z",
"2022-11-23T12:27:04.868069Z",
"2022-11-23T12:25:15.793979Z",
"2022-11-23T12:24:02.043899Z",
"2021-11-04T17:00:00.075326Z",
"2021-11-04T16:45:00.102725Z",
"2021-11-04T16:30:00.038504Z",
"2021-11-04T16:15:00.051363Z",
"2021-11-04T16:00:00.089528Z",
"2021-11-04T15:45:00.088005Z",
"2021-11-04T15:30:00.077029Z",
"2021-11-04T15:15:00.042412Z",
"2021-11-04T15:00:38.925576Z",
"2021-11-04T14:51:55.912821Z",
"2021-11-04T14:47:29.793569Z",
"2021-11-04T14:45:11.602671Z",
"2021-11-04T14:43:57.491865Z",
"2021-11-04T14:43:15.282636Z",
"2021-11-04T14:42:49.123505Z",
"2021-11-04T14:42:31.031998Z",
"2021-11-04T14:42:16.966993Z",
"2021-11-04T14:42:04.839705Z",
"2021-11-04T14:41:52.983678Z"
],
"retry_count": 34,
"object_id": 5446,
"content_type": 19
}

Response Description

The response includes comprehensive information about the webhook, including the complete payload.

Response Status Codes

  • 200 OK: The request was successful and the requested resource is returned in the response.
  • 401 Unauthorized: The requested user is not authorized to access the requested resource.
  • 403 Forbidden: The server understands the request, but the client is not authorized to access the requested resource.
  • 429 Too Many Requests: Made too many requests in a given amount of time and the server is rate limiting the request.
  • 500 Internal Server Error: An unexpected error occurred on the server.

GET Order Delivery Type Enums

This method provides a static list of available delivery types for orders.

Path: /api/v1/oms/orders/delivery_type_enums/

Request

  • Headers:
  • Authorization: Token
  • Body Parameters: None
  • Request Body: None

Response 200 OK

[
{
"value": "standard",
"label": "Standard Delivery"
},
{
"value": "same_day",
"label": "Same Day Delivery"
},
{
"value": "next_day",
"label": "Next Day Delivery"
},
{
"value": "in_store",
"label": "In-store Delivery"
}
]

Response Description

The response for this particular request remains constant and does not change based on the specific request made. Instead, the response contains hardcoded values that are defined in the backend of the OMS project.

Response Status Codes

  • 200 OK: The request was successful and the requested resource is returned in the response.
  • 401 Unauthorized: The requested user is not authorized to access the requested resource.
  • 403 Forbidden: The server understands the request, but the client is not authorized to access the requested resource.
  • 429 Too Many Requests: Made too many requests in a given amount of time and the server is rate limiting the request.
  • 500 Internal Server Error: An unexpected error occurred on the server.

GET Order Payment Type Enums

This method provides a static list of available payment types for orders.

Path: /api/v1/oms/orders/payment_type_enums/

Request

  • Headers:
  • Authorization: Token
  • Body Parameters: None
  • Request Body: None

Response 200 OK

[
{
"value": "credit_card",
"label": "Credit Card"
},
{
"value": "funds_transfer",
"label": "Funds Transfer"
},
{
"value": "pay_on_delivery",
"label": "Cash On Delivery"
},
{
"value": "loyalty_money",
"label": "LCW Money"
},
{
"value": "bkm_express",
"label": "Bkm Express"
},
{
"value": "cash_register",
"label": "Cash Register"
},
{
"value": "gpay",
"label": "Garanti Pay"
},
{
"value": "redirection",
"label": "Redirect to Bank"
},
{
"value": "stored_card",
"label": "Stored Card"
},
{
"value": "masterpass",
"label": "MasterPass"
},
{
"value": "credit_payment",
"label": "Credit Payment"
},
{
"value": "pay_later",
"label": "Pay Later"
},
{
"value": "confirmation",
"label": "Confirmation"
}
]

Response Description

The response for this particular request remains constant and does not change based on the specific request made. Instead, the response contains hardcoded values that are defined in the backend of the OMS project.

Response Status Codes

  • 200 OK: The request was successful and the requested resource is returned in the response.
  • 401 Unauthorized: The requested user is not authorized to access the requested resource.
  • 403 Forbidden: The server understands the request, but the client is not authorized to access the requested resource.
  • 429 Too Many Requests: Made too many requests in a given amount of time and the server is rate limiting the request.
  • 500 Internal Server Error: An unexpected error occurred on the server.

POST Order Pull From Omnitron

This method is used to initiate a process of pulling specific orders from Omnitron to OMS. The response for this operation typically provides details about the result of the pull operation for each order.

Path: /api/v1/oms/orders/pull_from_omnitron/

Request

  • Headers:
  • Authorization: Token
  • Body Parameters: None
  • Request Body: None

Body Parameters

PropertyData TypeRequiredDescriptions
order_numberslist of stringtrueOrder numbers to be pulled from omnitron

Response 200 OK

{
"1069412256712393": {
"success": true,
"errors": []
},
"1": {
"success": true,
"errors": []
},
"ABCDEREFE": {
"success": false,
"errors": [
"Order not found with Order number:ABCDEREFE"
]
}
}

Response Description

If the order was successfully pulled:

  • success is set to true.
  • errors is empty or not included in the response.

If the order was not successfully pulled:

  • success is set to false.
  • errors contains one or more error messages, indicating the reason(s) for the failure. These error messages can include:
    • "Order number: {0} already exists in {1} channel!"
    • "Order not found with Order number:{0}"
    • "Order create operation does not allowed! Because of Order ID: {omnitron_id} lower than MIN_ORDER_OMNITRON_ID: {min_id} "
    • "Order create operation does not allowed! Because of Channel ID:{channel_id} provided with Order ID:{order_id} does not allowed in the system."
    • "Cargo company:{cargo_company} provided with order number:{number} does not exists in the system."

Response Status Codes

  • 200 OK: The request was successful and the result of the operation is returned in the response.
  • 401 Unauthorized: The requested user is not authorized to access the requested resource.
  • 403 Forbidden: The server understands the request, but the client is not authorized to access the requested resource.
  • 429 Too Many Requests: Made too many requests in a given amount of time and the server is rate limiting the request.
  • 500 Internal Server Error: An unexpected error occurred on the server.