{
    "info": {
        "_postman_id": "b8aba4bd-b3ab-46f9-af87-2afd8d2614a6",
        "name": "ows-account audit",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "item": [
        {
            "name": "ows-account",
            "item": [
                {
                    "name": "Healthcheck",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "https://qa-ows-account.theorchard.io/hello/",
                            "protocol": "https",
                            "host": [
                                "qa-ows-account",
                                "theorchard",
                                "io"
                            ],
                            "path": [
                                "hello",
                                ""
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get identity of account with a grass session",
                    "event": [
                        {
                            "listen": "test",
                            "script": {
                                "id": "6a1ddf78-7165-497d-af46-4d96e326b008",
                                "exec": [
                                    ""
                                ],
                                "type": "text/javascript"
                            }
                        }
                    ],
                    "protocolProfileBehavior": {
                        "disableBodyPruning": true
                    },
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Cache-Control",
                                "value": "max-age=1800",
                                "type": "text"
                            },
                            {
                                "key": "Grass-Account-Type",
                                "value": "vendor",
                                "type": "text"
                            },
                            {
                                "key": "Grass-Account-Id",
                                "value": "26640",
                                "type": "text"
                            },
                            {
                                "key": "Orchard-User-Id",
                                "value": "alw:12345",
                                "type": "text",
                                "disabled": true
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": ""
                        },
                        "url": {
                            "raw": "https://qa-ows-account.theorchard.io/identity",
                            "protocol": "https",
                            "host": [
                                "qa-ows-account",
                                "theorchard",
                                "io"
                            ],
                            "path": [
                                "identity"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get list of subaccounts",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json",
                                "type": "text"
                            },
                            {
                                "key": "Grass-Account-Type",
                                "value": "vendor",
                                "type": "text"
                            },
                            {
                                "key": "Grass-Account-Id",
                                "value": "26640",
                                "type": "text"
                            },
                            {
                                "key": "Orchard-User-Id",
                                "value": "alw:98765",
                                "type": "text",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "https://qa-ows-account.theorchard.io/subaccounts?page_offset=0&page_limit=50",
                            "protocol": "https",
                            "host": [
                                "qa-ows-account",
                                "theorchard",
                                "io"
                            ],
                            "path": [
                                "subaccounts"
                            ],
                            "query": [
                                {
                                    "key": "page_offset",
                                    "value": "0"
                                },
                                {
                                    "key": "page_limit",
                                    "value": "50"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Gets a subaccount, given <subaccount_id>",
                    "event": [
                        {
                            "listen": "test",
                            "script": {
                                "id": "e73e2efd-a81a-478b-96a6-f26370bfb71a",
                                "exec": [
                                    ""
                                ],
                                "type": "text/javascript"
                            }
                        }
                    ],
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Grass-Account-Type",
                                "value": "vendor",
                                "type": "text"
                            },
                            {
                                "key": "Grass-Account-Id",
                                "value": "26640",
                                "type": "text"
                            },
                            {
                                "key": "Orchard-User-Id",
                                "value": "alw:00007",
                                "type": "text",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "https://qa-ows-account.theorchard.io/subaccount/32365",
                            "protocol": "https",
                            "host": [
                                "qa-ows-account",
                                "theorchard",
                                "io"
                            ],
                            "path": [
                                "subaccount",
                                "32365"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get the list of deactivated subaccounts",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Grass-Account-Type",
                                "value": "vendor",
                                "type": "text"
                            },
                            {
                                "key": "Grass-Account-Id",
                                "value": "17290",
                                "type": "text"
                            }
                        ],
                        "url": {
                            "raw": "https://qa-ows-account.theorchard.io/subaccounts?status=deactivated",
                            "protocol": "https",
                            "host": [
                                "qa-ows-account",
                                "theorchard",
                                "io"
                            ],
                            "path": [
                                "subaccounts"
                            ],
                            "query": [
                                {
                                    "key": "page_offset",
                                    "value": "0",
                                    "disabled": true
                                },
                                {
                                    "key": "page_limit",
                                    "value": "50",
                                    "disabled": true
                                },
                                {
                                    "key": "status",
                                    "value": "deactivated"
                                }
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Gets list of subaccounts given <vendor_id>",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Grass-Account-Type",
                                "value": "vendor",
                                "type": "text"
                            },
                            {
                                "key": "Grass-Account-Id",
                                "value": "26640",
                                "type": "text"
                            },
                            {
                                "key": "Orchard-User-Id",
                                "value": "alw:12345",
                                "type": "text",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "https://qa-ows-account.theorchard.io/26640/subaccounts",
                            "protocol": "https",
                            "host": [
                                "qa-ows-account",
                                "theorchard",
                                "io"
                            ],
                            "path": [
                                "26640",
                                "subaccounts"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Validate subaccount belongs to vendor",
                    "request": {
                        "method": "HEAD",
                        "header": [
                            {
                                "key": "Grass-Account-Type",
                                "value": "vendor",
                                "type": "text"
                            },
                            {
                                "key": "Grass-Account-Id",
                                "value": "26640",
                                "type": "text"
                            },
                            {
                                "key": "Orchard-User-Id",
                                "value": "alw:007",
                                "type": "text",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "https://qa-ows-account.theorchard.io/26640/subaccount/32365",
                            "protocol": "https",
                            "host": [
                                "qa-ows-account",
                                "theorchard",
                                "io"
                            ],
                            "path": [
                                "26640",
                                "subaccount",
                                "32365"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Validate Grass user is a distributor",
                    "event": [
                        {
                            "listen": "test",
                            "script": {
                                "id": "efa9b4f0-c7fb-413a-844b-513227c5c616",
                                "exec": [
                                    ""
                                ],
                                "type": "text/javascript"
                            }
                        }
                    ],
                    "request": {
                        "method": "HEAD",
                        "header": [
                            {
                                "key": "Grass-Account-Type",
                                "value": "vendor",
                                "type": "text"
                            },
                            {
                                "key": "Grass-Account-Id",
                                "value": "26640",
                                "type": "text"
                            },
                            {
                                "key": "Orchard-User-Id",
                                "value": "alw:007",
                                "type": "text",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "https://qa-ows-account.theorchard.io/distributor",
                            "protocol": "https",
                            "host": [
                                "qa-ows-account",
                                "theorchard",
                                "io"
                            ],
                            "path": [
                                "distributor"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Validate vendor is a distributor",
                    "request": {
                        "method": "HEAD",
                        "header": [
                            {
                                "key": "Grass-Account-Type",
                                "value": "vendor",
                                "type": "text"
                            },
                            {
                                "key": "Grass-Account-Id",
                                "value": "26640",
                                "type": "text"
                            },
                            {
                                "key": "Orchard-User-Id",
                                "value": "alw:26640",
                                "type": "text",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "https://qa-ows-account.theorchard.io/26640/distributor",
                            "protocol": "https",
                            "host": [
                                "qa-ows-account",
                                "theorchard",
                                "io"
                            ],
                            "path": [
                                "26640",
                                "distributor"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Validate vendor is Sony distributed",
                    "request": {
                        "method": "HEAD",
                        "header": [
                            {
                                "key": "Grass-Account-Type",
                                "value": "vendor",
                                "type": "text"
                            },
                            {
                                "key": "Grass-Account-Id",
                                "value": "26640",
                                "type": "text"
                            },
                            {
                                "key": "Orchard-User-Id",
                                "value": "alw:001",
                                "type": "text",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "https://qa-ows-account.theorchard.io/sony/vendor/26640",
                            "protocol": "https",
                            "host": [
                                "qa-ows-account",
                                "theorchard",
                                "io"
                            ],
                            "path": [
                                "sony",
                                "vendor",
                                "26640"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Validate subaccount is Sony distributed",
                    "request": {
                        "method": "HEAD",
                        "header": [
                            {
                                "key": "Grass-Account-Type",
                                "value": "subaccount",
                                "type": "text"
                            },
                            {
                                "key": "Grass-Account-Id",
                                "value": "32365",
                                "type": "text"
                            },
                            {
                                "key": "Orchard-User-Id",
                                "value": "alw:12345",
                                "type": "text",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "https://qa-ows-account.theorchard.io/sony/subaccount/32365",
                            "protocol": "https",
                            "host": [
                                "qa-ows-account",
                                "theorchard",
                                "io"
                            ],
                            "path": [
                                "sony",
                                "subaccount",
                                "32365"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Validate if vendor_id is a valid vendor",
                    "event": [
                        {
                            "listen": "test",
                            "script": {
                                "id": "6a1ddf78-7165-497d-af46-4d96e326b008",
                                "exec": [
                                    ""
                                ],
                                "type": "text/javascript"
                            }
                        }
                    ],
                    "protocolProfileBehavior": {
                        "disableBodyPruning": true
                    },
                    "request": {
                        "method": "HEAD",
                        "header": [
                            {
                                "key": "Grass-Account-Type",
                                "value": "vendor",
                                "type": "text",
                                "disabled": true
                            },
                            {
                                "key": "Grass-Account-Id",
                                "value": "26640",
                                "type": "text",
                                "disabled": true
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": ""
                        },
                        "url": {
                            "raw": "https://qa-ows-account.theorchard.io/vendor/26640",
                            "protocol": "https",
                            "host": [
                                "qa-ows-account",
                                "theorchard",
                                "io"
                            ],
                            "path": [
                                "vendor",
                                "26640"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Return basic information about vendor",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Grass-Account-Type",
                                "value": "subaccount",
                                "type": "text",
                                "disabled": true
                            },
                            {
                                "key": "Grass-Account-Id",
                                "value": "32365",
                                "type": "text",
                                "disabled": true
                            },
                            {
                                "key": "Orchard-User-Id",
                                "value": "alw:43556",
                                "type": "text",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "https://qa-ows-account.theorchard.io/vendor/26640",
                            "protocol": "https",
                            "host": [
                                "qa-ows-account",
                                "theorchard",
                                "io"
                            ],
                            "path": [
                                "vendor",
                                "26640"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Return vendor suppliers default selection",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Grass-Account-Type",
                                "value": "vendor",
                                "type": "text",
                                "disabled": true
                            },
                            {
                                "key": "Grass-Account-Id",
                                "value": "12345",
                                "type": "text",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "https://qa-ows-account.theorchard.io/vendor/25663/suppliers",
                            "protocol": "https",
                            "host": [
                                "qa-ows-account",
                                "theorchard",
                                "io"
                            ],
                            "path": [
                                "vendor",
                                "25663",
                                "suppliers"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Set suppliers default selection",
                    "request": {
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Grass-Account-Type",
                                "value": "vendor",
                                "type": "text"
                            },
                            {
                                "key": "Grass-Account-Id",
                                "value": "25669",
                                "type": "text"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\r\n            \"store_id\": 697\r\n}"
                        },
                        "url": {
                            "raw": "https://qa-ows-account.theorchard.io/vendor/25663/suppliers",
                            "protocol": "https",
                            "host": [
                                "qa-ows-account",
                                "theorchard",
                                "io"
                            ],
                            "path": [
                                "vendor",
                                "25663",
                                "suppliers"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get a list of enabled feature controls for a vendor",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Grass-Account-Type",
                                "value": "vendor",
                                "type": "text",
                                "disabled": true
                            },
                            {
                                "key": "Grass-Account-Id",
                                "value": "26640",
                                "type": "text",
                                "disabled": true
                            },
                            {
                                "key": "Orchard-User-Id",
                                "value": "alw:12345",
                                "type": "text",
                                "disabled": true
                            }
                        ],
                        "url": {
                            "raw": "https://qa-ows-account.theorchard.io/vendor/26640/features",
                            "protocol": "https",
                            "host": [
                                "qa-ows-account",
                                "theorchard",
                                "io"
                            ],
                            "path": [
                                "vendor",
                                "26640",
                                "features"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get a list of all currency codes for vendors",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "https://qa-ows-account.theorchard.io/vendor-currency-codes",
                            "protocol": "https",
                            "host": [
                                "qa-ows-account",
                                "theorchard",
                                "io"
                            ],
                            "path": [
                                "vendor-currency-codes"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get single subaccount document for cloudsearch corpus",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "https://qa-ows-account.theorchard.io/subaccount/32365/document",
                            "protocol": "https",
                            "host": [
                                "qa-ows-account",
                                "theorchard",
                                "io"
                            ],
                            "path": [
                                "subaccount",
                                "32365",
                                "document"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Get single vendor document for cloudsearch corpus",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "https://qa-ows-account.theorchard.io/vendor/26640/document",
                            "protocol": "https",
                            "host": [
                                "qa-ows-account",
                                "theorchard",
                                "io"
                            ],
                            "path": [
                                "vendor",
                                "26640",
                                "document"
                            ]
                        }
                    },
                    "response": []
                },
                {
                    "name": "Update subaccount status for given subaccout_id",
                    "request": {
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "name": "Content-Type",
                                "value": "application/json",
                                "type": "text"
                            },
                            {
                                "key": "Grass-Account-Type",
                                "value": "vendor",
                                "type": "text",
                                "disabled": true
                            },
                            {
                                "key": "Grass-Account-Id",
                                "value": "26641",
                                "type": "text",
                                "disabled": true
                            },
                            {
                                "key": "Orchard-User-Id",
                                "value": "alw:12345",
                                "type": "text",
                                "disabled": true
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n\t\"active\": false\n\t\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        },
                        "url": {
                            "raw": "https://qa-ows-account.theorchard.io/subaccount/49017/status",
                            "protocol": "https",
                            "host": [
                                "qa-ows-account",
                                "theorchard",
                                "io"
                            ],
                            "path": [
                                "subaccount",
                                "49017",
                                "status"
                            ],
                            "query": [
                                {
                                    "key": "",
                                    "value": "",
                                    "disabled": true
                                }
                            ]
                        }
                    },
                    "response": []
                }
            ],
            "protocolProfileBehavior": {}
        }
    ],
    "protocolProfileBehavior": {}
}