Advertisement
Guest User

nhandeptrai

a guest
May 23rd, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.03 KB | None | 0 0
  1. curl 'https://crm-service.d.etop.vn/api.crm/ticket/update' -X PUT -H 'Accept: application/json, text/plain, */*' -H 'Referer: http://localhost:4400/admin/tickets' -H 'Origin: http://localhost:4400' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36' -H 'Authorization: Bearer QqrBXcptMU54stScJJoGqMD4L0PTsbv7A46v54F4imk' -H 'Content-Type: application/json' --data-binary '{"ticket_no":"TT2666","assigned_user_id":"19x5","parent_id":"","ticketpriorities":"Normal","product_id":"","ticketseverities":"","ticketstatus":"Confirmed","ticketcategories":"Thay đổi SDT","update_log":"","hours":"0.00000000","days":"0.00000000","createdtime":"2019-04-27 07:24:56","modifiedtime":"2019-04-27 07:24:56","from_portal":"0","modifiedby":"19x5","ticket_title":"Thay đổi SDT đơn giao hàng ED7D4UFLX","description":"09214324324 → 0988999888","solution":"","contact_id":"12x664","source":"WEBSERVICE","starred":"0","tags":"","cf_942":"","id":"17x11398","reason":"đổi sdt","note":"\nGHN TK 300 gr\nLogin 0938222489\n","ffm_code":"ED7D4UFLX","ffm_url":"https://admin.d.etop.vn/admin/fulfillments/1075470877069562834","etop_id":"1037379454341402173","order_id":"1075470876311229532","order_code":"F1.FQSM.HSGEZ","company":"Wys Test","provider":"GHN","ffm_id":"1075470877069562834","from_app":"localhost","environment":"development","code":"change-phone","old_value":"09214324324","new_value":"0988999888","substatus":"","order":{"exported_fields":["basket_value","cancel_reason","cancelled_at","closed_at","code","confirm_status","confirmed_at","created_at","customer_address","etop_payment_status","external_code","external_id","external_url","fee_lines","fulfillment_shipping_status","id","lines","order_discount","order_note","processed_at","self_url","shipping","shipping_address","shop_id","status","total_discount","total_fee","total_items","updated_at"],"id":"1075470876311229532","shop_id":"1037379531914216261","shop_name":"Wys Test","code":"F1.FQSM.HSGEZ","ed_code":"","external_code":"","source":"etop_pos","partner_id":"0","external_id":"","external_url":"","self_url":"","payment_method":"cod","customer":{"exported_fields":["email","full_name","gender","phone"],"first_name":"","last_name":"","full_name":"Ralph Jackson","email":"","phone":"","gender":"unknown"},"customer_address":{"exported_fields":["address1","address2","company","district","full_name","phone","province","ward"],"full_name":"Ralph Jackson","first_name":"","last_name":"","phone":"09214324324","email":"","country":"","city":"","province":"Tỉnh An Giang","district":"Huyện Châu Thành","ward":"Xã Bình Hòa","zip":"","company":"","address1":"6405 Mckinley Ave","address2":"","province_code":"89","district_code":"892","ward_code":"30607"},"billing_address":{"exported_fields":["address1","address2","company","district","full_name","phone","province","ward"],"full_name":"Ralph Jackson","first_name":"","last_name":"","phone":"09214324324","email":"","country":"","city":"","province":"Tỉnh An Giang","district":"Huyện Châu Thành","ward":"Xã Bình Hòa","zip":"","company":"","address1":"6405 Mckinley Ave","address2":"","province_code":"89","district_code":"892","ward_code":"30607"},"shipping_address":{"exported_fields":["address1","address2","company","district","full_name","phone","province","ward"],"full_name":"Ralph Jackson","first_name":"","last_name":"","phone":"09214324324","email":"","country":"","city":"","province":"Tỉnh An Giang","district":"Huyện Châu Thành","ward":"Xã Bình Hòa","zip":"","company":"","address1":"6405 Mckinley Ave","address2":"","province_code":"89","district_code":"892","ward_code":"30607"},"created_at":"2019-04-27T04:32:29Z","processed_at":"2019-04-27T04:32:29Z","updated_at":"2019-04-27T04:32:29Z","closed_at":null,"confirmed_at":null,"cancelled_at":null,"cancel_reason":"","sh_confirm":"P","confirm":"P","confirm_status":"P","status":"N","fulfillment_status":"N","fulfillment_shipping_status":"N","customer_payment_status":"Z","etop_payment_status":"Z","lines":[{"exported_fields":["attributes","created_at","image_url","list_price","order_id","payment_price","product_id","product_name","quantity","retail_price","updated_at","variant_id"],"order_id":"1075470876311229532","variant_id":"1074913016790150274","x_variant_id":"","product_name":"Trà sữa Matcha","is_outside_etop":false,"updated_at":null,"closed_at":null,"confirmed_at":null,"cancelled_at":null,"cancel_reason":"","s_confirm":"Z","quantity":1,"list_price":20000,"retail_price":20000,"payment_price":20000,"image_url":"https://etop.d.etop.vn/upload/img/BbWjWFKP5KADNp12ME7W.jpg","attributes":[],"product_id":"1074913016795255988","total_discount":0},{"exported_fields":["attributes","created_at","image_url","list_price","order_id","payment_price","product_id","product_name","quantity","retail_price","updated_at","variant_id"],"order_id":"1075470876311229532","variant_id":"1075198824558688118","x_variant_id":"","product_name":"Linh Béo","is_outside_etop":false,"updated_at":null,"closed_at":null,"confirmed_at":null,"cancelled_at":null,"cancel_reason":"","s_confirm":"Z","quantity":1,"list_price":79000,"retail_price":79000,"payment_price":79000,"image_url":"","attributes":[],"product_id":"1075198824553975312","total_discount":0},{"exported_fields":["attributes","created_at","image_url","list_price","order_id","payment_price","product_id","product_name","quantity","retail_price","updated_at","variant_id"],"order_id":"1075470876311229532","variant_id":"1075199342003596000","x_variant_id":"","product_name":"Sách","is_outside_etop":false,"updated_at":null,"closed_at":null,"confirmed_at":null,"cancelled_at":null,"cancel_reason":"","s_confirm":"Z","quantity":1,"list_price":89000,"retail_price":89000,"payment_price":89000,"image_url":"https://etop.d.etop.vn/upload/img/BbbRFl58R7A51AtsmPeC.jpg","attributes":[],"product_id":"1075199342002677845","total_discount":0}],"discounts":[],"total_items":3,"basket_value":188000,"total_weight":200,"order_discount":0,"total_discount":0,"total_amount":188000,"order_note":"","shipping_fee":0,"total_fee":0,"fee_lines":[{"type":"shipping","name":"Phí vận chuyển tính với khách","code":"","desc":"Phí vận chuyển tính với khách","amount":0}],"shop_shipping_fee":0,"shipping_note":"","shop_cod":200000,"reference_url":"","fulfillments":[{"exported_fields":["basket_value","cancel_reason","carrier","chargeable_weight","closed_at","cod_amount","confirm_status","created_at","estimated_delivery_at","estimated_pickup_at","etop_payment_status","id","include_insurance","lines","order_id","pickup_address","return_address","self_url","shipping_address","shipping_cancelled_at","shipping_service_code","shipping_service_fee","shipping_service_name","shipping_state","shipping_status","shop_id","status","total_items","try_on","updated_at"],"id":"1075470877069562834","order_id":"1075470876311229532","shop_id":"1037379531914216261","partner_id":"0","self_url":"","lines":[{"exported_fields":["attributes","created_at","image_url","list_price","order_id","payment_price","product_id","product_name","quantity","retail_price","updated_at","variant_id"],"order_id":"1075470876311229532","variant_id":"1074913016790150274","x_variant_id":"","product_name":"Trà sữa Matcha","is_outside_etop":false,"updated_at":null,"closed_at":null,"confirmed_at":null,"cancelled_at":null,"cancel_reason":"","s_confirm":"Z","quantity":1,"list_price":20000,"retail_price":20000,"payment_price":20000,"image_url":"https://etop.d.etop.vn/upload/img/BbWjWFKP5KADNp12ME7W.jpg","attributes":[],"product_id":"1074913016795255988","total_discount":0},{"exported_fields":["attributes","created_at","image_url","list_price","order_id","payment_price","product_id","product_name","quantity","retail_price","updated_at","variant_id"],"order_id":"1075470876311229532","variant_id":"1075198824558688118","x_variant_id":"","product_name":"Linh Béo","is_outside_etop":false,"updated_at":null,"closed_at":null,"confirmed_at":null,"cancelled_at":null,"cancel_reason":"","s_confirm":"Z","quantity":1,"list_price":79000,"retail_price":79000,"payment_price":79000,"image_url":"","attributes":[],"product_id":"1075198824553975312","total_discount":0},{"exported_fields":["attributes","created_at","image_url","list_price","order_id","payment_price","product_id","product_name","quantity","retail_price","updated_at","variant_id"],"order_id":"1075470876311229532","variant_id":"1075199342003596000","x_variant_id":"","product_name":"Sách","is_outside_etop":false,"updated_at":null,"closed_at":null,"confirmed_at":null,"cancelled_at":null,"cancel_reason":"","s_confirm":"Z","quantity":1,"list_price":89000,"retail_price":89000,"payment_price":89000,"image_url":"https://etop.d.etop.vn/upload/img/BbbRFl58R7A51AtsmPeC.jpg","attributes":[],"product_id":"1075199342002677845","total_discount":0}],"total_items":3,"total_weight":200,"basket_value":188000,"total_cod_amount":200000,"cod_amount":200000,"total_amount":188000,"chargeable_weight":200,"created_at":"2019-04-27T04:32:30Z","updated_at":"2019-04-27T04:32:30Z","closed_at":"2019-04-27T07:19:33Z","cancelled_at":null,"cancel_reason":"","shipping_provider":"ghn","carrier":"ghn","shipping_service_name":"Chuẩn","shipping_service_fee":49500,"shipping_service_code":"DC53322","shipping_code":"ED7D4UFLX","shipping_note":"","try_on":"open","include_insurance":true,"sh_confirm":"P","s_confirm":"Z","shipping_state":"cancelled","status":"N","shipping_status":"N","etop_payment_status":"Z","shipping_fee_customer":0,"shipping_fee_shop":49500,"x_shipping_fee":49500,"x_shipping_id":"119224410","x_shipping_code":"ED7D4UFLX","x_shipping_created_at":"2019-04-27T04:32:30Z","x_shipping_updated_at":"2019-04-27T07:19:33Z","x_shipping_cancelled_at":null,"x_shipping_delivered_at":null,"x_shipping_returned_at":null,"expected_delivery_at":"2019-05-04T05:00:00Z","expected_pick_at":"2019-04-27T11:00:00Z","estimated_delivery_at":"2019-05-04T05:00:00Z","estimated_pickup_at":"2019-04-27T11:00:00Z","cod_etop_transfered_at":null,"shipping_fee_shop_transfered_at":null,"x_shipping_state":"Cancel","x_shipping_status":"N","x_sync_status":"P","x_sync_states":{"sync_at":"2019-04-27T04:32:30Z","next_shipping_state":"","error":{"code":"ok","msg":"","meta":{}}},"address_to":{"exported_fields":[],"id":"0","province":"Tỉnh An Giang","province_code":"89","district":"Huyện Châu Thành","district_code":"892","ward":"Xã Bình Hòa","ward_code":"30607","address1":"6405 Mckinley Ave","address2":"","zip":"","country":"","full_name":"Ralph Jackson","first_name":"","last_name":"","phone":"09214324324","email":"","position":"","type":"unknown","notes":null},"address_from":{"exported_fields":[],"id":"0","province":"Tỉnh Bến Tre","province_code":"83","district":"Huyện Bình Đại","district_code":"835","ward":"Xã Bình Thắng","ward_code":"29092","address1":"123 Đơn hàng test, xin huỷ giúp","address2":"","zip":"","country":"","full_name":"RRRR","first_name":"","last_name":"","phone":"0999999999","email":"","position":"","type":"unknown","notes":null},"pickup_address":{"exported_fields":["address1","address2","company","district","full_name","phone","province","ward"],"full_name":"RRRR","first_name":"","last_name":"","phone":"0999999999","email":"","country":"","city":"","province":"Tỉnh Bến Tre","district":"Huyện Bình Đại","ward":"Xã Bình Thắng","zip":"","company":"","address1":"123 Đơn hàng test, xin huỷ giúp","address2":"","province_code":"83","district_code":"835","ward_code":"29092"},"return_address":{"exported_fields":["address1","address2","company","district","full_name","phone","province","ward"],"full_name":"RRRR","first_name":"","last_name":"","phone":"0999999999","email":"","country":"","city":"","province":"Tỉnh Bến Tre","district":"Huyện Bình Đại","ward":"Xã Bình Thắng","zip":"","company":"","address1":"123 Đơn hàng test, xin huỷ giúp","address2":"","province_code":"83","district_code":"835","ward_code":"29092"},"shipping_address":{"exported_fields":["address1","address2","company","district","full_name","phone","province","ward"],"full_name":"Ralph Jackson","first_name":"","last_name":"","phone":"09214324324","email":"","country":"","city":"","province":"Tỉnh An Giang","district":"Huyện Châu Thành","ward":"Xã Bình Hòa","zip":"","company":"","address1":"6405 Mckinley Ave","address2":"","province_code":"89","district_code":"892","ward_code":"30607"},"shop":null,"order":null,"provider_shipping_fee_lines":[{"shipping_fee_type":"insurance","cost":0,"external_service_id":"16","external_service_name":"Phí khai giá","external_service_type":"5","external_shipping_order_id":"119224410","external_payment_channel_id":"1"},{"shipping_fee_type":"main","cost":49500,"external_service_id":"53322","external_service_name":"3 Ngày","external_service_type":"1","external_shipping_order_id":"119224410","external_payment_channel_id":"1"}],"shipping_fee_shop_lines":[{"shipping_fee_type":"insurance","cost":0,"external_service_id":"16","external_service_name":"Phí khai giá","external_service_type":"5","external_shipping_order_id":"119224410","external_payment_channel_id":"1"},{"shipping_fee_type":"main","cost":49500,"external_service_id":"53322","external_service_name":"3 Ngày","external_service_type":"1","external_shipping_order_id":"119224410","external_payment_channel_id":"1"}],"etop_discount":0,"money_transaction_shipping_id":"0","money_transaction_shipping_external_id":"0","x_shipping_logs":[{"state_text":"Tạo đơn hàng","time":"2019-04-27T04:32:30.000Z","message":"Tại <strong>123 Đơn**********</strong>"},{"state_text":"Lấy hàng","time":"2019-04-27T05:02:07.000Z","message":"Tại <strong>123 Đơn**********</strong> </br>NV lấy hàng <strong>1711147</strong> - <strong>Lê Lâm Bình An</strong>"},{"state_text":"Hủy đơn","time":"2019-04-27T05:02:26.000Z","message":"Lý do <strong>GHN-NOTE|123 Đơn hàng test, xin huỷ giúpXã Bình Thắng, Huyện Bình Đại, Tỉnh Bến Tre</strong>"}],"x_shipping_note":"","x_shipping_sub_state":"","code":"","actual_compensation_amount":0}],"shop_shipping":{"exported_fields":["carrier","chargeable_weight","cod_amount","gross_weight","height","include_insurance","length","pickup_address","shipping_node","shipping_service_code","shipping_service_fee","shipping_service_name","try_on","weight","width"],"sh_address":{"exported_fields":["address1","address2","company","district","full_name","phone","province","ward"],"full_name":"RRRR","first_name":"","last_name":"","phone":"0999999999","email":"","country":"","city":"","province":"Tỉnh Bến Tre","district":"Huyện Bình Đại","ward":"Xã Bình Thắng","zip":"","company":"","address1":"123 Đơn hàng test, xin huỷ giúp","address2":"","province_code":"83","district_code":"835","ward_code":"29092"},"x_service_id":"DC53322","x_shipping_fee":49500,"x_service_name":"Chuẩn","pickup_address":{"exported_fields":["address1","address2","company","district","full_name","phone","province","ward"],"full_name":"RRRR","first_name":"","last_name":"","phone":"0999999999","email":"","country":"","city":"","province":"Tỉnh Bến Tre","district":"Huyện Bình Đại","ward":"Xã Bình Thắng","zip":"","company":"","address1":"123 Đơn hàng test, xin huỷ giúp","address2":"","province_code":"83","district_code":"835","ward_code":"29092"},"return_address":null,"shipping_service_name":"Chuẩn","shipping_service_code":"DC53322","shipping_service_fee":49500,"shipping_provider":"ghn","carrier":"ghn","include_insurance":true,"try_on":"open","shipping_note":"","cod_amount":200000,"weight":200,"gross_weight":200,"length":0,"width":0,"height":0,"chargeable_weight":200},"shipping":{"exported_fields":["carrier","chargeable_weight","cod_amount","gross_weight","height","include_insurance","length","pickup_address","shipping_node","shipping_service_code","shipping_service_fee","shipping_service_name","try_on","weight","width"],"sh_address":{"exported_fields":["address1","address2","company","district","full_name","phone","province","ward"],"full_name":"RRRR","first_name":"","last_name":"","phone":"0999999999","email":"","country":"","city":"","province":"Tỉnh Bến Tre","district":"Huyện Bình Đại","ward":"Xã Bình Thắng","zip":"","company":"","address1":"123 Đơn hàng test, xin huỷ giúp","address2":"","province_code":"83","district_code":"835","ward_code":"29092"},"x_service_id":"DC53322","x_shipping_fee":49500,"x_service_name":"Chuẩn","pickup_address":{"exported_fields":["address1","address2","company","district","full_name","phone","province","ward"],"full_name":"RRRR","first_name":"","last_name":"","phone":"0999999999","email":"","country":"","city":"","province":"Tỉnh Bến Tre","district":"Huyện Bình Đại","ward":"Xã Bình Thắng","zip":"","company":"","address1":"123 Đơn hàng test, xin huỷ giúp","address2":"","province_code":"83","district_code":"835","ward_code":"29092"},"return_address":null,"shipping_service_name":"Chuẩn","shipping_service_code":"DC53322","shipping_service_fee":49500,"shipping_provider":"ghn","carrier":"ghn","include_insurance":true,"try_on":"open","shipping_note":"","cod_amount":200000,"weight":200,"gross_weight":200,"length":0,"width":0,"height":0,"chargeable_weight":200},"external_data":null,"ghn_note_code":"CHOXEMHANGKHONGTHU"}}' --compressed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement