Advertisement
Guest User

woocommerce order api

a guest
Mar 1st, 2018
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.65 KB | None | 0 0
  1. {
  2. "order": {
  3. "id": 168666,
  4. "order_number": "168666",
  5. "created_at": "2018-02-10T14:31:16Z",
  6. "updated_at": "2018-02-10T14:31:16Z",
  7. "completed_at": "1970-01-01T00:00:00Z",
  8. "status": "pending",
  9. "currency": "ZAR",
  10. "total": "288.19",
  11. "subtotal": "326.46",
  12. "total_line_items_quantity": 7,
  13. "total_tax": "0.00",
  14. "total_shipping": "0.00",
  15. "cart_tax": "0.00",
  16. "shipping_tax": "0.00",
  17. "total_discount": "38.27",
  18. "shipping_methods": "",
  19. "payment_details": {
  20. "method_id": "paygate",
  21. "method_title": "PayGate Payment Gateway",
  22. "paid": false
  23. },
  24. "billing_address": {
  25. "first_name": "test",
  26. "last_name": "name",
  27. "company": "",
  28. "address_1": "2 Palal",
  29. "address_2": "Valley Lod",
  30. "city": "Sandton",
  31. "state": "GP",
  32. "postcode": "2057",
  33. "country": "ZA",
  34. "email": "test@gmail.com",
  35. "phone": "1234567890"
  36. },
  37. "shipping_address": {
  38. "first_name": "test",
  39. "last_name": "wergwefr",
  40. "company": "",
  41. "address_1": "2 Palala Cl",
  42. "address_2": "Valley Lod",
  43. "city": "Sandton",
  44. "state": "GP",
  45. "postcode": "2057",
  46. "country": "ZA"
  47. },
  48. "note": "Dial Unit 3 Option 1",
  49. "customer_ip": "165.73.35.50",
  50. "customer_user_agent": "mozilla/5.0 (macintosh; intel mac os x 10_13_3) applewebkit/537.36 (khtml, like gecko) chrome/64.0.3282.140 safari/537.36",
  51. "customer_id": 198,
  52. "view_order_url": "https://www.testdomain.co.za/my-account-2/view-order/168666",
  53. "line_items": [
  54. {
  55. "id": 6354,
  56. "subtotal": "109.99",
  57. "subtotal_tax": "0.00",
  58. "total": "104.51",
  59. "total_tax": "0.00",
  60. "price": "104.51",
  61. "quantity": 1,
  62. "tax_class": "",
  63. "name": "Macaroni Cheese 1Kg",
  64. "product_id": 126957,
  65. "sku": "20115609",
  66. "meta": []
  67. },
  68. {
  69. "id": 6355,
  70. "subtotal": "16.49",
  71. "subtotal_tax": "0.00",
  72. "total": "11.03",
  73. "total_tax": "0.00",
  74. "price": "11.03",
  75. "quantity": 1,
  76. "tax_class": "",
  77. "name": "Macaroni 500g",
  78. "product_id": 131487,
  79. "sku": "6009178658444",
  80. "meta": []
  81. },
  82. {
  83. "id": 6356,
  84. "subtotal": "33.00",
  85. "subtotal_tax": "0.00",
  86. "total": "27.54",
  87. "total_tax": "0.00",
  88. "price": "27.54",
  89. "quantity": 1,
  90. "tax_class": "",
  91. "name": "Havarti Cheese 75g",
  92. "product_id": 135419,
  93. "sku": "6009207290300",
  94. "meta": []
  95. },
  96. {
  97. "id": 6357,
  98. "subtotal": "48.35",
  99. "subtotal_tax": "0.00",
  100. "total": "42.88",
  101. "total_tax": "0.00",
  102. "price": "42.88",
  103. "quantity": 1,
  104. "tax_class": "",
  105. "name": "Cheddarella with Spices 250g",
  106. "product_id": 136273,
  107. "sku": "6009189488979",
  108. "meta": []
  109. },
  110. {
  111. "id": 6358,
  112. "subtotal": "48.35",
  113. "subtotal_tax": "0.00",
  114. "total": "42.88",
  115. "total_tax": "0.00",
  116. "price": "42.88",
  117. "quantity": 1,
  118. "tax_class": "",
  119. "name": "Grated Gouda 250g",
  120. "product_id": 133489,
  121. "sku": "20100193",
  122. "meta": []
  123. },
  124. {
  125. "id": 6359,
  126. "subtotal": "21.95",
  127. "subtotal_tax": "0.00",
  128. "total": "16.49",
  129. "total_tax": "0.00",
  130. "price": "16.49",
  131. "quantity": 1,
  132. "tax_class": "",
  133. "name": "Ayrshire Pouring Cream 250ml",
  134. "product_id": 126838,
  135. "sku": "20123253",
  136. "meta": []
  137. },
  138. {
  139. "id": 6360,
  140. "subtotal": "48.35",
  141. "subtotal_tax": "0.00",
  142. "total": "42.88",
  143. "total_tax": "0.00",
  144. "price": "42.88",
  145. "quantity": 1,
  146. "tax_class": "",
  147. "name": "Grated Mature Cheddar 250g",
  148. "product_id": 130451,
  149. "sku": "20100209",
  150. "meta": []
  151. }
  152. ],
  153. "shipping_lines": [],
  154. "tax_lines": [],
  155. "fee_lines": [],
  156. "coupon_lines": [],
  157. "customer": {
  158. "id": 198,
  159. "created_at": "2018-02-07T10:07:41Z",
  160. "email": "test@gmail.com",
  161. "first_name": "test",
  162. "last_name": "ddne",
  163. "username": "eee",
  164. "role": "customer",
  165. "last_order_id": 168869,
  166. "last_order_date": "2018-02-17T10:14:30Z",
  167. "orders_count": 21,
  168. "total_spent": "1866.62",
  169. "avatar_url": "https://secure.gravatar.com/avatar/6a38a3eea8251c643938bcf00c4f3371?s=96&d=mm&r=g",
  170. "billing_address": {
  171. "first_name": "test",
  172. "last_name": "user",
  173. "company": "",
  174. "address_1": "2 Palala Cl",
  175. "address_2": "Valley",
  176. "city": "Sandton",
  177. "state": "GP",
  178. "postcode": "2057",
  179. "country": "ZA",
  180. "email": "test@gmail.com",
  181. "phone": "1234567890"
  182. },
  183. "shipping_address": {
  184. "first_name": "Allana",
  185. "last_name": "Finley",
  186. "company": "",
  187. "address_1": "2 Palala Cl",
  188. "address_2": "Valley",
  189. "city": "Sandton",
  190. "state": "GP",
  191. "postcode": "2057",
  192. "country": "ZA"
  193. }
  194. }
  195. }
  196. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement