Get a specific departments details
curl --request GET \
--url https://marketplace-api.fabric.inc/v1/brands/{brand_id}/connections/{id}/departments/{department_id}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://marketplace-api.fabric.inc/v1/brands/{brand_id}/connections/{id}/departments/{department_id}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://marketplace-api.fabric.inc/v1/brands/{brand_id}/connections/{id}/departments/{department_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://marketplace-api.fabric.inc/v1/brands/{brand_id}/connections/{id}/departments/{department_id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://marketplace-api.fabric.inc/v1/brands/{brand_id}/connections/{id}/departments/{department_id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://marketplace-api.fabric.inc/v1/brands/{brand_id}/connections/{id}/departments/{department_id}/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://marketplace-api.fabric.inc/v1/brands/{brand_id}/connections/{id}/departments/{department_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": 1418,
"retailer": {
"id": 1233,
"name": "fabric Merchant",
"code": "fabric-merchant",
"logo_url": "https://assets.revcascade.com/retailers/d8b42096-5e46-41e4-bde0-80c17d3d3a52",
"cover_url": "https://images.revcascade.com/retailers/defaults/cover.png",
"profile_tile_url": "https://images.revcascade.com/retailers/defaults/profile-tile.png",
"joined_at": "2022-05-27T03:07:59.000Z",
"is_3pm": false,
"is_rcn_retailer": false,
"is_onboarded": true,
"platform": "fabric",
"requires_subscription": "disabled",
"brand_permit_creation_allowed": true,
"website": "https://www.fabric.inc",
"status": "active",
"indexing_template_id": null
},
"owner_user": {
"id": 1002,
"first_name": "Kyle",
"last_name": "Stainer",
"title": "Engineering",
"status": "active",
"type": "standard",
"photo_url": "https://images.revcascade.com/users/2c5346e8b01f40de8977d29ee038f995/photo.jpg",
"profile_photo": "https://images.revcascade.com/users/2c5346e8b01f40de8977d29ee038f995/photo.jpg",
"is_me": false
},
"manager_user": null,
"name": "fabric Merchant Apparel",
"code": "fabric-merchant-general",
"sample_template_url": "https://res.cloudinary.com/revcascade/raw/upload/v1658950690/sample-templates/ApparelBad.csv",
"description": null,
"template": {
"id": 3245,
"name": "fabric General Merchandise",
"code": "fabric-general-merchandise"
},
"brand_ruleset": {
"id": 36
},
"retailer_ruleset": {
"id": 37
},
"is_active": true
}Proposals
Get a specific departments details
The Get Proposal Department Details endpoint provides comprehensive information for a specific proposal department. With this, you can see all associated product templates and rulesets, and easily download a sample template if one’s available.
GET
/
v1
/
brands
/
{brand_id}
/
connections
/
{id}
/
departments
/
{department_id}
/
Get a specific departments details
curl --request GET \
--url https://marketplace-api.fabric.inc/v1/brands/{brand_id}/connections/{id}/departments/{department_id}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://marketplace-api.fabric.inc/v1/brands/{brand_id}/connections/{id}/departments/{department_id}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://marketplace-api.fabric.inc/v1/brands/{brand_id}/connections/{id}/departments/{department_id}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://marketplace-api.fabric.inc/v1/brands/{brand_id}/connections/{id}/departments/{department_id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://marketplace-api.fabric.inc/v1/brands/{brand_id}/connections/{id}/departments/{department_id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://marketplace-api.fabric.inc/v1/brands/{brand_id}/connections/{id}/departments/{department_id}/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://marketplace-api.fabric.inc/v1/brands/{brand_id}/connections/{id}/departments/{department_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": 1418,
"retailer": {
"id": 1233,
"name": "fabric Merchant",
"code": "fabric-merchant",
"logo_url": "https://assets.revcascade.com/retailers/d8b42096-5e46-41e4-bde0-80c17d3d3a52",
"cover_url": "https://images.revcascade.com/retailers/defaults/cover.png",
"profile_tile_url": "https://images.revcascade.com/retailers/defaults/profile-tile.png",
"joined_at": "2022-05-27T03:07:59.000Z",
"is_3pm": false,
"is_rcn_retailer": false,
"is_onboarded": true,
"platform": "fabric",
"requires_subscription": "disabled",
"brand_permit_creation_allowed": true,
"website": "https://www.fabric.inc",
"status": "active",
"indexing_template_id": null
},
"owner_user": {
"id": 1002,
"first_name": "Kyle",
"last_name": "Stainer",
"title": "Engineering",
"status": "active",
"type": "standard",
"photo_url": "https://images.revcascade.com/users/2c5346e8b01f40de8977d29ee038f995/photo.jpg",
"profile_photo": "https://images.revcascade.com/users/2c5346e8b01f40de8977d29ee038f995/photo.jpg",
"is_me": false
},
"manager_user": null,
"name": "fabric Merchant Apparel",
"code": "fabric-merchant-general",
"sample_template_url": "https://res.cloudinary.com/revcascade/raw/upload/v1658950690/sample-templates/ApparelBad.csv",
"description": null,
"template": {
"id": 3245,
"name": "fabric General Merchandise",
"code": "fabric-general-merchandise"
},
"brand_ruleset": {
"id": 36
},
"retailer_ruleset": {
"id": 37
},
"is_active": true
}Authorizations
Path Parameters
Response
200 - application/json
Proposal details
Represents a product feed configuration for a retailer, including associated users, templates, and rulesets.
Was this page helpful?
