GET /departments

Fetch current retailer's department list based on the origin greedbag shop domain.

Permission

Require valid origin greedbag shop domain.

GET /departments/[department_identifier]

Fetch retailer's department information and products from the specified identifier.

Permission

The department_identifier must belong to the request origin greedbag retailer.

Responses
{
  "last_update": null,
  "owner": null,
  "status": "live",
  "name": "Shop Front",
  "modify_time": "2018-04-16 15:01:33",
  "products": [
      {
          "project_id": null,
          "label": {
          },
          "priority": "2021-06-11 15:55:59",
          "name": "test",
          "status": "live",
          "identifier_string": "test",
          "modify_time": "2021-03-17 14:03:11",
          "identifier": "test-223",
          "packshot": {
          },
          "id": "71912578220187",
          "create_time": "2021-03-17 14:03:11",
          "identifier_unique": "223",
          "release_group_id": null,
          "meta_modify_time": null,
          "title": "test"
      },
      {
          "authorship": null,
          "modify_time": "2021-02-16 16:39:22",
          "release_formats": [
              {
                  "product_status": "Available",
                  "description": null,
                  "identifier": "test-download-file-1",
                  "products": [
                      {
                          "gb_vat_rate": null,
                          "status": "live",
                          "name": "Test Download",
                          "has_digital": 1,
                          "modify_time": "2021-02-16 16:34:44",
                          "has_physical": "",
                          "create_time": "2021-02-09 00:57:39",
                          "identifier": "test-download",
                          "id": "70576523480146",
                          "sku": "gbst02-flac_8",
                          "stockquote": {
                              "modify_time": "2021-05-27 10:42:32",
                              "amount": "1.98",
                              "overstock_available": null,
                              "create_time": "2021-02-09 00:57:39",
                              "id": "70576523520142",
                              "max_per_order": "0",
                              "comment": null,
                              "available": "499978"
                          }
                      },
                      {
                          "has_digital": 1,
                          "modify_time": "2021-02-16 16:34:44",
                          "gb_vat_rate": null,
                          "status": "live",
                          "name": "Test Download",
                          "has_physical": "",
                          "create_time": "2021-02-09 00:57:39",
                          "id": "70576523530146",
                          "stockquote": {
                              "id": "70576523540142",
                              "max_per_order": "0",
                              "comment": null,
                              "available": "500000",
                              "create_time": "2021-02-09 00:57:39",
                              "overstock_available": null,
                              "modify_time": "2021-02-09 19:35:09",
                              "amount": "1.98"
                          },
                          "sku": "gbst02-greed_wav",
                          "identifier": "test-download-0"
                      }
                  ],
                  "released": "2010-10-02 00:00:00",
                  "artworks": [
                      {
                          "width": "150",
                          "height": "150",
                          "create_time": "2021-02-09 19:35:07",
                          "extension": "jpeg",
                          "subject_date": null,
                          "filesize": "12854",
                          "description": "\"Test Download\" artwork",
                          "credit": null,
                          "mime_major": "image",
                          "id": "70599778580054",
                          "url": "https://downloads.openimp.com/tid/7409c19ef093ec8b68f8c92f3a3960300814a72f/fvhpcpk/nacaobteew/70599778580054.jpeg",
                          "caption": "",
                          "status": "live",
                          "modify_time": "2021-02-09 19:35:08",
                          "mime_minor": "jpeg"
                      }
                  ],
                  "modify_time": "2021-04-05 11:57:07",
                  "barcode": "5057805711957",
                  "catalog_no": "gbst02",
                  "media_type": "File",
                  "create_time": "2021-02-09 00:57:33",
                  "volume_total_parts": "1",
                  "volume_part": "1",
                  "title": "Test Download",
                  "grid": null,
                  "packshot": {
                      "caption": null,
                      "url": "https://downloads.openimp.com/tid/f6d15244536aa0a7c3d4b55746ccfbfc92affd38/fvhpcpk/mzxmytfbrq/70563453310054.jpg",
                      "id": "70563453310054",
                      "mime_major": "image",
                      "credit": null,
                      "description": null,
                      "filesize": "4614121",
                      "subject_date": null,
                      "extension": "jpg",
                      "width": "2480",
                      "height": "2480",
                      "create_time": "2021-02-08 18:15:12",
                      "mime_minor": "jpeg",
                      "modify_time": "2021-02-08 18:15:12",
                      "status": "live"
                  },
                  "id": "70576519490032",
                  "track_count": "2",
                  "status": "live",
                  "format_type": "EP"
              }
          ],
          "name": "Test Download",
          "priority": "2021-02-09 19:35:02",
          "catalog_no": null,
          "label": {
              "identifier": "2dc22235-27fc-44d3-aae9-b5249195b248",
              "id": "40163461370094",
              "create_time": "2018-04-16 16:01:32",
              "name": "Test Shop",
              "email": "testshop@greedbag.com",
              "modify_time": "2018-04-16 15:01:32"
          },
          "project_id": null,
          "description": null,
          "original_release_date": null,
          "territory": null,
          "musicset": null,
          "identifier": "test-download-0",
          "identifier_string": "test-download",
          "status": "live",
          "identifier_unique": "0",
          "title": "Test Download",
          "meta_modify_time": "2021-02-16 16:34:44",
          "release_group_id": "gbst02",
          "create_time": "2021-02-09 00:57:32",
          "display_artist": "i've got the stereo on loud",
          "id": "70576518600069",
          "packshot": {
              "mime_minor": "jpeg",
              "status": "live",
              "modify_time": "2021-02-09 19:35:03",
              "credit": null,
              "caption": null,
              "url": "https://downloads.openimp.com/tid/a0b2b2a5420626dea93f7eb8b4dc81a910cbaf34/fvhpcpk/nacanzdlvq/70599777390054.jpg",
              "id": "70599777390054",
              "mime_major": "image",
              "subject_date": null,
              "extension": "jpg",
              "filesize": "4614121",
              "width": "2480",
              "create_time": "2021-02-09 19:35:03",
              "height": "2480",
              "description": null
          }
      }
  ],
  "identifier": "shop-front-588",
  "id": "40163462150162",
  "create_time": "2018-04-16 16:01:33",
  "subject_date": null,
  "description": null
}
ErrorResponse