{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/byrd/json-schema/byrd-b2-bconfig-template-schema.json",
  "title": "B2B config template",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/byrd-account-api-openapi.yml#/components/schemas/B2BConfigTemplate",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "ID of the latest template version (UUID); send it as `b2b_config.template_id` when you create a B2B shipment with `POST /v3/shipments`."
    },
    "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."
    },
    "warehouseIDs": {
      "type": "array",
      "readOnly": true,
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "description": "IDs of the warehouses you can use the template in (UUIDs)."
    },
    "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."
    },
    "allowPickups": {
      "type": "boolean",
      "readOnly": true,
      "description": "Whether you may collect shipments using this template from the warehouse yourself (`pickup` service) instead of having them shipped."
    }
  }
}