------------------------------------ START --------------------------------------------
User: 34.75.173.162 - June 9, 2021, 7:19 pm
-------------------------

oauthheader
Authorization: Zoho-oauthtoken 1000.ed16ebc5369d9bff99ad598bdb424e3a.6cafde3a76b5c499a744acf5c8417e22

draft_detail:
{"id":890612572568261625,"note":null,"email":"jon@doe.ca","taxes_included":false,"currency":"EUR","invoice_sent_at":null,"created_at":"2021-06-09T16:49:25+03:00","updated_at":"2021-06-09T16:49:25+03:00","tax_exempt":false,"completed_at":null,"name":"#D234","status":"open","line_items":[{"id":null,"variant_id":33614148436106,"product_id":4987156463754,"title":"Amazing Matte Mattatuote viimeistelyyn","variant_title":null,"sku":"670959111418","vendor":"Jane Iredale","quantity":3,"requires_shipping":true,"taxable":true,"gift_card":false,"fulfillment_service":"manual","grams":48,"tax_lines":[],"applied_discount":null,"name":"Amazing Matte Mattatuote viimeistelyyn","properties":[],"custom":false,"price":"43.95"},{"id":null,"variant_id":40316939796646,"product_id":6833253548198,"title":"Smooth Affair® Illuminating Glow heleyttävä pohjustus","variant_title":null,"sku":"670959113894","vendor":"Jane Iredale","quantity":1,"requires_shipping":true,"taxable":true,"gift_card":false,"fulfillment_service":"manual","grams":0,"tax_lines":[],"applied_discount":null,"name":"Smooth Affair® Illuminating Glow heleyttävä pohjustus","properties":[],"custom":false,"price":"48.95"},{"id":null,"variant_id":40316939796646,"product_id":6833253548198,"title":"Smooth Affair® Illuminating Glow heleyttävä pohjustus","variant_title":null,"sku":"670959113894","vendor":"Jane Iredale","quantity":10,"requires_shipping":true,"taxable":true,"gift_card":false,"fulfillment_service":"manual","grams":0,"tax_lines":[],"applied_discount":{"description":"bulk discount","value":"10.0","title":"Bulk Discount","amount":"48.95","value_type":"percentage"},"name":"Smooth Affair® Illuminating Glow heleyttävä pohjustus","properties":[],"custom":false,"price":"48.95"}],"shipping_address":{"first_name":"Steve","address1":"123 Shipping Street","phone":"555-555-SHIP","city":"Shippington","zip":"40150","province":"Kentucky","country":"United States","last_name":"Shipper","address2":null,"company":"Shipping Company","latitude":null,"longitude":null,"name":"Steve Shipper","country_code":"US","province_code":"KY"},"billing_address":{"first_name":"Bob","address1":"123 Billing Street","phone":"555-555-BILL","city":"Billtown","zip":"K2P0B0","province":"Kentucky","country":"United States","last_name":"Biller","address2":null,"company":"My Company","latitude":null,"longitude":null,"name":"Bob Biller","country_code":"US","province_code":"KY"},"invoice_url":"https:\/\/janeiredale.fi\/32963166346\/invoices\/abcd1234abcd1234abcd1234abcd1234","applied_discount":{"description":"loyalty","value":"50.0","title":"Loyalty","amount":"50.00","value_type":"fixed_amount"},"order_id":null,"shipping_line":{"title":"Generic Shipping","custom":true,"handle":null,"price":"10.00"},"tax_lines":[{"rate":0.06,"title":"Osavaltion vero","price":"7.91"},{"rate":0.06,"title":"Osavaltion vero","price":"2.94"},{"rate":0.06,"title":"Osavaltion vero","price":"26.43"}],"tags":"","note_attributes":[],"total_price":"618.63","subtotal_price":"571.35","total_tax":"0.00","admin_graphql_api_id":"gid:\/\/shopify\/ExampleDraftOrderClassMethodsExample\/890612572568261625","customer":{"id":null,"email":"john@doe.ca","accepts_marketing":false,"created_at":null,"updated_at":null,"first_name":"John","last_name":"Smith","orders_count":0,"state":"disabled","total_spent":"0.00","last_order_id":null,"note":null,"verified_email":true,"multipass_identifier":null,"tax_exempt":false,"phone":null,"tags":"","last_order_name":null,"currency":"EUR","accepts_marketing_updated_at":null,"marketing_opt_in_level":null,"default_address":{"id":null,"customer_id":null,"first_name":null,"last_name":null,"company":null,"address1":"123 Elm St.","address2":null,"city":"Ottawa","province":"Ontario","country":"Canada","zip":"K2H7A8","phone":"123-123-1234","name":"","province_code":"ON","country_code":"CA","country_name":"Canada","default":true}}}

search_customer_response:
{"code":0,"message":"success","contacts":[{"contact_id":"88366000007735155","contact_name":"JohnSmith","customer_name":"JohnSmith","company_name":"","website":"","language_code":"","language_code_formatted":"","contact_type":"customer","contact_type_formatted":"Customer","status":"active","customer_sub_type":"business","source":"api","is_linked_with_zohocrm":false,"payment_terms":0,"payment_terms_label":"Due On Receipt","currency_id":"88366000000000071","twitter":"","facebook":"","currency_code":"EUR","outstanding_receivable_amount":0.00,"outstanding_receivable_amount_bcy":0.00,"unused_credits_receivable_amount":0.00,"customer_credit_limit":"","first_name":"John","last_name":"Smith","email":"john@doe.ca","phone":"","mobile":"","portal_status":"disabled","created_time":"2021-06-08T14:20:46+0300","created_time_formatted":"08.06.2021","last_modified_time":"2021-06-08T14:20:46+0300","last_modified_time_formatted":"08.06.2021","custom_fields":[{"customfield_id":"88366000000205009","show_in_store":false,"show_in_portal":false,"is_active":true,"index":1,"label":"Asiakasnumero","show_on_pdf":false,"edit_on_portal":false,"edit_on_store":false,"show_in_all_pdf":false,"value_formatted":"201913160","search_entity":"contact","data_type":"autonumber","placeholder":"cf_asiakasnumero","value":"201913160","is_dependent_field":false},{"customfield_id":"88366000002354208","show_in_store":false,"show_in_portal":false,"is_active":true,"index":2,"label":"Customer_shopify_id","show_on_pdf":false,"edit_on_portal":false,"edit_on_store":false,"show_in_all_pdf":false,"value_formatted":"null","search_entity":"contact","data_type":"string","placeholder":"cf_customer_shopify_id","value":"null","is_dependent_field":false}],"cf_asiakasnumero":"201913160","cf_asiakasnumero_unformatted":"201913160","cf_customer_shopify_id":"null","cf_customer_shopify_id_unformatted":"null","custom_field_hash":{"cf_asiakasnumero":"201913160","cf_asiakasnumero_unformatted":"201913160","cf_customer_shopify_id":"null","cf_customer_shopify_id_unformatted":"null"},"ach_supported":false,"has_attachment":false}],"page_context":{"page":1,"per_page":200,"has_more_page":false,"report_name":"Contacts","applied_filter":"Status.All","sort_column":"customer_name","sort_order":"A","search_criteria":[{"column_name":"email","search_text":"john@doe.ca","search_text_formatted":"john@doe.ca","comparator":"contains"}]}}

contact_list:
Array
(
    [0] => stdClass Object
        (
            [contact_id] => 88366000007735155
            [contact_name] => JohnSmith
            [customer_name] => JohnSmith
            [company_name] => 
            [website] => 
            [language_code] => 
            [language_code_formatted] => 
            [contact_type] => customer
            [contact_type_formatted] => Customer
            [status] => active
            [customer_sub_type] => business
            [source] => api
            [is_linked_with_zohocrm] => 
            [payment_terms] => 0
            [payment_terms_label] => Due On Receipt
            [currency_id] => 88366000000000071
            [twitter] => 
            [facebook] => 
            [currency_code] => EUR
            [outstanding_receivable_amount] => 0
            [outstanding_receivable_amount_bcy] => 0
            [unused_credits_receivable_amount] => 0
            [customer_credit_limit] => 
            [first_name] => John
            [last_name] => Smith
            [email] => john@doe.ca
            [phone] => 
            [mobile] => 
            [portal_status] => disabled
            [created_time] => 2021-06-08T14:20:46+0300
            [created_time_formatted] => 08.06.2021
            [last_modified_time] => 2021-06-08T14:20:46+0300
            [last_modified_time_formatted] => 08.06.2021
            [custom_fields] => Array
                (
                    [0] => stdClass Object
                        (
                            [customfield_id] => 88366000000205009
                            [show_in_store] => 
                            [show_in_portal] => 
                            [is_active] => 1
                            [index] => 1
                            [label] => Asiakasnumero
                            [show_on_pdf] => 
                            [edit_on_portal] => 
                            [edit_on_store] => 
                            [show_in_all_pdf] => 
                            [value_formatted] => 201913160
                            [search_entity] => contact
                            [data_type] => autonumber
                            [placeholder] => cf_asiakasnumero
                            [value] => 201913160
                            [is_dependent_field] => 
                        )

                    [1] => stdClass Object
                        (
                            [customfield_id] => 88366000002354208
                            [show_in_store] => 
                            [show_in_portal] => 
                            [is_active] => 1
                            [index] => 2
                            [label] => Customer_shopify_id
                            [show_on_pdf] => 
                            [edit_on_portal] => 
                            [edit_on_store] => 
                            [show_in_all_pdf] => 
                            [value_formatted] => null
                            [search_entity] => contact
                            [data_type] => string
                            [placeholder] => cf_customer_shopify_id
                            [value] => null
                            [is_dependent_field] => 
                        )

                )

            [cf_asiakasnumero] => 201913160
            [cf_asiakasnumero_unformatted] => 201913160
            [cf_customer_shopify_id] => null
            [cf_customer_shopify_id_unformatted] => null
            [custom_field_hash] => stdClass Object
                (
                    [cf_asiakasnumero] => 201913160
                    [cf_asiakasnumero_unformatted] => 201913160
                    [cf_customer_shopify_id] => null
                    [cf_customer_shopify_id_unformatted] => null
                )

            [ach_supported] => 
            [has_attachment] => 
        )

)


contacts:
stdClass Object
(
    [contact_id] => 88366000007735155
    [contact_name] => JohnSmith
    [customer_name] => JohnSmith
    [company_name] => 
    [website] => 
    [language_code] => 
    [language_code_formatted] => 
    [contact_type] => customer
    [contact_type_formatted] => Customer
    [status] => active
    [customer_sub_type] => business
    [source] => api
    [is_linked_with_zohocrm] => 
    [payment_terms] => 0
    [payment_terms_label] => Due On Receipt
    [currency_id] => 88366000000000071
    [twitter] => 
    [facebook] => 
    [currency_code] => EUR
    [outstanding_receivable_amount] => 0
    [outstanding_receivable_amount_bcy] => 0
    [unused_credits_receivable_amount] => 0
    [customer_credit_limit] => 
    [first_name] => John
    [last_name] => Smith
    [email] => john@doe.ca
    [phone] => 
    [mobile] => 
    [portal_status] => disabled
    [created_time] => 2021-06-08T14:20:46+0300
    [created_time_formatted] => 08.06.2021
    [last_modified_time] => 2021-06-08T14:20:46+0300
    [last_modified_time_formatted] => 08.06.2021
    [custom_fields] => Array
        (
            [0] => stdClass Object
                (
                    [customfield_id] => 88366000000205009
                    [show_in_store] => 
                    [show_in_portal] => 
                    [is_active] => 1
                    [index] => 1
                    [label] => Asiakasnumero
                    [show_on_pdf] => 
                    [edit_on_portal] => 
                    [edit_on_store] => 
                    [show_in_all_pdf] => 
                    [value_formatted] => 201913160
                    [search_entity] => contact
                    [data_type] => autonumber
                    [placeholder] => cf_asiakasnumero
                    [value] => 201913160
                    [is_dependent_field] => 
                )

            [1] => stdClass Object
                (
                    [customfield_id] => 88366000002354208
                    [show_in_store] => 
                    [show_in_portal] => 
                    [is_active] => 1
                    [index] => 2
                    [label] => Customer_shopify_id
                    [show_on_pdf] => 
                    [edit_on_portal] => 
                    [edit_on_store] => 
                    [show_in_all_pdf] => 
                    [value_formatted] => null
                    [search_entity] => contact
                    [data_type] => string
                    [placeholder] => cf_customer_shopify_id
                    [value] => null
                    [is_dependent_field] => 
                )

        )

    [cf_asiakasnumero] => 201913160
    [cf_asiakasnumero_unformatted] => 201913160
    [cf_customer_shopify_id] => null
    [cf_customer_shopify_id_unformatted] => null
    [custom_field_hash] => stdClass Object
        (
            [cf_asiakasnumero] => 201913160
            [cf_asiakasnumero_unformatted] => 201913160
            [cf_customer_shopify_id] => null
            [cf_customer_shopify_id_unformatted] => null
        )

    [ach_supported] => 
    [has_attachment] => 
)


search_item_response:
{"code":0,"message":"success","items":[{"item_id":"88366000000804553","name":"Amazing Matte Mattatuote viimeistelyyn","item_name":"Amazing Matte Mattatuote viimeistelyyn","category_id":"88366000000093320","category_name":"Oil Control","unit":"pcs","status":"active","source":"csv","is_combo_product":false,"is_linked_with_zohocrm":true,"zcrm_product_id":"233790000000493447","description":"Amazing Matte/ Matta irtopohja","brand":"JaneIredale","manufacturer":"Jane Iredale","rate":43.95,"tax_id":"88366000000671292","tax_name":"VAT 24","tax_percentage":24,"purchase_account_id":"88366000000000509","purchase_account_name":"Ostot","account_name":"Myynti","purchase_description":"11019","purchase_rate":9.49,"item_type":"inventory","product_type":"goods","stock_on_hand":32.000000,"has_attachment":false,"is_returnable":true,"available_stock":32.000000,"actual_available_stock":32.000000,"sku":"670959111418","upc":"670959111418","ean":"670959111418","isbn":"","part_number":"11019","track_batch_number":false,"reorder_level":"","image_name":"75703-1E.jpg","image_type":"jpg","image_document_id":"88366000002158609","created_time":"2019-12-26T16:51:58+0200","last_modified_time":"2021-06-07T21:10:22+0300","cf_ean_code":"670959111418","cf_ean_code_unformatted":"670959111418","cf_usd_purchase_price":"7.88","cf_usd_purchase_price_unformatted":7.880000,"cf_shopify_id":"4987156463754","cf_shopify_id_unformatted":"4987156463754","cf_shopify_variant_id":"33614148436106","cf_shopify_variant_id_unformatted":"33614148436106"}],"page_context":{"page":1,"per_page":200,"has_more_page":false,"report_name":"Items","applied_filter":"Status.All","sort_column":"name","sort_order":"A","search_criteria":[{"column_name":"sku","search_text":"670959111418","search_text_formatted":"670959111418","comparator":"contains"},{"column_name":"status","search_text":"active","search_text_formatted":"active","comparator":"equal"}]}}

item_id:
88366000000804553

search_item_response:
{"code":0,"message":"success","items":[{"item_id":"88366000007756869","name":"Smooth Affair® Illuminating Glow heleyttävä pohjustus","item_name":"Smooth Affair® Illuminating Glow heleyttävä pohjustus","category_id":"88366000000093318","category_name":"Primers","unit":"pcs","status":"active","source":"user","is_combo_product":false,"is_linked_with_zohocrm":true,"zcrm_product_id":"233790000004970053","description":"Smooth Affair® Illuminating Glow heleyttävä meikin pohjustus","brand":"JaneIredale","manufacturer":"Jane Iredale","rate":48.95,"tax_id":"88366000000671292","tax_name":"VAT 24","tax_percentage":24,"purchase_account_id":"88366000000000509","purchase_account_name":"Ostot","account_name":"Myynti","purchase_description":"12421","purchase_rate":11.56,"item_type":"inventory","product_type":"goods","stock_on_hand":0,"has_attachment":false,"is_returnable":true,"available_stock":0,"actual_available_stock":0.000000,"sku":"670959113894","upc":"","ean":"670959113894","isbn":"","part_number":"12421","track_batch_number":false,"reorder_level":"","image_name":"SA-Illuminating 720x720.jpg","image_type":"jpg","image_document_id":"88366000007756876","created_time":"2021-06-09T11:59:11+0300","last_modified_time":"2021-06-09T16:11:29+0300","cf_ean_code":"670959113894","cf_ean_code_unformatted":"670959113894","cf_usd_purchase_price":"12.00","cf_usd_purchase_price_unformatted":12.000000,"cf_shopify_id":"6833253548198","cf_shopify_id_unformatted":"6833253548198"}],"page_context":{"page":1,"per_page":200,"has_more_page":false,"report_name":"Items","applied_filter":"Status.All","sort_column":"name","sort_order":"A","search_criteria":[{"column_name":"sku","search_text":"670959113894","search_text_formatted":"670959113894","comparator":"contains"},{"column_name":"status","search_text":"active","search_text_formatted":"active","comparator":"equal"}]}}

item_id:
88366000007756869

search_item_response:
{"code":0,"message":"success","items":[{"item_id":"88366000007756869","name":"Smooth Affair® Illuminating Glow heleyttävä pohjustus","item_name":"Smooth Affair® Illuminating Glow heleyttävä pohjustus","category_id":"88366000000093318","category_name":"Primers","unit":"pcs","status":"active","source":"user","is_combo_product":false,"is_linked_with_zohocrm":true,"zcrm_product_id":"233790000004970053","description":"Smooth Affair® Illuminating Glow heleyttävä meikin pohjustus","brand":"JaneIredale","manufacturer":"Jane Iredale","rate":48.95,"tax_id":"88366000000671292","tax_name":"VAT 24","tax_percentage":24,"purchase_account_id":"88366000000000509","purchase_account_name":"Ostot","account_name":"Myynti","purchase_description":"12421","purchase_rate":11.56,"item_type":"inventory","product_type":"goods","stock_on_hand":0,"has_attachment":false,"is_returnable":true,"available_stock":0,"actual_available_stock":0.000000,"sku":"670959113894","upc":"","ean":"670959113894","isbn":"","part_number":"12421","track_batch_number":false,"reorder_level":"","image_name":"SA-Illuminating 720x720.jpg","image_type":"jpg","image_document_id":"88366000007756876","created_time":"2021-06-09T11:59:11+0300","last_modified_time":"2021-06-09T16:11:29+0300","cf_ean_code":"670959113894","cf_ean_code_unformatted":"670959113894","cf_usd_purchase_price":"12.00","cf_usd_purchase_price_unformatted":12.000000,"cf_shopify_id":"6833253548198","cf_shopify_id_unformatted":"6833253548198"}],"page_context":{"page":1,"per_page":200,"has_more_page":false,"report_name":"Items","applied_filter":"Status.All","sort_column":"name","sort_order":"A","search_criteria":[{"column_name":"sku","search_text":"670959113894","search_text_formatted":"670959113894","comparator":"contains"},{"column_name":"status","search_text":"active","search_text_formatted":"active","comparator":"equal"}]}}

item_id:
88366000007756869

Discount Price:
38.95

Line Item:
Array
(
    [item_id] => 88366000007756869
    [name] => Smooth Affair® Illuminating Glow heleyttävä pohjustus
    [rate] => 38.95
    [quantity] => 10
    [is_inclusive_tax] => 1
)


create_draft_map:
{"customer_id":"88366000007735155","line_items":[{"item_id":"88366000000804553","rate":"43.95","quantity":3,"is_inclusive_tax":true},{"item_id":"88366000007756869","rate":"48.95","quantity":1,"is_inclusive_tax":true},{"item_id":"88366000007756869","name":"Smooth Affair\u00ae Illuminating Glow heleytt\u00e4v\u00e4 pohjustus","rate":38.95,"quantity":10,"is_inclusive_tax":true}],"status":"Draft","notes":null,"is_inclusive_tax":false,"custom_fields":[{"customfield_id":88366000002453110,"value":890612572568261625}],"sub_total":"571.35","total":"618.63","tax_total":"0.00"}

search_draft_ZI:
{"code":0,"message":"success","salesorders":[{"salesorder_id":"88366000007763002","zcrm_potential_id":"","zcrm_potential_name":"","customer_name":"JohnSmith","customer_id":"88366000007735155","email":"john@doe.ca","delivery_date":"","company_name":"","color_code":"","current_sub_status_id":"","current_sub_status":"draft","pickup_location_id":"","salesorder_number":"SO-02495","reference_number":"","date":"2021-06-09","shipment_date":"","shipment_days":"","due_by_days":"","due_in_days":"","currency_id":"88366000000000071","source":"","currency_code":"EUR","total":707.17,"bcy_total":707.17,"total_invoiced_amount":0.00,"created_time":"2021-06-09T16:35:18+0300","last_modified_time":"2021-06-09T16:45:42+0300","is_emailed":false,"quantity":14.000000,"quantity_invoiced":0.000000,"quantity_packed":0.000000,"quantity_shipped":0.000000,"order_status":"draft","invoiced_status":"","paid_status":"","shipped_status":"","status":"draft","is_drop_shipment":false,"is_backorder":false,"is_manually_fulfilled":false,"sales_channel":"direct_sales","sales_channel_formatted":"Direct Sales","salesperson_name":"","has_attachment":false,"cf_shopify_so_id":"890612572568261625","cf_shopify_so_id_unformatted":"890612572568261625","customer_custom_fields":[{"customfield_id":"88366000000205009","show_in_store":false,"show_in_portal":false,"is_active":true,"index":1,"label":"Asiakasnumero","show_on_pdf":false,"edit_on_portal":false,"edit_on_store":false,"show_in_all_pdf":false,"value_formatted":"201913160","search_entity":"contact","data_type":"autonumber","placeholder":"customer_cf_asiakasnumero","value":"201913160","is_dependent_field":false},{"customfield_id":"88366000002354208","show_in_store":false,"show_in_portal":false,"is_active":true,"index":2,"label":"Customer_shopify_id","show_on_pdf":false,"edit_on_portal":false,"edit_on_store":false,"show_in_all_pdf":false,"value_formatted":"null","search_entity":"contact","data_type":"string","placeholder":"customer_cf_customer_shopify_id","value":"null","is_dependent_field":false}],"customer_cf_asiakasnumero":"201913160","customer_cf_asiakasnumero_unformatted":"201913160","customer_cf_customer_shopify_id":"null","customer_cf_customer_shopify_id_unformatted":"null","customer_custom_field_hash":{"customer_cf_asiakasnumero":"201913160","customer_cf_asiakasnumero_unformatted":"201913160","customer_cf_customer_shopify_id":"null","customer_cf_customer_shopify_id_unformatted":"null"},"balance":707.17,"delivery_method":"","delivery_method_id":""}],"page_context":{"page":1,"per_page":200,"has_more_page":false,"report_name":"Sales Orders","applied_filter":"Status.All","sort_column":"created_time","sort_order":"D","search_criteria":[{"column_name":"cf_shopify_so_id","search_text":"890612572568261625","search_text_formatted":"890612572568261625","comparator":"equal"}]}}

sales_order_data:
JSONString=%7B%22customer_id%22%3A%2288366000007735155%22%2C%22line_items%22%3A%5B%7B%22item_id%22%3A%2288366000000804553%22%2C%22rate%22%3A%2243.95%22%2C%22quantity%22%3A3%2C%22is_inclusive_tax%22%3Atrue%7D%2C%7B%22item_id%22%3A%2288366000007756869%22%2C%22rate%22%3A%2248.95%22%2C%22quantity%22%3A1%2C%22is_inclusive_tax%22%3Atrue%7D%2C%7B%22item_id%22%3A%2288366000007756869%22%2C%22name%22%3A%22Smooth+Affair%5Cu00ae+Illuminating+Glow+heleytt%5Cu00e4v%5Cu00e4+pohjustus%22%2C%22rate%22%3A38.95%2C%22quantity%22%3A10%2C%22is_inclusive_tax%22%3Atrue%7D%5D%2C%22status%22%3A%22Draft%22%2C%22notes%22%3Anull%2C%22is_inclusive_tax%22%3Afalse%2C%22custom_fields%22%3A%5B%7B%22customfield_id%22%3A88366000002453110%2C%22value%22%3A890612572568261625%7D%5D%2C%22sub_total%22%3A%22571.35%22%2C%22total%22%3A%22618.63%22%2C%22tax_total%22%3A%220.00%22%7D

sales_order id in salesorder_detail:
1

--------------------------------- END -----------------------------------
------------------------------------ START --------------------------------------------
User: 35.231.97.1 - June 9, 2021, 7:22 pm
-------------------------

oauthheader
Authorization: Zoho-oauthtoken 1000.8a74b8db392b143e179fd717781778ec.4fcef35d99105f795cf8974d3f7f6da0

draft_detail:
{"id":890612572568261625,"note":null,"email":"jon@doe.ca","taxes_included":false,"currency":"EUR","invoice_sent_at":null,"created_at":"2021-06-09T16:52:16+03:00","updated_at":"2021-06-09T16:52:16+03:00","tax_exempt":false,"completed_at":null,"name":"#D234","status":"open","line_items":[{"id":null,"variant_id":33614148436106,"product_id":4987156463754,"title":"Amazing Matte Mattatuote viimeistelyyn","variant_title":null,"sku":"670959111418","vendor":"Jane Iredale","quantity":3,"requires_shipping":true,"taxable":true,"gift_card":false,"fulfillment_service":"manual","grams":48,"tax_lines":[],"applied_discount":null,"name":"Amazing Matte Mattatuote viimeistelyyn","properties":[],"custom":false,"price":"43.95"},{"id":null,"variant_id":40316939796646,"product_id":6833253548198,"title":"Smooth Affair® Illuminating Glow heleyttävä pohjustus","variant_title":null,"sku":"670959113894","vendor":"Jane Iredale","quantity":1,"requires_shipping":true,"taxable":true,"gift_card":false,"fulfillment_service":"manual","grams":0,"tax_lines":[],"applied_discount":null,"name":"Smooth Affair® Illuminating Glow heleyttävä pohjustus","properties":[],"custom":false,"price":"48.95"},{"id":null,"variant_id":40316939796646,"product_id":6833253548198,"title":"Smooth Affair® Illuminating Glow heleyttävä pohjustus","variant_title":null,"sku":"670959113894","vendor":"Jane Iredale","quantity":10,"requires_shipping":true,"taxable":true,"gift_card":false,"fulfillment_service":"manual","grams":0,"tax_lines":[],"applied_discount":{"description":"bulk discount","value":"10.0","title":"Bulk Discount","amount":"48.95","value_type":"percentage"},"name":"Smooth Affair® Illuminating Glow heleyttävä pohjustus","properties":[],"custom":false,"price":"48.95"}],"shipping_address":{"first_name":"Steve","address1":"123 Shipping Street","phone":"555-555-SHIP","city":"Shippington","zip":"40150","province":"Kentucky","country":"United States","last_name":"Shipper","address2":null,"company":"Shipping Company","latitude":null,"longitude":null,"name":"Steve Shipper","country_code":"US","province_code":"KY"},"billing_address":{"first_name":"Bob","address1":"123 Billing Street","phone":"555-555-BILL","city":"Billtown","zip":"K2P0B0","province":"Kentucky","country":"United States","last_name":"Biller","address2":null,"company":"My Company","latitude":null,"longitude":null,"name":"Bob Biller","country_code":"US","province_code":"KY"},"invoice_url":"https:\/\/janeiredale.fi\/32963166346\/invoices\/abcd1234abcd1234abcd1234abcd1234","applied_discount":{"description":"loyalty","value":"50.0","title":"Loyalty","amount":"50.00","value_type":"fixed_amount"},"order_id":null,"shipping_line":{"title":"Generic Shipping","custom":true,"handle":null,"price":"10.00"},"tax_lines":[{"rate":0.06,"title":"Osavaltion vero","price":"7.91"},{"rate":0.06,"title":"Osavaltion vero","price":"2.94"},{"rate":0.06,"title":"Osavaltion vero","price":"26.43"}],"tags":"","note_attributes":[],"total_price":"618.63","subtotal_price":"571.35","total_tax":"0.00","admin_graphql_api_id":"gid:\/\/shopify\/ExampleDraftOrderClassMethodsExample\/890612572568261625","customer":{"id":null,"email":"john@doe.ca","accepts_marketing":false,"created_at":null,"updated_at":null,"first_name":"John","last_name":"Smith","orders_count":0,"state":"disabled","total_spent":"0.00","last_order_id":null,"note":null,"verified_email":true,"multipass_identifier":null,"tax_exempt":false,"phone":null,"tags":"","last_order_name":null,"currency":"EUR","accepts_marketing_updated_at":null,"marketing_opt_in_level":null,"default_address":{"id":null,"customer_id":null,"first_name":null,"last_name":null,"company":null,"address1":"123 Elm St.","address2":null,"city":"Ottawa","province":"Ontario","country":"Canada","zip":"K2H7A8","phone":"123-123-1234","name":"","province_code":"ON","country_code":"CA","country_name":"Canada","default":true}}}

