Data connector

POST /data-connector-export

This endpoint lets you do export data from any store on Agora in a data structure that you specify.

Headers

Header
Type
Description

Authorization

string

Bearer token.

Request body

{
  "export_type": "json", // allowed fields are json and csv
  "storeId": "67fdca423bc67148547d8f26",
  "fields": [ // allowed keys are 'name', 'brand', 'storeName', 'price', 'slug', 'averageRating', 'externalProductId', 'images', 'url', 'agoraScore'
    {
      "key": "name",
      "value": "Product Name"
    },
    {
      "key": "brand",
      "value": "Brand"
    },
    {
      "key": "storeName",
      "value": "Store Name"
    },
    {
      "key": "price",
      "value": "Price"
    },
    {
      "key": "slug",
      "value": "Slug"
    },
    {
      "key": "averageRating",
      "value": "Average Rating"
    },
    {
      "key": "externalProductId",
      "value": "External Product ID"
    },
    {
      "key": "images",
      "value": "Images"
    },
    {
      "key": "url",
      "value": "Product URL"
    },
    {
      "key": "agoraScore",
      "value": "Agora Score"
    }
  ]
}

Response

Last updated

Was this helpful?