{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/benjipays-com/json-schema/benjipays-com-create-partner-response-schema.json",
  "title": "CreatePartnerResponse",
  "description": "Create partner response",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/benjipays-com-benji-pays-partner-api-openapi.yml#/components/schemas/CreatePartnerResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Partner identifier (same value as path `partnerId`)"
        },
        "distributorExternalId": {
          "type": "string",
          "description": "Parent distributor external ID"
        },
        "name": {
          "type": "string",
          "description": "Company/partner name"
        },
        "externalId": {
          "type": "string",
          "description": "External ID from distributor's system"
        },
        "country": {
          "description": "ISO 3166-1 alpha-2 country code",
          "type": "string"
        },
        "status": {
          "type": "string",
          "description": "Partner status"
        },
        "createdAt": {
          "type": "string",
          "description": "ISO 8601 timestamp when partner was created"
        },
        "contact": {
          "description": "Primary contact information",
          "type": "object",
          "properties": {
            "email": {
              "type": "string",
              "description": "Contact email address"
            },
            "name": {
              "type": "string",
              "description": "Contact name"
            }
          },
          "required": [
            "email",
            "name"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "id",
        "distributorExternalId",
        "name",
        "externalId",
        "status",
        "createdAt"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "data"
  ],
  "additionalProperties": false
}