search_customer_response:
{"code":0,"message":"success","contacts":[{"contact_id":"88366000007735155","contact_name":"JohnSmith","customer_name":"JohnSmith","company_name":"","website":"","language_code":"","language_code_formatted":"","contact_type":"customer","contact_type_formatted":"Customer","status":"active","customer_sub_type":"business","source":"api","is_linked_with_zohocrm":false,"payment_terms":0,"payment_terms_label":"Due On Receipt","currency_id":"88366000000000071","twitter":"","facebook":"","currency_code":"EUR","outstanding_receivable_amount":0.00,"outstanding_receivable_amount_bcy":0.00,"unused_credits_receivable_amount":0.00,"customer_credit_limit":"","first_name":"John","last_name":"Smith","email":"john@doe.ca","phone":"","mobile":"","portal_status":"disabled","created_time":"2021-06-08T14:20:46+0300","created_time_formatted":"08.06.2021","last_modified_time":"2021-06-08T14:20:46+0300","last_modified_time_formatted":"08.06.2021","custom_fields":[{"customfield_id":"88366000000205009","show_in_store":false,"show_in_portal":false,"is_active":true,"index":1,"label":"Asiakasnumero","show_on_pdf":false,"edit_on_portal":false,"edit_on_store":false,"show_in_all_pdf":false,"value_formatted":"201913160","search_entity":"contact","data_type":"autonumber","placeholder":"cf_asiakasnumero","value":"201913160","is_dependent_field":false},{"customfield_id":"88366000002354208","show_in_store":false,"show_in_portal":false,"is_active":true,"index":2,"label":"Customer_shopify_id","show_on_pdf":false,"edit_on_portal":false,"edit_on_store":false,"show_in_all_pdf":false,"value_formatted":"null","search_entity":"contact","data_type":"string","placeholder":"cf_customer_shopify_id","value":"null","is_dependent_field":false}],"cf_asiakasnumero":"201913160","cf_asiakasnumero_unformatted":"201913160","cf_customer_shopify_id":"null","cf_customer_shopify_id_unformatted":"null","custom_field_hash":{"cf_asiakasnumero":"201913160","cf_asiakasnumero_unformatted":"201913160","cf_customer_shopify_id":"null","cf_customer_shopify_id_unformatted":"null"},"ach_supported":false,"has_attachment":false}],"page_context":{"page":1,"per_page":200,"has_more_page":false,"report_name":"Contacts","applied_filter":"Status.All","sort_column":"customer_name","sort_order":"A","search_criteria":[{"column_name":"email","search_text":"john@doe.ca","search_text_formatted":"john@doe.ca","comparator":"contains"}]}}

contact_list:
Array
(
    [0] => stdClass Object
        (
            [contact_id] => 88366000007735155
            [contact_name] => JohnSmith
            [customer_name] => JohnSmith
            [company_name] => 
            [website] => 
            [language_code] => 
            [language_code_formatted] => 
            [contact_type] => customer
            [contact_type_formatted] => Customer
            [status] => active
            [customer_sub_type] => business
            [source] => api
            [is_linked_with_zohocrm] => 
            [payment_terms] => 0
            [payment_terms_label] => Due On Receipt
            [currency_id] => 88366000000000071
            [twitter] => 
            [facebook] => 
            [currency_code] => EUR
            [outstanding_receivable_amount] => 0
            [outstanding_receivable_amount_bcy] => 0
            [unused_credits_receivable_amount] => 0
            [customer_credit_limit] => 
            [first_name] => John
            [last_name] => Smith
            [email] => john@doe.ca
            [phone] => 
            [mobile] => 
            [portal_status] => disabled
            [created_time] => 2021-06-08T14:20:46+0300
            [created_time_formatted] => 08.06.2021
            [last_modified_time] => 2021-06-08T14:20:46+0300
            [last_modified_time_formatted] => 08.06.2021
            [custom_fields] => Array
                (
                    [0] => stdClass Object
                        (
                            [customfield_id] => 88366000000205009
                            [show_in_store] => 
                            [show_in_portal] => 
                            [is_active] => 1
                            [index] => 1
                            [label] => Asiakasnumero
                            [show_on_pdf] => 
                            [edit_on_portal] => 
                            [edit_on_store] => 
                            [show_in_all_pdf] => 
                            [value_formatted] => 201913160
                            [search_entity] => contact
                            [data_type] => autonumber
                            [placeholder] => cf_asiakasnumero
                            [value] => 201913160
                            [is_dependent_field] => 
                        )

                    [1] => stdClass Object
                        (
                            [customfield_id] => 88366000002354208
                            [show_in_store] => 
                            [show_in_portal] => 
                            [is_active] => 1
                            [index] => 2
                            [label] => Customer_shopify_id
                            [show_on_pdf] => 
                            [edit_on_portal] => 
                            [edit_on_store] => 
                            [show_in_all_pdf] => 
                            [value_formatted] => null
                            [search_entity] => contact
                            [data_type] => string
                            [placeholder] => cf_customer_shopify_id
                            [value] => null
                            [is_dependent_field] => 
                        )

                )

            [cf_asiakasnumero] => 201913160
            [cf_asiakasnumero_unformatted] => 201913160
            [cf_customer_shopify_id] => null
            [cf_customer_shopify_id_unformatted] => null
            [custom_field_hash] => stdClass Object
                (
                    [cf_asiakasnumero] => 201913160
                    [cf_asiakasnumero_unformatted] => 201913160
                    [cf_customer_shopify_id] => null
                    [cf_customer_shopify_id_unformatted] => null
                )

            [ach_supported] => 
            [has_attachment] => 
        )

)


contacts:
stdClass Object
(
    [contact_id] => 88366000007735155
    [contact_name] => JohnSmith
    [customer_name] => JohnSmith
    [company_name] => 
    [website] => 
    [language_code] => 
    [language_code_formatted] => 
    [contact_type] => customer
    [contact_type_formatted] => Customer
    [status] => active
    [customer_sub_type] => business
    [source] => api
    [is_linked_with_zohocrm] => 
    [payment_terms] => 0
    [payment_terms_label] => Due On Receipt
    [currency_id] => 88366000000000071
    [twitter] => 
    [facebook] => 
    [currency_code] => EUR
    [outstanding_receivable_amount] => 0
    [outstanding_receivable_amount_bcy] => 0
    [unused_credits_receivable_amount] => 0
    [customer_credit_limit] => 
    [first_name] => John
    [last_name] => Smith
    [email] => john@doe.ca
    [phone] => 
    [mobile] => 
    [portal_status] => disabled
    [created_time] => 2021-06-08T14:20:46+0300
    [created_time_formatted] => 08.06.2021
    [last_modified_time] => 2021-06-08T14:20:46+0300
    [last_modified_time_formatted] => 08.06.2021
    [custom_fields] => Array
        (
            [0] => stdClass Object
                (
                    [customfield_id] => 88366000000205009
                    [show_in_store] => 
                    [show_in_portal] => 
                    [is_active] => 1
                    [index] => 1
                    [label] => Asiakasnumero
                    [show_on_pdf] => 
                    [edit_on_portal] => 
                    [edit_on_store] => 
                    [show_in_all_pdf] => 
                    [value_formatted] => 201913160
                    [search_entity] => contact
                    [data_type] => autonumber
                    [placeholder] => cf_asiakasnumero
                    [value] => 201913160
                    [is_dependent_field] => 
                )

            [1] => stdClass Object
                (
                    [customfield_id] => 88366000002354208
                    [show_in_store] => 
                    [show_in_portal] => 
                    [is_active] => 1
                    [index] => 2
                    [label] => Customer_shopify_id
                    [show_on_pdf] => 
                    [edit_on_portal] => 
                    [edit_on_store] => 
                    [show_in_all_pdf] => 
                    [value_formatted] => null
                    [search_entity] => contact
                    [data_type] => string
                    [placeholder] => cf_customer_shopify_id
                    [value] => null
                    [is_dependent_field] => 
                )

        )

    [cf_asiakasnumero] => 201913160
    [cf_asiakasnumero_unformatted] => 201913160
    [cf_customer_shopify_id] => null
    [cf_customer_shopify_id_unformatted] => null
    [custom_field_hash] => stdClass Object
        (
            [cf_asiakasnumero] => 201913160
            [cf_asiakasnumero_unformatted] => 201913160
            [cf_customer_shopify_id] => null
            [cf_customer_shopify_id_unformatted] => null
        )

    [ach_supported] => 
    [has_attachment] => 
)


search_item_response:
{"code":0,"message":"success","items":[{"item_id":"88366000000804553","name":"Amazing Matte Mattatuote viimeistelyyn","item_name":"Amazing Matte Mattatuote viimeistelyyn","category_id":"88366000000093320","category_name":"Oil Control","unit":"pcs","status":"active","source":"csv","is_combo_product":false,"is_linked_with_zohocrm":true,"zcrm_product_id":"233790000000493447","description":"Amazing Matte/ Matta irtopohja","brand":"JaneIredale","manufacturer":"Jane Iredale","rate":43.95,"tax_id":"88366000000671292","tax_name":"VAT 24","tax_percentage":24,"purchase_account_id":"88366000000000509","purchase_account_name":"Ostot","account_name":"Myynti","purchase_description":"11019","purchase_rate":9.49,"item_type":"inventory","product_type":"goods","stock_on_hand":32.000000,"has_attachment":false,"is_returnable":true,"available_stock":32.000000,"actual_available_stock":32.000000,"sku":"670959111418","upc":"670959111418","ean":"670959111418","isbn":"","part_number":"11019","track_batch_number":false,"reorder_level":"","image_name":"75703-1E.jpg","image_type":"jpg","image_document_id":"88366000002158609","created_time":"2019-12-26T16:51:58+0200","last_modified_time":"2021-06-07T21:10:22+0300","cf_ean_code":"670959111418","cf_ean_code_unformatted":"670959111418","cf_usd_purchase_price":"7.88","cf_usd_purchase_price_unformatted":7.880000,"cf_shopify_id":"4987156463754","cf_shopify_id_unformatted":"4987156463754","cf_shopify_variant_id":"33614148436106","cf_shopify_variant_id_unformatted":"33614148436106"}],"page_context":{"page":1,"per_page":200,"has_more_page":false,"report_name":"Items","applied_filter":"Status.All","sort_column":"name","sort_order":"A","search_criteria":[{"column_name":"sku","search_text":"670959111418","search_text_formatted":"670959111418","comparator":"contains"},{"column_name":"status","search_text":"active","search_text_formatted":"active","comparator":"equal"}]}}

item_id:
88366000000804553

search_item_response:
{"code":0,"message":"success","items":[{"item_id":"88366000007756869","name":"Smooth Affair® Illuminating Glow heleyttävä pohjustus","item_name":"Smooth Affair® Illuminating Glow heleyttävä pohjustus","category_id":"88366000000093318","category_name":"Primers","unit":"pcs","status":"active","source":"user","is_combo_product":false,"is_linked_with_zohocrm":true,"zcrm_product_id":"233790000004970053","description":"Smooth Affair® Illuminating Glow heleyttävä meikin pohjustus","brand":"JaneIredale","manufacturer":"Jane Iredale","rate":48.95,"tax_id":"88366000000671292","tax_name":"VAT 24","tax_percentage":24,"purchase_account_id":"88366000000000509","purchase_account_name":"Ostot","account_name":"Myynti","purchase_description":"12421","purchase_rate":11.56,"item_type":"inventory","product_type":"goods","stock_on_hand":0,"has_attachment":false,"is_returnable":true,"available_stock":0,"actual_available_stock":0.000000,"sku":"670959113894","upc":"","ean":"670959113894","isbn":"","part_number":"12421","track_batch_number":false,"reorder_level":"","image_name":"SA-Illuminating 720x720.jpg","image_type":"jpg","image_document_id":"88366000007756876","created_time":"2021-06-09T11:59:11+0300","last_modified_time":"2021-06-09T16:11:29+0300","cf_ean_code":"670959113894","cf_ean_code_unformatted":"670959113894","cf_usd_purchase_price":"12.00","cf_usd_purchase_price_unformatted":12.000000,"cf_shopify_id":"6833253548198","cf_shopify_id_unformatted":"6833253548198"}],"page_context":{"page":1,"per_page":200,"has_more_page":false,"report_name":"Items","applied_filter":"Status.All","sort_column":"name","sort_order":"A","search_criteria":[{"column_name":"sku","search_text":"670959113894","search_text_formatted":"670959113894","comparator":"contains"},{"column_name":"status","search_text":"active","search_text_formatted":"active","comparator":"equal"}]}}

item_id:
88366000007756869

search_item_response:
{"code":0,"message":"success","items":[{"item_id":"88366000007756869","name":"Smooth Affair® Illuminating Glow heleyttävä pohjustus","item_name":"Smooth Affair® Illuminating Glow heleyttävä pohjustus","category_id":"88366000000093318","category_name":"Primers","unit":"pcs","status":"active","source":"user","is_combo_product":false,"is_linked_with_zohocrm":true,"zcrm_product_id":"233790000004970053","description":"Smooth Affair® Illuminating Glow heleyttävä meikin pohjustus","brand":"JaneIredale","manufacturer":"Jane Iredale","rate":48.95,"tax_id":"88366000000671292","tax_name":"VAT 24","tax_percentage":24,"purchase_account_id":"88366000000000509","purchase_account_name":"Ostot","account_name":"Myynti","purchase_description":"12421","purchase_rate":11.56,"item_type":"inventory","product_type":"goods","stock_on_hand":0,"has_attachment":false,"is_returnable":true,"available_stock":0,"actual_available_stock":0.000000,"sku":"670959113894","upc":"","ean":"670959113894","isbn":"","part_number":"12421","track_batch_number":false,"reorder_level":"","image_name":"SA-Illuminating 720x720.jpg","image_type":"jpg","image_document_id":"88366000007756876","created_time":"2021-06-09T11:59:11+0300","last_modified_time":"2021-06-09T16:11:29+0300","cf_ean_code":"670959113894","cf_ean_code_unformatted":"670959113894","cf_usd_purchase_price":"12.00","cf_usd_purchase_price_unformatted":12.000000,"cf_shopify_id":"6833253548198","cf_shopify_id_unformatted":"6833253548198"}],"page_context":{"page":1,"per_page":200,"has_more_page":false,"report_name":"Items","applied_filter":"Status.All","sort_column":"name","sort_order":"A","search_criteria":[{"column_name":"sku","search_text":"670959113894","search_text_formatted":"670959113894","comparator":"contains"},{"column_name":"status","search_text":"active","search_text_formatted":"active","comparator":"equal"}]}}

item_id:
88366000007756869

Discount Price:
38.95

Line Item:
Array
(
    [item_id] => 88366000007756869
    [name] => Smooth Affair® Illuminating Glow heleyttävä pohjustus
    [rate] => 38.95
    [quantity] => 10
    [is_inclusive_tax] => 1
)


create_draft_map:
{"customer_id":"88366000007735155","line_items":[{"item_id":"88366000000804553","rate":"43.95","quantity":3,"is_inclusive_tax":true},{"item_id":"88366000007756869","rate":"48.95","quantity":1,"is_inclusive_tax":true},{"item_id":"88366000007756869","name":"Smooth Affair\u00ae Illuminating Glow heleytt\u00e4v\u00e4 pohjustus","rate":38.95,"quantity":10,"is_inclusive_tax":true}],"status":"Draft","notes":null,"is_inclusive_tax":false,"custom_fields":[{"customfield_id":88366000002453110,"value":890612572568261625}],"sub_total":"571.35","total":"618.63","tax_total":"0.00"}

