Product Lists

List all Product Lists

get
Responses
200Success
application/json
get
GET /v1/core/product-lists HTTP/1.1
Host: 
Accept: */*
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "items": [
      {
        "type": 1,
        "group": {},
        "locales": {
          "ar": {
            "name": "text",
            "description": "text"
          },
          "en": {
            "name": "text",
            "description": "text"
          }
        },
        "createdAt": "text",
        "createdVia": "text",
        "createdBy": "text",
        "updatedAt": "text",
        "updatedVia": "text",
        "updatedBy": "text",
        "uid": "text",
        "entries": [
          {
            "sort": 1,
            "createdAt": "text",
            "createdVia": "text",
            "createdBy": "text",
            "updatedAt": "text",
            "updatedVia": "text",
            "updatedBy": "text",
            "uid": "text",
            "productUid": "text"
          }
        ]
      }
    ],
    "next": "text"
  }
}

Creates a new Product List

post
Body
Responses
200Success
application/json
post
POST /v1/core/product-lists HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 170

{
  "params": {
    "type": 1,
    "group": {},
    "locales": {
      "ar": {
        "name": "text",
        "description": "text"
      },
      "en": {
        "name": "text",
        "description": "text"
      }
    },
    "entries": [
      {
        "productId": "text",
        "sort": 1
      }
    ]
  }
}
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "item": {
      "type": 1,
      "group": {},
      "locales": {
        "ar": {
          "name": "text",
          "description": "text"
        },
        "en": {
          "name": "text",
          "description": "text"
        }
      },
      "createdAt": "text",
      "createdVia": "text",
      "createdBy": "text",
      "updatedAt": "text",
      "updatedVia": "text",
      "updatedBy": "text",
      "uid": "text",
      "entries": [
        {
          "sort": 1,
          "createdAt": "text",
          "createdVia": "text",
          "createdBy": "text",
          "updatedAt": "text",
          "updatedVia": "text",
          "updatedBy": "text",
          "uid": "text",
          "productUid": "text"
        }
      ]
    }
  }
}

Returns a Product List

get
Path parameters
idstringRequired
Responses
200Success
application/json
get
GET /v1/core/product-lists/{id} HTTP/1.1
Host: 
Accept: */*
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "item": {
      "type": 1,
      "group": {},
      "locales": {
        "ar": {
          "name": "text",
          "description": "text"
        },
        "en": {
          "name": "text",
          "description": "text"
        }
      },
      "createdAt": "text",
      "createdVia": "text",
      "createdBy": "text",
      "updatedAt": "text",
      "updatedVia": "text",
      "updatedBy": "text",
      "uid": "text",
      "entries": [
        {
          "sort": 1,
          "createdAt": "text",
          "createdVia": "text",
          "createdBy": "text",
          "updatedAt": "text",
          "updatedVia": "text",
          "updatedBy": "text",
          "uid": "text",
          "productUid": "text"
        }
      ]
    }
  }
}

Deletes a Product List

delete
Path parameters
idstringRequired
Responses
200Success
application/json
delete
DELETE /v1/core/product-lists/{id} HTTP/1.1
Host: 
Accept: */*
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "succeed": true
  }
}

Updates a Product List

patch
Path parameters
idstringRequired
Body
Responses
200Success
application/json
patch
PATCH /v1/core/product-lists/{id} HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 132

{
  "params": {
    "uid": "text",
    "group": {},
    "locales": {
      "ar": {
        "name": "text",
        "description": "text"
      },
      "en": {
        "name": "text",
        "description": "text"
      }
    }
  }
}
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "item": {
      "type": 1,
      "group": {},
      "locales": {
        "ar": {
          "name": "text",
          "description": "text"
        },
        "en": {
          "name": "text",
          "description": "text"
        }
      },
      "createdAt": "text",
      "createdVia": "text",
      "createdBy": "text",
      "updatedAt": "text",
      "updatedVia": "text",
      "updatedBy": "text",
      "uid": "text",
      "entries": [
        {
          "sort": 1,
          "createdAt": "text",
          "createdVia": "text",
          "createdBy": "text",
          "updatedAt": "text",
          "updatedVia": "text",
          "updatedBy": "text",
          "uid": "text",
          "productUid": "text"
        }
      ]
    }
  }
}

Exports all products with support for incremental fetching.

get
Path parameters
updatedSincestringRequired
offsetstringRequired
Responses
200Success
application/json
get
GET /v1/core/product-lists/export HTTP/1.1
Host: 
Accept: */*
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "items": [
      {
        "type": 1,
        "group": {},
        "locales": {
          "ar": {
            "name": "text",
            "description": "text"
          },
          "en": {
            "name": "text",
            "description": "text"
          }
        },
        "createdAt": "text",
        "createdVia": "text",
        "createdBy": "text",
        "updatedAt": "text",
        "updatedVia": "text",
        "updatedBy": "text",
        "uid": "text",
        "entries": [
          {
            "sort": 1,
            "createdAt": "text",
            "createdVia": "text",
            "createdBy": "text",
            "updatedAt": "text",
            "updatedVia": "text",
            "updatedBy": "text",
            "uid": "text",
            "productUid": "text"
          }
        ]
      }
    ],
    "next": "text"
  }
}

Creates an entry within a product list

post
Body
Responses
200Success
application/json
post
POST /v1/core/product-list-entries HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 58

{
  "params": {
    "listUid": "text",
    "productUid": "text",
    "sort": 1
  }
}
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "item": {
      "sort": 1,
      "createdAt": "text",
      "createdVia": "text",
      "createdBy": "text",
      "updatedAt": "text",
      "updatedVia": "text",
      "updatedBy": "text",
      "uid": "text",
      "productUid": "text"
    },
    "product": {},
    "category": {
      "image": "text",
      "locales": {
        "ar": {
          "name": "text",
          "description": "text"
        },
        "en": {
          "name": "text",
          "description": "text"
        }
      },
      "sort": 1,
      "createdAt": "text",
      "createdVia": "text",
      "createdBy": "text",
      "updatedAt": "text",
      "updatedVia": "text",
      "updatedBy": "text",
      "id": "text"
    }
  }
}

Deletes a Product List Entry

delete
Path parameters
idstringRequired
Responses
200Success
application/json
delete
DELETE /v1/core/product-list-entries/{id} HTTP/1.1
Host: 
Accept: */*
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "succeed": true
  }
}

Updates an entry within a product list

patch
Path parameters
idstringRequired
Body
Responses
200Success
application/json
patch
PATCH /v1/core/product-list-entries/{id} HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 34

{
  "params": {
    "uid": "text",
    "sort": 1
  }
}
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "item": {
      "sort": 1,
      "createdAt": "text",
      "createdVia": "text",
      "createdBy": "text",
      "updatedAt": "text",
      "updatedVia": "text",
      "updatedBy": "text",
      "uid": "text",
      "productUid": "text"
    }
  }
}

Was this helpful?