Conekta · Schema

Conekta Order

Top-level transaction object in the Conekta API. Groups line items, charges, customer info, shipping, taxes, and discounts.

PaymentsPayment ProcessingCardsCashOXXOSPEIMexicoLatin AmericaFintechSubscriptionFraud PreventionCheckoutBuy Now Pay Later3D Secure

Properties

Name Type Description
id string Conekta-assigned order identifier (ord_...).
object string
livemode boolean Indicates whether the order was created in live or test mode.
currency string ISO 4217 currency code. MXN is most common.
customer_info object
line_items array
charges array
discount_lines array
tax_lines array
shipping_lines array
shipping_contact object
payment_status string
amount integer
amount_refunded integer
metadata object
created_at integer Unix epoch in seconds.
updated_at integer
View JSON Schema on GitHub

JSON Schema

conekta-order-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/conekta/main/json-schema/conekta-order-schema.json",
  "title": "Conekta Order",
  "description": "Top-level transaction object in the Conekta API. Groups line items, charges, customer info, shipping, taxes, and discounts.",
  "type": "object",
  "required": ["currency", "line_items"],
  "properties": {
    "id": {
      "type": "string",
      "description": "Conekta-assigned order identifier (ord_...)."
    },
    "object": {
      "type": "string",
      "const": "order"
    },
    "livemode": {
      "type": "boolean",
      "description": "Indicates whether the order was created in live or test mode."
    },
    "currency": {
      "type": "string",
      "description": "ISO 4217 currency code. MXN is most common.",
      "examples": ["MXN", "USD"]
    },
    "customer_info": {
      "type": "object",
      "properties": {
        "customer_id": { "type": "string" },
        "name": { "type": "string" },
        "email": { "type": "string", "format": "email" },
        "phone": { "type": "string" }
      }
    },
    "line_items": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": ["name", "unit_price", "quantity"],
        "properties": {
          "name": { "type": "string" },
          "description": { "type": "string" },
          "unit_price": { "type": "integer", "description": "Amount in the smallest currency unit (centavos for MXN)." },
          "quantity": { "type": "integer", "minimum": 1 },
          "sku": { "type": "string" },
          "tags": { "type": "array", "items": { "type": "string" } }
        }
      }
    },
    "charges": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "payment_method": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": ["card", "default", "cash", "spei", "bnpl"]
              },
              "token_id": { "type": "string" },
              "expires_at": { "type": "integer" }
            }
          },
          "amount": { "type": "integer" }
        }
      }
    },
    "discount_lines": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": { "type": "string" },
          "amount": { "type": "integer" },
          "type": { "type": "string", "enum": ["loyalty", "campaign", "coupon"] }
        }
      }
    },
    "tax_lines": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "description": { "type": "string" },
          "amount": { "type": "integer" }
        }
      }
    },
    "shipping_lines": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "amount": { "type": "integer" },
          "tracking_number": { "type": "string" },
          "carrier": { "type": "string" },
          "method": { "type": "string" }
        }
      }
    },
    "shipping_contact": {
      "type": "object",
      "properties": {
        "receiver": { "type": "string" },
        "phone": { "type": "string" },
        "address": {
          "type": "object",
          "properties": {
            "street1": { "type": "string" },
            "city": { "type": "string" },
            "state": { "type": "string" },
            "postal_code": { "type": "string" },
            "country": { "type": "string" }
          }
        }
      }
    },
    "payment_status": {
      "type": "string",
      "enum": ["pending_payment", "paid", "partially_paid", "declined", "expired", "refunded", "canceled"]
    },
    "amount": { "type": "integer" },
    "amount_refunded": { "type": "integer" },
    "metadata": { "type": "object", "additionalProperties": true },
    "created_at": { "type": "integer", "description": "Unix epoch in seconds." },
    "updated_at": { "type": "integer" }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/conekta-order"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.