{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fedex/json-schema/fedex-v1-endofday-body-schema.json",
  "title": "v1_endofday_body",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fedex-close-api-openapi.yml#/components/schemas/v1_endofday_body",
  "oneOf": [
    {
      "$ref": "#/$defs/FullSchema_GEOD_PUT"
    },
    {
      "$ref": "#/$defs/MinimumSamplePayload-Put-GroundClose"
    }
  ],
  "$defs": {
    "AccountNumber_2": {
      "description": "This is the FedEx Account number. <br>Example: XXX456XXX",
      "allOf": [
        {
          "$ref": "#/$defs/CloseAccountNumber"
        }
      ]
    },
    "CloseAccountNumber": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "description": "Conditional.<br> The account number value. Max Length is 9.<br>Example: 123456789"
        }
      },
      "description": "The account number for closing the  shipment."
    },
    "CloseDocumentSpecification": {
      "type": "object",
      "properties": {
        "closeDocumentTypes": {
          "type": "array",
          "description": "Indicated the type of close documents requested by the caller. <br> Example: OP_950",
          "items": {
            "type": "string",
            "enum": [
              "MANIFEST",
              "OP_950"
            ]
          }
        },
        "op950Detail": {
          "$ref": "#/$defs/Op950Detail"
        }
      },
      "description": "Specifies characteristics of the document to be returned for this request."
    },
    "FullSchema_GEOD_PUT": {
      "type": "object",
      "properties": {
        "closeReqType": {
          "type": "string",
          "description": "Specify the close request type to initiate processing of shipment data.For ground close the closeReqType is GCDR and for Reprint EndofDay the applicable value is RGCDR.",
          "enum": [
            "GCDR",
            "RGCDR"
          ]
        },
        "accountNumber": {
          "$ref": "#/$defs/AccountNumber_2"
        },
        "groundServiceCategory": {
          "type": "string",
          "description": "This is to specify FedEx ground category for which the shipment to be submitted for end of the day closing.",
          "enum": [
            "GROUND"
          ]
        },
        "closeDate": {
          "type": "string",
          "description": "Indicates the close date. <br> Example: 2020-05-05"
        },
        "trackingNumber": {
          "type": "string",
          "description": "Specify the tracking number for reprinting the report.It is only applicable for reprint EndofDay and its not applicable for ground EndofDay close endpoint. <br> Example: 7XX96XX42946"
        },
        "reprintOption": {
          "type": "string",
          "description": "Specify the reprint option to generate report. Either by close date or a tracking number.It is only applicable for reprint EndofDay and its not applicable for ground EndofDay close endpoint.",
          "enum": [
            "BY_SHIP_DATE",
            "BY_TRACKING_NUMBER"
          ]
        },
        "closeDocumentSpecification": {
          "$ref": "#/$defs/CloseDocumentSpecification"
        },
        "version": {
          "$ref": "#/$defs/Version"
        }
      }
    },
    "MinimumSamplePayload-Put-GroundClose": {},
    "Op950Detail": {
      "type": "object",
      "properties": {
        "format": {
          "$ref": "#/$defs/Op950Detail_format"
        }
      }
    },
    "Op950Detail_format": {
      "type": "object",
      "properties": {
        "topOfPageOffset": {
          "$ref": "#/$defs/Op950Detail_format_topOfPageOffset"
        },
        "imageType": {
          "type": "string",
          "description": "Specify the image format used for a shipping document.",
          "enum": [
            "DIB",
            "DOC",
            "DPL",
            "EPL2",
            "GIF",
            "PDF",
            "PNG",
            "RTF",
            "TEXT",
            "ZPLII"
          ]
        },
        "stockType": {
          "type": "string",
          "description": "Specifies the label stock type.  Lists the correct type of paper for the Freight address label option.Specify valid value PAPER_4_PER_PAGE_PORTRAIT",
          "enum": [
            "OP_900_LG",
            "OP_900_LG_B",
            "OP_900_LL",
            "OP_900_LL_B",
            "OP_950",
            "PAPER_4_PER_PAGE_PORTRAIT",
            "PAPER_4X6",
            "PAPER_LETTER",
            "STOCK_4X6",
            "STOCK_4X6.75_LEADING_DOC_TAB",
            "STOCK_4X6.75_TRAILING_DOC_TAB",
            "STOCK_4X8",
            "STOCK_4X9_LEADING_DOC_TAB",
            "STOCK_4X9_TRAILING_DOC_TAB"
          ]
        },
        "locale": {
          "type": "string",
          "description": "this is the language and language locale code for the email<br>Example: en_US, fr_CA, es_MX"
        }
      }
    },
    "Op950Detail_format_topOfPageOffset": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "description": "The numeric quantity of this measurement."
        },
        "units": {
          "type": "string",
          "description": "The units for this measurement.",
          "enum": [
            "CM",
            "IN"
          ]
        }
      },
      "description": "Specifies how far down the page to move the begining of the image; allows for printing on letterhead and pre printed stock."
    },
    "Version": {
      "type": "object",
      "properties": {
        "major": {
          "description": "This version is incremented when significant changes are made to the API functionality. These could be breaking changes and might require code-adjustments from clients. Accepts only numbers",
          "type": "integer"
        },
        "minor": {
          "description": "This represents a backward-compatible bug fix or minor adjustment to an existing API functionality. This is the second number in API versioning scheme. Accepts only numbers",
          "type": "integer"
        },
        "patch": {
          "description": "This represents a backward-compatible bug fix or minor adjustment to an existing API functionality. This is the third number in API versioning scheme. Accepts only numbers",
          "type": "integer"
        }
      }
    }
  }
}