{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/mercado-pago/refs/heads/main/json-schema/mercado-pago-preference-schema.json", "title": "Mercado Pago Checkout Preference", "description": "Checkout Pro preference resource.", "type": "object", "required": ["items"], "properties": { "id": { "type": "string" }, "client_id": { "type": "string" }, "collector_id": { "type": "integer" }, "date_created": { "type": "string", "format": "date-time" }, "external_reference": { "type": "string" }, "init_point": { "type": "string", "format": "uri" }, "sandbox_init_point": { "type": "string", "format": "uri" }, "auto_return": { "type": "string", "enum": ["approved", "all"] }, "notification_url": { "type": "string", "format": "uri" }, "items": { "type": "array", "minItems": 1, "items": { "type": "object", "required": ["title", "quantity", "unit_price"], "properties": { "id": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "picture_url": { "type": "string", "format": "uri" }, "category_id": { "type": "string" }, "quantity": { "type": "integer", "minimum": 1 }, "currency_id": { "type": "string" }, "unit_price": { "type": "number", "minimum": 0 } } } }, "back_urls": { "type": "object", "properties": { "success": { "type": "string", "format": "uri" }, "pending": { "type": "string", "format": "uri" }, "failure": { "type": "string", "format": "uri" } } } } }