Products
Get Categories
GET /commerce/products/categories
Headers
Client-Key*
String
Your client key
{
"data": [
{
"id": 221,
"name": "Aksesoris",
"slug": "aksesoris",
"parent": 0,
"description": "",
"display": "default",
"image": null,
"menu_order": 0,
"count": 1,
"_links": {
"self": [
{
"href": "https://marketplace.ganjaran.app/wp-json/wc/v3/products/categories/221"
}
],
"collection": [
{
"href": "https://marketplace.ganjaran.app/wp-json/wc/v3/products/categories"
}
]
}
},
{
"id": 224,
"name": "Baju",
"slug": "baju",
"parent": 0,
"description": "",
"display": "default",
"image": null,
"menu_order": 0,
"count": 2,
"_links": {
"self": [
{
"href": "https://marketplace.ganjaran.app/wp-json/wc/v3/products/categories/224"
}
],
"collection": [
{
"href": "https://marketplace.ganjaran.app/wp-json/wc/v3/products/categories"
}
]
}
},
{
"id": 222,
"name": "Celana",
"slug": "celana",
"parent": 0,
"description": "",
"display": "default",
"image": null,
"menu_order": 0,
"count": 0,
"_links": {
"self": [
{
"href": "https://marketplace.ganjaran.app/wp-json/wc/v3/products/categories/222"
}
],
"collection": [
{
"href": "https://marketplace.ganjaran.app/wp-json/wc/v3/products/categories"
}
]
}
},
{
"id": 225,
"name": "Elektronik",
"slug": "elektronik",
"parent": 0,
"description": "",
"display": "default",
"image": null,
"menu_order": 0,
"count": 0,
"_links": {
"self": [
{
"href": "https://marketplace.ganjaran.app/wp-json/wc/v3/products/categories/225"
}
],
"collection": [
{
"href": "https://marketplace.ganjaran.app/wp-json/wc/v3/products/categories"
}
]
}
},
{
"id": 226,
"name": "Makanan",
"slug": "makanan",
"parent": 0,
"description": "",
"display": "default",
"image": null,
"menu_order": 0,
"count": 2,
"_links": {
"self": [
{
"href": "https://marketplace.ganjaran.app/wp-json/wc/v3/products/categories/226"
}
],
"collection": [
{
"href": "https://marketplace.ganjaran.app/wp-json/wc/v3/products/categories"
}
]
}
},
{
"id": 218,
"name": "Pakaian",
"slug": "pakaian",
"parent": 0,
"description": "",
"display": "default",
"image": null,
"menu_order": 0,
"count": 0,
"_links": {
"self": [
{
"href": "https://marketplace.ganjaran.app/wp-json/wc/v3/products/categories/218"
}
],
"collection": [
{
"href": "https://marketplace.ganjaran.app/wp-json/wc/v3/products/categories"
}
]
}
},
{
"id": 227,
"name": "Produk Digital",
"slug": "produk-digital",
"parent": 0,
"description": "",
"display": "default",
"image": null,
"menu_order": 0,
"count": 0,
"_links": {
"self": [
{
"href": "https://marketplace.ganjaran.app/wp-json/wc/v3/products/categories/227"
}
],
"collection": [
{
"href": "https://marketplace.ganjaran.app/wp-json/wc/v3/products/categories"
}
]
}
},
{
"id": 220,
"name": "Sepatu",
"slug": "sepatu",
"parent": 0,
"description": "",
"display": "default",
"image": null,
"menu_order": 0,
"count": 0,
"_links": {
"self": [
{
"href": "https://marketplace.ganjaran.app/wp-json/wc/v3/products/categories/220"
}
],
"collection": [
{
"href": "https://marketplace.ganjaran.app/wp-json/wc/v3/products/categories"
}
]
}
},
{
"id": 219,
"name": "Tas",
"slug": "tas",
"parent": 0,
"description": "",
"display": "default",
"image": null,
"menu_order": 0,
"count": 0,
"_links": {
"self": [
{
"href": "https://marketplace.ganjaran.app/wp-json/wc/v3/products/categories/219"
}
],
"collection": [
{
"href": "https://marketplace.ganjaran.app/wp-json/wc/v3/products/categories"
}
]
}
},
{
"id": 223,
"name": "Topi",
"slug": "topi",
"parent": 0,
"description": "",
"display": "default",
"image": null,
"menu_order": 0,
"count": 1,
"_links": {
"self": [
{
"href": "https://marketplace.ganjaran.app/wp-json/wc/v3/products/categories/223"
}
],
"collection": [
{
"href": "https://marketplace.ganjaran.app/wp-json/wc/v3/products/categories"
}
]
}
}
]
}Get Products
GET /commerce/products
Query Parameters
page
Integer
Current page of the collection. Default is 1.
per_page
Integer
Maximum number of items to be returned in result set. Default is 10.
category
String
Limit result set to products assigned a specific category ID.
q
String
Limit results to those matching a string.
order
String
Order sort attribute ascending or descending. Options: asc and desc. Default is desc.
orderby
String
Sort collection by object attribute. Options: date, id, include, title, slug, price, popularity and rating. Default is date.
show_all
Boolean
Options either (true or false), show all products
Headers
Client-Key*
String
Your client key
Get Product Detail
GET /commerce/products/{id}
Path Parameters
id*
Integer
Id of the product
Headers
Client-Key*
String
Your client key
Last updated