Mercado Pago · Schema

Mercado Pago Checkout Preference

Checkout Pro preference resource.

PaymentsCheckoutSubscriptionsPOSQRPIXSDKsWalletAcquiringLendingIssuingLatin AmericaBrazilArgentinaMexicoChileColombiaPeruUruguayFintech

Properties

Name Type Description
id string
client_id string
collector_id integer
date_created string
external_reference string
init_point string
sandbox_init_point string
auto_return string
notification_url string
items array
back_urls object
View JSON Schema on GitHub

JSON Schema

mercado-pago-preference-schema.json Raw ↑
{
  "$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" }
      }
    }
  }
}