Skip to main content

Omnitron Order Webhooks

All services related to Omnitron order are listed in this page.

POST Pull Order from Omnitron

This webhook is used to manually add orders to a system.

Path: /api/v1/oms/orders_omnitron/

Request

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

Body Parameters

PropertyData TypeRequiredDescriptions
eventjsontrueDetails of the event (webhook type and unique id)
payloadjsontrueDetails of the order that will be saved to the database

Request Body

{
"event": {
"type": "order.updated",
"uuid": "fc2ba32ba6da4c948c71c6adcf6396db"
},
"payload": {
"pk": 31999,
"number": "202531672482",
"channel": {
"pk": 20,
"name": "Lacoste N11",
"channel_type": "n11",
"catalog": 6,
"modified_date": "2018-06-25T08: 17: 46.816012Z",
"created_date": "2018-06-04T08: 43: 25.515876Z",
"conf": {
"appKey": "63fa639d-fed2-4944-8cb5-549745f425d3",
"N11_ACCEPT_ORDER": true,
"N11_SHIPMENT_TEMPLATE": "UcretliTeslimat",
"N11_DESC_KEY": "",
"erp_code": "n11",
"N11_VARIANT_ATTRIBUTES": [
"Renk",
"Beden"
],
"top_categories": [
{
"id": "1001935",
"name": "Kadın Giyim & Aksesuar"
},
{
"id": "1001873",
"name": "Erkek Giyim & Aksesuar"
},
{
"id": "1001770",
"name": "Ayakkabı & Çanta"
},
{
"id": "1000039",
"name": "Bebek Giyim"
},
{
"id": "1002032",
"name": "Çocuk Giyim & Aksesuar"
},
{
"id": "1002809",
"name": "Saat"
},
{
"id": "1001929",
"name": "Güneş Gözlüğü"
},
{
"id": "1002663",
"name": "Aksesuar"
}
],
"appSecret": "ihwQUETc5Ge4Wy0P",
"N11_CARGO_PREPARING_DAY": "4",
"ENV": "production",
"N11_GET_ORDERS_START_DATE": "06/06/2018",
"channel_erp_code": "n11"
},
"category_tree": 2
},
"status": "400",
"date_placed": "2018-10-27T18: 55: 01.000001Z",
"customer": {
"pk": 23401,
"channel": 20,
"email": "example@mail.com",
"first_name": "John",
"last_name": "Doe",
"phone_number": null,
"is_active": false,
"channel_code": "11531413",
"erp_code": null,
"extra_field": {},
"modified_date": "2018-10-27T18: 59: 05.550154Z",
"created_date": "2018-10-27T18: 59: 05.550130Z",
"date_joined": null,
"email_allowed": false,
"sms_allowed": false,
"gender": null,
"attributes": {}
},
"shipping_address": {
"pk": 36708,
"email": "example@mail.com",
"phone_number": "+90 555XXX0000",
"first_name": "John",
"last_name": "Doe",
"country": {
"pk": 1,
"is_active": true,
"name": "Italy",
"code": "it",
"mapping": []
},
"city": {
"pk": 2,
"is_active": true,
"name": "MILANO",
"country": 1,
"mapping": [
{
"pk": 5248,
"content_type": 46,
"object_id": 2,
"integration_type": "trendyol",
"code": "Milano"
},
{
"pk": 4195,
"content_type": 46,
"object_id": 2,
"integration_type": "trendyol",
"code": "MILANO"
},
{
"pk": 3553,
"content_type": 46,
"object_id": 2,
"integration_type": "n11",
"code": "Milano"
}
]
},
"line": "Viale Edoardo Jenner",
"title": "dolor sit amet",
"township": {
"pk": 47,
"is_active": true,
"name": "CENTRUM",
"city": 2,
"mapping": [
{
"pk": 5374,
"content_type": 44,
"object_id": 47,
"integration_type": "trendyol",
"code": "Milano-Centrum"
},
{
"pk": 3561,
"content_type": 44,
"object_id": 47,
"integration_type": "n11",
"code": "Milano Centrum"
}
]
},
"district": null,
"postcode": "50000",
"notes": null,
"company_name": null,
"tax_office": null,
"tax_no": "18283150626",
"e_bill_taxpayer": false,
"hash_data": "05f675405ba77bef6130473485a4c20a",
"address_type": "customer",
"retail_store": null,
"customer": {
"pk": 23401,
"channel": 20,
"email": "example@mail.com",
"first_name": "John",
"last_name": "Doe",
"phone_number": null,
"is_active": false,
"channel_code": "11531413",
"erp_code": null,
"extra_field": {},
"modified_date": "2018-10-27T18: 59: 05.550154Z",
"created_date": "2018-10-27T18: 59: 05.550130Z",
"date_joined": null,
"email_allowed": false,
"sms_allowed": false,
"gender": null,
"attributes": {}
},
"is_active": true,
"mapping": []
},
"billing_address": {
"pk": 36707,
"email": "example@mail.com",
"phone_number": "+90 555XXX0000",
"first_name": "John",
"last_name": "Doe",
"country": {
"pk": 1,
"is_active": true,
"name": "Italy",
"code": "it",
"mapping": []
},
"city": {
"pk": 2,
"is_active": true,
"name": "MILANO",
"country": 1,
"mapping": [
{
"pk": 5248,
"content_type": 46,
"object_id": 2,
"integration_type": "trendyol",
"code": "Milano"
},
{
"pk": 4195,
"content_type": 46,
"object_id": 2,
"integration_type": "trendyol",
"code": "MILANO"
},
{
"pk": 3553,
"content_type": 46,
"object_id": 2,
"integration_type": "n11",
"code": "Milano"
}
]
},
"line": "Viale Edoardo Jenner",
"title": "dolor sit amet",
"township": {
"pk": 47,
"is_active": true,
"name": "CENTRUM",
"city": 2,
"mapping": [
{
"pk": 5374,
"content_type": 44,
"object_id": 47,
"integration_type": "trendyol",
"code": "Milano-Centrum"
},
{
"pk": 3561,
"content_type": 44,
"object_id": 47,
"integration_type": "n11",
"code": "Milano Centrum"
}
]
},
"district": null,
"postcode": "50000",
"notes": null,
"company_name": null,
"tax_office": null,
"tax_no": "18283150626",
"e_bill_taxpayer": false,
"hash_data": "17d3f4b3482a50aed614f03f37643fed",
"address_type": "customer",
"retail_store": null,
"customer": {
"pk": 23401,
"channel": 20,
"email": "example@mail.com",
"first_name": "John",
"last_name": "Doe",
"phone_number": null,
"is_active": false,
"channel_code": "11531413",
"erp_code": null,
"extra_field": {},
"modified_date": "2018-10-27T18: 59: 05.550154Z",
"created_date": "2018-10-27T18: 59: 05.550130Z",
"date_joined": null,
"email_allowed": false,
"sms_allowed": false,
"gender": null,
"attributes": {}
},
"is_active": true,
"mapping": []
},
"currency": "try",
"amount": "725.26",
"shipping_amount": "6.34",
"shipping_tax_rate": null,
"extra_field": {
"status": "2"
},
"orderitem_set": [
{
"pk": 48161,
"order": 31999,
"product": {
"pk": 22917,
"name": "Lacoste Erkek Regular Fit Kahverengi Gömlek",
"base_code": "CH0933",
"sku": "3169177",
"product_type": "0",
"is_active": true,
"parent": 26862,
"attributes": {
"alt_ust": "-",
"integration_tanim": "GOMLEK",
"renk_tonu": "KAHVERENGİ",
"wash": "3",
"kalip": "Regular Fit",
"integration_cocuk": "0",
"erkek": "1",
"integration_erp_cinsiyet": "MEN",
"integration_alt_ust": "-",
"integration_renk_tonu": "Kahverengi",
"integration_erp_icerik": "%100 PAMUK",
"marka": "001",
"integration_dry": "Kurutma makinesinde kurutulmaz",
"urun_detay": "Lacoste Erkek Regular Fit Kahverengi Gömlek",
"integration_iron": "Orta sıcaklıkta ütülenebilir",
"erenp_erenbarkod": "8001031691771",
"olcu_birimi": "Adet",
"integration_yaka": "-",
"desen": "000",
"integration_kalem_icerik": "<li>Materyal: %100 Pamuk</li><li>Kalıp: Regular Fit</li><li>Uzun Kollu</li><li>Lacoste gömlekler ile kış boyu şıklığınızı koruyun</li>",
"erp_icerik": "%100 PAMUK",
"urun_ana_grup": "001",
"beden": "T46",
"integration_stil": "010",
"integration_yurt_disi_barkod": "1CH0933F5RT46",
"integration_clean": "Kuru temizleme yapınız",
"bleach": "2",
"integration_erp_sezon": "18AW",
"integration_olcu_birimi": "Adet",
"integration_urun_detay": "Lacoste Erkek Regular Fit Kahverengi Gömlek",
"alt_marka": "LACOSTE",
"integration_desen": "000",
"integration_urun_ana_grup": "001",
"integration_renk_grup_kodu": "CH0933",
"integration_urun_ozel": "Lacoste Erkek Regular Fit Kahverengi Gömlek",
"integration_alt_grup": "001",
"iron": "2",
"renk_detay": "KAHVERENGİ",
"kalem_icerik": "<li>Materyal: %100 Pamuk</li><li>Kalıp: Regular Fit</li><li>Uzun Kollu</li><li>Lacoste gömlekler ile kış boyu şıklığınızı koruyun</li>",
"integration_erp_mensei": "TÜRKİYE",
"renk": "F5R",
"renk_grup_kodu": "CH0933",
"yurt_disi_barkod": "1CH0933F5RT46",
"kol_boyu": "Uzun Kollu",
"integration_erkek": "1",
"integration_bleach": "Ağartıcı kullanılmaz",
"filterable_size": "46",
"stil": "010",
"alt_grup": "001",
"integration_alt_marka": "LACOSTE",
"integration_cinsiyet": "Erkek",
"yaka": "-",
"integration_renk": "F5R",
"integration_erenp_erenbarkod": "8001031691771",
"urun_ozel": "Lacoste Erkek Regular Fit Kahverengi Gömlek",
"integration_marka": "001",
"kadin": "0",
"clean": "1",
"product_model_content": "18-aw",
"integration_renk_tonu_kod": "006",
"tanim": "GOMLEK",
"erp_cinsiyet": "MEN",
"renk_tonu_kod": "006",
"integration_wash": "40° 'de yıkanabilir",
"cocuk": "0",
"integration_beden": "T46",
"dry": "4",
"integration_renk_detay": "KAHVERENGİ",
"integration_kadin": "0",
"erp_mensei": "TÜRKİYE",
"erp_sezon": "18AW",
"model": "CH0933"
},
"attributes_kwargs": {
"integration_wash": {
"value": "40° 'de yıkanabilir",
"data_type": "dropdown",
"label": "40° 'de yıkanabilir"
},
"renk": {
"value": "F5R",
"data_type": "dropdown",
"label": "F5R"
},
"bleach": {
"value": "2",
"label": "Do not chlorine bleach"
},
"integration_tanim": {
"value": "GOMLEK",
"label": "SHIRTS"
},
"renk_tonu": {
"value": "KAHVERENGİ",
"label": "BROWN"
},
"wash": {
"value": "3",
"data_type": "dropdown",
"label": "Wash at 40° (Warm wash)"
},
"kalip": {
"value": "Regular Fit",
"label": "REGULAR FIT"
},
"kol_boyu": {
"value": "Uzun Kollu",
"label": "LONG SLEEVE"
},
"integration_erkek": {
"value": "1",
"data_type": "dropdown",
"label": "1"
},
"integration_cocuk": {
"value": "0",
"data_type": "dropdown",
"label": "0"
},
"integration_bleach": {
"value": "Ağartıcı kullanılmaz",
"label": "Do not bleach"
},
"integration_erp_cinsiyet": {
"value": "MEN",
"data_type": "dropdown",
"label": "MEN"
},
"filterable_size": {
"value": "46",
"data_type": "dropdown",
"label": "46"
},
"stil": {
"value": "010",
"data_type": "dropdown",
"label": "SPORTSWEAR"
},
"integration_renk_tonu": {
"value": "Kahverengi",
"data_type": "dropdown",
"label": "Kahverengi"
},
"marka": {
"value": "001",
"data_type": "dropdown",
"label": "Lacoste"
},
"integration_dry": {
"value": "Kurutma makinesinde kurutulmaz",
"data_type": "dropdown",
"label": "Kurutma makinesinde kurutulmaz"
},
"integration_iron": {
"value": "Orta sıcaklıkta ütülenebilir",
"label": "Mid Temperature Iron"
},
"alt_grup": {
"value": "001",
"data_type": "dropdown",
"label": "Gömlek"
},
"integration_urun_ana_grup": {
"value": "001",
"data_type": "dropdown",
"label": "Giyim"
},
"integration_cinsiyet": {
"value": "Erkek",
"label": "Men"
},
"yaka": {
"value": "-",
"data_type": "dropdown",
"label": "-"
},
"integration_renk": {
"value": "F5R",
"data_type": "dropdown",
"label": "F5R"
},
"desen": {
"value": "000",
"data_type": "dropdown",
"label": "-"
},
"integration_marka": {
"value": "001",
"data_type": "dropdown",
"label": "Lacoste"
},
"erp_sezon": {
"value": "18AW",
"data_type": "dropdown",
"label": "18AW"
},
"urun_ana_grup": {
"value": "001",
"data_type": "dropdown",
"label": "Giyim"
},
"product_model_content": {
"value": "18-aw",
"data_type": "dropdown",
"label": "18-aw"
},
"beden": {
"value": "T46",
"data_type": "dropdown",
"label": "T46"
},
"tanim": {
"value": "GOMLEK",
"label": "SHIRTS"
},
"integration_stil": {
"value": "010",
"data_type": "dropdown",
"label": "SPORTSWEAR"
},
"integration_clean": {
"value": "Kuru temizleme yapınız",
"label": "Dry clean"
},
"erp_cinsiyet": {
"value": "MEN",
"data_type": "dropdown",
"label": "MEN"
},
"renk_tonu_kod": {
"value": "006",
"data_type": "dropdown",
"label": "006"
},
"renk_detay": {
"value": "KAHVERENGİ",
"label": "BROWN"
},
"integration_erp_sezon": {
"value": "18AW",
"data_type": "dropdown",
"label": "18AW"
},
"integration_beden": {
"value": "T46",
"data_type": "dropdown",
"label": "T46"
},
"integration_yaka": {
"value": "-",
"data_type": "dropdown",
"label": "-"
},
"dry": {
"value": "4",
"label": "Do not tumble dry"
},
"integration_renk_detay": {
"value": "KAHVERENGİ",
"data_type": "dropdown",
"label": "KAHVERENGİ"
},
"integration_kadin": {
"value": "0",
"data_type": "dropdown",
"label": "0"
},
"integration_alt_grup": {
"value": "001",
"data_type": "dropdown",
"label": "Gömlek"
},
"iron": {
"value": "2",
"label": "medium ironing"
},
"clean": {
"value": "1",
"data_type": "dropdown",
"label": "Can be dry cleaned"
},
"integration_desen": {
"value": "000",
"data_type": "dropdown",
"label": "-"
}
},
"extra_attributes": {},
"group_products": [],
"productimage_set": [
{
"pk": 109353,
"status": "active",
"image": "{cdn_url}/products/2018/08/17/22928/3397b83a-a2c5-4c2a-a296-c28ee82274fe.jpg",
"order": 20,
"specialimage_set": []
},
{
"pk": 109354,
"status": "active",
"image": "{cdn_url}/products/2018/08/17/22928/8c11b6c8-c6f0-4d87-a51c-0ebe95d9bb2c.jpg",
"order": 22,
"specialimage_set": []
},
{
"pk": 109355,
"status": "active",
"image": "{cdn_url}/products/2018/08/17/22928/57f36421-9e16-42c4-8d30-7378d294d310.jpg",
"order": 24,
"specialimage_set": []
},
{
"pk": 109357,
"status": "active",
"image": "{cdn_url}/products/2018/08/17/22928/530fa3f0-9c94-4c0d-9bba-93244e189eb5.jpg",
"order": 32,
"specialimage_set": []
},
{
"pk": 109366,
"status": "active",
"image": "{cdn_url}/products/2018/08/17/22928/bc4a24b9-51f6-494e-b469-427d04dad4cd.jpg",
"order": 34,
"specialimage_set": []
},
{
"pk": 109356,
"status": "active",
"image": "{cdn_url}/products/2018/08/17/22928/1c2086ee-3031-4f83-9bc6-7ff25a63b5e6.jpg",
"order": 35,
"specialimage_set": []
},
{
"pk": 109351,
"status": "active",
"image": "{cdn_url}/products/2018/08/17/22928/39aeaad0-434d-4a55-a030-104bff385bab.jpg",
"order": 37,
"specialimage_set": []
}
],
"attribute_set": 7,
"productization_date": "2018-08-17T11:39:34.070371Z",
"modified_date": "2020-04-30T07:45:55.089522Z"
},
"status": "510",
"price_currency": "try",
"price": "718.92",
"tax_rate": "8.00",
"extra_field": {
"status": "2",
"id": "113362899",
"campaign_number": "848310592757230"
},
"price_list": {
"pk": 1,
"name": "lacoste_price_list",
"code": "lacoste_price_list",
"is_auto_sync": true,
"modified_date": "2018-03-19T11:28:50.209920Z",
"created_date": "2018-03-19T11:28:50.209898Z"
},
"stock_list": {
"pk": 1,
"name": "lacoste_stock_list",
"code": "lacoste_stock_list",
"is_auto_sync": true,
"modified_date": "2018-03-19T11:29:04.712208Z",
"created_date": "2018-03-19T11:29:04.712188Z"
},
"invoice_number": "SEP2018000149774",
"invoice_date": "2018-10-30T12:11:53Z",
"e_archive_url": "{domain_url}?vkn=3430333513&uuid=be2e3fb7-6b98-49b0-9f21-051185e24955",
"cancel_status": null,
"status_display": "shipped_and_informed",
"installment_interest_amount": "0.00",
"net_amount": "718.92",
"tracking_number": "202531672482",
"shipping_company": "yurtici",
"discount_amount": "0.00",
"shipment_code": "848310592757230",
"benefitapplicant_set": [],
"external_status": null,
"retail_price": null,
"mapping": [
{
"pk": 81637,
"content_type": 59,
"object_id": 48161,
"integration_type": "external_company",
"code": "48161"
}
]
}
],
"discountitem_set": [],
"transaction_set": [],
"payment_option": null,
"payment_option_slug": null,
"bin_number": null,
"installment": null,
"installment_count": null,
"installment_interest_amount": "0.00",
"cargo_company": {
"pk": 1,
"name": "Yurtiçi Kargo",
"erp_code": "yurtici_kargo",
"shipping_company": "yurtici"
},
"invoice_number": "SEP2018000149774",
"invoice_date": "2018-10-30T12:11:53Z",
"e_archive_url": "{domain_url}?vkn=3430333513&uuid=be2e3fb7-6b98-49b0-9f21-051185e24955",
"refund_amount": "0.00",
"discount_refund_amount": "0.00",
"shipping_refund_amount": "0.00",
"discount_amount": "0.00",
"cancellation_info": {},
"status_display": "shipped",
"tracking_number": "202531672482",
"is_send": true,
"cancel_status": null,
"net_shipping_amount": 6.34,
"remote_addr": null,
"fundstransfertransaction_set": [],
"has_gift_box": true,
"gift_box_note": "OMS'de hayatlar kelebigin omru kadardir.",
"tracking_url": "{domain_url}/reports/SSWDocumentDetail.aspx?DocId=202531672482",
"external_status": null,
"payondeliverytransaction_set": [],
"loyaltytransaction_set": [],
"bextransaction_set": [],
"cancellationplan_set": [],
"cashregistertransaction_set": [],
"client_type": "default",
"mapping": [
{
"pk": 81638,
"content_type": 54,
"object_id": 31999,
"integration_type": "external_company",
"code": "202531672482"
}
],
"ordertransaction_set": [],
"ordershippinginfo_set": [
{
"pk": 30613,
"order": 31999,
"shipping_company": "yurtici",
"send_response": {},
"is_send": false
}
],
"delivery_type": "same_day"
}
}

Response 204 No Content

Response 202 Accepted

Response Description

There is no response.

Response Status Codes

  • 204 No Content: The request was successful and there is no content to be returned.
  • 202 Accepted: One of the following conditions was encountered. Details can be found in the Sentry logs.
    • An order with the given order number already exists in the given channel.
    • Given omnitron id is lower than the MIN_ORDER_OMNITRON_ID setting.
    • Given channel is not one of the allowed channels in the ORDER_FILTERING setting.
    • A cargo company with the given shipping_company enum and erp_code does not exist in the system.
    • One of the properties does not match with Order_FILTERING setting.
  • 400 Bad Request: The request was malformed or missing, false given required parameters.
  • 401 Unauthorized: The requested user is not authorized to access the requested resource.
  • 406 Not Acceptable: The server cannot produce a response matching the list of acceptable values defined in the request's headers.
  • 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.