Skip to content

List listing metafields

GET
/listings/{id}/metafields
curl --request GET \
--url https://acme.mykreezalid.com/api/v1/listings/1/metafields \
--header 'Authorization: Basic <credentials>'

Returns the metafields attached to a listing.

id
required
integer

ID of your listing

The metafields of the listing

Media typeapplication/json
object
metafields
Array<object>

A custom value you attach to a resource, identified by its namespace and title.

object
namespace
required

Group the metafield belongs to

string
title
required

Name of the metafield, unique within its namespace

string
value
required

Value of the metafield. Usually a string; it can be returned as a number or a JSON value depending on how the metafield was defined.

string

Example

{
"metafields": [
{
"namespace": "erp",
"title": "warehouse_code",
"value": "WH-42"
}
]
}

Missing or wrong API credentials

No listing has this identifier