Visma Purchase Order Basic API

The PurchaseOrderBasic API from Visma — 2 operation(s) for purchaseorderbasic.

Operations 4

GET /v1/purchaseorderbasic/{purchaseOrderNumber} Get a specific Purchase Order #
PUT /v1/purchaseorderbasic/{purchaseOrderNumber} Update a Purchase Order Basic #
GET /v1/purchaseorderbasic Get a range of Purchase Order - ScreenId=PO301000 Request page size must be… #
POST /v1/purchaseorderbasic Create a Purchase Order Basic #

Documentation

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/visma-purchaseorderbasic-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

visma-purchaseorderbasic-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Visma.net ERP Purchase Order Basic API
  version: v1
servers:
- url: https://api.finance.visma.net
tags:
- name: PurchaseOrderBasic
paths:
  /v1/purchaseorderbasic/{purchaseOrderNumber}:
    get:
      tags:
      - PurchaseOrderBasic
      summary: Get a specific Purchase Order
      description: 'Data for a single Purchase Order Basic.


        The response headers include an ETag after a successful GET operation.'
      operationId: PurchaseOrderBasic_GetPurchaseOrderBasicBypurchaseOrderNumber
      parameters:
      - name: purchaseOrderNumber
        in: path
        description: Identifies the Purchase Order
        required: true
        schema:
          type: string
      - name: includeCustomFreeFields
        in: query
        description: Optional parameter to request custom free fields.
        schema:
          type: boolean
      - name: erp-api-background
        in: header
        description: 'Accepts the request and queues it to be executed in the background by our least busy worker. Responds with 202 Accepted and a document containing a JobId reference and details state location.

          Supported values:

          * a URL: when the background operation is finished, a notification will be posted to the URL with a document containing a reference id, status code and a details state location.

          * "none" (without quotes): Fire and forget; no notification will be sent when background operation is finished.

          * "subscription[:<name_1>=<value_1>,..,<name_n>=<value_n>]" (without quotes): when the background operation is finsihed, a notification is posted to the Webhook subscription set up in Developer Portal for your integration client.

          Optionally a set of name-value pairs can be added. These will be sent as headers in the POST request to the Webhook subscription''s url.


          To find status and details of a background-api operation, GET .. v1/background/{id}. To get the response payload of a background-api operation, if any, GET .. v1/background/{id}/content'
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PurchaseOrderBasicDto'
            text/json:
              schema:
                $ref: '#/components/schemas/PurchaseOrderBasicDto'
        '202':
          description: Server accepted and queued the request for background execution.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BackgroundApiAcceptedDto'
            text/json:
              schema:
                $ref: '#/components/schemas/BackgroundApiAcceptedDto'
      security:
      - interactiveapi: []
    put:
      tags:
      - PurchaseOrderBasic
      summary: Update a Purchase Order Basic
      description: 'Response Message has StatusCode NoContent if PUT operation succeed.


        Response Message has StatusCode BadRequest if PUT operation failed.


        The response headers include an ETag after a successful PUT operation.'
      operationId: PurchaseOrderBasic_PutBypurchaseOrderNumber
      parameters:
      - name: purchaseOrderNumber
        in: path
        description: Identifies the Purchase Order to update
        required: true
        schema:
          type: string
      - name: erp-api-background
        in: header
        description: 'Accepts the request and queues it to be executed in the background by our least busy worker. Responds with 202 Accepted and a document containing a JobId reference and details state location.

          Supported values:

          * a URL: when the background operation is finished, a notification will be posted to the URL with a document containing a reference id, status code and a details state location.

          * "none" (without quotes): Fire and forget; no notification will be sent when background operation is finished.

          * "subscription[:<name_1>=<value_1>,..,<name_n>=<value_n>]" (without quotes): when the background operation is finsihed, a notification is posted to the Webhook subscription set up in Developer Portal for your integration client.

          Optionally a set of name-value pairs can be added. These will be sent as headers in the POST request to the Webhook subscription''s url.


          To find status and details of a background-api operation, GET .. v1/background/{id}. To get the response payload of a background-api operation, if any, GET .. v1/background/{id}/content'
        schema:
          type: string
      - name: If-Match
        in: header
        description: 'The If-Match HTTP header allows clients to update a resource only if its current version matches a specific ETag. This mechanism helps prevent conflicts when multiple clients attempt to modify the same resource simultaneously.

          The If-Match header should be included in the request headers using the following syntax: If-Match: "etag_value"

          * If the update is successful, the server responds with 204 No Content and includes the new ETag value in the response headers.

          * If the ETag on the server does not match the value provided in the If-Match header, the server responds with 412 Precondition Failed.'
        schema:
          type: string
      requestBody:
        description: Defines the data for the Purchase Order to update
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PurchaseOrderBasicUpdateDto'
          text/json:
            schema:
              $ref: '#/components/schemas/PurchaseOrderBasicUpdateDto'
          application/xml:
            schema:
              $ref: '#/components/schemas/PurchaseOrderBasicUpdateDto'
          text/xml:
            schema:
              $ref: '#/components/schemas/PurchaseOrderBasicUpdateDto'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PurchaseOrderBasicUpdateDto'
        required: true
        x-bodyName: purchaseOrderBasicUpdateDto
      responses:
        '204':
          description: NoContent
          content:
            application/json:
              schema:
                type: object
            text/json:
              schema:
                type: object
        '412':
          description: Purchase order version does not match with If-Match header
          content:
            application/json: {}
            text/json: {}
        '202':
          description: Server accepted and queued the request for background execution.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BackgroundApiAcceptedDto'
            text/json:
              schema:
                $ref: '#/components/schemas/BackgroundApiAcceptedDto'
      security:
      - interactiveapi: []
  /v1/purchaseorderbasic:
    get:
      tags:
      - PurchaseOrderBasic
      summary: Get a range of Purchase Order - ScreenId=PO301000 Request page size must be…
      operationId: PurchaseOrderBasic_GetAllOrderBasic
      parameters:
      - name: greaterThanValue
        in: query
        description: Filter on order no. and forward
        schema:
          type: string
      - name: numberToRead
        in: query
        description: This field has been deprecated and will be removed in future versions. Use pagenumber and pagesize for pagination purposes. Pagenumber and pagesize does not work with NumberToRead and SkipRecords.
        schema:
          type: integer
          format: int32
      - name: skipRecords
        in: query
        description: This field has been deprecated and will be removed in future versions. Use pagenumber and pagesize for pagination purposes. Pagenumber and pagesize does not work with NumberToRead and SkipRecords.
        schema:
          type: integer
          format: int32
      - name: lastModifiedDateTime
        in: query
        description: 'This value, generated by the system, indicates the last time the record was modified. Use it to retrieve all records that have been modified since that time, up to the present.


          Accepted format:

          * ```yyyy-MM-dd```

          * ```yyyy-MM-dd HH:mm:ss```

          * ```yyyy-MM-dd HH:mm:ss.FFF```

          * ```yyyy-MM-ddTHH:mm:ss```

          * ```yyyy-MM-ddTHH:mm:ss.FFF```


          _Note:_ __LastModifiedDateTime__ and __LastModifiedDateTimeCondition__ are __mutually inclusive__.'
        schema:
          type: string
      - name: lastModifiedDateTimeCondition
        in: query
        description: 'This value represents the condition to be applied when retrieving records.


          Accepted values (without the single quotes):

          * ''&gt;'' for greater than

          * ''&lt;'' for less than

          * ''&gt;='' for greater than or equal

          * ''&lt;='' for less than or equal


          _Note:_ __LastModifiedDateTime__ and __LastModifiedDateTimeCondition__ are __mutually inclusive__.'
        schema:
          type: string
      - name: orderType
        in: query
        description: Select and filter on Type.
        schema:
          enum:
          - RegularOrder
          - DropShip
          - Blanket
          - StandardBlanket
          type: string
      - name: orderStatus
        in: query
        description: Select and filter on Status.
        schema:
          enum:
          - Balanced
          - Cancelled
          - Closed
          - Hold
          - Open
          - PendingEmail
          - PendingPrint
          - Printed
          - Voided
          type: string
      - name: supplier
        in: query
        description: Filter on Supplier.
        schema:
          type: string
      - name: branch
        in: query
        description: Filter on Branch
        schema:
          type: string
      - name: orderDate
        in: query
        description: 'This value indicates the order date. Use it to retrieve all records that have the order date since that time, up to the future.


          Accepted format:

          * ```yyyy-MM-dd```

          * ```yyyy-MM-dd HH:mm:ss```

          * ```yyyy-MM-dd HH:mm:ss.FFF```

          * ```yyyy-MM-ddTHH:mm:ss```

          * ```yyyy-MM-ddTHH:mm:ss.FFF```


          _Note:_ __OrderDate__ and __OrderDateCondition__ are __mutually inclusive__.'
        schema:
          type: string
      - name: orderDateCondition
        in: query
        description: 'This value represents the condition to be applied to the order date when retrieving records.


          Accepted values (without the single quotes):

          * ''&gt;'' for greater than

          * ''&lt;'' for less than

          * ''&gt;='' for greater than or equal

          * ''&lt;='' for less than or equal


          _Note:_ __OrderDate__ and __OrderDateCondition__ are __mutually inclusive__.'
        schema:
          type: string
      - name: deliveryDate
        in: query
        description: 'This value indicates the date the document is due for delivery. Use it to retrieve all records that have the delivery date since that time, up to the future.


          Accepted format:

          * ```yyyy-MM-dd```

          * ```yyyy-MM-dd HH:mm:ss```

          * ```yyyy-MM-dd HH:mm:ss.FFF```

          * ```yyyy-MM-ddTHH:mm:ss```

          * ```yyyy-MM-ddTHH:mm:ss.FFF```


          _Note:_ __DeliveryDate__ and __DeliveryDateCondition__ are __mutually inclusive__.'
        schema:
          type: string
      - name: deliveryDateCondition
        in: query
        description: 'This value represents the condition to be applied to the Due Date when retrieving records.


          Accepted values (without the single quotes):

          * ''&gt;'' for greater than

          * ''&lt;'' for less than

          * ''&gt;='' for greater than or equal

          * ''&lt;='' for less than or equal


          _Note:_ __DeliveryDate__ and __DeliveryDateCondition__ are __mutually inclusive__.'
        schema:
          type: string
      - name: includeCustomFreeFields
        in: query
        description: Parameter to include custom free fields information in the result set, if true then custom free fields will be included in the result set
        schema:
          type: boolean
      - name: pageNumber
        in: query
        description: Pagination parameter. Page number.
        schema:
          type: integer
          format: int32
      - name: pageSize
        in: query
        description: 'Pagination parameter. Number of items to be collected.

          Please use a page size lower or equal to the allowed max page size which is returned as part of the metadata information.

          If requested page size is greater than allowed max page size, request will be limited to max page size.'
        schema:
          type: integer
          format: int32
      - name: erp-api-background
        in: header
        description: 'Accepts the request and queues it to be executed in the background by our least busy worker. Responds with 202 Accepted and a document containing a JobId reference and details state location.

          Supported values:

          * a URL: when the background operation is finished, a notification will be posted to the URL with a document containing a reference id, status code and a details state location.

          * "none" (without quotes): Fire and forget; no notification will be sent when background operation is finished.

          * "subscription[:<name_1>=<value_1>,..,<name_n>=<value_n>]" (without quotes): when the background operation is finsihed, a notification is posted to the Webhook subscription set up in Developer Portal for your integration client.

          Optionally a set of name-value pairs can be added. These will be sent as headers in the POST request to the Webhook subscription''s url.


          To find status and details of a background-api operation, GET .. v1/background/{id}. To get the response payload of a background-api operation, if any, GET .. v1/background/{id}/content'
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PurchaseOrderBasicDto'
            text/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PurchaseOrderBasicDto'
        '202':
          description: Server accepted and queued the request for background execution.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BackgroundApiAcceptedDto'
            text/json:
              schema:
                $ref: '#/components/schemas/BackgroundApiAcceptedDto'
      security:
      - interactiveapi: []
    post:
      tags:
      - PurchaseOrderBasic
      summary: Create a Purchase Order Basic
      description: 'Response Message has StatusCode Created if POST operation succeed.


        Response Message has StatusCode BadRequest or InternalServerError if POST operation failed.


        The response headers include an ETag after a successful POST operation.'
      operationId: PurchaseOrderBasic_Post
      parameters:
      - name: erp-api-background
        in: header
        description: 'Accepts the request and queues it to be executed in the background by our least busy worker. Responds with 202 Accepted and a document containing a JobId reference and details state location.

          Supported values:

          * a URL: when the background operation is finished, a notification will be posted to the URL with a document containing a reference id, status code and a details state location.

          * "none" (without quotes): Fire and forget; no notification will be sent when background operation is finished.

          * "subscription[:<name_1>=<value_1>,..,<name_n>=<value_n>]" (without quotes): when the background operation is finsihed, a notification is posted to the Webhook subscription set up in Developer Portal for your integration client.

          Optionally a set of name-value pairs can be added. These will be sent as headers in the POST request to the Webhook subscription''s url.


          To find status and details of a background-api operation, GET .. v1/background/{id}. To get the response payload of a background-api operation, if any, GET .. v1/background/{id}/content'
        schema:
          type: string
      requestBody:
        description: Defines the data for the Purchase Order to create
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PurchaseOrderBasicUpdateDto'
          text/json:
            schema:
              $ref: '#/components/schemas/PurchaseOrderBasicUpdateDto'
          application/xml:
            schema:
              $ref: '#/components/schemas/PurchaseOrderBasicUpdateDto'
          text/xml:
            schema:
              $ref: '#/components/schemas/PurchaseOrderBasicUpdateDto'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PurchaseOrderBasicUpdateDto'
        required: true
        x-bodyName: purchaseOrderBasicUpdateDto
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
            text/json:
              schema:
                type: object
        '202':
          description: Server accepted and queued the request for background execution.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BackgroundApiAcceptedDto'
            text/json:
              schema:
                $ref: '#/components/schemas/BackgroundApiAcceptedDto'
      security:
      - interactiveapi: []
