Method: VoucherifySdk::MetadataSchemasApi#get_metadata_schema
- Defined in:
- lib/VoucherifySdk/api/metadata_schemas_api.rb
#get_metadata_schema(resource, opts = {}) ⇒ MetadataSchemasGetResponseBody
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](support.voucherify.io/article/99-schema-validation-metadata#add-metadata), 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.
27 28 29 30 |
# File 'lib/VoucherifySdk/api/metadata_schemas_api.rb', line 27 def (resource, opts = {}) data, _status_code, _headers = (resource, opts) data end |