search_draft_ZI:
{"code":0,"message":"success","salesorders":[{"salesorder_id":"88366000007763002","zcrm_potential_id":"","zcrm_potential_name":"","customer_name":"JohnSmith","customer_id":"88366000007735155","email":"john@doe.ca","delivery_date":"","company_name":"","color_code":"","current_sub_status_id":"","current_sub_status":"draft","pickup_location_id":"","salesorder_number":"SO-02495","reference_number":"","date":"2021-06-09","shipment_date":"","shipment_days":"","due_by_days":"","due_in_days":"","currency_id":"88366000000000071","source":"","currency_code":"EUR","total":707.17,"bcy_total":707.17,"total_invoiced_amount":0.00,"created_time":"2021-06-09T16:35:18+0300","last_modified_time":"2021-06-09T16:49:29+0300","is_emailed":false,"quantity":14.000000,"quantity_invoiced":0.000000,"quantity_packed":0.000000,"quantity_shipped":0.000000,"order_status":"draft","invoiced_status":"","paid_status":"","shipped_status":"","status":"draft","is_drop_shipment":false,"is_backorder":false,"is_manually_fulfilled":false,"sales_channel":"direct_sales","sales_channel_formatted":"Direct Sales","salesperson_name":"","has_attachment":false,"cf_shopify_so_id":"890612572568261625","cf_shopify_so_id_unformatted":"890612572568261625","customer_custom_fields":[{"customfield_id":"88366000000205009","show_in_store":false,"show_in_portal":false,"is_active":true,"index":1,"label":"Asiakasnumero","show_on_pdf":false,"edit_on_portal":false,"edit_on_store":false,"show_in_all_pdf":false,"value_formatted":"201913160","search_entity":"contact","data_type":"autonumber","placeholder":"customer_cf_asiakasnumero","value":"201913160","is_dependent_field":false},{"customfield_id":"88366000002354208","show_in_store":false,"show_in_portal":false,"is_active":true,"index":2,"label":"Customer_shopify_id","show_on_pdf":false,"edit_on_portal":false,"edit_on_store":false,"show_in_all_pdf":false,"value_formatted":"null","search_entity":"contact","data_type":"string","placeholder":"customer_cf_customer_shopify_id","value":"null","is_dependent_field":false}],"customer_cf_asiakasnumero":"201913160","customer_cf_asiakasnumero_unformatted":"201913160","customer_cf_customer_shopify_id":"null","customer_cf_customer_shopify_id_unformatted":"null","customer_custom_field_hash":{"customer_cf_asiakasnumero":"201913160","customer_cf_asiakasnumero_unformatted":"201913160","customer_cf_customer_shopify_id":"null","customer_cf_customer_shopify_id_unformatted":"null"},"balance":707.17,"delivery_method":"","delivery_method_id":""}],"page_context":{"page":1,"per_page":200,"has_more_page":false,"report_name":"Sales Orders","applied_filter":"Status.All","sort_column":"created_time","sort_order":"D","search_criteria":[{"column_name":"cf_shopify_so_id","search_text":"890612572568261625","search_text_formatted":"890612572568261625","comparator":"equal"}]}}

sales_order_data:
JSONString=%7B%22customer_id%22%3A%2288366000007735155%22%2C%22line_items%22%3A%5B%7B%22item_id%22%3A%2288366000000804553%22%2C%22rate%22%3A%2243.95%22%2C%22quantity%22%3A3%2C%22is_inclusive_tax%22%3Atrue%7D%2C%7B%22item_id%22%3A%2288366000007756869%22%2C%22rate%22%3A%2248.95%22%2C%22quantity%22%3A1%2C%22is_inclusive_tax%22%3Atrue%7D%2C%7B%22item_id%22%3A%2288366000007756869%22%2C%22name%22%3A%22Smooth+Affair%5Cu00ae+Illuminating+Glow+heleytt%5Cu00e4v%5Cu00e4+pohjustus%22%2C%22rate%22%3A38.95%2C%22quantity%22%3A10%2C%22is_inclusive_tax%22%3Atrue%7D%5D%2C%22status%22%3A%22Draft%22%2C%22notes%22%3Anull%2C%22is_inclusive_tax%22%3Afalse%2C%22custom_fields%22%3A%5B%7B%22customfield_id%22%3A88366000002453110%2C%22value%22%3A890612572568261625%7D%5D%2C%22sub_total%22%3A%22571.35%22%2C%22total%22%3A%22618.63%22%2C%22tax_total%22%3A%220.00%22%7D

Array:
Array

sales_order id in salesorder_detail:
1

--------------------------------- END -----------------------------------
------------------------------------ START --------------------------------------------
User: 34.74.195.175 - June 9, 2021, 7:25 pm
-------------------------

oauthheader
Authorization: Zoho-oauthtoken 1000.00c8d395114d14a2b925f722e95e17bb.61a153079c076bd618e54954c94ddab4

draft_detail:
{"id":856368709798,"note":null,"email":"testmanush@yopmail.com","taxes_included":true,"currency":"EUR","invoice_sent_at":null,"created_at":"2021-06-09T16:55:16+03:00","updated_at":"2021-06-09T16:55:16+03:00","tax_exempt":false,"completed_at":null,"name":"#D623","status":"open","line_items":[{"id":57149773775014,"variant_id":40030117396646,"product_id":6758068420774,"title":"Sample Test Yaali Two..","variant_title":"Blue","sku":"SAMP-BLUE","vendor":"Jane Iredale","quantity":1,"requires_shipping":true,"taxable":true,"gift_card":false,"fulfillment_service":"manual","grams":0,"tax_lines":[{"rate":0.24,"title":"FI VAT","price":"4.84"}],"applied_discount":null,"name":"Sample Test Yaali Two.. - Blue","properties":[],"custom":false,"price":"25.00","admin_graphql_api_id":"gid:\/\/shopify\/DraftOrderLineItem\/57149773775014"},{"id":57149773807782,"variant_id":40030117429414,"product_id":6758068420774,"title":"Sample Test Yaali Two..","variant_title":"Green","sku":"SAMP-GREE","vendor":"Jane Iredale","quantity":1,"requires_shipping":true,"taxable":true,"gift_card":false,"fulfillment_service":"manual","grams":0,"tax_lines":[{"rate":0.24,"title":"FI VAT","price":"4.26"}],"applied_discount":null,"name":"Sample Test Yaali Two.. - Green","properties":[],"custom":false,"price":"22.00","admin_graphql_api_id":"gid:\/\/shopify\/DraftOrderLineItem\/57149773807782"}],"shipping_address":{"first_name":"Manush","address1":"manushtest Address","phone":"7894561236","city":"Chennai","zip":"789898","province":null,"country":"Finland","last_name":"Test","address2":null,"company":null,"latitude":null,"longitude":null,"name":"Manush Test","country_code":"FI","province_code":null},"billing_address":{"first_name":"Manush","address1":"manushtest Address","phone":"7894561236","city":"Chennai","zip":"789898","province":null,"country":"Finland","last_name":"Test","address2":null,"company":null,"latitude":null,"longitude":null,"name":"Manush Test","country_code":"FI","province_code":null},"invoice_url":"https:\/\/janeiredale.fi\/32963166346\/invoices\/0a60cfcd53267e37ec41eb61b659067e","applied_discount":null,"order_id":null,"shipping_line":null,"tax_lines":[{"rate":0.24,"title":"FI VAT","price":"4.84"},{"rate":0.24,"title":"FI VAT","price":"4.26"}],"tags":"","note_attributes":[],"total_price":"47.00","subtotal_price":"47.00","total_tax":"9.10","admin_graphql_api_id":"gid:\/\/shopify\/DraftOrder\/856368709798","customer":{"id":5335414145190,"email":"testmanush@yopmail.com","accepts_marketing":false,"created_at":"2021-06-02T14:21:38+03:00","updated_at":"2021-06-09T16:12:59+03:00","first_name":"Manush","last_name":"Test","orders_count":1,"state":"disabled","total_spent":"47.00","last_order_id":3891679953062,"note":null,"verified_email":true,"multipass_identifier":null,"tax_exempt":false,"phone":null,"tags":"","last_order_name":"#1914","currency":"EUR","accepts_marketing_updated_at":"2021-06-02T14:21:38+03:00","marketing_opt_in_level":null,"admin_graphql_api_id":"gid:\/\/shopify\/Customer\/5335414145190","default_address":{"id":6507934351526,"customer_id":5335414145190,"first_name":"Manush","last_name":"Test","company":null,"address1":"manushtest Address","address2":null,"city":"Chennai","province":null,"country":"Finland","zip":"789898","phone":"7894561236","name":"Manush Test","province_code":null,"country_code":"FI","country_name":"Finland","default":true}}}

search_customer_response:
{"code":0,"message":"success","contacts":[{"contact_id":"88366000007623434","contact_name":"ManushTest","customer_name":"ManushTest","company_name":"null","website":"","language_code":"","language_code_formatted":"","contact_type":"customer","contact_type_formatted":"Customer","status":"active","customer_sub_type":"business","source":"api","is_linked_with_zohocrm":false,"payment_terms":0,"payment_terms_label":"Due On Receipt","currency_id":"88366000000000071","twitter":"","facebook":"","currency_code":"EUR","outstanding_receivable_amount":0.00,"outstanding_receivable_amount_bcy":0.00,"unused_credits_receivable_amount":0.00,"customer_credit_limit":"","first_name":"Manush","last_name":"Test","email":"testmanush@yopmail.com","phone":"","mobile":"","portal_status":"disabled","created_time":"2021-06-02T14:21:42+0300","created_time_formatted":"02.06.2021","last_modified_time":"2021-06-02T14:21:42+0300","last_modified_time_formatted":"02.06.2021","custom_fields":[{"customfield_id":"88366000000205009","show_in_store":false,"show_in_portal":false,"is_active":true,"index":1,"label":"Asiakasnumero","show_on_pdf":false,"edit_on_portal":false,"edit_on_store":false,"show_in_all_pdf":false,"value_formatted":"201913140","search_entity":"contact","data_type":"autonumber","placeholder":"cf_asiakasnumero","value":"201913140","is_dependent_field":false},{"customfield_id":"88366000002354208","show_in_store":false,"show_in_portal":false,"is_active":true,"index":2,"label":"Customer_shopify_id","show_on_pdf":false,"edit_on_portal":false,"edit_on_store":false,"show_in_all_pdf":false,"value_formatted":"5335414145190","search_entity":"contact","data_type":"string","placeholder":"cf_customer_shopify_id","value":"5335414145190","is_dependent_field":false}],"cf_asiakasnumero":"201913140","cf_asiakasnumero_unformatted":"201913140","cf_customer_shopify_id":"5335414145190","cf_customer_shopify_id_unformatted":"5335414145190","custom_field_hash":{"cf_asiakasnumero":"201913140","cf_asiakasnumero_unformatted":"201913140","cf_customer_shopify_id":"5335414145190","cf_customer_shopify_id_unformatted":"5335414145190"},"ach_supported":false,"has_attachment":false}],"page_context":{"page":1,"per_page":200,"has_more_page":false,"report_name":"Contacts","applied_filter":"Status.All","sort_column":"customer_name","sort_order":"A","search_criteria":[{"column_name":"email","search_text":"testmanush@yopmail.com","search_text_formatted":"testmanush@yopmail.com","comparator":"contains"}]}}

contact_list:
Array
(
    [0] => stdClass Object
        (
            [contact_id] => 88366000007623434
            [contact_name] => ManushTest
            [customer_name] => ManushTest
            [company_name] => null
            [website] => 
            [language_code] => 
            [language_code_formatted] => 
            [contact_type] => customer
            [contact_type_formatted] => Customer
            [status] => active
            [customer_sub_type] => business
            [source] => api
            [is_linked_with_zohocrm] => 
            [payment_terms] => 0
            [payment_terms_label] => Due On Receipt
            [currency_id] => 88366000000000071
            [twitter] => 
            [facebook] => 
            [currency_code] => EUR
            [outstanding_receivable_amount] => 0
            [outstanding_receivable_amount_bcy] => 0
            [unused_credits_receivable_amount] => 0
            [customer_credit_limit] => 
            [first_name] => Manush
            [last_name] => Test
            [email] => testmanush@yopmail.com
            [phone] => 
            [mobile] => 
            [portal_status] => disabled
            [created_time] => 2021-06-02T14:21:42+0300
            [created_time_formatted] => 02.06.2021
            [last_modified_time] => 2021-06-02T14:21:42+0300
            [last_modified_time_formatted] => 02.06.2021
            [custom_fields] => Array
                (
                    [0] => stdClass Object
                        (
                            [customfield_id] => 88366000000205009
                            [show_in_store] => 
                            [show_in_portal] => 
                            [is_active] => 1
                            [index] => 1
                            [label] => Asiakasnumero
                            [show_on_pdf] => 
                            [edit_on_portal] => 
                            [edit_on_store] => 
                            [show_in_all_pdf] => 
                            [value_formatted] => 201913140
                            [search_entity] => contact
                            [data_type] => autonumber
                            [placeholder] => cf_asiakasnumero
                            [value] => 201913140
                            [is_dependent_field] => 
                        )

                    [1] => stdClass Object
                        (
                            [customfield_id] => 88366000002354208
                            [show_in_store] => 
                            [show_in_portal] => 
                            [is_active] => 1
                            [index] => 2
                            [label] => Customer_shopify_id
                            [show_on_pdf] => 
                            [edit_on_portal] => 
                            [edit_on_store] => 
                            [show_in_all_pdf] => 
                            [value_formatted] => 5335414145190
                            [search_entity] => contact
                            [data_type] => string
                            [placeholder] => cf_customer_shopify_id
                            [value] => 5335414145190
                            [is_dependent_field] => 
                        )

                )

            [cf_asiakasnumero] => 201913140
            [cf_asiakasnumero_unformatted] => 201913140
            [cf_customer_shopify_id] => 5335414145190
            [cf_customer_shopify_id_unformatted] => 5335414145190
            [custom_field_hash] => stdClass Object
                (
                    [cf_asiakasnumero] => 201913140
                    [cf_asiakasnumero_unformatted] => 201913140
                    [cf_customer_shopify_id] => 5335414145190
                    [cf_customer_shopify_id_unformatted] => 5335414145190
                )

            [ach_supported] => 
            [has_attachment] => 
        )

)


