Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Controlled State ##
- {
- state: 'CONTROLLED',
- metadata: {
- items: {
- '{{itemId}}': [{
- code: '{{questionCode}}',
- value: {{questionValue}}
- }]
- }
- }
- }
- ## Details about the params ##
- itemId = Return Magic UUID of the returned item
- 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)
- questionValue = Boolean (true or false)
- ## Please note: ##
- - The `items` array needs to contain an entry for each product of the return
- - Each items can have multiple questionCode and questionValue
- ## Details of the control questions:##
- - IN_PACKAGE: Item is in the package
- - CLEAN: Item doesn't need to be cleaned
- - RESELL_READY: Item is in re-sellable condition
- - RETURN_TAG: Return tag is still in place
- - SECURITY_TAG: Security tag is still in place
- - WITH_PACKAGING: Item returned with it’s packaging
- ## Example ##
- {
- state: 'CONTROLLED',
- metadata: {
- items: {
- '512135ce-f2d7-4081-b082-f3865105aa47': [{
- code: 'SECURITY_TAG',
- value: true
- },{
- code: 'CLEAN',
- value: true
- }],
- '512135ce-f2d7-4081-b082-f3865105aa47: [{
- code: 'SECURITY_TAG',
- value: false
- },{
- code: 'CLEAN',
- value: true
- }]
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement