Advertisement
ToanTK

Response for Get Task By ID

Oct 14th, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 5.66 KB | None | 0 0
  1. {
  2.   "id": 1,
  3.   "type": "task",
  4.   "summary": "You have boked for Microwave repair. We is assigning a Microwave repair expert for you.",
  5.   "due_date": "2015-09-14T13:51:01Z",
  6.   "task_no": "HEL151012345",
  7.   "category": {
  8.     "id": 123,
  9.     "name": "Home / Repair"
  10.   },
  11.   "customer_qb_room_id": "561caafda28f9a6d12000275",
  12.   "customer_qb_room_jid": "29267_561caafda28f9a6d12000275@muc.chat.quickblox.com",
  13.   "amount_untaxed": 2119,
  14.   "amount_tax": 0,
  15.   "amount_total": 2119,
  16.   "customer_id": 123,
  17.   "contact_name": "John Doe",
  18.   "address": {
  19.     "address1": "788 Rama 4",
  20.     "address2": "",
  21.     "province": {
  22.       "id": 1,
  23.       "name": "Bangkok"
  24.     },
  25.     "district": {
  26.       "id": 1,
  27.       "name": "Khet Phra Nakhon"
  28.     },
  29.     "subdistrict": {
  30.       "id": 1,
  31.       "name": "Phra Borom Maha Ratchawang"
  32.     },
  33.     "zip": "10500",
  34.     "geo_location": {
  35.       "latitude": 13.729936,
  36.       "longitude": 100.535521
  37.     }
  38.   },
  39.   "phone": "+6623456789",
  40.   "mobile": "+66888888888",
  41.   "status": {
  42.     "code": "at_location",
  43.     "name": "Operator At Location"
  44.   },
  45.   "progress_history": [
  46.     {
  47.       "code": "order_confirmed",
  48.       "name": "Order Confirmed",
  49.       "status": {
  50.         "code": "completed",
  51.         "name": "Completed"
  52.       }
  53.     },
  54.     {
  55.       "code": "finding_operator",
  56.       "name": "Finding You an Operator",
  57.       "status": {
  58.         "code": "completed",
  59.         "name": "Completed"
  60.       }
  61.     },
  62.     {
  63.       "code": "on_the_way",
  64.       "name": "Operator On The Way",
  65.       "status": {
  66.         "code": "completed",
  67.         "name": "Completed"
  68.       }
  69.     },
  70.     {
  71.       "code": "at_location",
  72.       "name": "Operator At Location",
  73.       "status": {
  74.         "code": "in_progress",
  75.         "name": "In Progress"
  76.       }
  77.     },
  78.     {
  79.       "code": "working _task",
  80.       "name": "Operator Working Task",
  81.       "status": {
  82.         "code": "waiting",
  83.         "name": "Waiting"
  84.       }
  85.     },
  86.     {
  87.       "code": "completed_task",
  88.       "name": "operator_completed_task",
  89.       "status": {
  90.         "code": "waiting",
  91.         "name": "Waiting"
  92.       }
  93.     },
  94.     {
  95.       "code": "awaiting_customer_approval",
  96.       "name": "Awaiting for Customer Approval",
  97.       "status": {
  98.         "code": "waiting",
  99.         "name": "Waiting"
  100.       }
  101.     },
  102.     {
  103.       "code": "complete",
  104.       "name": "Task Complete",
  105.       "status": {
  106.         "code": "waiting",
  107.         "name": "Waiting"
  108.       }
  109.     }
  110.   ],
  111.   "allow_actions": {
  112.     "customer": [],
  113.     "workforce": [
  114.       "completed",
  115.       "stop_task"
  116.     ]
  117.   },
  118.   "team": {
  119.     "id": 1,
  120.     "contact": {
  121.       "name": "Tom Son",
  122.       "image": "http://xxxxxxxx/img",
  123.       "mobile": "+66999999999"
  124.     },
  125.     "members": [
  126.       {
  127.         "name": "Tom Son",
  128.         "image": "http://xxxxxxxx/img"
  129.       },
  130.       {
  131.         "name": "Tony",
  132.         "image": "http://xxxxxxxx/img"
  133.       }
  134.     ]
  135.   },
  136.   "invoices": [
  137.     {
  138.       "id": 1,
  139.       "invoice_no": "SAJ/2015/0004",
  140.       "invoice_date": "2015-09-14T13:51:01Z",
  141.       "status": {
  142.         "code": "unpaid",
  143.         "name": "Unpaid"
  144.       },
  145.       "payment": [
  146.         {
  147.           "id": 1,
  148.           "need_pay": false,
  149.           "payment_method": {
  150.             "name": "Credit Card",
  151.             "type": "credit_card",
  152.             "detail": {
  153.               "card_holder_name": "JOHN DOE",
  154.               "card_number": "4444xxxxxxxx2222",
  155.               "expiry_month": "05",
  156.               "expiry_year": "16"
  157.             },
  158.             "payment_date": "2015-09-15T10:22:11Z",
  159.             "paid_amount": 200,
  160.             "status": {
  161.               "code": "posted",
  162.               "name": "Posted"
  163.             }
  164.           }
  165.         },
  166.         {
  167.           "id": 2,
  168.           "need_pay": true,
  169.           "amount_total": 200,
  170.           "status": {
  171.             "code": "draft",
  172.             "name": "Draft"
  173.           },
  174.           "allow_payment_method": [
  175.             {
  176.               "id": 1,
  177.               "name": "Cash",
  178.               "type": "cash"
  179.             },
  180.             {
  181.               "id": 2,
  182.               "name": "Bank TMB",
  183.               "type": "bank_tranfer",
  184.               "bank": {
  185.                 "code": "TMB",
  186.                 "name": "Bank TMB",
  187.                 "branch": "Bangkapi",
  188.                 "account_no": "111-2-33333-4",
  189.                 "url_logo": "http://gethelpster.com/img/bank01.png"
  190.               }
  191.             },
  192.             {
  193.               "id": 3,
  194.               "name": "Bank SCB",
  195.               "type": "bank_tranfer",
  196.               "bank": {
  197.                 "code": "scb",
  198.                 "name": "The Siam Commercial Bank",
  199.                 "branch": "Bangkapi",
  200.                 "account_no": "111-2-33333-4",
  201.                 "url_logo": "http://gethelpster.com/img/bank02.png"
  202.               }
  203.             },
  204.             {
  205.               "id": 4,
  206.               "name": "Credit Card",
  207.               "type": "credit_card",
  208.               "config": {
  209.                 "payment_gateway_provider": "2c2p",
  210.                 "version": "8.0",
  211.                 "merchant_id": "",
  212.                 "secret_key": "",
  213.                 "public_key": "",
  214.                 "private_key": "",
  215.                 "private_key_pass ": ""
  216.               }
  217.             }
  218.           ]
  219.         }
  220.       ]
  221.     }
  222.   ],
  223.   "review": {
  224.     "id": 1,
  225.     "template_id": 1,
  226.     "avg_score": 4,
  227.     "comment": "Project job done.",
  228.     "details": [
  229.       {
  230.         "name": "Knows his job",
  231.         "score": 4.5
  232.       },
  233.       {
  234.         "name": "Was on time",
  235.         "score": 5
  236.       },
  237.       {
  238.         "name": "Was on time",
  239.         "score": 5
  240.       }
  241.     ]
  242.   }
  243. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement