Last active
August 29, 2015 14:06
-
-
Save gusdecool/cdc4a27970833de39757 to your computer and use it in GitHub Desktop.
TIALS API getProduct
This file contains hidden or 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
{ | |
"product_code": "CR13-26A", | |
"product": "SERENDIPITY SHORTS", | |
"stock": [ | |
{ | |
"colour": "BLACK", | |
"size": "XS", | |
"outlet": "THIS IS A LOVE SONG OFFICE", | |
"qty": 2 | |
}, | |
{ | |
"colour": "BLACK", | |
"size": "S", | |
"outlet": "THIS IS A LOVE SONG OFFICE", | |
"qty": 0 | |
}, | |
{ | |
"colour": "BLACK", | |
"size": "M", | |
"outlet": "THIS IS A LOVE SONG OFFICE", | |
"qty": 1 | |
} | |
] | |
} |
This file contains hidden or 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
{ | |
"ProductList": [ // should be ommitted | |
{ | |
"product": [ // should be ommitted | |
{ | |
"id": 2985, // should be ommitted | |
"product_code": "CR13-26A ", // remove empty space | |
"product": "SERENDIPITY SHORTS ", // remove empty space | |
"colour": { // no need, should be ommitted | |
"product2": [ | |
{ | |
"id": 2986, | |
"colour": "BLACK " | |
} | |
] | |
}, | |
"size": { // no need, should be ommitted | |
"size2": [ | |
{ | |
"id": 130, | |
"size": "XS " | |
}, | |
{ | |
"id": 131, | |
"size": "S " | |
}, | |
{ | |
"id": 132, | |
"size": "M " | |
}, | |
{ | |
"id": 133, | |
"size": "L " | |
}, | |
{ | |
"id": 134, | |
"size": "XL " | |
}, | |
{ | |
"id": 135, | |
"size": "XXL " | |
}, | |
{ | |
"id": 136, | |
"size": "XXS " | |
} | |
] | |
}, | |
"stock": { | |
"qty": [ // no need to put array name qty, it is already explicitly mean stock | |
{ | |
"colour_id": 2986, // should be colour name, case-insensitive | |
"size_id": 130, // should be size name, case-insensitive | |
"outlet_id": 139, // should be omitted | |
"outlet": "THIS IS A LOVE SONG OFFICE ", // remove white space | |
"qty": 2 | |
}, | |
{ | |
"colour_id": 2986, | |
"size_id": 131, | |
"outlet_id": 139, | |
"outlet": "THIS IS A LOVE SONG OFFICE ", | |
"qty": 0 | |
}, | |
{ | |
"colour_id": 2986, | |
"size_id": 132, | |
"outlet_id": 139, | |
"outlet": "THIS IS A LOVE SONG OFFICE ", | |
"qty": 1 | |
}, | |
{ | |
"colour_id": 2986, | |
"size_id": 133, | |
"outlet_id": 139, | |
"outlet": "THIS IS A LOVE SONG OFFICE ", | |
"qty": 0 | |
}, | |
{ | |
"colour_id": 2986, | |
"size_id": 130, | |
"outlet_id": 140, | |
"outlet": "THIS IS A LOVE SONG SHOP 01 ", | |
"qty": 0 | |
}, | |
{ | |
"colour_id": 2986, | |
"size_id": 131, | |
"outlet_id": 140, | |
"outlet": "THIS IS A LOVE SONG SHOP 01 ", | |
"qty": 1 | |
}, | |
{ | |
"colour_id": 2986, | |
"size_id": 132, | |
"outlet_id": 140, | |
"outlet": "THIS IS A LOVE SONG SHOP 01 ", | |
"qty": 1 | |
}, | |
{ | |
"colour_id": 2986, | |
"size_id": 133, | |
"outlet_id": 140, | |
"outlet": "THIS IS A LOVE SONG SHOP 01 ", | |
"qty": 1 | |
} | |
] | |
} | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment