Last active
July 24, 2017 15:31
-
-
Save raffpaquin/71c83927131fc400207ed86123f345df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Controlled State ## | |
{ | |
state: 'CONTROLLED', | |
metadata: { | |
items: { | |
'{{itemId}}': [{ | |
code: '{{questionCode}}', | |
value: {{questionValue}} | |
}] | |
} | |
} | |
} | |
## Received State ## | |
{ | |
state: 'RECEIVED', | |
metadata: {} | |
} | |
## URL TO UPDATE A RMA ## | |
https://api.alveo.io/v2/returns/{{returnId}}/states | |
## 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 | |
}] | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment