# Get purchaseorder

Returns a single Purchaseorder by its unique identifier.

Endpoint: GET /site/{siteId}/ahds/v1/purchaseorder/{purchaseorderId}
Version: 1.0
Security: bearer

## Security:

  - `bearer` (unknown)
    http bearer JWT

## Path parameters:

  - `siteId` (number, required)
    Site identifier

  - `purchaseorderId` (string, required)
    Purchaseorder unique identifier (UUID)

## Response 200:

  - `200` (unknown)
    Purchaseorder found

## Response 200 fields (application/json):

  - `clientId` (string, required)
    Client associated with this purchase order, if applicable.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `comments` (string, required)
    Free-text comments on the purchase order.
    Example: example

  - `createdAt` (string, required)
    Timestamp when the purchase order was created.
    Example: 2025-01-01T00:00:00.000Z

  - `extensions` (object, required)
    Vendor- or practice-specific extensions.

  - `freightAmount` (string, required)
    Freight amount as a decimal string.
    Example: 100.00

  - `freightTaxAmount` (string, required)
    Tax amount applicable to freight.
    Example: 100.00

  - `isActive` (boolean, required)
    Whether the purchase order is active.
    Example: true

  - `orderDate` (string, required)
    Calendar date of the purchase order.
    Example: 2025-01-01T00:00:00Z

  - `ownershipId` (string, required)
    Ownership or business unit identifier associated with this purchase order.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `purchaseOrderItemIds` (array, required)
    List of purchase order item identifiers associated with this purchase order.

  - `purchaseorderId` (string, required)
    Canonical identifier for the purchase order.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `shippingAddressId` (string, required)
    Reference to the shipping address resource.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `status` (string, required)
    Status of the purchase order.
    Enum: "draft", "submitted", "confirmed", "partiallyReceived", "received", "cancelled"

  - `supplierAccountNumber` (string, required)
    Account number with the supplier.
    Example: example

  - `supplierId` (string, required)
    Supplier from whom the order is placed.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `supplierOrderNumber` (string, required)
    Supplier-provided order number.
    Example: 123e4567-e89b-12d3-a456-426614174000

  - `taxAmount` (string, required)
    Total tax amount for the purchase order.
    Example: 100.00

  - `totalAmount` (string, required)
    Total amount for the purchase order including tax.
    Example: 100.00

  - `updatedAt` (string, required)
    Timestamp when the purchase order was last modified.
    Example: 2025-01-01T00:00:00.000Z

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 404:

  - `404` (unknown)
    Purchaseorder not found