contacts:
stdClass Object
(
    [contact_id] => 88366000007623434
    [contact_name] => ManushTest
    [customer_name] => ManushTest
    [company_name] => null
    [website] => 
    [language_code] => 
    [language_code_formatted] => 
    [contact_type] => customer
    [contact_type_formatted] => Customer
    [status] => active
    [customer_sub_type] => business
    [source] => api
    [is_linked_with_zohocrm] => 
    [payment_terms] => 0
    [payment_terms_label] => Due On Receipt
    [currency_id] => 88366000000000071
    [twitter] => 
    [facebook] => 
    [currency_code] => EUR
    [outstanding_receivable_amount] => 0
    [outstanding_receivable_amount_bcy] => 0
    [unused_credits_receivable_amount] => 0
    [customer_credit_limit] => 
    [first_name] => Manush
    [last_name] => Test
    [email] => testmanush@yopmail.com
    [phone] => 
    [mobile] => 
    [portal_status] => disabled
    [created_time] => 2021-06-02T14:21:42+0300
    [created_time_formatted] => 02.06.2021
    [last_modified_time] => 2021-06-02T14:21:42+0300
    [last_modified_time_formatted] => 02.06.2021
    [custom_fields] => Array
        (
            [0] => stdClass Object
                (
                    [customfield_id] => 88366000000205009
                    [show_in_store] => 
                    [show_in_portal] => 
                    [is_active] => 1
                    [index] => 1
                    [label] => Asiakasnumero
                    [show_on_pdf] => 
                    [edit_on_portal] => 
                    [edit_on_store] => 
                    [show_in_all_pdf] => 
                    [value_formatted] => 201913140
                    [search_entity] => contact
                    [data_type] => autonumber
                    [placeholder] => cf_asiakasnumero
                    [value] => 201913140
                    [is_dependent_field] => 
                )

            [1] => stdClass Object
                (
                    [customfield_id] => 88366000002354208
                    [show_in_store] => 
                    [show_in_portal] => 
                    [is_active] => 1
                    [index] => 2
                    [label] => Customer_shopify_id
                    [show_on_pdf] => 
                    [edit_on_portal] => 
                    [edit_on_store] => 
                    [show_in_all_pdf] => 
                    [value_formatted] => 5335414145190
                    [search_entity] => contact
                    [data_type] => string
                    [placeholder] => cf_customer_shopify_id
                    [value] => 5335414145190
                    [is_dependent_field] => 
                )

        )

    [cf_asiakasnumero] => 201913140
    [cf_asiakasnumero_unformatted] => 201913140
    [cf_customer_shopify_id] => 5335414145190
    [cf_customer_shopify_id_unformatted] => 5335414145190
    [custom_field_hash] => stdClass Object
        (
            [cf_asiakasnumero] => 201913140
            [cf_asiakasnumero_unformatted] => 201913140
            [cf_customer_shopify_id] => 5335414145190
            [cf_customer_shopify_id_unformatted] => 5335414145190
        )

    [ach_supported] => 
    [has_attachment] => 
)


search_item_response:
{"code":0,"message":"success","items":[],"page_context":{"page":1,"per_page":200,"has_more_page":false,"report_name":"Items","applied_filter":"Status.All","sort_column":"name","sort_order":"A","search_criteria":[{"column_name":"sku","search_text":"SAMP-BLUE","search_text_formatted":"SAMP-BLUE","comparator":"contains"},{"column_name":"status","search_text":"active","search_text_formatted":"active","comparator":"equal"}]}}

item_id:


search_item_response:
{"code":0,"message":"success","items":[],"page_context":{"page":1,"per_page":200,"has_more_page":false,"report_name":"Items","applied_filter":"Status.All","sort_column":"name","sort_order":"A","search_criteria":[{"column_name":"sku","search_text":"SAMP-GREE","search_text_formatted":"SAMP-GREE","comparator":"contains"},{"column_name":"status","search_text":"active","search_text_formatted":"active","comparator":"equal"}]}}

item_id:


Line Item:
Array
(
    [item_id] => 
    [rate] => 22.00
    [quantity] => 1
    [is_inclusive_tax] => 1
)


create_draft_map:
{"customer_id":"88366000007623434","line_items":[{"item_id":null,"rate":"25.00","quantity":1,"is_inclusive_tax":true},{"item_id":null,"rate":"22.00","quantity":1,"is_inclusive_tax":true}],"status":"Draft","notes":null,"is_inclusive_tax":true,"custom_fields":[{"customfield_id":88366000002453110,"value":856368709798}],"sub_total":"47.00","total":"47.00","tax_total":"9.10"}

search_draft_ZI:
{"code":0,"message":"success","salesorders":[],"page_context":{"page":1,"per_page":200,"has_more_page":false,"report_name":"Sales Orders","applied_filter":"Status.All","sort_column":"created_time","sort_order":"D","search_criteria":[{"column_name":"cf_shopify_so_id","search_text":"856368709798","search_text_formatted":"856368709798","comparator":"equal"}]}}

sales_order_data:
JSONString=%7B%22customer_id%22%3A%2288366000007623434%22%2C%22line_items%22%3A%5B%7B%22item_id%22%3Anull%2C%22rate%22%3A%2225.00%22%2C%22quantity%22%3A1%2C%22is_inclusive_tax%22%3Atrue%7D%2C%7B%22item_id%22%3Anull%2C%22rate%22%3A%2222.00%22%2C%22quantity%22%3A1%2C%22is_inclusive_tax%22%3Atrue%7D%5D%2C%22status%22%3A%22Draft%22%2C%22notes%22%3Anull%2C%22is_inclusive_tax%22%3Atrue%2C%22custom_fields%22%3A%5B%7B%22customfield_id%22%3A88366000002453110%2C%22value%22%3A856368709798%7D%5D%2C%22sub_total%22%3A%2247.00%22%2C%22total%22%3A%2247.00%22%2C%22tax_total%22%3A%229.10%22%7D

Array:
Array

search_draft_ZI:
{"code":0,"message":"success","salesorders":[],"page_context":{"page":1,"per_page":200,"has_more_page":false,"report_name":"Sales Orders","applied_filter":"Status.All","sort_column":"created_time","sort_order":"D","search_criteria":[{"column_name":"cf_shopify_so_id","search_text":"856368709798","search_text_formatted":"856368709798","comparator":"equal"}]}}

create_sales_order_response:
{"code":4091,"message":"Select an item or give a description to create the invoice."}

error in sales order creation draft ID:
856368709798

--------------------------------- END -----------------------------------
------------------------------------ START --------------------------------------------
User: 34.73.41.196 - June 9, 2021, 7:28 pm
-------------------------

oauthheader
Authorization: Zoho-oauthtoken 1000.c28ac7b7736f03d01985f1c49898d1cb.19473524ed66c6c6e51e1851e50217da

draft_detail:
{"id":856369234086,"note":null,"email":"testhosting@test.com","taxes_included":true,"currency":"EUR","invoice_sent_at":null,"created_at":"2021-06-09T16:58:51+03:00","updated_at":"2021-06-09T16:58:51+03:00","tax_exempt":false,"completed_at":null,"name":"#D624","status":"open","line_items":[{"id":57149775052966,"variant_id":33641491431562,"product_id":5001985392778,"title":"Tester Enlighten Concealer™ Peiteväri pigmenttiläiskille","variant_title":"Medium Peach","sku":"75008-CL","vendor":"Jane Iredale","quantity":1,"requires_shipping":true,"taxable":true,"gift_card":false,"fulfillment_service":"manual","grams":36,"tax_lines":[{"rate":0.24,"title":"FI VAT","price":"3.37"}],"applied_discount":null,"name":"Tester Enlighten Concealer™ Peiteväri pigmenttiläiskille - Medium Peach","properties":[],"custom":false,"price":"17.40","admin_graphql_api_id":"gid:\/\/shopify\/DraftOrderLineItem\/57149775052966"},{"id":57149775085734,"variant_id":33641491464330,"product_id":5001985392778,"title":"Tester Enlighten Concealer™ Peiteväri pigmenttiläiskille","variant_title":"2 (Dark Peach)","sku":"75009-CL","vendor":"Jane Iredale","quantity":1,"requires_shipping":true,"taxable":true,"gift_card":false,"fulfillment_service":"manual","grams":36,"tax_lines":[{"rate":0.24,"title":"FI VAT","price":"3.37"}],"applied_discount":null,"name":"Tester Enlighten Concealer™ Peiteväri pigmenttiläiskille - 2 (Dark Peach)","properties":[],"custom":false,"price":"17.40","admin_graphql_api_id":"gid:\/\/shopify\/DraftOrderLineItem\/57149775085734"}],"shipping_address":null,"billing_address":null,"invoice_url":"https:\/\/janeiredale.fi\/32963166346\/invoices\/d9a4693f3750b54f3e5e72e223f2f742","applied_discount":null,"order_id":null,"shipping_line":null,"tax_lines":[{"rate":0.24,"title":"FI VAT","price":"3.37"},{"rate":0.24,"title":"FI VAT","price":"3.37"}],"tags":"","note_attributes":[],"total_price":"34.80","subtotal_price":"34.80","total_tax":"6.74","admin_graphql_api_id":"gid:\/\/shopify\/DraftOrder\/856369234086","customer":{"id":3302788857994,"email":"testhosting@test.com","accepts_marketing":false,"created_at":"2020-05-05T22:21:23+03:00","updated_at":"2020-05-05T22:21:23+03:00","first_name":"Test","last_name":"hosting customer","orders_count":0,"state":"disabled","total_spent":"0.00","last_order_id":null,"note":"Test Hosting","verified_email":true,"multipass_identifier":null,"tax_exempt":false,"phone":null,"tags":"","last_order_name":null,"currency":"EUR","accepts_marketing_updated_at":"2020-05-05T22:21:23+03:00","marketing_opt_in_level":null,"admin_graphql_api_id":"gid:\/\/shopify\/Customer\/3302788857994"}}

search_customer_response:
{"code":0,"message":"success","contacts":[{"contact_id":"88366000003443019","contact_name":"Testhosting customer","customer_name":"Testhosting customer","company_name":"","website":"","language_code":"","language_code_formatted":"","contact_type":"customer","contact_type_formatted":"Customer","status":"active","customer_sub_type":"business","source":"zoho_crm","is_linked_with_zohocrm":true,"payment_terms":14,"payment_terms_label":"14 pv netto","currency_id":"88366000000000071","twitter":"","facebook":"","currency_code":"EUR","outstanding_receivable_amount":0.00,"outstanding_receivable_amount_bcy":0.00,"unused_credits_receivable_amount":0.00,"customer_credit_limit":"","first_name":"Test","last_name":"hosting customer","email":"testhosting@test.com","phone":"","mobile":"","portal_status":"disabled","created_time":"2020-07-01T15:33:12+0300","created_time_formatted":"01.07.2020","last_modified_time":"2021-05-05T22:22:51+0300","last_modified_time_formatted":"05.05.2021","custom_fields":[{"customfield_id":"88366000000205009","show_in_store":false,"show_in_portal":false,"is_active":true,"index":1,"label":"Asiakasnumero","show_on_pdf":false,"edit_on_portal":false,"edit_on_store":false,"show_in_all_pdf":false,"value_formatted":"201912024","search_entity":"contact","data_type":"autonumber","placeholder":"cf_asiakasnumero","value":"201912024","is_dependent_field":false}],"cf_asiakasnumero":"201912024","cf_asiakasnumero_unformatted":"201912024","custom_field_hash":{"cf_asiakasnumero":"201912024","cf_asiakasnumero_unformatted":"201912024"},"ach_supported":false,"has_attachment":false}],"page_context":{"page":1,"per_page":200,"has_more_page":false,"report_name":"Contacts","applied_filter":"Status.All","sort_column":"customer_name","sort_order":"A","search_criteria":[{"column_name":"email","search_text":"testhosting@test.com","search_text_formatted":"testhosting@test.com","comparator":"contains"}]}}

contact_list:
Array
(
    [0] => stdClass Object
        (
            [contact_id] => 88366000003443019
            [contact_name] => Testhosting customer
            [customer_name] => Testhosting customer
            [company_name] => 
            [website] => 
            [language_code] => 
            [language_code_formatted] => 
            [contact_type] => customer
            [contact_type_formatted] => Customer
            [status] => active
            [customer_sub_type] => business
            [source] => zoho_crm
            [is_linked_with_zohocrm] => 1
            [payment_terms] => 14
            [payment_terms_label] => 14 pv netto
            [currency_id] => 88366000000000071
            [twitter] => 
            [facebook] => 
            [currency_code] => EUR
            [outstanding_receivable_amount] => 0
            [outstanding_receivable_amount_bcy] => 0
            [unused_credits_receivable_amount] => 0
            [customer_credit_limit] => 
            [first_name] => Test
            [last_name] => hosting customer
            [email] => testhosting@test.com
            [phone] => 
            [mobile] => 
            [portal_status] => disabled
            [created_time] => 2020-07-01T15:33:12+0300
            [created_time_formatted] => 01.07.2020
            [last_modified_time] => 2021-05-05T22:22:51+0300
            [last_modified_time_formatted] => 05.05.2021
            [custom_fields] => Array
                (
                    [0] => stdClass Object
                        (
                            [customfield_id] => 88366000000205009
                            [show_in_store] => 
                            [show_in_portal] => 
                            [is_active] => 1
                            [index] => 1
                            [label] => Asiakasnumero
                            [show_on_pdf] => 
                            [edit_on_portal] => 
                            [edit_on_store] => 
                            [show_in_all_pdf] => 
                            [value_formatted] => 201912024
                            [search_entity] => contact
                            [data_type] => autonumber
                            [placeholder] => cf_asiakasnumero
                            [value] => 201912024
                            [is_dependent_field] => 
                        )

                )

            [cf_asiakasnumero] => 201912024
            [cf_asiakasnumero_unformatted] => 201912024
            [custom_field_hash] => stdClass Object
                (
                    [cf_asiakasnumero] => 201912024
                    [cf_asiakasnumero_unformatted] => 201912024
                )

            [ach_supported] => 
            [has_attachment] => 
        )

)


contacts:
stdClass Object
(
    [contact_id] => 88366000003443019
    [contact_name] => Testhosting customer
    [customer_name] => Testhosting customer
    [company_name] => 
    [website] => 
    [language_code] => 
    [language_code_formatted] => 
    [contact_type] => customer
    [contact_type_formatted] => Customer
    [status] => active
    [customer_sub_type] => business
    [source] => zoho_crm
    [is_linked_with_zohocrm] => 1
    [payment_terms] => 14
    [payment_terms_label] => 14 pv netto
    [currency_id] => 88366000000000071
    [twitter] => 
    [facebook] => 
    [currency_code] => EUR
    [outstanding_receivable_amount] => 0
    [outstanding_receivable_amount_bcy] => 0
    [unused_credits_receivable_amount] => 0
    [customer_credit_limit] => 
    [first_name] => Test
    [last_name] => hosting customer
    [email] => testhosting@test.com
    [phone] => 
    [mobile] => 
    [portal_status] => disabled
    [created_time] => 2020-07-01T15:33:12+0300
    [created_time_formatted] => 01.07.2020
    [last_modified_time] => 2021-05-05T22:22:51+0300
    [last_modified_time_formatted] => 05.05.2021
    [custom_fields] => Array
        (
            [0] => stdClass Object
                (
                    [customfield_id] => 88366000000205009
                    [show_in_store] => 
                    [show_in_portal] => 
                    [is_active] => 1
                    [index] => 1
                    [label] => Asiakasnumero
                    [show_on_pdf] => 
                    [edit_on_portal] => 
                    [edit_on_store] => 
                    [show_in_all_pdf] => 
                    [value_formatted] => 201912024
                    [search_entity] => contact
                    [data_type] => autonumber
                    [placeholder] => cf_asiakasnumero
                    [value] => 201912024
                    [is_dependent_field] => 
                )

        )

    [cf_asiakasnumero] => 201912024
    [cf_asiakasnumero_unformatted] => 201912024
    [custom_field_hash] => stdClass Object
        (
            [cf_asiakasnumero] => 201912024
            [cf_asiakasnumero_unformatted] => 201912024
        )

    [ach_supported] => 
    [has_attachment] => 
)


search_item_response:
{"code":0,"message":"success","items":[{"group_id":"88366000000100503","group_name":"Tester Enlighten Concealer™ Peiteväri pigmenttiläiskille","item_id":"88366000000100497","name":"Tester Enlighten Concealer-1 (Medium Peach)","item_name":"Tester Enlighten Concealer-1 (Medium Peach)","category_id":"88366000000093372","category_name":"Tester Concealers","unit":"pcs","status":"active","source":"csv","is_combo_product":false,"is_linked_with_zohocrm":true,"zcrm_product_id":"233790000000224308","description":"Enlighten Concealer #1 testeri","brand":"JaneIredale","manufacturer":"Jane Iredale","rate":17.40,"tax_id":"88366000000671292","tax_name":"VAT 24","tax_percentage":24,"purchase_account_id":"88366000000000509","purchase_account_name":"Ostot","account_name":"Myynti","purchase_description":"75008-CL","purchase_rate":4.96,"item_type":"inventory","product_type":"goods","stock_on_hand":2.000000,"has_attachment":false,"is_returnable":true,"available_stock":2.000000,"actual_available_stock":2.000000,"attribute_id1":"88366000000088105","attribute_id2":"","attribute_id3":"","attribute_name1":"Shade","attribute_name2":"","attribute_name3":"","attribute_type1":"Text","attribute_type2":"","attribute_type3":"","attribute_option_id1":"88366000002084621","attribute_option_id2":"","attribute_option_id3":"","attribute_option_name1":"1 (Medium Peach)","attribute_option_name2":"","attribute_option_name3":"","attribute_option_data1":"","attribute_option_data2":"","attribute_option_data3":"","sku":"75008-CL","upc":"","ean":"","isbn":"","part_number":"75008-CL","track_batch_number":false,"reorder_level":"","image_name":"15008_1.jpg","image_type":"jpg","image_document_id":"88366000007223960","created_time":"2019-11-10T08:00:03+0200","last_modified_time":"2021-04-27T22:03:18+0300","cf_usd_purchase_price":"5.15","cf_usd_purchase_price_unformatted":5.150000,"cf_shopify_id":"5001214492810","cf_shopify_id_unformatted":"5001214492810","cf_shopify_variant_id":"33640122089610","cf_shopify_variant_id_unformatted":"33640122089610"}],"page_context":{"page":1,"per_page":200,"has_more_page":false,"report_name":"Items","applied_filter":"Status.All","sort_column":"name","sort_order":"A","search_criteria":[{"column_name":"sku","search_text":"75008-CL","search_text_formatted":"75008-CL","comparator":"contains"},{"column_name":"status","search_text":"active","search_text_formatted":"active","comparator":"equal"}]}}

item_id:
88366000000100497

search_item_response:
{"code":0,"message":"success","items":[{"group_id":"88366000000100503","group_name":"Tester Enlighten Concealer™ Peiteväri pigmenttiläiskille","item_id":"88366000000100499","name":"Tester Enlighten Concealer-2 (Dark Peach)","item_name":"Tester Enlighten Concealer-2 (Dark Peach)","category_id":"88366000000093372","category_name":"Tester Concealers","unit":"pcs","status":"active","source":"csv","is_combo_product":false,"is_linked_with_zohocrm":true,"zcrm_product_id":"233790000000224312","description":"Enlighten Concealer testeri","brand":"JaneIredale","manufacturer":"Jane Iredale","rate":17.40,"tax_id":"88366000000671292","tax_name":"VAT 24","tax_percentage":24,"purchase_account_id":"88366000000000509","purchase_account_name":"Ostot","account_name":"Myynti","purchase_description":"75009-CL","purchase_rate":4.96,"item_type":"inventory","product_type":"goods","stock_on_hand":5.000000,"has_attachment":false,"is_returnable":true,"available_stock":5.000000,"actual_available_stock":5.000000,"attribute_id1":"88366000000088105","attribute_id2":"","attribute_id3":"","attribute_name1":"Shade","attribute_name2":"","attribute_name3":"","attribute_type1":"Text","attribute_type2":"","attribute_type3":"","attribute_option_id1":"88366000002084610","attribute_option_id2":"","attribute_option_id3":"","attribute_option_name1":"2 (Dark Peach)","attribute_option_name2":"","attribute_option_name3":"","attribute_option_data1":"","attribute_option_data2":"","attribute_option_data3":"","sku":"75009-CL","upc":"","ean":"","isbn":"","part_number":"75009-CL","track_batch_number":false,"reorder_level":"","image_name":"15009_1.jpg","image_type":"jpg","image_document_id":"88366000007223968","created_time":"2019-11-10T08:00:03+0200","last_modified_time":"2021-04-27T22:03:19+0300","cf_usd_purchase_price":"5.15","cf_usd_purchase_price_unformatted":5.150000,"cf_shopify_id":"4995604643978","cf_shopify_id_unformatted":"4995604643978","cf_shopify_variant_id":"33630739726474","cf_shopify_variant_id_unformatted":"33630739726474"}],"page_context":{"page":1,"per_page":200,"has_more_page":false,"report_name":"Items","applied_filter":"Status.All","sort_column":"name","sort_order":"A","search_criteria":[{"column_name":"sku","search_text":"75009-CL","search_text_formatted":"75009-CL","comparator":"contains"},{"column_name":"status","search_text":"active","search_text_formatted":"active","comparator":"equal"}]}}

item_id:
88366000000100499

Line Item:
Array
(
    [item_id] => 88366000000100499
    [rate] => 17.40
    [quantity] => 1
    [is_inclusive_tax] => 1
)


create_draft_map:
{"customer_id":"88366000003443019","line_items":[{"item_id":"88366000000100497","rate":"17.40","quantity":1,"is_inclusive_tax":true},{"item_id":"88366000000100499","rate":"17.40","quantity":1,"is_inclusive_tax":true}],"status":"Draft","notes":null,"is_inclusive_tax":true,"custom_fields":[{"customfield_id":88366000002453110,"value":856369234086}],"sub_total":"34.80","total":"34.80","tax_total":"6.74"}

search_draft_ZI:
{"code":0,"message":"success","salesorders":[],"page_context":{"page":1,"per_page":200,"has_more_page":false,"report_name":"Sales Orders","applied_filter":"Status.All","sort_column":"created_time","sort_order":"D","search_criteria":[{"column_name":"cf_shopify_so_id","search_text":"856369234086","search_text_formatted":"856369234086","comparator":"equal"}]}}

sales_order_data:
JSONString=%7B%22customer_id%22%3A%2288366000003443019%22%2C%22line_items%22%3A%5B%7B%22item_id%22%3A%2288366000000100497%22%2C%22rate%22%3A%2217.40%22%2C%22quantity%22%3A1%2C%22is_inclusive_tax%22%3Atrue%7D%2C%7B%22item_id%22%3A%2288366000000100499%22%2C%22rate%22%3A%2217.40%22%2C%22quantity%22%3A1%2C%22is_inclusive_tax%22%3Atrue%7D%5D%2C%22status%22%3A%22Draft%22%2C%22notes%22%3Anull%2C%22is_inclusive_tax%22%3Atrue%2C%22custom_fields%22%3A%5B%7B%22customfield_id%22%3A88366000002453110%2C%22value%22%3A856369234086%7D%5D%2C%22sub_total%22%3A%2234.80%22%2C%22total%22%3A%2234.80%22%2C%22tax_total%22%3A%226.74%22%7D

Array:
Array

search_draft_ZI:
{"code":0,"message":"success","salesorders":[],"page_context":{"page":1,"per_page":200,"has_more_page":false,"report_name":"Sales Orders","applied_filter":"Status.All","sort_column":"created_time","sort_order":"D","search_criteria":[{"column_name":"cf_shopify_so_id","search_text":"856369234086","search_text_formatted":"856369234086","comparator":"equal"}]}}

create_sales_order_response:
{"code":0,"message":"Sales Order has been created.","salesorder":{"salesorder_id":"88366000007763034","documents":[],"zcrm_potential_id":"","zcrm_potential_name":"","salesorder_number":"SO-02497","date":"2021-06-09","offline_created_date_with_time":"","tracking_url":"","has_discount":false,"status":"draft","color_code":"","current_sub_status_id":"","current_sub_status":"draft","sub_statuses":[],"shipment_date":"","reference_number":"","customer_id":"88366000003443019","customer_name":"Testhosting customer","contact_persons":[],"contact_person_details":[{"phone":"","mobile":"","last_name":"hosting customer","contact_person_id":"88366000003438527","first_name":"Test","email":"testhosting@test.com"}],"source":"Api","contact_category":"","currency_id":"88366000000000071","currency_code":"EUR","currency_symbol":"€","exchange_rate":1.00,"is_discount_before_tax":true,"discount_type":"item_level","estimate_id":"","delivery_method":"","delivery_method_id":"","is_inclusive_tax":true,"tax_rounding":"item_level","order_status":"draft","invoiced_status":"","paid_status":"","shipped_status":"","sales_channel":"direct_sales","sales_channel_formatted":"Direct Sales","account_identifier":"","integration_id":"","is_dropshipped":false,"is_backordered":false,"is_manually_fulfilled":false,"has_qty_cancelled":false,"created_by_email":"apellis@apellis.fi","total_quantity":2,"line_items":[{"line_item_id":"88366000007763038","variant_id":"88366000000100497","track_batch_number":false,"item_id":"88366000000100497","is_returnable":true,"product_id":"88366000000100503","attribute_name1":"Shade","attribute_name2":"","attribute_name3":"","attribute_option_name1":"1 (Medium Peach)","attribute_option_name2":"","attribute_option_name3":"","attribute_option_data1":"","attribute_option_data2":"","attribute_option_data3":"","is_combo_product":false,"warehouse_id":"88366000000041019","warehouse_name":"Apellis Oy","sku":"75008-CL","name":"Tester Enlighten Concealer-1 (Medium Peach)","group_name":"Tester Enlighten Concealer™ Peiteväri pigmenttiläiskille","description":"Enlighten Concealer #1 testeri","item_order":1,"bcy_rate":17.40,"rate":17.40,"quantity":1,"quantity_manuallyfulfilled":0,"unit":"pcs","pricebook_id":"","header_id":"","header_name":"","discount_amount":0.00,"discount":0.00,"discounts":[],"tax_id":"88366000000671292","tax_name":"VAT 24","tax_type":"tax","tax_percentage":24,"item_total":14.03,"item_sub_total":14.03,"product_type":"goods","line_item_type":"goods","item_type":"inventory","is_invoiced":false,"is_unconfirmed_product":false,"tags":[],"image_name":"15008_1.jpg","image_type":"jpg","document_id":"88366000007223960","item_custom_fields":[],"quantity_invoiced":0,"quantity_packed":0,"quantity_shipped":0,"quantity_cancelled":0.000000,"package_details":{"length":5.000000,"width":5.000000,"height":1.800000,"weight":0.036000,"weight_unit":"kg","dimension_unit":"cm"},"quantity_invoiced_cancelled":0.000000,"quantity_returned":0},{"line_item_id":"88366000007763040","variant_id":"88366000000100499","track_batch_number":false,"item_id":"88366000000100499","is_returnable":true,"product_id":"88366000000100503","attribute_name1":"Shade","attribute_name2":"","attribute_name3":"","attribute_option_name1":"2 (Dark Peach)","attribute_option_name2":"","attribute_option_name3":"","attribute_option_data1":"","attribute_option_data2":"","attribute_option_data3":"","is_combo_product":false,"warehouse_id":"88366000000041019","warehouse_name":"Apellis Oy","sku":"75009-CL","name":"Tester Enlighten Concealer-2 (Dark Peach)","group_name":"Tester Enlighten Concealer™ Peiteväri pigmenttiläiskille","description":"Enlighten Concealer testeri","item_order":2,"bcy_rate":17.40,"rate":17.40,"quantity":1,"quantity_manuallyfulfilled":0,"unit":"pcs","pricebook_id":"","header_id":"","header_name":"","discount_amount":0.00,"discount":0.00,"discounts":[],"tax_id":"88366000000671292","tax_name":"VAT 24","tax_type":"tax","tax_percentage":24,"item_total":14.03,"item_sub_total":14.03,"product_type":"goods","line_item_type":"goods","item_type":"inventory","is_invoiced":false,"is_unconfirmed_product":false,"tags":[],"image_name":"15009_1.jpg","image_type":"jpg","document_id":"88366000007223968","item_custom_fields":[],"quantity_invoiced":0,"quantity_packed":0,"quantity_shipped":0,"quantity_cancelled":0.000000,"package_details":{"length":5.000000,"width":5.000000,"height":1.800000,"weight":0.036000,"weight_unit":"kg","dimension_unit":"cm"},"quantity_invoiced_cancelled":0.000000,"quantity_returned":0}],"submitter_id":"","approver_id":"","submitted_date":"","submitted_by":"","price_precision":2,"is_emailed":false,"has_unconfirmed_line_item":false,"picklists":[],"purchaseorders":[],"warehouses":[{"warehouse_id":"88366000000041019","warehouse_name":"Apellis Oy","address":"Viikatetie","city":"Vantaa","state":"","country":"Finland","zip":"01640","phone":"","email":"esko.kemilainen@apellis.fi","is_primary":true,"status":"active","sales_channels":[]},{"warehouse_id":"88366000004247475","warehouse_name":"Stock 2","address":"","city":"","state":"","country":"Estonia","zip":"","phone":"","email":"","is_primary":false,"status":"active","sales_channels":[]}],"billing_address_id":"88366000003443021","billing_address":{"address":"","street2":"","city":"","state":"","zip":"","country":"","country_code":"","state_code":"","fax":"","phone":"","attention":""},"shipping_address_id":"88366000003443023","shipping_address":{"address":"","street2":"","city":"","state":"","zip":"","country":"","country_code":"","state_code":"","fax":"","phone":"","attention":""},"is_test_order":false,"notes":"","terms":"","payment_terms":"","payment_terms_label":"","custom_fields":[{"customfield_id":"88366000002453110","show_in_store":false,"show_in_portal":false,"is_active":true,"index":1,"label":"shopify_so_id","show_on_pdf":false,"edit_on_portal":false,"edit_on_store":false,"show_in_all_pdf":false,"value_formatted":"856369234086","search_entity":"salesorder","data_type":"string","placeholder":"cf_shopify_so_id","value":"856369234086","is_dependent_field":false}],"custom_field_hash":{"cf_shopify_so_id":"856369234086","cf_shopify_so_id_unformatted":"856369234086"},"template_id":"88366000001042810","template_name":"Tarjous FI","page_width":"8.27in","page_height":"11.69in","orientation":"portrait","template_type":"compact","created_time":"2021-06-09T16:58:57+0300","last_modified_time":"2021-06-09T16:58:57+0300","created_by_id":"88366000001627005","created_date":"2021-06-09","last_modified_by_id":"88366000001627005","attachment_name":"","can_send_in_mail":false,"salesperson_id":"","salesperson_name":"","merchant_id":"","merchant_name":"","pickup_location_id":"","discount":0.00,"discount_applied_on_amount":0.00,"is_adv_tracking_in_package":false,"shipping_charge_tax_id":"","shipping_charge_tax_name":"","shipping_charge_tax_type":"","shipping_charge_tax_percentage":"","shipping_charge_tax":"","shipping_charge_exclusive_of_tax":0.000,"shipping_charge_inclusive_of_tax":0.000,"shipping_charge_tax_formatted":"","shipping_charge_exclusive_of_tax_formatted":"€0,00","shipping_charge_inclusive_of_tax_formatted":"€0,00","shipping_charge":0.00,"bcy_shipping_charge":0.00,"adjustment":0.00,"bcy_adjustment":0.00,"adjustment_description":"","roundoff_value":0.00,"transaction_rounding_type":"no_rounding","sub_total":28.06,"bcy_sub_total":28.06,"sub_total_inclusive_of_tax":0.00,"sub_total_exclusive_of_discount":28.06,"discount_total":0.00,"bcy_discount_total":0.00,"discount_percent":0.00,"tax_total":6.74,"bcy_tax_total":6.74,"total":34.80,"bcy_total":34.800,"taxes":[{"tax_name":"VAT 24 (24%)","tax_amount":6.74}],"packages":[],"invoices":[],"salesreturns":[],"payments":[],"creditnotes":[],"refunds":[],"balance":34.80,"approvers_list":[]}}

--------------------------------- END -----------------------------------
------------------------------------ START --------------------------------------------
User: 35.229.74.53 - June 9, 2021, 7:37 pm
-------------------------

oauthheader
Authorization: Zoho-oauthtoken 1000.7643323c59296e79b7e5f742c09106f3.381059e1d458a0c50414d3a84fc5e521

draft_detail:
{"id":856371003558,"note":"Wholesale Order: Apell","email":"esko@apellis.ee","taxes_included":true,"currency":"EUR","invoice_sent_at":"2021-06-09T17:07:48+03:00","created_at":"2021-06-09T17:07:48+03:00","updated_at":"2021-06-09T17:07:48+03:00","tax_exempt":false,"completed_at":null,"name":"#D625","status":"invoice_sent","line_items":[{"id":57149779116198,"variant_id":33642649190538,"product_id":5002623615114,"title":"Tester Retractable Brow Pencil kierrettävävä kulmakynä NYT ERÄ ERIKOISHINTAAN -40% (norm. 15.75 ); Alennus ei koske sävyä Dark Brunette","variant_title":"Brunette","sku":"76041","vendor":"Jane Iredale","quantity":2,"requires_shipping":true,"taxable":true,"gift_card":false,"fulfillment_service":"manual","grams":3,"tax_lines":[{"rate":0.24,"title":"FI VAT","price":"3.11"}],"applied_discount":{"description":"Wholesale Price","value":"1.42","title":"Wholesale Discount","amount":"2.84","value_type":"fixed_amount"},"name":"Tester Retractable Brow Pencil kierrettävävä kulmakynä NYT ERÄ ERIKOISHINTAAN -40% (norm. 15.75 ); Alennus ei koske sävyä Dark Brunette - Brunette","properties":[],"custom":false,"price":"9.45","admin_graphql_api_id":"gid:\/\/shopify\/DraftOrderLineItem\/57149779116198"}],"shipping_address":{"first_name":"Esko","address1":"Viikatetie","phone":"+10400315908","city":"Vantaa","zip":"01640","province":"","country":"Finland","last_name":"Kemiläinen","address2":"41b","company":"Apell","latitude":60.2483726,"longitude":24.8025846,"name":"Esko Kemiläinen","country_code":"FI","province_code":null},"billing_address":null,"invoice_url":"https:\/\/janeiredale.fi\/32963166346\/invoices\/09ff94cabc758038e93a93efb3fe6c57","applied_discount":null,"order_id":null,"shipping_line":null,"tax_lines":[{"rate":0.24,"title":"FI VAT","price":"3.11"}],"tags":"Iredale_JM, wholesale","note_attributes":[],"total_price":"16.06","subtotal_price":"16.06","total_tax":"3.11","admin_graphql_api_id":"gid:\/\/shopify\/DraftOrder\/856371003558","customer":{"id":4043425939622,"email":"esko@apellis.ee","accepts_marketing":false,"created_at":"2020-09-08T16:07:48+03:00","updated_at":"2020-09-08T16:09:29+03:00","first_name":"Eske2","last_name":"Kemi","orders_count":0,"state":"enabled","total_spent":"0.00","last_order_id":null,"note":null,"verified_email":true,"multipass_identifier":null,"tax_exempt":false,"phone":null,"tags":"Iredale_JM, Wholesale","last_order_name":null,"currency":"EUR","accepts_marketing_updated_at":"2020-09-08T16:07:48+03:00","marketing_opt_in_level":null,"admin_graphql_api_id":"gid:\/\/shopify\/Customer\/4043425939622","default_address":{"id":4900616044710,"customer_id":4043425939622,"first_name":"Eske2","last_name":"Kemi","company":null,"address1":"","address2":null,"city":"","province":null,"country":null,"zip":"","phone":"","name":"Eske2 Kemi","province_code":null,"country_code":null,"country_name":null,"default":true}}}

search_customer_response:
{"code":0,"message":"success","contacts":[{"contact_id":"88366000003561587","contact_name":"Eske2Kemi","customer_name":"Eske2Kemi","company_name":"","website":"","language_code":"","language_code_formatted":"","contact_type":"customer","contact_type_formatted":"Customer","status":"active","customer_sub_type":"business","source":"api","is_linked_with_zohocrm":true,"payment_terms":0,"payment_terms_label":"Due on Receipt","currency_id":"88366000000000071","twitter":"","facebook":"","currency_code":"EUR","outstanding_receivable_amount":0.00,"outstanding_receivable_amount_bcy":0.00,"unused_credits_receivable_amount":0.00,"customer_credit_limit":"€10,00","first_name":"Eske2","last_name":"Kemi","email":"esko@apellis.ee","phone":"","mobile":"","portal_status":"enabled","created_time":"2020-07-08T18:33:54+0300","created_time_formatted":"08.07.2020","last_modified_time":"2021-05-09T23:14:47+0300","last_modified_time_formatted":"09.05.2021","custom_fields":[{"customfield_id":"88366000000205009","show_in_store":false,"show_in_portal":false,"is_active":true,"index":1,"label":"Asiakasnumero","show_on_pdf":false,"edit_on_portal":false,"edit_on_store":false,"show_in_all_pdf":false,"value_formatted":"201912036","search_entity":"contact","data_type":"autonumber","placeholder":"cf_asiakasnumero","value":"201912036","is_dependent_field":false},{"customfield_id":"88366000001072637","show_in_store":false,"show_in_portal":false,"is_active":true,"index":2,"label":"Viitenumero/ Reference no","show_on_pdf":false,"edit_on_portal":false,"edit_on_store":false,"show_in_all_pdf":false,"value_formatted":"123","search_entity":"contact","data_type":"number","placeholder":"cf_viitenumero_reference_no","value":"123","is_dependent_field":false},{"customfield_id":"88366000002354208","show_in_store":false,"show_in_portal":false,"is_active":true,"index":3,"label":"Customer_shopify_id","show_on_pdf":false,"edit_on_portal":false,"edit_on_store":false,"show_in_all_pdf":false,"value_formatted":"3771339210918","search_entity":"contact","data_type":"string","placeholder":"cf_customer_shopify_id","value":"3771339210918","is_dependent_field":false}],"cf_asiakasnumero":"201912036","cf_asiakasnumero_unformatted":"201912036","cf_viitenumero_reference_no":"123","cf_viitenumero_reference_no_unformatted":"123","cf_customer_shopify_id":"3771339210918","cf_customer_shopify_id_unformatted":"3771339210918","custom_field_hash":{"cf_asiakasnumero":"201912036","cf_asiakasnumero_unformatted":"201912036","cf_viitenumero_reference_no":"123","cf_viitenumero_reference_no_unformatted":"123","cf_customer_shopify_id":"3771339210918","cf_customer_shopify_id_unformatted":"3771339210918"},"ach_supported":false,"has_attachment":false}],"page_context":{"page":1,"per_page":200,"has_more_page":false,"report_name":"Contacts","applied_filter":"Status.All","sort_column":"customer_name","sort_order":"A","search_criteria":[{"column_name":"email","search_text":"esko@apellis.ee","search_text_formatted":"esko@apellis.ee","comparator":"contains"}]}}

contact_list:
Array
(
    [0] => stdClass Object
        (
            [contact_id] => 88366000003561587
            [contact_name] => Eske2Kemi
            [customer_name] => Eske2Kemi
            [company_name] => 
            [website] => 
            [language_code] => 
            [language_code_formatted] => 
            [contact_type] => customer
            [contact_type_formatted] => Customer
            [status] => active
            [customer_sub_type] => business
            [source] => api
            [is_linked_with_zohocrm] => 1
            [payment_terms] => 0
            [payment_terms_label] => Due on Receipt
            [currency_id] => 88366000000000071
            [twitter] => 
            [facebook] => 
            [currency_code] => EUR
            [outstanding_receivable_amount] => 0
            [outstanding_receivable_amount_bcy] => 0
            [unused_credits_receivable_amount] => 0
            [customer_credit_limit] => €10,00
            [first_name] => Eske2
            [last_name] => Kemi
            [email] => esko@apellis.ee
            [phone] => 
            [mobile] => 
            [portal_status] => enabled
            [created_time] => 2020-07-08T18:33:54+0300
            [created_time_formatted] => 08.07.2020
            [last_modified_time] => 2021-05-09T23:14:47+0300
            [last_modified_time_formatted] => 09.05.2021
            [custom_fields] => Array
                (
                    [0] => stdClass Object
                        (
                            [customfield_id] => 88366000000205009
                            [show_in_store] => 
                            [show_in_portal] => 
                            [is_active] => 1
                            [index] => 1
                            [label] => Asiakasnumero
                            [show_on_pdf] => 
                            [edit_on_portal] => 
                            [edit_on_store] => 
                            [show_in_all_pdf] => 
                            [value_formatted] => 201912036
                            [search_entity] => contact
                            [data_type] => autonumber
                            [placeholder] => cf_asiakasnumero
                            [value] => 201912036
                            [is_dependent_field] => 
                        )

                    [1] => stdClass Object
                        (
                            [customfield_id] => 88366000001072637
                            [show_in_store] => 
                            [show_in_portal] => 
                            [is_active] => 1
                            [index] => 2
                            [label] => Viitenumero/ Reference no
                            [show_on_pdf] => 
                            [edit_on_portal] => 
                            [edit_on_store] => 
                            [show_in_all_pdf] => 
                            [value_formatted] => 123
                            [search_entity] => contact
                            [data_type] => number
                            [placeholder] => cf_viitenumero_reference_no
                            [value] => 123
                            [is_dependent_field] => 
                        )

                    [2] => stdClass Object
                        (
                            [customfield_id] => 88366000002354208
                            [show_in_store] => 
                            [show_in_portal] => 
                            [is_active] => 1
                            [index] => 3
                            [label] => Customer_shopify_id
                            [show_on_pdf] => 
                            [edit_on_portal] => 
                            [edit_on_store] => 
                            [show_in_all_pdf] => 
                            [value_formatted] => 3771339210918
                            [search_entity] => contact
                            [data_type] => string
                            [placeholder] => cf_customer_shopify_id
                            [value] => 3771339210918
                            [is_dependent_field] => 
                        )

                )

            [cf_asiakasnumero] => 201912036
            [cf_asiakasnumero_unformatted] => 201912036
            [cf_viitenumero_reference_no] => 123
            [cf_viitenumero_reference_no_unformatted] => 123
            [cf_customer_shopify_id] => 3771339210918
            [cf_customer_shopify_id_unformatted] => 3771339210918
            [custom_field_hash] => stdClass Object
                (
                    [cf_asiakasnumero] => 201912036
                    [cf_asiakasnumero_unformatted] => 201912036
                    [cf_viitenumero_reference_no] => 123
                    [cf_viitenumero_reference_no_unformatted] => 123
                    [cf_customer_shopify_id] => 3771339210918
                    [cf_customer_shopify_id_unformatted] => 3771339210918
                )

            [ach_supported] => 
            [has_attachment] => 
        )

)


