allocateOrderResponse.json 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  1. {
  2. "data": {
  3. "type": "order",
  4. "id": "00000000-0000-0000-0000-000000000000",
  5. "attributes": {
  6. "createdAt": "2018-04-04T11:22:36.000Z",
  7. "lastModifiedAt": "2018-04-04T11:22:36.000Z",
  8. "orderedAt": "2018-04-04T11:22:24+00:00",
  9. "source": {
  10. "name": "Magento",
  11. "reference": "2000000050"
  12. },
  13. "customer": {
  14. "address": {
  15. "lines": [
  16. "10441 Jefferson Blvd.",
  17. "Suite 200"
  18. ],
  19. "countryCode": "US",
  20. "postalCode": "90232",
  21. "locality": "Culver City",
  22. "administrativeArea": "CA"
  23. },
  24. "contact": {
  25. "organisationName": "Magento, Inc.",
  26. "personFirstName": "Christoph",
  27. "personLastName": "Aßmann",
  28. "email": "christoph.assmann@netresearch.de",
  29. "phoneNumber": "(800)"
  30. }
  31. },
  32. "deliverTo": {
  33. "address": {
  34. "lines": [
  35. "4205 E. Dixon Blvd."
  36. ],
  37. "countryCode": "US",
  38. "postalCode": "28152",
  39. "locality": "Shelby",
  40. "administrativeArea": "NC",
  41. "type": "residential"
  42. },
  43. "contact": {
  44. "personFirstName": "Christoph",
  45. "personLastName": "Aßmann",
  46. "email": "christoph.assmann@netresearch.de",
  47. "phoneNumber": "(800)"
  48. }
  49. },
  50. "items": [
  51. {
  52. "product": {
  53. "sku": "24-WB04",
  54. "name": "Push It Messenger Bag",
  55. "categories": [
  56. "Gear",
  57. "Collections",
  58. "Bags"
  59. ],
  60. "weight": {
  61. "value": 1.2,
  62. "unit": "lb"
  63. },
  64. "monetaryValue": {
  65. "amount": 45,
  66. "currency": "USD"
  67. },
  68. "isFragile": false,
  69. "isVirtual": false,
  70. "isPrePackaged": false
  71. },
  72. "quantity": 1,
  73. "allocations": [
  74. {
  75. "reference": "00000000-5000-0005-0000-000000000000",
  76. "quantity": 1
  77. }
  78. ]
  79. }
  80. ],
  81. "total": {
  82. "amount": 60,
  83. "currency": "USD"
  84. },
  85. "selectedExperience": {
  86. "code": "aof-prebooked-return",
  87. "cost": {
  88. "amount": 15,
  89. "currency": "USD"
  90. },
  91. "description": {
  92. "language": "en",
  93. "text": "Magento Shipping - AOP - Success - Fulfill with Return"
  94. }
  95. },
  96. "originId": "66666655-3333-3333-6666-555555555555",
  97. "packages": [
  98. {
  99. "grossWeight": {
  100. "value": 5,
  101. "unit": "kg"
  102. },
  103. "dimensions": {
  104. "length": 30,
  105. "width": 30,
  106. "unit": "cm",
  107. "height": 30
  108. },
  109. "items": [
  110. {
  111. "product": {
  112. "sku": "24-WB04",
  113. "name": "Push It Messenger Bag",
  114. "categories": [
  115. "Gear",
  116. "Collections",
  117. "Bags"
  118. ],
  119. "weight": {
  120. "value": 1.2,
  121. "unit": "lb"
  122. },
  123. "monetaryValue": {
  124. "amount": 45,
  125. "currency": "USD"
  126. },
  127. "isFragile": false,
  128. "isVirtual": false,
  129. "isPrePackaged": false
  130. },
  131. "quantity": 1,
  132. "allocations": [
  133. {
  134. "reference": "00000000-5000-0005-0000-000000000000",
  135. "quantity": 1
  136. }
  137. ]
  138. }
  139. ],
  140. "id": "1"
  141. }
  142. ],
  143. "modifiedAt": "2018-04-04T11:22:36.000Z"
  144. },
  145. "meta": {
  146. "aliases": {
  147. "magento": "111",
  148. "magentoincrement": "2000000050"
  149. }
  150. }
  151. },
  152. "included": [
  153. {
  154. "type": "shipment",
  155. "id": "00000000-5000-0005-0000-000000000000",
  156. "attributes": {
  157. "fulfill": {
  158. "carrierBooking": {
  159. "shippingTaxInclusiveCharge": {
  160. "amount": 12.34,
  161. "currency": "AUD"
  162. },
  163. "trackingReference": "00000000-6006-0006-0000-000000000000",
  164. "bookingReference": "00000000-6006-0006-0000-000000000000",
  165. "integrationId": "carrier-integration-stub",
  166. "integrationServiceId": "express",
  167. "configurationId": "00000000-0000-0000-0000-000000000000",
  168. "serviceName": "Express"
  169. }
  170. },
  171. "orderId": "00000000-0000-0000-0000-000000000000",
  172. "modifiedAt": "2018-04-04T11:22:26.000Z",
  173. "origin": {
  174. "name": "Metal US Store",
  175. "address": {
  176. "locality": "Los Angeles",
  177. "type": "business",
  178. "lines": [
  179. "3104 Doctors Drive"
  180. ],
  181. "administrativeArea": "CA",
  182. "countryCode": "US",
  183. "postalCode": "90017"
  184. },
  185. "type": "Store",
  186. "contact": {
  187. "organisationName": "Wayne Enterprises",
  188. "phoneNumber": "333-444-5555",
  189. "personLastName": "Foo",
  190. "personFirstName": "Bar",
  191. "taxIdentificationNumber": "987654321",
  192. "email": "bruce.wayne@dc.com",
  193. "nationalIdentificationNumber": "121212121"
  194. }
  195. },
  196. "documentation": [
  197. {
  198. "mimeType": "application/pdf",
  199. "type": "packageLabel",
  200. "size": "A6",
  201. "url": "https://example.com/documents/packageLabels-1234"
  202. }
  203. ],
  204. "destination": {
  205. "address": {
  206. "locality": "Culver City",
  207. "lines": [
  208. "10441 Jefferson Blvd.",
  209. "Suite 200"
  210. ],
  211. "administrativeArea": "CA",
  212. "type": "residential",
  213. "countryCode": "US",
  214. "postalCode": "90232"
  215. },
  216. "contact": {
  217. "organisationName": "Magento, Inc.",
  218. "personLastName": "Aßmann",
  219. "phoneNumber": "(800)",
  220. "personFirstName": "Christoph",
  221. "email": "christoph.assmann@netresearch.de"
  222. }
  223. },
  224. "packages": [
  225. {
  226. "grossWeight": {
  227. "value": 5,
  228. "unit": "kg"
  229. },
  230. "id": "1",
  231. "items": [
  232. {
  233. "product": {
  234. "isPrePackaged": false,
  235. "name": "Push It Messenger Bag",
  236. "weight": {
  237. "value": 1.2,
  238. "unit": "lb"
  239. },
  240. "monetaryValue": {
  241. "amount": 45,
  242. "currency": "USD"
  243. },
  244. "isFragile": false,
  245. "categories": [
  246. "Gear",
  247. "Collections",
  248. "Bags"
  249. ],
  250. "isVirtual": false,
  251. "sku": "24-WB04"
  252. },
  253. "quantity": 1
  254. }
  255. ],
  256. "dimensions": {
  257. "length": 30,
  258. "width": 30,
  259. "unit": "cm",
  260. "height": 30
  261. },
  262. "documentation": []
  263. }
  264. ],
  265. "createdAt": "2018-04-04T11:22:26.000Z",
  266. "originId": "66666655-3333-3333-6666-555555555555",
  267. "pickupAt": "2018-04-04T12:22:26.543Z",
  268. "status": "fulfilled",
  269. "order": {
  270. "reference": "2000000050"
  271. }
  272. }
  273. },
  274. {
  275. "type": "shipment",
  276. "id": "00000000-5003-3005-5003-000000000000",
  277. "attributes": {
  278. "status": "fulfilled",
  279. "createdAt": "2018-04-04T11:22:32.000Z",
  280. "modifiedAt": "2018-04-04T11:22:32.000Z",
  281. "originId": "66666655-3333-3333-6666-555555555555",
  282. "pickupAt": "2018-04-04T12:22:26.543Z",
  283. "orderId": "00000000-0000-0000-0000-000000000000",
  284. "origin": {
  285. "address": {
  286. "locality": "Culver City",
  287. "type": "residential",
  288. "lines": [
  289. "10441 Jefferson Blvd.",
  290. "Suite 200"
  291. ],
  292. "administrativeArea": "CA",
  293. "countryCode": "US",
  294. "postalCode": "90232"
  295. },
  296. "type": "Store",
  297. "contact": {
  298. "organisationName": "Magento, Inc.",
  299. "phoneNumber": "(800)",
  300. "personLastName": "Aßmann",
  301. "personFirstName": "Christoph",
  302. "taxIdentificationNumber": "123456789",
  303. "email": "christoph.assmann@netresearch.de",
  304. "nationalIdentificationNumber": "212121212"
  305. }
  306. },
  307. "destination": {
  308. "name": "Metal US Store",
  309. "address": {
  310. "locality": "Los Angeles",
  311. "type": "business",
  312. "lines": [
  313. "3104 Doctors Drive"
  314. ],
  315. "administrativeArea": "CA",
  316. "countryCode": "US",
  317. "postalCode": "90017"
  318. },
  319. "type": "Store",
  320. "contact": {
  321. "organisationName": "Wayne Enterprises",
  322. "phoneNumber": "333-444-5555",
  323. "personLastName": "Foo",
  324. "personFirstName": "Bar",
  325. "taxIdentificationNumber": "987654321",
  326. "email": "bruce.wayne@dc.com",
  327. "nationalIdentificationNumber": "121212121"
  328. }
  329. },
  330. "packages": [
  331. {
  332. "grossWeight": {
  333. "value": 5,
  334. "unit": "kg"
  335. },
  336. "id": "1",
  337. "items": [
  338. {
  339. "product": {
  340. "isPrePackaged": false,
  341. "name": "Push It Messenger Bag",
  342. "weight": {
  343. "value": 1.2,
  344. "unit": "lb"
  345. },
  346. "monetaryValue": {
  347. "amount": 45,
  348. "currency": "USD"
  349. },
  350. "isFragile": false,
  351. "categories": [
  352. "Gear",
  353. "Collections",
  354. "Bags"
  355. ],
  356. "isVirtual": false,
  357. "sku": "24-WB04"
  358. },
  359. "quantity": 1
  360. }
  361. ],
  362. "dimensions": {
  363. "length": 30,
  364. "width": 30,
  365. "unit": "cm",
  366. "height": 30
  367. },
  368. "documentation": []
  369. }
  370. ],
  371. "order": {
  372. "reference": "2000000050"
  373. },
  374. "capabilities": {
  375. "return": {
  376. "required": true
  377. }
  378. },
  379. "selectedService": {
  380. "integrationServiceId": "standard",
  381. "configurationId": "00000000-0000-0000-0000-000000000000"
  382. },
  383. "documentation": [
  384. {
  385. "type": "packageLabel",
  386. "size": "A6",
  387. "mimeType": "application/pdf",
  388. "url": "https://example.com/documents/packageLabels-5678"
  389. }
  390. ],
  391. "fulfill": {
  392. "carrierBooking": {
  393. "integrationId": "carrier-integration-stub",
  394. "integrationServiceId": "express",
  395. "configurationId": "00000000-0000-0000-0000-000000000000",
  396. "serviceName": "Express",
  397. "shippingTaxInclusiveCharge": {
  398. "amount": 12.34,
  399. "currency": "AUD"
  400. },
  401. "bookingReference": "00000000-6006-0006-6006-000000000000",
  402. "trackingReference": "00000000-6006-0006-6006-000000000000"
  403. }
  404. }
  405. }
  406. }
  407. ],
  408. "meta": {
  409. "aliases": {
  410. "magento": "111",
  411. "magentoincrement": "2000000050"
  412. }
  413. }
  414. }