{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/byrd/json-schema/byrd-b2-bconfig-detail-schema.json",
  "title": "B2B config detail",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/byrd-account-api-openapi.yml#/components/schemas/B2BConfigDetail",
  "type": "object",
  "properties": {
    "customerInput": {
      "type": "string",
      "description": "Values you entered for the fields of the template, keyed by field name as defined in its `customerInputSchema`."
    },
    "template": {
      "description": "Template the configuration uses, translated into the requested language.",
      "allOf": [
        {
          "$ref": "#/$defs/Template"
        }
      ]
    }
  },
  "$defs": {
    "Template": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "Key of the template, e.g. `amazon`; send it as `b2b_config.template_key` when you create a B2B shipment with `POST /v3/shipments`. Stays the same across template versions."
        },
        "title": {
          "type": "string",
          "readOnly": true,
          "description": "Name of the template, in the requested language."
        },
        "description": {
          "type": "string",
          "readOnly": true,
          "description": "Description of the template, in the requested language."
        },
        "warehouseInstructionsHTML": {
          "type": "string",
          "readOnly": true,
          "description": "Instructions the warehouse follows to prepare shipments with this template, as simple HTML, in the requested language."
        },
        "customerInputSchema": {
          "type": "object",
          "readOnly": true,
          "description": "Fields to fill in `b2b_config.customer_input` of `POST /v3/shipments` when you use the template, keyed by field name. Each field is a JSON Schema definition (type and constraints such as `enum`, `pattern`, `minimum`) with a translated `label` and `description`."
        },
        "requiredInputFields": {
          "type": "array",
          "readOnly": true,
          "items": {
            "type": "string"
          },
          "description": "Names of the `customerInputSchema` fields you must fill in."
        }
      },
      "title": "Template"
    }
  }
}