> ## Documentation Index
> Fetch the complete documentation index at: https://omniflow-vpn.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Post v1accountorders refresh

> Re-reads the provider so a customer who returns before the webhook arrives still sees the settled state.



## OpenAPI

````yaml https://raw.githubusercontent.com/kewldan/omniflow/main/api/openapi.yaml post /v1/account/orders/{orderID}/refresh
openapi: 3.0.3
info:
  title: Omniflow API
  version: 1.0.0
  description: >-
    Customer, commerce, payment, wallet, fulfillment, and operations API for
    Omniflow.
servers: []
security: []
paths:
  /v1/account/orders/{orderID}/refresh:
    post:
      tags:
        - account
      description: >-
        Re-reads the provider so a customer who returns before the webhook
        arrives still sees the settled state.
      operationId: refreshAccountOrder
      parameters:
        - $ref: '#/components/parameters/OrderID'
        - $ref: '#/components/parameters/CSRFToken'
      responses:
        '200':
          description: Order
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountOrder'
        '404':
          $ref: '#/components/responses/Problem'
components:
  parameters:
    OrderID:
      in: path
      name: orderID
      required: true
      schema:
        type: string
        format: uuid
    CSRFToken:
      in: header
      name: X-CSRF-Token
      required: true
      description: >-
        Echoes the token from the current session. Required on every unsafe
        method.
      schema:
        type: string
  schemas:
    AccountOrder:
      type: object
      required:
        - id
        - state
        - operation
        - phase
        - currency
        - subtotalMinor
        - discountMinor
        - walletMinor
        - externalMinor
        - paidMinor
        - refundedMinor
        - plan
        - createdAt
      properties:
        id:
          type: string
          format: uuid
        state:
          type: string
          enum:
            - draft
            - pending
            - paid
            - fulfilled
            - cancelled
            - expired
            - partially_refunded
            - refunded
        operation:
          type: string
        phase:
          type: string
          description: >-
            The combined payment and provisioning state the panel renders: what
            the customer is waiting for, rather than which table changed.
        currency:
          type: string
        subtotalMinor:
          type: integer
          format: int64
        discountMinor:
          type: integer
          format: int64
        walletMinor:
          type: integer
          format: int64
        externalMinor:
          type: integer
          format: int64
        paidMinor:
          type: integer
          format: int64
        refundedMinor:
          type: integer
          format: int64
        plan:
          type: string
        subscriptionId:
          type: string
        createdAt:
          type: string
          format: date-time
        expiresAt:
          type: string
          format: date-time
        payment:
          type: object
          required:
            - id
            - provider
            - status
            - handoff
          properties:
            id:
              type: string
              format: uuid
            provider:
              type: string
            status:
              type: string
            handoff:
              type: string
              enum:
                - hosted
                - telegram_invoice
                - manual
                - none
            checkoutUrl:
              type: string
            receiptUrl:
              type: string
        fulfillment:
          type: object
          description: >-
            Provisioning progress, read from the fulfillment operation rather
            than carried by the client.
          required:
            - status
            - attempts
          properties:
            status:
              type: string
            attempts:
              type: integer
            errorCode:
              type: string
            updatedAt:
              type: string
              format: date-time
        refunds:
          type: array
          items:
            type: object
            required:
              - status
              - amountMinor
              - currency
              - createdAt
            properties:
              status:
                type: string
              amountMinor:
                type: integer
                format: int64
              currency:
                type: string
              createdAt:
                type: string
                format: date-time
        paymentChoices:
          type: array
          description: >-
            The methods that can settle this order in its currency, each priced
            at what the order still owes. Present on the detail response while
            the order is pending and owes something, so the page can offer a
            method without depending on the URL the checkout redirected to.
            Telegram Stars appears only for a customer with a Telegram identity.
          items:
            $ref: '#/components/schemas/AccountPaymentChoice'
        preferredProvider:
          type: string
          description: >-
            The method the checkout recorded, while that checkout is still
            attached to the order.
    AccountPaymentChoice:
      type: object
      required:
        - provider
        - currency
        - recurring
      properties:
        provider:
          type: string
        currency:
          type: string
        amountMinor:
          type: integer
          format: int64
        recurring:
          type: boolean
    Problem:
      type: object
      required:
        - type
        - title
        - status
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        request_id:
          type: string
  responses:
    Problem:
      description: Request failed
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'

````

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