contacts:
stdClass Object
(
    [contact_id] => 88366000003561587
    [contact_name] => Eske2Kemi
    [customer_name] => Eske2Kemi
    [company_name] => 
    [website] => 
    [language_code] => 
    [language_code_formatted] => 
    [contact_type] => customer
    [contact_type_formatted] => Customer
    [status] => active
    [customer_sub_type] => business
    [source] => api
    [is_linked_with_zohocrm] => 1
    [payment_terms] => 0
    [payment_terms_label] => Due on Receipt
    [currency_id] => 88366000000000071
    [twitter] => 
    [facebook] => 
    [currency_code] => EUR
    [outstanding_receivable_amount] => 0
    [outstanding_receivable_amount_bcy] => 0
    [unused_credits_receivable_amount] => 0
    [customer_credit_limit] => €10,00
    [first_name] => Eske2
    [last_name] => Kemi
    [email] => esko@apellis.ee
    [phone] => 
    [mobile] => 
    [portal_status] => enabled
    [created_time] => 2020-07-08T18:33:54+0300
    [created_time_formatted] => 08.07.2020
    [last_modified_time] => 2021-05-09T23:14:47+0300
    [last_modified_time_formatted] => 09.05.2021
    [custom_fields] => Array
        (
            [0] => stdClass Object
                (
                    [customfield_id] => 88366000000205009
                    [show_in_store] => 
                    [show_in_portal] => 
                    [is_active] => 1
                    [index] => 1
                    [label] => Asiakasnumero
                    [show_on_pdf] => 
                    [edit_on_portal] => 
                    [edit_on_store] => 
                    [show_in_all_pdf] => 
                    [value_formatted] => 201912036
                    [search_entity] => contact
                    [data_type] => autonumber
                    [placeholder] => cf_asiakasnumero
                    [value] => 201912036
                    [is_dependent_field] => 
                )

            [1] => stdClass Object
                (
                    [customfield_id] => 88366000001072637
                    [show_in_store] => 
                    [show_in_portal] => 
                    [is_active] => 1
                    [index] => 2
                    [label] => Viitenumero/ Reference no
                    [show_on_pdf] => 
                    [edit_on_portal] => 
                    [edit_on_store] => 
                    [show_in_all_pdf] => 
                    [value_formatted] => 123
                    [search_entity] => contact
                    [data_type] => number
                    [placeholder] => cf_viitenumero_reference_no
                    [value] => 123
                    [is_dependent_field] => 
                )

            [2] => stdClass Object
                (
                    [customfield_id] => 88366000002354208
                    [show_in_store] => 
                    [show_in_portal] => 
                    [is_active] => 1
                    [index] => 3
                    [label] => Customer_shopify_id
                    [show_on_pdf] => 
                    [edit_on_portal] => 
                    [edit_on_store] => 
                    [show_in_all_pdf] => 
                    [value_formatted] => 3771339210918
                    [search_entity] => contact
                    [data_type] => string
                    [placeholder] => cf_customer_shopify_id
                    [value] => 3771339210918
                    [is_dependent_field] => 
                )

        )

    [cf_asiakasnumero] => 201912036
    [cf_asiakasnumero_unformatted] => 201912036
    [cf_viitenumero_reference_no] => 123
    [cf_viitenumero_reference_no_unformatted] => 123
    [cf_customer_shopify_id] => 3771339210918
    [cf_customer_shopify_id_unformatted] => 3771339210918
    [custom_field_hash] => stdClass Object
        (
            [cf_asiakasnumero] => 201912036
            [cf_asiakasnumero_unformatted] => 201912036
            [cf_viitenumero_reference_no] => 123
            [cf_viitenumero_reference_no_unformatted] => 123
            [cf_customer_shopify_id] => 3771339210918
            [cf_customer_shopify_id_unformatted] => 3771339210918
        )

    [ach_supported] => 
    [has_attachment] => 
)


search_item_response:
{"code":0,"message":"success","items":[{"group_id":"88366000000110691","group_name":"Tester Retractable Brow Pencil kierrettävä kulmakynä","item_id":"88366000000110681","name":"Tester Retractable Brow Pencil-Brunette","item_name":"Tester Retractable Brow Pencil-Brunette","category_id":"88366000000093368","category_name":"Tester Brows","unit":"pcs","status":"active","source":"csv","is_combo_product":false,"is_linked_with_zohocrm":true,"zcrm_product_id":"233790000000228722","description":"Kulmien muotoilukynätesteri kierreharjalla/ Brow Pencil","brand":"JaneIredale","manufacturer":"Jane Iredale","rate":15.75,"tax_id":"88366000000671292","tax_name":"VAT 24","tax_percentage":24,"purchase_account_id":"88366000000000509","purchase_account_name":"Ostot","account_name":"Myynti","purchase_description":"76041","purchase_rate":4.05,"item_type":"inventory","product_type":"goods","stock_on_hand":7.000000,"has_attachment":false,"is_returnable":true,"available_stock":7.000000,"actual_available_stock":7.000000,"attribute_id1":"88366000000088105","attribute_id2":"","attribute_id3":"","attribute_name1":"Shade","attribute_name2":"","attribute_name3":"","attribute_type1":"Text","attribute_type2":"","attribute_type3":"","attribute_option_id1":"88366000000190015","attribute_option_id2":"","attribute_option_id3":"","attribute_option_name1":"Brunette","attribute_option_name2":"","attribute_option_name3":"","attribute_option_data1":"","attribute_option_data2":"","attribute_option_data3":"","sku":"76041","upc":"76041","ean":"76041","isbn":"","part_number":"76041","track_batch_number":false,"reorder_level":"","image_name":"75703-1E.jpg","image_type":"jpg","image_document_id":"88366000002164988","created_time":"2019-11-10T22:36:30+0200","last_modified_time":"2021-04-12T16:18:53+0300","cf_usd_purchase_price":"3.36","cf_usd_purchase_price_unformatted":3.360000,"cf_shopify_id":"5002623615114","cf_shopify_id_unformatted":"5002623615114","cf_shopify_variant_id":"33642649190538","cf_shopify_variant_id_unformatted":"33642649190538"}],"page_context":{"page":1,"per_page":200,"has_more_page":false,"report_name":"Items","applied_filter":"Status.All","sort_column":"name","sort_order":"A","search_criteria":[{"column_name":"sku","search_text":"76041","search_text_formatted":"76041","comparator":"contains"},{"column_name":"status","search_text":"active","search_text_formatted":"active","comparator":"equal"}]}}

item_id:
88366000000110681

Discount Price:
8.03

Line Item:
Array
(
    [item_id] => 88366000000110681
    [name] => Tester Retractable Brow Pencil kierrettävävä kulmakynä NYT ERÄ ERIKOISHINTAAN -40% (norm. 15.75 ); Alennus ei koske sävyä Dark Brunette - Brunette
    [rate] => 8.03
    [quantity] => 2
    [is_inclusive_tax] => 1
)


create_draft_map:
{"customer_id":"88366000003561587","line_items":[{"item_id":"88366000000110681","name":"Tester Retractable Brow Pencil kierrett\u00e4v\u00e4v\u00e4 kulmakyn\u00e4 NYT ER\u00c4 ERIKOISHINTAAN -40% (norm. 15.75 ); Alennus ei koske s\u00e4vy\u00e4 Dark Brunette - Brunette","rate":8.03,"quantity":2,"is_inclusive_tax":true}],"status":"Draft","notes":"Wholesale Order: Apell","is_inclusive_tax":true,"custom_fields":[{"customfield_id":88366000002453110,"value":856371003558}],"sub_total":"16.06","total":"16.06","tax_total":"3.11"}

search_draft_ZI:
{"code":0,"message":"success","salesorders":[],"page_context":{"page":1,"per_page":200,"has_more_page":false,"report_name":"Sales Orders","applied_filter":"Status.All","sort_column":"created_time","sort_order":"D","search_criteria":[{"column_name":"cf_shopify_so_id","search_text":"856371003558","search_text_formatted":"856371003558","comparator":"equal"}]}}

sales_order_data:
JSONString=%7B%22customer_id%22%3A%2288366000003561587%22%2C%22line_items%22%3A%5B%7B%22item_id%22%3A%2288366000000110681%22%2C%22name%22%3A%22Tester+Retractable+Brow+Pencil+kierrett%5Cu00e4v%5Cu00e4v%5Cu00e4+kulmakyn%5Cu00e4+NYT+ER%5Cu00c4+ERIKOISHINTAAN+-40%25+%28norm.+15.75+%29%3B+Alennus+ei+koske+s%5Cu00e4vy%5Cu00e4+Dark+Brunette+-+Brunette%22%2C%22rate%22%3A8.03%2C%22quantity%22%3A2%2C%22is_inclusive_tax%22%3Atrue%7D%5D%2C%22status%22%3A%22Draft%22%2C%22notes%22%3A%22Wholesale+Order%3A+Apell%22%2C%22is_inclusive_tax%22%3Atrue%2C%22custom_fields%22%3A%5B%7B%22customfield_id%22%3A88366000002453110%2C%22value%22%3A856371003558%7D%5D%2C%22sub_total%22%3A%2216.06%22%2C%22total%22%3A%2216.06%22%2C%22tax_total%22%3A%223.11%22%7D

Array:
Array

search_draft_ZI:
{"code":0,"message":"success","salesorders":[],"page_context":{"page":1,"per_page":200,"has_more_page":false,"report_name":"Sales Orders","applied_filter":"Status.All","sort_column":"created_time","sort_order":"D","search_criteria":[{"column_name":"cf_shopify_so_id","search_text":"856371003558","search_text_formatted":"856371003558","comparator":"equal"}]}}

create_sales_order_response:
{"code":0,"message":"Sales Order has been created.","salesorder":{"salesorder_id":"88366000007758612","documents":[],"zcrm_potential_id":"","zcrm_potential_name":"","salesorder_number":"SO-02499","date":"2021-06-09","offline_created_date_with_time":"","tracking_url":"","has_discount":false,"status":"draft","color_code":"","current_sub_status_id":"","current_sub_status":"draft","sub_statuses":[],"shipment_date":"","reference_number":"","customer_id":"88366000003561587","customer_name":"Eske2Kemi","contact_persons":[],"contact_person_details":[{"phone":"","mobile":"","last_name":"Kemi","contact_person_id":"88366000003561589","first_name":"Eske2","email":"esko@apellis.ee"}],"source":"Api","contact_category":"","currency_id":"88366000000000071","currency_code":"EUR","currency_symbol":"€","exchange_rate":1.00,"is_discount_before_tax":true,"discount_type":"item_level","estimate_id":"","delivery_method":"","delivery_method_id":"","is_inclusive_tax":true,"tax_rounding":"item_level","order_status":"draft","invoiced_status":"","paid_status":"","shipped_status":"","sales_channel":"direct_sales","sales_channel_formatted":"Direct Sales","account_identifier":"","integration_id":"","is_dropshipped":false,"is_backordered":false,"is_manually_fulfilled":false,"has_qty_cancelled":false,"created_by_email":"apellis@apellis.fi","total_quantity":2,"line_items":[{"line_item_id":"88366000007758616","variant_id":"88366000000110681","track_batch_number":false,"item_id":"88366000000110681","is_returnable":true,"product_id":"88366000000110691","attribute_name1":"Shade","attribute_name2":"","attribute_name3":"","attribute_option_name1":"Brunette","attribute_option_name2":"","attribute_option_name3":"","attribute_option_data1":"","attribute_option_data2":"","attribute_option_data3":"","is_combo_product":false,"warehouse_id":"88366000000041019","warehouse_name":"Apellis Oy","sku":"76041","name":"Tester Retractable Brow Pencil kierrettävävä kulmakynä NYT ERÄ ERIKOISHINTAAN -40% (norm. 15.75 ); Alennus ei koske sävyä Dark Brunette - Brunette","group_name":"Tester Retractable Brow Pencil kierrettävä kulmakynä","description":"","item_order":1,"bcy_rate":8.03,"rate":8.03,"quantity":2,"quantity_manuallyfulfilled":0,"unit":"pcs","pricebook_id":"","header_id":"","header_name":"","discount_amount":0.00,"discount":0.00,"discounts":[],"tax_id":"88366000000671292","tax_name":"VAT 24","tax_type":"tax","tax_percentage":24,"item_total":12.95,"item_sub_total":12.95,"product_type":"goods","line_item_type":"goods","item_type":"inventory","is_invoiced":false,"is_unconfirmed_product":false,"tags":[],"image_name":"75703-1E.jpg","image_type":"jpg","document_id":"88366000002164988","item_custom_fields":[],"quantity_invoiced":0,"quantity_packed":0,"quantity_shipped":0,"quantity_cancelled":0.000000,"package_details":{"length":0.700000,"width":14.700000,"height":0.700000,"weight":0.003000,"weight_unit":"kg","dimension_unit":"cm"},"quantity_invoiced_cancelled":0.000000,"quantity_returned":0}],"submitter_id":"","approver_id":"","submitted_date":"","submitted_by":"","price_precision":2,"is_emailed":false,"has_unconfirmed_line_item":false,"picklists":[],"purchaseorders":[],"warehouses":[{"warehouse_id":"88366000000041019","warehouse_name":"Apellis Oy","address":"Viikatetie","city":"Vantaa","state":"","country":"Finland","zip":"01640","phone":"","email":"esko.kemilainen@apellis.fi","is_primary":true,"status":"active","sales_channels":[]},{"warehouse_id":"88366000004247475","warehouse_name":"Stock 2","address":"","city":"","state":"","country":"Estonia","zip":"","phone":"","email":"","is_primary":false,"status":"active","sales_channels":[]}],"billing_address_id":"88366000003561590","billing_address":{"address":"","street2":"","city":"","state":"","zip":"","country":"","country_code":"","state_code":"","fax":"","phone":"","attention":"Eske2Kemi"},"shipping_address_id":"88366000003561592","shipping_address":{"address":"","street2":"","city":"","state":"","zip":"","country":"","country_code":"","state_code":"","fax":"","phone":"","attention":""},"is_test_order":false,"notes":"Wholesale Order: Apell","terms":"","payment_terms":"","payment_terms_label":"","custom_fields":[{"customfield_id":"88366000002453110","show_in_store":false,"show_in_portal":false,"is_active":true,"index":1,"label":"shopify_so_id","show_on_pdf":false,"edit_on_portal":false,"edit_on_store":false,"show_in_all_pdf":false,"value_formatted":"856371003558","search_entity":"salesorder","data_type":"string","placeholder":"cf_shopify_so_id","value":"856371003558","is_dependent_field":false}],"custom_field_hash":{"cf_shopify_so_id":"856371003558","cf_shopify_so_id_unformatted":"856371003558"},"template_id":"88366000001042810","template_name":"Tarjous FI","page_width":"8.27in","page_height":"11.69in","orientation":"portrait","template_type":"compact","created_time":"2021-06-09T17:07:52+0300","last_modified_time":"2021-06-09T17:07:52+0300","created_by_id":"88366000001627005","created_date":"2021-06-09","last_modified_by_id":"88366000001627005","attachment_name":"","can_send_in_mail":false,"salesperson_id":"","salesperson_name":"","merchant_id":"","merchant_name":"","pickup_location_id":"","discount":0.00,"discount_applied_on_amount":0.00,"is_adv_tracking_in_package":false,"shipping_charge_tax_id":"","shipping_charge_tax_name":"","shipping_charge_tax_type":"","shipping_charge_tax_percentage":"","shipping_charge_tax":"","shipping_charge_exclusive_of_tax":0.000,"shipping_charge_inclusive_of_tax":0.000,"shipping_charge_tax_formatted":"","shipping_charge_exclusive_of_tax_formatted":"€0,00","shipping_charge_inclusive_of_tax_formatted":"€0,00","shipping_charge":0.00,"bcy_shipping_charge":0.00,"adjustment":0.00,"bcy_adjustment":0.00,"adjustment_description":"","roundoff_value":0.00,"transaction_rounding_type":"no_rounding","sub_total":12.95,"bcy_sub_total":12.95,"sub_total_inclusive_of_tax":0.00,"sub_total_exclusive_of_discount":12.95,"discount_total":0.00,"bcy_discount_total":0.00,"discount_percent":0.00,"tax_total":3.11,"bcy_tax_total":3.11,"total":16.06,"bcy_total":16.060,"taxes":[{"tax_name":"VAT 24 (24%)","tax_amount":3.11}],"packages":[],"invoices":[],"salesreturns":[],"payments":[],"creditnotes":[],"refunds":[],"balance":16.06,"approvers_list":[]}}

--------------------------------- END -----------------------------------
