Guest User

Untitled

a guest
Oct 11th, 2018
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.96 KB | None | 0 0
  1. Request:
  2.  
  3. [
  4. {
  5. "orderNo": "58",
  6. "storeName": "Joomla",
  7. "storeId": 288,
  8. "itemsCount": 1,
  9. "name": "iPhone Pro",
  10. "date": "2012/05/10",
  11. "value": 49900,
  12. "currencySymbol": "US$",
  13. "paid": true,
  14. "locked": -1,
  15. "canPartiallyShip": true,
  16. "canChangeQty": false,
  17. "buyer": {
  18. "buyerId": "0445b37f4301d78c39f15469eaf5e7bbb70dfa22",
  19. "firstName": "ShippingEasy",
  20. "lastName": "Test",
  21. "address": {
  22. "line1": "456 Kent Street",
  23. "line2": "",
  24. "postalCode": "2000",
  25. "city": "Sydney",
  26. "country": "AU",
  27. "state": "NS"
  28. },
  29. "telephone": "045554555",
  30. "email": "shipping.easy@saturized.com"
  31. },
  32. "items": [
  33. {
  34. "id": "66",
  35. "name": "iPhone Pro",
  36. "quantity": "1",
  37. "currency": "USD",
  38. "currencySymbol": "US$",
  39. "priceValue": 49900,
  40. "totalPriceValue": 54800,
  41. "date": "2012/05/10",
  42. "paid": true,
  43. "orderNo": "58",
  44. "additionalInfo": null,
  45. "guid": "hpxouefto4oc8in61bu391iw6ggg7rrq",
  46. "package": 1,
  47. "packageDetails": {
  48. "width": 5,
  49. "height": 5,
  50. "length": 5,
  51. "weight": 1,
  52. "isMetric": true
  53. },
  54. "selected": false
  55. }
  56. ],
  57. "selected": false,
  58. "indeterminate": false,
  59. "highlighted": true,
  60. "DestinationAddress": {
  61. "CountryCode": "AU",
  62. "City": "Sydney",
  63. "Division": "",
  64. "PostalCode": "2000",
  65. "Line1": "456 Kent Street",
  66. "Line2": "",
  67. "FirstName": "ShippingEasy",
  68. "LastName": "Test",
  69. "TelephoneNumber": "554555",
  70. "TelephoneAreaCode": "045",
  71. "CompanyName": "",
  72. "EmailAddress": "shipping.easy@saturized.com",
  73. "IsResidential": 1
  74. },
  75. "Packages": [
  76. {
  77. "ValueAmount": 49900,
  78. "ValueCurrency": "US$",
  79. "Items": [
  80. {
  81. "ValueAmount": 49900,
  82. "ValueCurrency": "US$",
  83. "Quantity": "1",
  84. "StoreId": 288,
  85. "ItemId": "66",
  86. "OrderId": "58"
  87. }
  88. ]
  89. }
  90. ],
  91. "CollectionAddress": {
  92. "CountryCode": "AU",
  93. "City": "Cremorne",
  94. "Division": "NSW",
  95. "PostalCode": "2090",
  96. "Line1": "Gerard St 81",
  97. "Line2": "",
  98. "FirstName": "Nemanja",
  99. "LastName": "Cimbaljevic",
  100. "TelephoneNumber": "1234567",
  101. "TelephoneAreaCode": "02",
  102. "CompanyName": null,
  103. "EmailAddress": "zion.trooper@gmail.com",
  104. "IsResidential": true
  105. },
  106. "Origin": "ecommerce",
  107. "Id": 253,
  108. "Errors": {
  109. "CollectionAddress": [
  110. {
  111. "level": "error",
  112. "field": "CountryDivision",
  113. "text": "Country division is required for country 'AU'"
  114. }
  115. ],
  116. "DestinationAddress": [
  117. {
  118. "level": "error",
  119. "field": "CountryDivision",
  120. "text": "Country division is required for country 'AU'"
  121. },
  122. {
  123. "level": "error",
  124. "field": "TelephoneAreaCode",
  125. "text": "Telephone area code '045' is invalid"
  126. }
  127. ]
  128. },
  129. "packages": 1
  130. },
  131. {
  132. "orderNo": "50",
  133. "storeName": "Joomla",
  134. "storeId": 288,
  135. "itemsCount": 1,
  136. "name": "iPhone Pro",
  137. "date": "2012/05/10",
  138. "value": 49900,
  139. "currencySymbol": "US$",
  140. "paid": true,
  141. "locked": -1,
  142. "canPartiallyShip": true,
  143. "canChangeQty": false,
  144. "buyer": {
  145. "buyerId": "0445b37f4301d78c39f15469eaf5e7bbb70dfa22",
  146. "firstName": "ShippingEasy",
  147. "lastName": "Test",
  148. "address": {
  149. "line1": "456 Kent Street",
  150. "line2": "",
  151. "postalCode": "2000",
  152. "city": "Sydney",
  153. "country": "AU",
  154. "state": "NS"
  155. },
  156. "telephone": "045554555",
  157. "email": "shipping.easy@saturized.com"
  158. },
  159. "items": [
  160. {
  161. "id": "58",
  162. "name": "iPhone Pro",
  163. "quantity": "1",
  164. "currency": "USD",
  165. "currencySymbol": "US$",
  166. "priceValue": 49900,
  167. "totalPriceValue": 54800,
  168. "date": "2012/05/10",
  169. "paid": true,
  170. "orderNo": "50",
  171. "additionalInfo": null,
  172. "guid": "nytengbxm1wia1gsfs1jbtyfapk5s78e",
  173. "package": 1,
  174. "packageDetails": {
  175. "width": 5,
  176. "height": 5,
  177. "length": 5,
  178. "weight": 1,
  179. "isMetric": true
  180. },
  181. "selected": false
  182. }
  183. ],
  184. "selected": false,
  185. "indeterminate": false,
  186. "highlighted": true,
  187. "DestinationAddress": {
  188. "CountryCode": "AU",
  189. "City": "Sydney",
  190. "Division": "",
  191. "PostalCode": "2000",
  192. "Line1": "456 Kent Street",
  193. "Line2": "",
  194. "FirstName": "ShippingEasy",
  195. "LastName": "Test",
  196. "TelephoneNumber": "554555",
  197. "TelephoneAreaCode": "045",
  198. "CompanyName": "",
  199. "EmailAddress": "shipping.easy@saturized.com",
  200. "IsResidential": 1
  201. },
  202. "Packages": [
  203. {
  204. "ValueAmount": 49900,
  205. "ValueCurrency": "US$",
  206. "Items": [
  207. {
  208. "ValueAmount": 49900,
  209. "ValueCurrency": "US$",
  210. "Quantity": "1",
  211. "StoreId": 288,
  212. "ItemId": "58",
  213. "OrderId": "50"
  214. }
  215. ]
  216. }
  217. ],
  218. "CollectionAddress": {
  219. "CountryCode": "AU",
  220. "City": "Cremorne",
  221. "Division": "NSW",
  222. "PostalCode": "2090",
  223. "Line1": "Gerard St 81",
  224. "Line2": "",
  225. "FirstName": "Nemanja",
  226. "LastName": "Cimbaljevic",
  227. "TelephoneNumber": "1234567",
  228. "TelephoneAreaCode": "02",
  229. "CompanyName": null,
  230. "EmailAddress": "zion.trooper@gmail.com",
  231. "IsResidential": true
  232. },
  233. "Origin": "ecommerce",
  234. "Id": 254,
  235. "Errors": {
  236. "CollectionAddress": [
  237. {
  238. "level": "error",
  239. "field": "CountryDivision",
  240. "text": "Country division is required for country 'AU'"
  241. }
  242. ],
  243. "DestinationAddress": [
  244. {
  245. "level": "error",
  246. "field": "CountryDivision",
  247. "text": "Country division is required for country 'AU'"
  248. },
  249. {
  250. "level": "error",
  251. "field": "TelephoneAreaCode",
  252. "text": "Telephone area code '045' is invalid"
  253. }
  254. ]
  255. },
  256. "packages": 1
  257. },
  258. {
  259. "orderNo": "42",
  260. "storeName": "Joomla",
  261. "storeId": 288,
  262. "itemsCount": 1,
  263. "name": "Apple iPod Nano 2 Gb",
  264. "date": "2012/05/10",
  265. "value": 799000,
  266. "currencySymbol": "US$",
  267. "paid": true,
  268. "locked": -1,
  269. "canPartiallyShip": true,
  270. "canChangeQty": false,
  271. "buyer": {
  272. "buyerId": "0445b37f4301d78c39f15469eaf5e7bbb70dfa22",
  273. "firstName": "ShippingEasy",
  274. "lastName": "Test",
  275. "address": {
  276. "line1": "456 Kent Street",
  277. "line2": "",
  278. "postalCode": "2000",
  279. "city": "Sydney",
  280. "country": "AU",
  281. "state": "NS"
  282. },
  283. "telephone": "045554555",
  284. "email": "shipping.easy@saturized.com"
  285. },
  286. "items": [
  287. {
  288. "id": "50",
  289. "name": "Apple iPod Nano 2 Gb",
  290. "quantity": "1",
  291. "currency": "USD",
  292. "currencySymbol": "US$",
  293. "priceValue": 799000,
  294. "totalPriceValue": 876900,
  295. "date": "2012/05/10",
  296. "paid": true,
  297. "orderNo": "42",
  298. "additionalInfo": null,
  299. "guid": "xwgfquu36de8yhfpb6utix6ua7c1jkei",
  300. "package": 1,
  301. "packageDetails": {
  302. "width": 5,
  303. "height": 5,
  304. "length": 5,
  305. "weight": 1,
  306. "isMetric": true
  307. },
  308. "selected": false
  309. }
  310. ],
  311. "selected": false,
  312. "indeterminate": false,
  313. "highlighted": true,
  314. "DestinationAddress": {
  315. "CountryCode": "AU",
  316. "City": "Sydney",
  317. "Division": "",
  318. "PostalCode": "2000",
  319. "Line1": "456 Kent Street",
  320. "Line2": "",
  321. "FirstName": "ShippingEasy",
  322. "LastName": "Test",
  323. "TelephoneNumber": "554555",
  324. "TelephoneAreaCode": "045",
  325. "CompanyName": "",
  326. "EmailAddress": "shipping.easy@saturized.com",
  327. "IsResidential": 1
  328. },
  329. "Packages": [
  330. {
  331. "ValueAmount": 799000,
  332. "ValueCurrency": "US$",
  333. "Items": [
  334. {
  335. "ValueAmount": 799000,
  336. "ValueCurrency": "US$",
  337. "Quantity": "1",
  338. "StoreId": 288,
  339. "ItemId": "50",
  340. "OrderId": "42"
  341. }
  342. ]
  343. }
  344. ],
  345. "CollectionAddress": {
  346. "CountryCode": "AU",
  347. "City": "Cremorne",
  348. "Division": "NSW",
  349. "PostalCode": "2090",
  350. "Line1": "Gerard St 81",
  351. "Line2": "",
  352. "FirstName": "Nemanja",
  353. "LastName": "Cimbaljevic",
  354. "TelephoneNumber": "1234567",
  355. "TelephoneAreaCode": "02",
  356. "CompanyName": null,
  357. "EmailAddress": "zion.trooper@gmail.com",
  358. "IsResidential": true
  359. },
  360. "Origin": "ecommerce",
  361. "Id": 255,
  362. "Errors": {
  363. "CollectionAddress": [
  364. {
  365. "level": "error",
  366. "field": "CountryDivision",
  367. "text": "Country division is required for country 'AU'"
  368. }
  369. ],
  370. "DestinationAddress": [
  371. {
  372. "level": "error",
  373. "field": "CountryDivision",
  374. "text": "Country division is required for country 'AU'"
  375. },
  376. {
  377. "level": "error",
  378. "field": "TelephoneAreaCode",
  379. "text": "Telephone area code '045' is invalid"
  380. }
  381. ]
  382. },
  383. "packages": 1
  384. }
  385. ]
  386.  
  387.  
  388.  
  389. Response:
  390.  
  391. {
  392. "text": "Shipment validation failed",
  393. "messages": [
  394. {
  395. "level": "error",
  396. "field": "Currency",
  397. "text": "Shipment does not have Currency provided"
  398. },
  399. {
  400. "level": "error",
  401. "field": "PickupAt",
  402. "text": "Shipment does not have PickupAt provided"
  403. },
  404. {
  405. "level": "error",
  406. "field": "PickupCloseAt",
  407. "text": "Shipment does not have PickupCloseAt provided"
  408. },
  409. {
  410. "level": "error",
  411. "field": "RateId",
  412. "text": "Shipment does not have RateId provided"
  413. },
  414. {
  415. "level": "error",
  416. "field": "Courier",
  417. "text": "Shipment does not have Courier provided"
  418. },
  419. {
  420. "level": "error",
  421. "field": "ServiceType",
  422. "text": "Shipment does not have ServiceType provided"
  423. },
  424. {
  425. "level": "error",
  426. "field": "PickupDate",
  427. "text": "Shipment does not have PickupDate provided"
  428. },
  429. {
  430. "level": "error",
  431. "field": "DropOff",
  432. "text": "Shipment does not have DropOff provided"
  433. },
  434. {
  435. "level": "error",
  436. "field": "Est",
  437. "text": "Shipment does not have Est provided"
  438. },
  439. {
  440. "level": "error",
  441. "field": "HumanEst",
  442. "text": "Shipment does not have HumanEst provided"
  443. },
  444. {
  445. "level": "error",
  446. "field": "Currency",
  447. "text": "Shipment does not have Currency provided"
  448. },
  449. {
  450. "level": "error",
  451. "field": "PickupAt",
  452. "text": "Shipment does not have PickupAt provided"
  453. },
  454. {
  455. "level": "error",
  456. "field": "PickupCloseAt",
  457. "text": "Shipment does not have PickupCloseAt provided"
  458. },
  459. {
  460. "level": "error",
  461. "field": "RateId",
  462. "text": "Shipment does not have RateId provided"
  463. },
  464. {
  465. "level": "error",
  466. "field": "Courier",
  467. "text": "Shipment does not have Courier provided"
  468. },
  469. {
  470. "level": "error",
  471. "field": "ServiceType",
  472. "text": "Shipment does not have ServiceType provided"
  473. },
  474. {
  475. "level": "error",
  476. "field": "PickupDate",
  477. "text": "Shipment does not have PickupDate provided"
  478. },
  479. {
  480. "level": "error",
  481. "field": "DropOff",
  482. "text": "Shipment does not have DropOff provided"
  483. },
  484. {
  485. "level": "error",
  486. "field": "Est",
  487. "text": "Shipment does not have Est provided"
  488. },
  489. {
  490. "level": "error",
  491. "field": "HumanEst",
  492. "text": "Shipment does not have HumanEst provided"
  493. },
  494. {
  495. "level": "error",
  496. "field": "Currency",
  497. "text": "Shipment does not have Currency provided"
  498. },
  499. {
  500. "level": "error",
  501. "field": "PickupAt",
  502. "text": "Shipment does not have PickupAt provided"
  503. },
  504. {
  505. "level": "error",
  506. "field": "PickupCloseAt",
  507. "text": "Shipment does not have PickupCloseAt provided"
  508. },
  509. {
  510. "level": "error",
  511. "field": "RateId",
  512. "text": "Shipment does not have RateId provided"
  513. },
  514. {
  515. "level": "error",
  516. "field": "Courier",
  517. "text": "Shipment does not have Courier provided"
  518. },
  519. {
  520. "level": "error",
  521. "field": "ServiceType",
  522. "text": "Shipment does not have ServiceType provided"
  523. },
  524. {
  525. "level": "error",
  526. "field": "PickupDate",
  527. "text": "Shipment does not have PickupDate provided"
  528. },
  529. {
  530. "level": "error",
  531. "field": "DropOff",
  532. "text": "Shipment does not have DropOff provided"
  533. },
  534. {
  535. "level": "error",
  536. "field": "Est",
  537. "text": "Shipment does not have Est provided"
  538. },
  539. {
  540. "level": "error",
  541. "field": "HumanEst",
  542. "text": "Shipment does not have HumanEst provided"
  543. }
  544. ]
  545. }
Add Comment
Please, Sign In to add comment