cURL
curl --request GET \ --url https://{cluster}.voucherify.io/management/v1/projects/{projectId}/metadata-schemas/{metadataSchemaId} \ --header 'X-Management-Id: <api-key>' \ --header 'X-Management-Token: <api-key>'
{ "id": "ms_f1r5Tm3ta6a4a5ch3ma", "related_object": "order", "properties": { "region": { "type": "string", "array": false, "optional": true, "object_type": null, "eq": [ "EU", "US", "EMEA", "APAC" ] }, "location_id": { "type": "string", "array": true, "optional": true, "object_type": null, "eq": [ "L1", "L2", "L3" ] }, "payment_mean": { "type": "string", "array": true, "optional": true, "object_type": null, "eq": [ "credit-card", "wire-transfer", "paypal" ] }, "booking_end_date": { "type": "datetime", "array": false, "optional": true, "object_type": null }, "booking_start_date": { "type": "datetime", "array": false, "optional": true, "object_type": null } }, "allow_defined_only": false, "created_at": "2023-08-03T10:37:48.662Z", "updated_at": "2023-08-28T11:24:43.518Z", "object": "metadata_schema" }
Retrieves a metadata schema.
๐ Metadata Documentation Read the Getting Started with Metadata and Metadata Mapping articles to learn how metadata work in Voucherify.
๐ Metadata Documentation
Read the Getting Started with Metadata and Metadata Mapping articles to learn how metadata work in Voucherify.
Show child attributes
Was this page helpful?