Skip to Content

Brands

L’objet Brand

Attributs

  • idstring

    Identifiant unique de l'objet (préfixé, opaque).

  • objectstring

    brand

  • namestring
  • slugstring
  • verticalstring

    What the brand sells: products, software / online services, or a physical establishment.

  • site_urlstringnullable
  • logo_urlstring

    Signed URL, valid 60 minutes.

  • platformstringnullable
  • livemodeboolean

    true pour les données réelles, false pour le bac à sable du mode test.

  • createdinteger

    Time at which the object was created (unix timestamp, seconds).

L'objet Brand
{ "id": "br_034CyfRFSXUqzrbzV6MAfZ", "object": "brand", "name": "Nordvelo", "slug": "nordvelo", "vertical": "string", "site_url": "https://nordvelo.fr", "logo_url": "string", "platform": "shopify", "livemode": true, "created": 1790000000 }

Retrieve a brand

GET/v1/brands/{brand}

Paramètres

  • brandstringobligatoire

    Brand id (br_…).

Retour

Renvoie l’objet brand. Lève une erreur en cas de problème.

curl https://api.skoup.ai/v1/brands/br_034CyfRFSXUqzrbzV6MAfZ \ -H "Authorization: Bearer skoup_test_4eC39HqLyjWDarjtT1zdp7dc"
Réponse
{ "id": "br_034CyfRFSXUqzrbzV6MAfZ", "object": "brand", "name": "Nordvelo", "slug": "nordvelo", "vertical": "string", "site_url": "https://nordvelo.fr", "logo_url": "string", "platform": "shopify", "livemode": true, "created": 1790000000 }

List brands

GET/v1/brands

The brands of the workspace this key can reach — all of them, or the selection made when the key was created. Test keys see the sandbox brands.

Paramètres

  • limitinteger

    Nombre d'objets à renvoyer, entre 1 et 100 (20 par défaut).

  • starting_afterstring

    Curseur : l'id du dernier objet de la page précédente.

Retour

Un dictionnaire dont la propriété data contient jusqu’à limit objets brand, du plus récent au plus ancien, et has_more indique s’il reste une page. Lève une erreur en cas de problème.

curl https://api.skoup.ai/v1/brands?limit=3 \ -H "Authorization: Bearer skoup_test_4eC39HqLyjWDarjtT1zdp7dc"
Réponse
{ "object": "list", "url": "/v1/brands", "has_more": false, "data": [ { "id": "br_034CyfRFSXUqzrbzV6MAfZ", "object": "brand", "name": "Nordvelo", "slug": "nordvelo", "vertical": "string", "site_url": "https://nordvelo.fr", "logo_url": "string", "platform": "shopify", "livemode": true, "created": 1790000000 } ] }
Last updated on