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

# Get Ref

> La fotografia con i prezzi e la disponibilità di oggi. `code` accetta
`W-7F3K`, `7F3K`, minuscole. La prima apertura scrive `opened`. 404
`whatsapp.ref_not_found`.



## OpenAPI

````yaml https://api.vellaro.io/openapi/admin.json get /api/v1/admin/whatsapp/refs/{code}
openapi: 3.1.0
info:
  title: Vellaro Admin API
  description: >-
    Store management under `/api/v1/admin`, for back ends and integrations.
    Every call takes `Authorization: Bearer <token>`: an admin API token or a
    staff user's token. The permissions of its role decide what it can do,
    always in its own store.
  version: 0.1.0
servers:
  - url: https://api.vellaro.io
    description: Produzione
security: []
tags:
  - name: Orders
    description: >-
      Orders and manual orders, payments, refunds, shipments, invoices, returns,
      customer subscriptions.
  - name: Products
    description: Products, variants, images, prices and discounts, product lookups.
  - name: Categories & catalog setup
    description: >-
      Categories, brands, attributes, options, filters, downloadable files,
      recurring profiles.
  - name: Inventory
    description: Stock of the variants and stock statuses.
  - name: Customers
    description: Customers, customer groups, custom fields.
  - name: Reviews & questions
    description: Moderation of product reviews and questions.
  - name: Promotions & coupons
    description: Coupons and gift vouchers.
  - name: Marketing
    description: Campaigns, newsletter subscribers, affiliates and their commissions.
  - name: Content
    description: >-
      CMS pages, menus, banners, information pages, flipbooks, media library,
      SEO URLs, email templates, translations.
  - name: Settings
    description: >-
      Store settings, email delivery, languages, currencies, physical stores,
      social login providers.
  - name: Shipping
    description: Couriers, shipping rates, weight and length classes.
  - name: Taxes & geo
    description: Tax classes, rates and rules; countries, zones and geo zones.
  - name: Integrations & modules
    description: >-
      Integrations, plugins and modules (Iute, extra warranty, Nextera, Financa
      5, WhatsApp, Firebase), outbound webhooks.
  - name: AI
    description: AI content generation and the settings of the AI shopping assistant.
  - name: Imports
    description: 'CSV imports and the universal import: runs, mappings, previews, undo.'
  - name: Reports & dashboard
    description: Dashboard figures and reports.
  - name: Users & API keys
    description: Staff users and roles, publishable keys, admin API tokens.
  - name: Audit
    description: The store's audit log.
paths:
  /api/v1/admin/whatsapp/refs/{code}:
    get:
      tags:
        - Integrations & modules
      summary: Get Ref
      description: |-
        La fotografia con i prezzi e la disponibilità di oggi. `code` accetta
        `W-7F3K`, `7F3K`, minuscole. La prima apertura scrive `opened`. 404
        `whatsapp.ref_not_found`.
      operationId: get_ref_api_v1_admin_whatsapp_refs__code__get
      parameters:
        - name: code
          in: path
          required: true
          schema:
            type: string
            title: Code
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse_RefDetailOut_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ApiResponse_RefDetailOut_:
      properties:
        data:
          anyOf:
            - $ref: '#/components/schemas/RefDetailOut'
            - type: 'null'
        meta:
          anyOf:
            - $ref: '#/components/schemas/PaginationMeta'
            - type: 'null'
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Code
      type: object
      title: ApiResponse[RefDetailOut]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RefDetailOut:
      properties:
        code:
          type: string
          title: Code
        display_code:
          type: string
          title: Display Code
        status:
          type: string
          title: Status
        created_at:
          type: string
          format: date-time
          title: Created At
        expires_at:
          type: string
          format: date-time
          title: Expires At
        item_count:
          type: integer
          title: Item Count
        line_count:
          type: integer
          title: Line Count
        subtotal:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Subtotal
        currency:
          type: string
          title: Currency
        display_currency:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Currency
        display_rate:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Display Rate
        locale:
          anyOf:
            - type: string
            - type: 'null'
          title: Locale
        priced_for_account:
          type: boolean
          title: Priced For Account
        opened_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Opened At
        order_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Order Id
        order_trashed:
          type: boolean
          title: Order Trashed
          default: false
        converted_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Converted At
        converted_via:
          anyOf:
            - type: string
            - type: 'null'
          title: Converted Via
        preview:
          items:
            type: string
          type: array
          title: Preview
        lines:
          items:
            $ref: '#/components/schemas/RefLineDetail'
          type: array
          title: Lines
        subtotal_now:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Subtotal Now
        total_changed:
          type: boolean
          title: Total Changed
        all_available:
          type: boolean
          title: All Available
      type: object
      required:
        - code
        - display_code
        - status
        - created_at
        - expires_at
        - item_count
        - line_count
        - subtotal
        - currency
        - display_currency
        - display_rate
        - locale
        - priced_for_account
        - opened_at
        - order_id
        - converted_at
        - converted_via
        - preview
        - lines
        - subtotal_now
        - total_changed
        - all_available
      title: RefDetailOut
    PaginationMeta:
      properties:
        page:
          type: integer
          title: Page
        page_size:
          type: integer
          title: Page Size
        total:
          type: integer
          title: Total
        total_pages:
          type: integer
          title: Total Pages
      type: object
      required:
        - page
        - page_size
        - total
        - total_pages
      title: PaginationMeta
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    RefLineDetail:
      properties:
        variant_id:
          type: string
          format: uuid
          title: Variant Id
        product_id:
          type: string
          format: uuid
          title: Product Id
        sku:
          type: string
          title: Sku
        product_name:
          type: string
          title: Product Name
        variant_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Variant Label
        attributes:
          additionalProperties: true
          type: object
          title: Attributes
        qty:
          type: integer
          title: Qty
        unit_price_then:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Unit Price Then
        line_total_then:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Line Total Then
        unit_price_now:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Unit Price Now
        line_total_now:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Line Total Now
        price_changed:
          type: boolean
          title: Price Changed
        availability:
          $ref: '#/components/schemas/RefAvailability'
      type: object
      required:
        - variant_id
        - product_id
        - sku
        - product_name
        - variant_label
        - attributes
        - qty
        - unit_price_then
        - line_total_then
        - unit_price_now
        - line_total_now
        - price_changed
        - availability
      title: RefLineDetail
    RefAvailability:
      properties:
        status:
          type: string
          title: Status
        stock:
          anyOf:
            - type: integer
            - type: 'null'
          title: Stock
        track_inventory:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Track Inventory
        allow_backorder:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Allow Backorder
      type: object
      required:
        - status
        - stock
        - track_inventory
        - allow_backorder
      title: RefAvailability
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.