Metadata Schemas
Get Metadata Schema
Retrieves a metadata schema per resource type.
Resource types
Standard
You can retrieve metadata schemas for the standard metadata schema definitions listed below. Add one of these types as the resource path parameter.
- campaign
- customer
- earning_rule
- loyalty_tier
- order
- order_item
- product
- promotion_tier
- publication
- redemption
- reward
- voucher
Custom
If you have defined a custom metadata schema, provide its name in the "resource" field to retrieve its details.
📘 Management API
If you have Management API enabled, you can also use the Get Metadata Schemas endpoint to retrieve a metadata schema using its ID.
get/v1/metadata-schemas/{resource}
Response
The response does not include unknown metadata properties in the response, i.e. those that have been defined outside of the Project Settings > Metadata Schema definitions. For example, an unknown metadata property can be defined in the campaign manager.
Example response
{
"created_at": "2021-12-03T13:33:44.556Z",
"updated_at": "2022-08-11T08:05:30.695Z"
}