components:
  schemas:
    BackgroundApiAcceptedDto:
      type: object
      properties:
        id:
          type: string
        stateLocation:
          type: string
    accountInPurchaseOrderLineDto:
      properties:
        type:
          type: string
        number:
          type: string
          description: Number of item
        description:
          type: string
          description: Name of item/description
      description: Account &gt; The expense account used to record the purchased non-stock item that does not require receipt (by default, the account specified for the item in the Combine COGS/expense sub. from field in the Posting classes (IN206000) window).
    customDec1InPurchaseOrderBasicUpdateDto:
      properties:
        value:
          type: number
          format: double
      description: A free custom colum of type decimal with max 4 decimals.
    TaxDetailDto:
      type: object
      properties:
        taxId:
          type: string
          description: 'Mandatory field: VAT ID* &gt; The ID of the VAT applied to the document.'
        recordId:
          type: integer
          description: The id as stored in the database. It can be used when we want to update a VAT record.
          format: int32
        vatId:
          $ref: '#/components/schemas/vatIdInTaxDetailDto'
        vatRate:
          type: number
          description: VAT rate &gt; The rate of the VAT.
          format: double
        taxableAmount:
          type: number
          description: Taxable amount &gt; The taxable amount for the VAT, which is calculated at the document level.
          format: double
        vatAmount:
          type: number
          description: VAT &gt; The VAT amount for the specific VAT, which is calculated at the document level.
          format: double
        expenseAmount:
          type: number
          description: Expense Amount for the VAT type that has been added.
          format: double
      description: This class represents a VAT Detail Line. Used for getting data.
    customStr5InPurchaseOrderLineUpdateDto:
      properties:
        value:
          type: string
      description: A free custom colum of type string with max length 100.
    customInt2InPurchaseOrderBasicUpdateDto:
      properties:
        value:
          type: integer
          format: int32
      description: A free custom colum of type int
    SegmentUpdateDto:
      type: object
      properties:
        segmentId:
          type: integer
          format: int32
        segmentValue:
          type: string
    customInt2InPurchaseOrderLineUpdateDto:
      properties:
        value:
          type: integer
          format: int32
      description: A free custom colum of type int
    vatIdInTaxDetailDto:
      properties:
        number:
          type: string
          description: Number of item
        description:
          type: string
          description: Name of item/description
      description: VAT ID &gt; The ID of the specific VAT applied.
    DtoValueOfNullableOfDateTime:
      type: object
      properties:
        value:
          type: string
          format: date-time
    DtoValueOfNullableOfPurchaseOrderReceiptAction:
      type: object
      properties:
        value:
          enum:
          - Reject
          - AcceptButWarn
          - Accept
          type: string
    DtoValueOfNullableOfBoolean:
      type: object
      properties:
        value:
          type: boolean
    customStr3InPurchaseOrderBasicUpdateDto:
      properties:
        value:
          type: string
      description: A free custom colum of type string with max length 100.
    customStr2InPurchaseOrderLineUpdateDto:
      properties:
        value:
          type: string
      description: A free custom colum of type string with max length 100.
    DtoValueOfNullableOfGuid:
      type: object
      properties:
        value:
          type: string
          format: uuid
          example: 00000000-0000-0000-0000-000000000000
    branchInPurchaseOrderLineDto:
      properties:
        number:
          type: string
          description: Click the magnifier. &gt; The identifier.
        name:
          type: string
          description: Click the magnifier. &gt; The name.
      description: Branch &gt; The branch associated with the purchase order.
    subInPurchaseOrderLineDto:
      properties:
        subaccountNumber:
          type: string
          description: 'Mandatory field: Subaccount* &gt; The subaccount number. Format 9-XX.'
        subaccountId:
          type: integer
          description: SubID &gt; The  identifier of the subaccount.
          format: int32
        description:
          type: string
          description: Description &gt; The description of the identifier.
        lastModifiedDateTime:
          type: string
          description: System generated information.
          format: date-time
        active:
          type: boolean
          description: Active &gt; The status of the identifier.
        segments:
          type: array
          items:
            $ref: '#/components/schemas/SegmentDto'
          description: Segments are entities that you use to define the structure of IDs for the subaccount.  This information is collected from window CS202000.
        timeStamp:
          type: string
          description: The timestamp of the subaccount, used for concurrency control.
          format: byte
        errorInfo:
          type: string
        metadata:
          $ref: '#/components/schemas/MetadataDto'
      description: Sub. ID &gt; The subaccount used to record the purchased non-stock item that does not require receipt (by default, the subaccount generated in accordance with the rule defined in the Combine COGS/expense sub. from field in the Posting classes (IN206000) window).
    locationInPurchaseOrderBasicDto:
      properties:
        id:
          type: integer
          description: Click the magnifier &gt; The identifier
          format: int32
        name:
          type: string
          description: Click the magnifier &gt; The displayed name
      description: 'Mandatory field: The top part &gt; Location* &gt; Click the magnifier. The supplier location from which the items will be received.'
    glnInPurchaseOrderBasicUpdateDto:
      properties:
        value:
          type: string
      description: Mandatory field if Supplier or VatRegistrationId is not specified.
    PurchaseReceiptsDto:
      type: object
      properties:
        type:
          enum:
          - PoReceipt
          - PoReturn
          - TransferReceipt
          type: string
          description: The top part &gt; Type &gt; The type of the document, which can be Receipt, Return, or Transfer receipt.
        receiptNumber:
          type: string
          description: The top part &gt; Receipt no. &gt; The unique reference number of the purchase receipt, transfer receipt, or return, which the system automatically assigns according to its number series.
        status:
          enum:
          - Hold
          - Balanced
          - Released
          - Cancelled
          type: string
          description: The top part &gt; Status &gt; The current status of the purchase or transfer receipt, or return, which the system assigns automatically.
        supplierName:
          type: string
          description: The top part &gt; Supplier &gt; The supplier from which the items have been received or to which they will be returned.
        currency:
          type: string
          description: The top part &gt; Currency &gt; The currency the supplier uses for invoicing.
        totalQty:
          type: number
          description: The top part &gt; Total qty. &gt; The total quantity of items received from or returned to the supplier; the sum of all quantities of all stock items listed on the Document details tab.
          format: double
        totalAmt:
          type: number
          description: The top part &gt; Total amt. &gt; The total amount calculated for items received from or returned to the supplier; the sum of all amounts of all stock items listed on the Document details tab.
          format: double
    taxCategoryInPurchaseOrderLineDto:
      properties:
        number:
          type: string
          description: Number of item
        description:
          type: string
          description: Name of item/description
      description: VAT category &gt; The VAT category assigned to the ordered stock item.
    customStr1InPurchaseOrderBasicUpdateDto:
      properties:
        value:
          type: string
      description: A free custom colum of type string with max length 100.
    customDec2InPurchaseOrderBasicUpdateDto:
      properties:
        value:
          type: number
          format: double
      description: A free custom colum of type decimal with max 4 decimals.
    customDec2InPurchaseOrderLineUpdateDto:
      properties:
        value:
          type: number
          format: double
      description: A free custom colum of type decimal with max 4 decimals.
    DtoValueOfBoolean:
      type: object
      properties:
        value:
          type: boolean
    vatRegistrationIdInPurchaseOrderBasicUpdateDto:
      properties:
        value:
          type: string
      description: Mandatory field if Supplier or GLN is not specified.
    customStr5InPurchaseOrderBasicUpdateDto:
      properties:
        value:
          type: string
      description: A free custom colum of type string with max length 100.
    DtoValueOfNullableOfInt32:
      type: object
      properties:
        value:
          type: integer
          format: int32
    customDateTimeUTC1InPurchaseOrderLineUpdateDto:
      properties:
        value:
          type: string
          format: date-time
      description: A free custom colum of type DateTime - in UTC timezone
    MetadataDto:
      type: object
      properties:
        totalCount:
          type: integer
          format: int64
        maxPageSize:
          type: integer
          format: int64
    DtoValueOfNullableOfPurchaseOrderType:
      type: object
      properties:
        value:
          enum:
          - RegularOrder
          - DropShip
          - Blanket
          - StandardBlanket
          type: string
    DtoValueOfString:
      type: object
      properties:
        value:
          type: string
    customDateTimeUTC1InPurchaseOrderBasicUpdateDto:
      properties:
        value:
          type: string
          format: date-time
      description: A free custom colum of type DateTime - in UTC timezone
    inventoryInPurchaseOrderLineDto:
      properties:
        number:
          type: string
          description: Number of item
        description:
          type: string
          description: Name of item/description
      description: Item ID &gt; The ID of the item.
    customStr1InPurchaseOrderLineUpdateDto:
      properties:
        value:
          type: string
      description: A free custom colum of type string with max length 100.
    DtoValueOfNullableOfDecimal:
      type: object
      properties:
        value:
          type: number
          format: double
    DtoValueOfNullableOfPoLineType:
      type: object
      properties:
        value:
          enum:
          - GoodsForInventory
          - GoodsForSalesOrder
          - GoodsForReplenishment
          - GoodsForDropShip
          - NonStockForDropShip
          - NonStockForSalesOrder
          - NonStock
          - Service
          - Freight
          - Description
          type: string
    PurchaseOrderBasicUpdateDto:
      type: object
      properties:
        orderType:
          $ref: '#/components/schemas/DtoValueOfNullableOfPurchaseOrderType'
        orderNumber:
          $ref: '#/components/schemas/DtoValueOfString'
        hold:
          $ref: '#/components/schemas/DtoValueOfNullableOfBoolean'
        date:
          $ref: '#/components/schemas/DtoValueOfNullableOfDateTime'
        promisedOn:
          $ref: '#/components/schemas/DtoValueOfNullableOfDateTime'
        description:
          $ref: '#/components/schemas/DtoValueOfString'
        supplier:
          $ref: '#/components/schemas/supplierInPurchaseOrderBasicUpdateDto'
        location:
          $ref: '#/components/schemas/DtoValueOfString'
        gln:
          $ref: '#/components/schemas/glnInPurchaseOrderBasicUpdateDto'
        vatRegistrationId:
          $ref: '#/components/schemas/vatRegistrationIdInPurchaseOrderBasicUpdateDto'
        owner:
          $ref: '#/components/schemas/DtoValueOfNullableOfGuid'
        currency:
          $ref: '#/components/schemas/DtoValueOfString'
        exchangeRate:
          $ref: '#/components/schemas/DtoValueOfNullableOfDecimal'
        supplierRef:
          $ref: '#/components/schemas/DtoValueOfString'
        controlTotal:
          $ref: '#/components/schemas/DtoValueOfNullableOfDecimal'
        branch:
          $ref: '#/components/schemas/DtoValueOfString'
        lines:
          type: array
          items:
            $ref: '#/components/schemas/PurchaseOrderLineUpdateDto'
        changeDatesOnLines:
          type: boolean
        note:
          $ref: '#/components/schemas/DtoValueOfString'
        overrideNumberSeries:
          $ref: '#/components/schemas/DtoValueOfBoolean'
        customStr1:
          $ref: '#/components/schemas/customStr1InPurchaseOrderBasicUpdateDto'
        customStr2:
          $ref: '#/components/schemas/customStr2InPurchaseOrderBasicUpdateDto'
        customStr3:
          $ref: '#/components/schemas/customStr3InPurchaseOrderBasicUpdateDto'
        customStr4:
          $ref: '#/components/schemas/customStr4InPurchaseOrderBasicUpdateDto'
        customStr5:
          $ref: '#/components/schemas/customStr5InPurchaseOrderBasicUpdateDto'
        customDec1:
          $ref: '#/components/schemas/customDec1InPurchaseOrderBasicUpdateDto'
        customDec2:
          $ref: '#/components/schemas/customDec2InPurchaseOrderBasicUpdateDto'
        customInt1:
          $ref: '#/components/schemas/customInt1InPurchaseOrderBasicUpdateDto'
        customInt2:
          $ref: '#/components/schemas/customInt2InPurchaseOrderBasicUpdateDto'
        customDateTimeUTC1:
          $ref: '#/components/schemas/customDateTimeUTC1InPurchaseOrderBasicUpdateDto'
        timeStamp:
          type: string
          format: byte
      description: 'This class represent a Purchase Order in Purchase Order Controller. Used to pass data to server for creating or updating an order

        Supplier is man

# --- truncated at 32 KB (57 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/visma/refs/heads/main/openapi/visma-purchaseorderbasic-api-openapi.yml