{
  "info": {
    "_postman_id": "fede97a0-5ac9-4f24-aee7-ef098f33428c",
    "name": "Seller Center API F",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "17142756"
  },
  "item": [
    {
      "name": "PRODUCT ENDPOINTS",
      "item": [
        {
          "name": "GetBrands",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{SC_URL}}?Action=GetBrands&Format={{FORMAT}}&Timestamp={{Timestamp}}&UserID={{SC_USERNAME}}&Version={{SC_VERSION}}&Signature={{Signature}}",
              "host": [
                "{{SC_URL}}"
              ],
              "query": [
                {
                  "key": "Action",
                  "value": "GetBrands"
                },
                {
                  "key": "Format",
                  "value": "{{FORMAT}}",
                  "description": "JSON,XML"
                },
                {
                  "key": "Timestamp",
                  "value": "{{Timestamp}}",
                  "description": "the Send action will auto generate the current Timestamp "
                },
                {
                  "key": "UserID",
                  "value": "{{SC_USERNAME}}"
                },
                {
                  "key": "Version",
                  "value": "{{SC_VERSION}}"
                },
                {
                  "key": "Signature",
                  "value": "{{Signature}}",
                  "description": "the Send action will auto generate the signature "
                }
              ]
            },
            "description": "Brands\n\nGet all product brands.\n\nhttps://developers.linio.com/reference/getbrands"
          },
          "response": []
        },
        {
          "name": "GetCategoryTree",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{SC_URL}}?Action=GetCategoryTree&Format={{FORMAT}}&Timestamp={{Timestamp}}&UserID={{SC_USERNAME}}&Version={{SC_VERSION}}&Signature={{Signature}}",
              "host": [
                "{{SC_URL}}"
              ],
              "query": [
                {
                  "key": "Action",
                  "value": "GetCategoryTree"
                },
                {
                  "key": "Format",
                  "value": "{{FORMAT}}",
                  "description": "JSON,XML"
                },
                {
                  "key": "Timestamp",
                  "value": "{{Timestamp}}",
                  "description": "the Send action will auto generate the current Timestamp "
                },
                {
                  "key": "UserID",
                  "value": "{{SC_USERNAME}}"
                },
                {
                  "key": "Version",
                  "value": "{{SC_VERSION}}"
                },
                {
                  "key": "Signature",
                  "value": "{{Signature}}",
                  "description": "the Send action will auto generate the signature "
                }
              ]
            },
            "description": "CategoryTree\n\nGet the list of all product categories.\n\nhttps://developers.linio.com/reference/getcategorytree"
          },
          "response": []
        },
        {
          "name": "GetCategoryAttributes",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            },
            {
              "listen": "test",
              "script": {
                "exec": [
                  "if(pm.collectionVariables.get(\"FORMAT\") === 'JSON') {",
                  "    const response = pm.response.json();",
                  "    const attributes = response?.SuccessResponse?.Body?.Attribute;",
                  "    if(!!attributes) {",
                  "        const attributesVariants = attributes",
                  "            .filter(attr => attr.IsGlobalAttribute === '0' && attr.GroupName === 'Variation')",
                  "            .map(attr => attr.FeedName)",
                  "        console.log(\"attributesVariants\", attributesVariants)",
                  "    }",
                  "}",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{SC_URL}}?Action=GetCategoryAttributes&Format={{FORMAT}}&Timestamp={{Timestamp}}&UserID={{SC_USERNAME}}&Version={{SC_VERSION}}&Signature={{Signature}}&PrimaryCategory=",
              "host": [
                "{{SC_URL}}"
              ],
              "query": [
                {
                  "key": "Action",
                  "value": "GetCategoryAttributes"
                },
                {
                  "key": "Format",
                  "value": "{{FORMAT}}",
                  "description": "JSON,XML"
                },
                {
                  "key": "Timestamp",
                  "value": "{{Timestamp}}",
                  "description": "the Send action will auto generate the current Timestamp "
                },
                {
                  "key": "UserID",
                  "value": "{{SC_USERNAME}}"
                },
                {
                  "key": "Version",
                  "value": "{{SC_VERSION}}"
                },
                {
                  "key": "Signature",
                  "value": "{{Signature}}",
                  "description": "the Send action will auto generate the signature "
                },
                {
                  "key": "PrimaryCategory",
                  "value": ""
                }
              ]
            },
            "description": "CategoryAttributes\n\nReturns a list of attributes with options for a given category. It will also display attributes for TaxClass and ShipmentType, with their possible values listed as options.\n\nhttps://developers.linio.com/reference/getcategoryattributes"
          },
          "response": []
        },
        {
          "name": "GetContentScore",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{SC_URL}}?Action=GetContentScore&Format={{FORMAT}}&Timestamp={{Timestamp}}&UserID={{SC_USERNAME}}&Version={{SC_VERSION}}&Signature={{Signature}}&CategoryId=171&GetRulesOnly=1&Operator=fape",
              "host": [
                "{{SC_URL}}"
              ],
              "query": [
                {
                  "key": "Action",
                  "value": "GetContentScore"
                },
                {
                  "key": "Format",
                  "value": "{{FORMAT}}",
                  "description": "JSON,XML"
                },
                {
                  "key": "Timestamp",
                  "value": "{{Timestamp}}",
                  "description": "the Send action will auto generate the current Timestamp "
                },
                {
                  "key": "UserID",
                  "value": "{{SC_USERNAME}}"
                },
                {
                  "key": "Version",
                  "value": "{{SC_VERSION}}"
                },
                {
                  "key": "Signature",
                  "value": "{{Signature}}",
                  "description": "the Send action will auto generate the signature "
                },
                {
                  "key": "CategoryId",
                  "value": "171"
                },
                {
                  "key": "GetRulesOnly",
                  "value": "1"
                },
                {
                  "key": "Operator",
                  "value": "fape"
                }
              ]
            },
            "description": "MappedAttributeOptions\n\nGet the attribute options mapped to other attribute options\n\nhttps://developers.linio.com/reference/getmappedattributeoptions"
          },
          "response": []
        },
        {
          "name": "ProductCreate",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<Request>\n    <Product>\n        <SellerSku>DAS-FECHA-API-01</SellerSku>\n        <ParentSku/>\n        <Name>PRODUCTO DAS TEST FECHA API</Name>\n        <PrimaryCategory>3647</PrimaryCategory>\n        <Description>PRODUCTO DAS TEST FECHA API</Description>\n        <Brand>GENERICO</Brand>\n        <Variation>...</Variation>\n        <ProductData>\n            <ConditionType>Nuevo</ConditionType>\n\t\t\t<PackageHeight>10</PackageHeight>\n\t\t\t<PackageWidth>10</PackageWidth>\n\t\t\t<PackageLength>10</PackageLength>\n\t\t\t<PackageWeight>1</PackageWeight>\n        </ProductData>\n        <BusinessUnits>\n            <BusinessUnit>\n                <OperatorCode>facl</OperatorCode>\n                <Price>1000000.00</Price>\n                <SpecialPrice/>\n                <SpecialFromDate/>\n                <SpecialToDate/>\n                <Stock>10</Stock>\n                <Status>active</Status>\n            </BusinessUnit>\n        </BusinessUnits>\n    </Product>\n</Request>",
              "options": {
                "raw": {
                  "language": "xml"
                }
              }
            },
            "url": {
              "raw": "{{SC_URL}}?Action=ProductCreate&Format={{FORMAT}}&Timestamp={{Timestamp}}&UserID={{SC_USERNAME}}&Version={{SC_VERSION}}&Signature={{Signature}}",
              "host": [
                "{{SC_URL}}"
              ],
              "query": [
                {
                  "key": "Action",
                  "value": "ProductCreate"
                },
                {
                  "key": "Format",
                  "value": "{{FORMAT}}"
                },
                {
                  "key": "Timestamp",
                  "value": "{{Timestamp}}"
                },
                {
                  "key": "UserID",
                  "value": "{{SC_USERNAME}}"
                },
                {
                  "key": "Version",
                  "value": "{{SC_VERSION}}"
                },
                {
                  "key": "Signature",
                  "value": "{{Signature}}"
                }
              ]
            },
            "description": "ProductCreate\n\nCreate one or multiple new products.\n\nhttps://developers.linio.com/reference/productcreate"
          },
          "response": []
        },
        {
          "name": "Image",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<Request>\n  <ProductImage>\n    <SellerSku>FALA-64</SellerSku>\n    <Images>\n      <Image></Image>\n    </Images>\n  </ProductImage>\n  <ProductImage>\n    <SellerSku>FALA-63</SellerSku>\n    <Images>\n      <Image></Image>\n    </Images>\n  </ProductImage>\n</Request>",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{SC_URL}}?Action=Image&Format={{FORMAT}}&Timestamp={{Timestamp}}&UserID={{SC_USERNAME}}&Version={{SC_VERSION}}&Signature={{Signature}}",
              "host": [
                "{{SC_URL}}"
              ],
              "query": [
                {
                  "key": "Action",
                  "value": "Image"
                },
                {
                  "key": "Format",
                  "value": "{{FORMAT}}",
                  "description": "JSON,XML"
                },
                {
                  "key": "Timestamp",
                  "value": "{{Timestamp}}",
                  "description": "the Send action will auto generate the current Timestamp "
                },
                {
                  "key": "UserID",
                  "value": "{{SC_USERNAME}}"
                },
                {
                  "key": "Version",
                  "value": "{{SC_VERSION}}"
                },
                {
                  "key": "Signature",
                  "value": "{{Signature}}",
                  "description": "the Send action will auto generate the signature "
                }
              ]
            },
            "description": "Image\n\nSet the images for one or multiple products, by associating one or more image URLs with it.\n\nIt is the API caller's responsibility to host the images.\n\nThe first image passed in becomes the product's default image.\n\nUpon calling this endpoint, all previously associated images are disassociated.\n\nThere is a hard limit of at most 8 images per product.\n\nhttps://developers.linio.com/reference/image"
          },
          "response": []
        },
        {
          "name": "ProductUpdate",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<Request>\n    <Product>\n        <SellerSku>4105382173aaee4</SellerSku>\n        <Price>12</Price>\n    </Product>\n    <Product>\n        <SellerSku>4928a374c28ff1</SellerSku>\n        <Quantity>4</Quantity>\n    </Product>\n</Request>",
              "options": {
                "raw": {
                  "language": "xml"
                }
              }
            },
            "url": {
              "raw": "{{SC_URL}}?Action=ProductUpdate&Format={{FORMAT}}&Timestamp={{Timestamp}}&UserID={{SC_USERNAME}}&Version={{SC_VERSION}}&Signature={{Signature}}",
              "host": [
                "{{SC_URL}}"
              ],
              "query": [
                {
                  "key": "Action",
                  "value": "ProductUpdate"
                },
                {
                  "key": "Format",
                  "value": "{{FORMAT}}",
                  "description": "JSON,XML"
                },
                {
                  "key": "Timestamp",
                  "value": "{{Timestamp}}",
                  "description": "the Send action will auto generate the current Timestamp "
                },
                {
                  "key": "UserID",
                  "value": "{{SC_USERNAME}}"
                },
                {
                  "key": "Version",
                  "value": "{{SC_VERSION}}"
                },
                {
                  "key": "Signature",
                  "value": "{{Signature}}",
                  "description": "the Send action will auto generate the signature "
                }
              ]
            },
            "description": "ProductUpdate\n\nUpdate the attributes of one or more existing products.\n\nhttps://developers.linio.com/reference/productupdate"
          },
          "response": []
        },
        {
          "name": "GetProducts",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{SC_URL}}?Action=GetProducts&Format={{FORMAT}}&Timestamp={{Timestamp}}&UserID={{SC_USERNAME}}&Version={{SC_VERSION}}&Signature={{Signature}}",
              "host": [
                "{{SC_URL}}"
              ],
              "query": [
                {
                  "key": "Action",
                  "value": "GetProducts"
                },
                {
                  "key": "Format",
                  "value": "{{FORMAT}}",
                  "description": "JSON,XML"
                },
                {
                  "key": "Timestamp",
                  "value": "{{Timestamp}}",
                  "description": "the Send action will auto generate the current Timestamp "
                },
                {
                  "key": "UserID",
                  "value": "{{SC_USERNAME}}"
                },
                {
                  "key": "Version",
                  "value": "{{SC_VERSION}}"
                },
                {
                  "key": "Signature",
                  "value": "{{Signature}}",
                  "description": "the Send action will auto generate the signature "
                },
                {
                  "key": "SkuSellerList",
                  "value": "[\"sellersku-02\"]",
                  "disabled": true
                }
              ]
            },
            "description": "Products\n\nGet all or a range of products.\n\nhttps://developers.linio.com/reference/getproducts"
          },
          "response": []
        }
      ]
    },
    {
      "name": "FEED ENDPOINTS",
      "item": [
        {
          "name": "FeedList",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{SC_URL}}?Action=FeedList&Format={{FORMAT}}&Timestamp={{Timestamp}}&UserID={{SC_USERNAME}}&Version={{SC_VERSION}}&Signature={{Signature}}",
              "host": [
                "{{SC_URL}}"
              ],
              "query": [
                {
                  "key": "Action",
                  "value": "FeedList"
                },
                {
                  "key": "Format",
                  "value": "{{FORMAT}}",
                  "description": "JSON,XML"
                },
                {
                  "key": "Timestamp",
                  "value": "{{Timestamp}}",
                  "description": "the Send action will auto generate the current Timestamp "
                },
                {
                  "key": "UserID",
                  "value": "{{SC_USERNAME}}"
                },
                {
                  "key": "Version",
                  "value": "{{SC_VERSION}}"
                },
                {
                  "key": "Signature",
                  "value": "{{Signature}}",
                  "description": "the Send action will auto generate the signature "
                }
              ]
            },
            "description": "FeedList\n\nReturns all feeds created in the last 30 days.\n\nhttps://developers.linio.com/reference/feedlist"
          },
          "response": []
        },
        {
          "name": "FeedOffsetList",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{SC_URL}}?Action=FeedOffsetList&Format={{FORMAT}}&Timestamp={{Timestamp}}&UserID={{SC_USERNAME}}&Version={{SC_VERSION}}&Signature={{Signature}}&Offset=1&PageSize=1",
              "host": [
                "{{SC_URL}}"
              ],
              "query": [
                {
                  "key": "Action",
                  "value": "FeedOffsetList"
                },
                {
                  "key": "Format",
                  "value": "{{FORMAT}}",
                  "description": "JSON,XML"
                },
                {
                  "key": "Timestamp",
                  "value": "{{Timestamp}}",
                  "description": "the Send action will auto generate the current Timestamp "
                },
                {
                  "key": "UserID",
                  "value": "{{SC_USERNAME}}"
                },
                {
                  "key": "Version",
                  "value": "{{SC_VERSION}}"
                },
                {
                  "key": "Signature",
                  "value": "{{Signature}}",
                  "description": "the Send action will auto generate the signature "
                },
                {
                  "key": "Offset",
                  "value": "1"
                },
                {
                  "key": "PageSize",
                  "value": "1"
                }
              ]
            },
            "description": "FeedOffsetList\n\nReturns all or a subset of all feeds created in the last 30 days.\n\nhttps://developers.linio.com/reference/feedoffsetlist"
          },
          "response": []
        },
        {
          "name": "FeedCount",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{SC_URL}}?Action=FeedCount&Format={{FORMAT}}&Timestamp={{Timestamp}}&UserID={{SC_USERNAME}}&Version={{SC_VERSION}}&Signature={{Signature}}",
              "host": [
                "{{SC_URL}}"
              ],
              "query": [
                {
                  "key": "Action",
                  "value": "FeedCount"
                },
                {
                  "key": "Format",
                  "value": "{{FORMAT}}",
                  "description": "JSON,XML"
                },
                {
                  "key": "Timestamp",
                  "value": "{{Timestamp}}",
                  "description": "the Send action will auto generate the current Timestamp "
                },
                {
                  "key": "UserID",
                  "value": "{{SC_USERNAME}}"
                },
                {
                  "key": "Version",
                  "value": "{{SC_VERSION}}"
                },
                {
                  "key": "Signature",
                  "value": "{{Signature}}",
                  "description": "the Send action will auto generate the signature "
                }
              ]
            },
            "description": "FeedCount\n\nFeed Statistics\n\nhttps://developers.linio.com/reference/feedcount"
          },
          "response": []
        },
        {
          "name": "FeedCancel",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<SuccessResponse>\n    <Head>\n        <RequestId></RequestId>\n        <RequestAction>FeedCancel</RequestAction>\n        <ResponseType></ResponseType>\n        <Timestamp>2015-07-01T11:11:11+0000</Timestamp>\n        <RequestParameters>\n            <FeedID>c685b76e-180d-484c-b0ef-7e9aee9e3f98</FeedID>\n        </RequestParameters>\n    </Head>\n    <Body/>\n</SuccessResponse>",
              "options": {
                "raw": {
                  "language": "xml"
                }
              }
            },
            "url": {
              "raw": "{{SC_URL}}?Action=FeedCancel&Format={{FORMAT}}&Timestamp={{Timestamp}}&UserID={{SC_USERNAME}}&Version={{SC_VERSION}}&Signature={{Signature}}",
              "host": [
                "{{SC_URL}}"
              ],
              "query": [
                {
                  "key": "Action",
                  "value": "FeedCancel"
                },
                {
                  "key": "Format",
                  "value": "{{FORMAT}}",
                  "description": "JSON,XML"
                },
                {
                  "key": "Timestamp",
                  "value": "{{Timestamp}}",
                  "description": "the Send action will auto generate the current Timestamp "
                },
                {
                  "key": "UserID",
                  "value": "{{SC_USERNAME}}"
                },
                {
                  "key": "Version",
                  "value": "{{SC_VERSION}}"
                },
                {
                  "key": "Signature",
                  "value": "{{Signature}}",
                  "description": "the Send action will auto generate the signature "
                }
              ]
            },
            "description": "FeedCancel\n\nCancel all queued feeds\n\nhttps://developers.linio.com/reference/feedcancel"
          },
          "response": []
        },
        {
          "name": "GetFeedRawInput",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{SC_URL}}?Action=GetFeedRawInput&Format={{FORMAT}}&Timestamp={{Timestamp}}&UserID={{SC_USERNAME}}&Version={{SC_VERSION}}&Signature={{Signature}}&FeedIdList=[\"4a835cd5-1f55-f56e011be009\",\"c685b76e-b0ef-7e9aee9e3f98\"]",
              "host": [
                "{{SC_URL}}"
              ],
              "query": [
                {
                  "key": "Action",
                  "value": "GetFeedRawInput"
                },
                {
                  "key": "Format",
                  "value": "{{FORMAT}}",
                  "description": "JSON,XML"
                },
                {
                  "key": "Timestamp",
                  "value": "{{Timestamp}}",
                  "description": "the Send action will auto generate the current Timestamp "
                },
                {
                  "key": "UserID",
                  "value": "{{SC_USERNAME}}"
                },
                {
                  "key": "Version",
                  "value": "{{SC_VERSION}}"
                },
                {
                  "key": "Signature",
                  "value": "{{Signature}}",
                  "description": "the Send action will auto generate the signature "
                },
                {
                  "key": "FeedIdList",
                  "value": "[\"4a835cd5-1f55-f56e011be009\",\"c685b76e-b0ef-7e9aee9e3f98\"]"
                }
              ]
            },
            "description": "FeedRawInput\n\nFor specified feeds, returns the XML requests originally passed in when the feed was created.\n\nhttps://developers.linio.com/reference/getfeedrawinput"
          },
          "response": []
        },
        {
          "name": "FeedStatus",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{SC_URL}}?Action=FeedStatus&Format={{FORMAT}}&Timestamp={{Timestamp}}&UserID={{SC_USERNAME}}&Version={{SC_VERSION}}&Signature={{Signature}}&FeedID=4a835cd5-1f55-f56e011be009",
              "host": [
                "{{SC_URL}}"
              ],
              "query": [
                {
                  "key": "Action",
                  "value": "FeedStatus"
                },
                {
                  "key": "Format",
                  "value": "{{FORMAT}}",
                  "description": "JSON,XML"
                },
                {
                  "key": "Timestamp",
                  "value": "{{Timestamp}}",
                  "description": "the Send action will auto generate the current Timestamp "
                },
                {
                  "key": "UserID",
                  "value": "{{SC_USERNAME}}"
                },
                {
                  "key": "Version",
                  "value": "{{SC_VERSION}}"
                },
                {
                  "key": "Signature",
                  "value": "{{Signature}}",
                  "description": "the Send action will auto generate the signature "
                },
                {
                  "key": "FeedID",
                  "value": "4a835cd5-1f55-f56e011be009"
                }
              ]
            },
            "description": "FeedStatus\n\nhttps://developers.linio.com/reference/feedstatus"
          },
          "response": []
        }
      ]
    },
    {
      "name": "SALES ORDER ENDPOINTS",
      "item": [
        {
          "name": "GetOrders",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{SC_URL}}?Action=GetOrders&Format={{FORMAT}}&Timestamp={{Timestamp}}&UserID={{SC_USERNAME}}&Version={{SC_VERSION}}&Signature={{Signature}}",
              "host": [
                "{{SC_URL}}"
              ],
              "query": [
                {
                  "key": "Action",
                  "value": "GetOrders"
                },
                {
                  "key": "Format",
                  "value": "{{FORMAT}}",
                  "description": "JSON,XML"
                },
                {
                  "key": "Timestamp",
                  "value": "{{Timestamp}}",
                  "description": "the Send action will auto generate the current Timestamp "
                },
                {
                  "key": "UserID",
                  "value": "{{SC_USERNAME}}"
                },
                {
                  "key": "Version",
                  "value": "{{SC_VERSION}}"
                },
                {
                  "key": "Signature",
                  "value": "{{Signature}}",
                  "description": "the Send action will auto generate the signature "
                },
                {
                  "key": "Status",
                  "value": "",
                  "description": "pending, canceled, ready_to_ship, delivered, returned, shipped y failed.",
                  "disabled": true
                }
              ]
            },
            "description": "Orders\n\nGet the customer details for a range of orders.\n\nSubstantially different from GetOrder, which retrieves the order items for an order.\n\nhttps://developers.linio.com/reference/getorders"
          },
          "response": []
        },
        {
          "name": "GetOrder",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{SC_URL}}?Action=GetOrder&Format={{FORMAT}}&Timestamp={{Timestamp}}&UserID={{SC_USERNAME}}&Version={{SC_VERSION}}&Signature={{Signature}}&OrderId=1125724127",
              "host": [
                "{{SC_URL}}"
              ],
              "query": [
                {
                  "key": "Action",
                  "value": "GetOrder"
                },
                {
                  "key": "Format",
                  "value": "{{FORMAT}}",
                  "description": "JSON,XML"
                },
                {
                  "key": "Timestamp",
                  "value": "{{Timestamp}}",
                  "description": "the Send action will auto generate the current Timestamp "
                },
                {
                  "key": "UserID",
                  "value": "{{SC_USERNAME}}"
                },
                {
                  "key": "Version",
                  "value": "{{SC_VERSION}}"
                },
                {
                  "key": "Signature",
                  "value": "{{Signature}}",
                  "description": "the Send action will auto generate the signature "
                },
                {
                  "key": "OrderId",
                  "value": "1125724127"
                }
              ]
            },
            "description": "Order\n\nGet the order items for a single order.\n\nDiffers from GetOrders, which gets the customer details.\n\nhttps://developers.linio.com/reference/getorder"
          },
          "response": []
        },
        {
          "name": "GetOrderItems",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{SC_URL}}?Action=GetOrderItems&Format={{FORMAT}}&Timestamp={{Timestamp}}&UserID={{SC_USERNAME}}&Version={{SC_VERSION}}&Signature={{Signature}}&OrderId=1",
              "host": [
                "{{SC_URL}}"
              ],
              "query": [
                {
                  "key": "Action",
                  "value": "GetOrderItems"
                },
                {
                  "key": "Format",
                  "value": "{{FORMAT}}",
                  "description": "JSON,XML"
                },
                {
                  "key": "Timestamp",
                  "value": "{{Timestamp}}",
                  "description": "the Send action will auto generate the current Timestamp "
                },
                {
                  "key": "UserID",
                  "value": "{{SC_USERNAME}}"
                },
                {
                  "key": "Version",
                  "value": "{{SC_VERSION}}"
                },
                {
                  "key": "Signature",
                  "value": "{{Signature}}",
                  "description": "the Send action will auto generate the signature "
                },
                {
                  "key": "OrderId",
                  "value": "1"
                }
              ]
            },
            "description": "OrderItems\n\nReturns the items for one order.\n\nhttps://developers.linio.com/reference/getorderitems"
          },
          "response": []
        },
        {
          "name": "GetMultipleOrderItems",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{SC_URL}}?Action=GetMultipleOrderItems&Format={{FORMAT}}&Timestamp={{Timestamp}}&UserID={{SC_USERNAME}}&Version={{SC_VERSION}}&Signature={{Signature}}&OrderIdList=[1,2,3,4]",
              "host": [
                "{{SC_URL}}"
              ],
              "query": [
                {
                  "key": "Action",
                  "value": "GetMultipleOrderItems"
                },
                {
                  "key": "Format",
                  "value": "{{FORMAT}}",
                  "description": "JSON,XML"
                },
                {
                  "key": "Timestamp",
                  "value": "{{Timestamp}}",
                  "description": "the Send action will auto generate the current Timestamp "
                },
                {
                  "key": "UserID",
                  "value": "{{SC_USERNAME}}"
                },
                {
                  "key": "Version",
                  "value": "{{SC_VERSION}}"
                },
                {
                  "key": "Signature",
                  "value": "{{Signature}}",
                  "description": "the Send action will auto generate the signature "
                },
                {
                  "key": "OrderIdList",
                  "value": "[1,2,3,4]"
                }
              ]
            },
            "description": "MultipleOrderItems\n\nReturns the items for one or more orders.\n\nhttps://developers.linio.com/reference/getmultipleorderitems"
          },
          "response": []
        },
        {
          "name": "SetStatusToCanceled",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{SC_URL}}?Action=SetStatusToCanceled&Format={{FORMAT}}&Timestamp={{Timestamp}}&UserID={{SC_USERNAME}}&Version={{SC_VERSION}}&Signature={{Signature}}&OrderItemId=1&Reason=Changed Mind&ReasonDetail=My hobbies are ordering and returning.",
              "host": [
                "{{SC_URL}}"
              ],
              "query": [
                {
                  "key": "Action",
                  "value": "SetStatusToCanceled"
                },
                {
                  "key": "Format",
                  "value": "{{FORMAT}}",
                  "description": "JSON,XML"
                },
                {
                  "key": "Timestamp",
                  "value": "{{Timestamp}}",
                  "description": "the Send action will auto generate the current Timestamp "
                },
                {
                  "key": "UserID",
                  "value": "{{SC_USERNAME}}"
                },
                {
                  "key": "Version",
                  "value": "{{SC_VERSION}}"
                },
                {
                  "key": "Signature",
                  "value": "{{Signature}}",
                  "description": "the Send action will auto generate the signature "
                },
                {
                  "key": "OrderItemId",
                  "value": "1"
                },
                {
                  "key": "Reason",
                  "value": "Changed Mind"
                },
                {
                  "key": "ReasonDetail",
                  "value": "My hobbies are ordering and returning."
                }
              ]
            },
            "description": "SetStatusToCanceled\n\nCancel a single item\n\nhttps://developers.linio.com/reference/setstatustocanceled"
          },
          "response": []
        },
        {
          "name": "GetDocument",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{SC_URL}}?Action=GetDocument&Format={{FORMAT}}&Timestamp={{Timestamp}}&UserID={{SC_USERNAME}}&Version={{SC_VERSION}}&Signature={{Signature}}&DocumentType=shippingParcel&OrderItemIds=[101316214]",
              "host": [
                "{{SC_URL}}"
              ],
              "query": [
                {
                  "key": "Action",
                  "value": "GetDocument"
                },
                {
                  "key": "Format",
                  "value": "{{FORMAT}}",
                  "description": "the Send action will auto generate the current Timestamp "
                },
                {
                  "key": "Timestamp",
                  "value": "{{Timestamp}}"
                },
                {
                  "key": "UserID",
                  "value": "{{SC_USERNAME}}"
                },
                {
                  "key": "Version",
                  "value": "{{SC_VERSION}}",
                  "description": "the Send action will auto generate the signature "
                },
                {
                  "key": "Signature",
                  "value": "{{Signature}}",
                  "description": "One of 'invoice', 'exportInvoice', 'shippingLabel', 'shippingParcel', 'carrierManifest', or \"serialNumber\". Mandatory. If omitted, or if an unsupported document type is supplied, an error 'E032: Document type \"[supplied type]\" is not valid'."
                },
                {
                  "key": "DocumentType",
                  "value": "shippingParcel"
                },
                {
                  "key": "OrderItemIds",
                  "value": "[101316214]"
                }
              ]
            },
            "description": "Document\n\nRetrieve order-related documents: Invoices, Shipping Labels and Shipping Parcels.\n\nhttps://developers.linio.com/reference/getdocument"
          },
          "response": []
        },
        {
          "name": "SetStatusToReadyToShip",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{SC_URL}}?Action=SetStatusToReadyToShip&Format={{FORMAT}}&Timestamp={{Timestamp}}&UserID={{SC_USERNAME}}&Version={{SC_VERSION}}&Signature={{Signature}}&OrderItemIds=[101308137]&PackageId=PKG0002432136",
              "host": [
                "{{SC_URL}}"
              ],
              "query": [
                {
                  "key": "Action",
                  "value": "SetStatusToReadyToShip"
                },
                {
                  "key": "Format",
                  "value": "{{FORMAT}}",
                  "description": "JSON,XML"
                },
                {
                  "key": "Timestamp",
                  "value": "{{Timestamp}}",
                  "description": "the Send action will auto generate the current Timestamp "
                },
                {
                  "key": "UserID",
                  "value": "{{SC_USERNAME}}"
                },
                {
                  "key": "Version",
                  "value": "{{SC_VERSION}}"
                },
                {
                  "key": "Signature",
                  "value": "{{Signature}}",
                  "description": "the Send action will auto generate the signature "
                },
                {
                  "key": "OrderItemIds",
                  "value": "[101308137]"
                },
                {
                  "key": "PackageId",
                  "value": "PKG0002432136"
                }
              ]
            },
            "description": "SetStatusToReadyToShip\n\nMark an order item as being ready to ship.\n\nhttps://developers.linio.com/reference/setstatustoreadytoship"
          },
          "response": []
        }
      ]
    },
    {
      "name": "STOCK ENDPOINTS",
      "item": [
        {
          "name": "GetStock",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{SC_URL}}?Action=GetStock&Format={{FORMAT}}&Timestamp={{Timestamp}}&UserID={{SC_USERNAME}}&Version={{SC_VERSION}}&Signature={{Signature}}&Limit=1&Offset=0",
              "host": [
                "{{SC_URL}}"
              ],
              "query": [
                {
                  "key": "Action",
                  "value": "GetStock",
                  "description": "JSON,XML"
                },
                {
                  "key": "Format",
                  "value": "{{FORMAT}}",
                  "description": "the Send action will auto generate the current Timestamp "
                },
                {
                  "key": "Timestamp",
                  "value": "{{Timestamp}}"
                },
                {
                  "key": "UserID",
                  "value": "{{SC_USERNAME}}"
                },
                {
                  "key": "Version",
                  "value": "{{SC_VERSION}}",
                  "description": "the Send action will auto generate the signature "
                },
                {
                  "key": "Signature",
                  "value": "{{Signature}}"
                },
                {
                  "key": "SellerSku",
                  "value": "[\"some_sku\"]",
                  "disabled": true
                },
                {
                  "key": "Limit",
                  "value": "1"
                },
                {
                  "key": "Offset",
                  "value": "0"
                }
              ]
            },
            "description": "Products\n\nGet all or a range of products.\n\nhttps://developers.linio.com/reference/getproducts"
          },
          "response": []
        },
        {
          "name": "UpdateStock",
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "exec": [
                  ""
                ],
                "type": "text/javascript",
                "packages": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [],
            "body": {
              "mode": "raw",
              "raw": "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<Request>\n    <Warehouse>\n        <Stock>\n            <SellerWarehousesId>sellerWarehouseId1</SellerWarehousesId>\n            <GSCFacilityId>12345</GSCFacilityId>\n            <SellerSku>abc02</SellerSku>\n            <Quantity>234</Quantity>\n        </Stock>\n        <Stock>\n            <GSCFacilityId>12345</GSCFacilityId>\n            <SellerWarehousesId>sellerWarehouseId1</SellerWarehousesId>\n            <SellerSku>abc02</SellerSku>\n            <Quantity>234</Quantity>\n        </Stock>\n    </Warehouse>\n</Request>",
              "options": {
                "raw": {
                  "language": "xml"
                }
              }
            },
            "url": {
              "raw": "{{SC_URL}}?Action=UpdateStock&Format={{FORMAT}}&Timestamp={{Timestamp}}&UserID={{SC_USERNAME}}&Version={{SC_VERSION}}&Signature={{Signature}}",
              "host": [
                "{{SC_URL}}"
              ],
              "query": [
                {
                  "key": "Action",
                  "value": "UpdateStock",
                  "description": "JSON,XML"
                },
                {
                  "key": "Format",
                  "value": "{{FORMAT}}",
                  "description": "the Send action will auto generate the current Timestamp "
                },
                {
                  "key": "Timestamp",
                  "value": "{{Timestamp}}"
                },
                {
                  "key": "UserID",
                  "value": "{{SC_USERNAME}}"
                },
                {
                  "key": "Version",
                  "value": "{{SC_VERSION}}",
                  "description": "the Send action will auto generate the signature "
                },
                {
                  "key": "Signature",
                  "value": "{{Signature}}"
                }
              ]
            },
            "description": "Products\n\nGet all or a range of products.\n\nhttps://developers.linio.com/reference/getproducts"
          },
          "response": []
        }
      ]
    }
  ],
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "packages": {
          "npm:crypto-js@4.2.0": {
            "id": "npm:crypto-js@4.2.0"
          }
        },
        "exec": [
          "// const CryptoJS = require('crypto-js');",
          "const crypto = pm.require('npm:crypto-js@4.2.0')",
          "// Get enabled parameters",
          "let params = pm.request.url.query.all().filter((param) => !param.disabled);",
          "params = params.reduce((paramObject, param) => ({ ...paramObject, [param.key]: param.value }), {});",
          "",
          "// Remove unresolved parameters",
          "delete params.Signature;",
          "delete params.Timestamp;",
          "delete params.UserID;",
          "delete params.Version;",
          "",
          "// Update Timestamp",
          "let now = new Date();",
          "let timestamp = now.toISOString();",
          "pm.environment.set(\"Timestamp\", timestamp);",
          "",
          "// Add missing resolved parameters",
          "params = {",
          "  ...params,",
          "  Format: pm.variables.get('FORMAT') || 'JSON',",
          "  Timestamp: pm.environment.get('Timestamp'),",
          "  UserID: pm.environment.get(\"SC_USERNAME\"),",
          "  Version: pm.environment.get(\"SC_VERSION\"),",
          "}",
          "",
          "// Order parameters alphabetically",
          "const orderedParams = Object.keys(params).sort().reduce(",
          "  (obj, key) => {",
          "    obj[key] = params[key];",
          "    return obj;",
          "  },",
          "  {}",
          ");",
          "",
          "// Get query string",
          "let queryString = Object.keys(orderedParams).map(function (key) {",
          "  return encodeURIComponent(key) + '=' + encodeURIComponent(orderedParams[key]);",
          "}).join('&');",
          "// console.log(queryString);",
          "// Get signature",
          "let signature = crypto.HmacSHA256(queryString, pm.environment.get(\"SC_TOKEN\")).toString();",
          "pm.environment.set(\"Signature\", signature);"
        ]
      }
    },
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "exec": [
          ""
        ]
      }
    }
  ],
  "variable": [
    {
      "key": "FORMAT",
      "value": "XML"
    }
  ]
}