Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. ## Controlled State ##
  2. {
  3. state: 'CONTROLLED',
  4. metadata: {
  5. items: {
  6. '{{itemId}}': [{
  7. code: '{{questionCode}}',
  8. value: {{questionValue}}
  9. }]
  10. }
  11. }
  12. }
  13.  
  14. ## Details about the params ##
  15. itemId = Return Magic UUID of the returned item
  16. questionCode = The code of the control question that InGram is using. Valid values are IN_PACKAGE, CLEAN, RESELL_READY, RETURN_TAG, SECURITY_TAG, WITH_PACKAGING (more details bellow)
  17. questionValue = Boolean (true or false)
  18.  
  19. ## Please note: ##
  20. - The `items` array needs to contain an entry for each product of the return
  21. - Each items can have multiple questionCode and questionValue
  22.  
  23. ## Details of the control questions:##
  24. - IN_PACKAGE: Item is in the package
  25. - CLEAN: Item doesn't need to be cleaned
  26. - RESELL_READY: Item is in re-sellable condition
  27. - RETURN_TAG: Return tag is still in place
  28. - SECURITY_TAG: Security tag is still in place
  29. - WITH_PACKAGING: Item returned with it’s packaging
  30.  
  31. ## Example ##
  32. {
  33. state: 'CONTROLLED',
  34. metadata: {
  35. items: {
  36. '512135ce-f2d7-4081-b082-f3865105aa47': [{
  37. code: 'SECURITY_TAG',
  38. value: true
  39. },{
  40. code: 'CLEAN',
  41. value: true
  42. }],
  43. '512135ce-f2d7-4081-b082-f3865105aa47: [{
  44. code: 'SECURITY_TAG',
  45. value: false
  46. },{
  47. code: 'CLEAN',
  48. value: true
  49. }]
  50. }
  51. }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement