> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upwell.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get One Document

> Get a document by id — the status check for API uploads. `status` of `UPLOAD_CONTENT_REJECTED` means the uploaded bytes failed content verification (not a valid PDF) and the document will never be parsed; re-upload with a new `sourceSystemId` (rejection is terminal: re-presigning the same `sourceSystem`+`sourceSystemId` returns `400 DOCUMENT_ALREADY_UPLOADED`). A null/other status with no parsed record yet means parsing is still in progress.



## OpenAPI

````yaml /api-reference/openapi.json get /api/rest/documents/{id}
openapi: 3.1.0
info:
  description: >-
    Upwell is Accounts Receivable automation software for the logistics
    industry. We serve freight brokers, carriers, factors, and anyone who needs
    to get transportation invoices paid.


    Learn more at:


    - [Upwell.com](https://upwell.com)
  title: Upwell REST API
  version: 3.30.2
  termsOfService: https://upwell.com/legal
  contact:
    name: Upwell
    url: https://upwell.com
    email: contact@upwell.com
servers:
  - url: https://api.upwell.com
    description: Production server
  - url: https://staging.api.upwell.com
    description: Staging server
security: []
tags:
  - name: Invoice Approval
    description: Endpoints for managing customer invoice approval workflow
paths:
  /api/rest/documents/{id}:
    get:
      tags:
        - Documents
      summary: Get One Document
      description: >-
        Get a document by id — the status check for API uploads. `status` of
        `UPLOAD_CONTENT_REJECTED` means the uploaded bytes failed content
        verification (not a valid PDF) and the document will never be parsed;
        re-upload with a new `sourceSystemId` (rejection is terminal:
        re-presigning the same `sourceSystem`+`sourceSystemId` returns `400
        DOCUMENT_ALREADY_UPLOADED`). A null/other status with no parsed record
        yet means parsing is still in progress.
      parameters:
        - description: >-
            Your API key will be used for authentication of the request.
            `Authorization: YOUR_API_KEY`
          in: header
          name: authorization
          schema:
            type: string
        - description: _"id" is required (enter it either in parameters or request body)_
          in: path
          name: id
          schema:
            type: string
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  document:
                    description: Documents table
                    nullable: true
                    properties:
                      createdAt:
                        $ref: '#/components/schemas/timestamp'
                      id:
                        nullable: false
                        title: String
                        type: string
                      name:
                        nullable: true
                        title: String
                        type: string
                      status:
                        nullable: true
                        title: String
                        type: string
                      type:
                        $ref: '#/components/schemas/DocumentTypeEnum'
                    title: Documents
                    type: object
          description: Responses for GET /api/rest/documents/{id}
components:
  schemas:
    timestamp:
      nullable: false
      title: timestamp
    DocumentTypeEnum:
      enum:
        - ACCESSORIAL_RECEIPT
        - ADVANCE_REQUEST
        - AGENT_INVOICE
        - ARRIVAL_NOTICE
        - ASBESTOS_DECLARATION
        - AUSFTA
        - AUTHORITY
        - AUTH_RELEASE
        - B3_CANADIAN_ENTRY
        - BALANCE_DUE
        - BILL_OF_LADING
        - CARRIER_ACH_SETUP_FORM
        - CARRIER_BOOKING_REQUEST
        - CARRIER_INSURANCE_CERTIFICATE
        - CARRIER_INVOICE
        - CARRIER_INVOICE_SUMMARY
        - CARRIER_INVOICE_WITH_SUPPORTING_DOCUMENTATION
        - CARRIER_RATE_CONFIRMATION
        - CARRIER_W9
        - CARTAGE_ADVICE_WITH_RECEIPT
        - CERTIFICATE_OF_ORIGIN
        - CFDI
        - CLAIM
        - CLAIM_NOTICE
        - COMCHECK
        - COMMERCIAL_INVOICE
        - CONSIGNMENT_SECURITY_DECLARATION
        - CONTRACT
        - CORRECTION_NOTICE
        - COVER_SHEET
        - CREDIT_APPLICATION
        - CUSTOMER_DOCUMENTS_OTHER
        - CUSTOMER_INVOICE
        - CUSTOMER_INVOICE_WITH_SUPPORTING_DOCUMENTATION
        - CUSTOMER_RATE_CONFIRMATION
        - CUSTOMER_RELEASE
        - CUSTOMS_AUTHORITY
        - CUSTOMS_CLEARANCE_REQUEST
        - CUSTOMS_DOCUMENT
        - CUSTOMS_ENTRY_SUMMARY
        - CUSTOMS_POWER_OF_ATTORNEY
        - DANGEROUS_GOODS_DECLARATION
        - DELIVERY_ORDER
        - DELIVERY_PHOTO
        - DELIVERY_RECEIPT
        - DEMURRAGE_RECEIPT
        - DETENTION_APPROVAL
        - DOCUMENT_BUNDLE
        - DOCUMENT_PACKET
        - DRIVER_FORM
        - ELECTRONIC_INTERCHANGE_RECEIPT
        - EMAIL_APPROVAL
        - EMAIL_SIGNATURE_IMAGE
        - ESCORT_RECEIPT
        - EXIT_PASS
        - EXPORT_AUTHORITY
        - EXPORT_DECLARATION
        - FACTOR_INVOICE
        - FERRY_RECEIPT
        - FINE
        - FORM_1113_PUBLIC_VOUCHER
        - FREETIME_NOTIFICATION
        - FREIGHT_LABEL
        - FUEL_RECEIPT
        - FUMIGATION_CERTIFICATE
        - FUNDING_REQUEST_FORM
        - GATE_PASS
        - GOVERNMENT_BOL
        - HIDDEN_BOL
        - HOUSE_AIRWAY_BILL
        - HOUSE_BOL
        - HOUSE_OCEAN_BOL
        - INSPECTION_CERTIFICATE
        - INSTRUCTION_PAGE
        - INTERMODAL_IN_TRANSIT_NOTICE
        - INTERNAL_DOCUMENTS_OTHER
        - INTERNAL_PROOF_OF_DELIVERY
        - INTERNATIONAL_BOL
        - INVOICE_STATEMENT
        - ISF_FILING_INSTRUCTION
        - LAYOVER_APPROVAL
        - LETTER_OF_ASSIGNMENT
        - LETTER_OF_CREDIT
        - LUMPER_APPROVAL
        - LUMPER_RECEIPT
        - MANIFEST
        - MASTER_AIRWAY_BILL
        - MASTER_BOL
        - MASTER_OCEAN_BOL
        - MOTOR_VEHICLE_CERT
        - MSDS
        - NAFTA_CERT
        - NMFC_W_I_CERT
        - NOTICE_OF_ASSIGNMENT
        - NOTICE_OF_RELEASE
        - OTHER
        - PACKING_DECLARATION
        - PACKING_SLIP
        - PALLET_RECEIPT
        - PERMIT_TO_TRANSFER
        - PER_DIEM_RECEIPT
        - PICKUP_NUMBER
        - PRE_ALERT
        - PROFORMA_INVOICE
        - PROOF_OF_DELIVERY
        - PURCHASE_ORDER
        - REMITTANCE
        - RUN_TICKET
        - SANITARY_CERTIFICATE
        - SCALE_TICKET
        - SHIPPERS_LETTER
        - SHIPPER_SECURITY_DECLARATION
        - SOLAS_FORM
        - SPOT_QUOTE_APPROVAL
        - STEAMING_RECEIPT
        - SUPPORTING_DOCUMENTATION
        - TELEX_RELEASE
        - TOLL_RECEIPT
        - TONU_APPROVAL
        - TRACKING_STATUS
        - TRAILER_INTERCHANGE_REPORT
        - TRUCK_BOL
        - UNKNOWN
        - US_CUSTOMS_DOC
        - VENDOR_INVOICE
        - VETERINARY_CERTIFICATE
        - VGM_CONTAINER_INFO
        - VOIDED_CHECK
        - WASH_RECEIPT
        - WAYBILL
        - WEIGHT_MEASUREMENT_REPORT
        - WEIGHT_TICKET
        - WEIGHT_UNLOADED
      nullable: false
      title: DocumentTypeEnum

````