Conekta · Schema

Conekta Customer

A Conekta customer profile. Holds payment sources, shipping contacts, and subscription state for recurring billing.

PaymentsPayment ProcessingCardsCashOXXOSPEIMexicoLatin AmericaLATAMFintechSubscriptionsAntifraudCheckoutBNPL3D Secure

Properties

Name Type Description
id string Conekta-assigned customer identifier (cus_...).
object string
livemode boolean
name string
email string
phone string
corporate boolean
plan_id string
default_payment_source_id string
default_shipping_contact_id string
antifraud_info object
payment_sources object
shipping_contacts object
subscription object
metadata object
created_at integer
View JSON Schema on GitHub

JSON Schema

conekta-customer-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/conekta/main/json-schema/conekta-customer-schema.json",
  "title": "Conekta Customer",
  "description": "A Conekta customer profile. Holds payment sources, shipping contacts, and subscription state for recurring billing.",
  "type": "object",
  "required": ["name", "email"],
  "properties": {
    "id": { "type": "string", "description": "Conekta-assigned customer identifier (cus_...)." },
    "object": { "type": "string", "const": "customer" },
    "livemode": { "type": "boolean" },
    "name": { "type": "string" },
    "email": { "type": "string", "format": "email" },
    "phone": { "type": "string" },
    "corporate": { "type": "boolean" },
    "plan_id": { "type": "string" },
    "default_payment_source_id": { "type": "string" },
    "default_shipping_contact_id": { "type": "string" },
    "antifraud_info": {
      "type": "object",
      "properties": {
        "account_created_at": { "type": "integer" },
        "first_paid_at": { "type": "integer" }
      }
    },
    "payment_sources": {
      "type": "object",
      "properties": {
        "object": { "type": "string" },
        "has_more": { "type": "boolean" },
        "total": { "type": "integer" },
        "data": {
          "type": "array",
          "items": { "type": "object" }
        }
      }
    },
    "shipping_contacts": {
      "type": "object",
      "properties": {
        "object": { "type": "string" },
        "has_more": { "type": "boolean" },
        "total": { "type": "integer" },
        "data": {
          "type": "array",
          "items": { "type": "object" }
        }
      }
    },
    "subscription": {
      "type": "object",
      "properties": {
        "id": { "type": "string" },
        "status": { "type": "string", "enum": ["in_trial", "active", "past_due", "paused", "canceled"] },
        "plan_id": { "type": "string" },
        "billing_cycle_start": { "type": "integer" },
        "billing_cycle_end": { "type": "integer" }
      }
    },
    "metadata": { "type": "object", "additionalProperties": true },
    "created_at": { "type": "integer" }
  }
}