Order-lines (v1)

https://github.com/folio-org/mod-orders

Table of contents

Orders Business Logic API

API for managing purchase orders

Purchase Order Lines

Manage purchase order (PO) lines

GET /orders/order-lines

Retrieve a list of order-line items.

GET /orders/order-lines
Query Parameters
  • totalRecords: (string - default: auto - pattern: exact|estimated|none|auto)

    How to calculate the totalRecords property. "exact" for the correct number, "estimated" for an estimation, "auto" to automatically select "exact" or "estimated", "none" for suppressing the totalRecords property. For details see https://github.com/folio-org/raml-module-builder#estimated-totalrecords

    Example:

    none
  • offset: (integer - default: 0 - minimum: 0 - maximum: 2147483647)

    Skip over a number of elements by specifying an offset value for the query

    Example:

    0
  • limit: (integer - default: 10 - minimum: 0 - maximum: 2147483647)

    Limit the number of elements returned in the response

    Example:

    10
  • query: (string)

    A query expressed as a CQL string (see dev.folio.org/reference/glossary#cql) using valid searchable fields. The first example below shows the general form of a full CQL query, but those fields might not be relevant in this context.

    using CQL (indexes for PO lines)

    Example:

    (username=="ab*" or personal.firstName=="ab*" or personal.lastName=="ab*") and active=="true" sortby personal.lastName personal.firstName barcode
    
    payment_status=="Cancelled"
    

Response 200

Returns a list of order-line items

Body

Media type: application/json

Type: json

Content:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description": "collection of purchase order line records",
  "type": "object",
  "properties": {
    "poLines": {
      "description": "collection of purchase order line records",
      "type": "array",
      "id": "poLines",
      "items": {
        "type": "object",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "description": "purchase order line",
        "javaName": "PoLine",
        "properties": {
          "id": {
            "description": "UUID identifying this purchase order line",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "string",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
          },
          "edition": {
            "description": "edition of the material",
            "type": "string"
          },
          "checkinItems": {
            "description": "if true this will toggle the Check-in workflow for details associated with this PO line",
            "type": "boolean",
            "default": false
          },
          "agreementId": {
            "description": "UUID of the agreement this purchase order line is related to",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "string",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
          },
          "acquisitionMethod": {
            "description": "UUID of the acquisition method for this purchase order line",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "string",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
          },
          "automaticExport": {
            "description": "if true then line will be marked as available to export in the EDIFACT format or other format",
            "type": "boolean",
            "default": false
          },
          "cancellationRestriction": {
            "description": "whether or not there are cancellation restrictions for this purchase order line",
            "type": "boolean"
          },
          "cancellationRestrictionNote": {
            "description": "free-form notes related to cancellation restrictions",
            "type": "string"
          },
          "claims": {
            "description": "claims associated with this purchase order line",
            "id": "claims",
            "type": "array",
            "items": {
              "description": "a claim record",
              "type": "object",
              "$schema": "http://json-schema.org/draft-04/schema#",
              "properties": {
                "claimed": {
                  "description": "whether or not this purchase order line has been claimed",
                  "type": "boolean",
                  "default": false
                },
                "sent": {
                  "description": "date a claim was sent",
                  "type": "string",
                  "format": "date-time"
                },
                "grace": {
                  "description": "the number of days after the expected receipt date during which claims should not be processed",
                  "type": "integer"
                }
              },
              "additionalProperties": false
            }
          },
          "claimingActive": {
            "description": "Indicates if there is an active claim or dispute",
            "type": "boolean",
            "default": false
          },
          "claimingInterval": {
            "description": "Specifies the time interval, in days, within which claims or disputes must be initiated",
            "type": "integer"
          },
          "collection": {
            "description": "whether or not this purchase order line is for a collection",
            "type": "boolean",
            "default": false
          },
          "contributors": {
            "description": "list of contributors to the material",
            "id": "contributors",
            "type": "array",
            "items": {
              "type": "object",
              "$schema": "http://json-schema.org/draft-04/schema#",
              "description": "contributor to the material",
              "properties": {
                "contributor": {
                  "description": "the name of a contributor to the material",
                  "type": "string"
                },
                "contributorNameTypeId": {
                  "description": "UUID of the contributor type",
                  "type": "string",
                  "pattern": "^[a-f0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
                }
              },
              "additionalProperties": false,
              "required": [
                "contributorNameTypeId"
              ]
            }
          },
          "cost": {
            "description": "cost details associated with this purchase order line",
            "type": "object",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "properties": {
              "listUnitPrice": {
                "description": "The per-item list price for physical or resources of 'Other' order format",
                "type": "number"
              },
              "listUnitPriceElectronic": {
                "description": "The e-resource per-item list price",
                "type": "number"
              },
              "currency": {
                "description": "An ISO currency code",
                "type": "string"
              },
              "additionalCost": {
                "description": "Lump sum that is added to the total estimated price - not affected by discount",
                "type": "number"
              },
              "discount": {
                "description": "Percentage (0 to 100) or amount (positive number) that is subtracted from the list price time quantities calculation before additional cost",
                "type": "number"
              },
              "discountType": {
                "description": "Percentage or amount discount type",
                "type": "string",
                "enum": [
                  "amount",
                  "percentage"
                ],
                "default": "percentage"
              },
              "exchangeRate": {
                "description": "Exchange rate",
                "type": "number"
              },
              "quantityPhysical": {
                "description": "Quantity of physical items or resources of 'Other' order format in this purchase order line",
                "type": "integer"
              },
              "quantityElectronic": {
                "description": "Quantity of electronic items in this purchase order line",
                "type": "integer"
              },
              "poLineEstimatedPrice": {
                "description": "The calculated total estimated price for this purchase order line: list price time quantities minus discount amount plus additional cost",
                "type": "number"
              },
              "fyroAdjustmentAmount": {
                "description": "Adjustment amount if rollover was happen",
                "type": "number"
              }
            },
            "additionalProperties": false,
            "required": [
              "currency"
            ]
          },
          "description": {
            "description": "description of the material",
            "type": "string"
          },
          "details": {
            "description": "details about this purchase order line",
            "type": "object",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "properties": {
              "receivingNote": {
                "description": "notes regarding receiving instructions",
                "type": "string"
              },
              "isAcknowledged": {
                "description": "Flag for acknowledge receiving note",
                "type": "boolean",
                "default": false
              },
              "isBinderyActive": {
                "description": "Indicates that this POL is designated as required binding",
                "type": "boolean",
                "default": false
              },
              "productIds": {
                "description": "a list of product identifiers",
                "id": "productIds",
                "type": "array",
                "items": {
                  "$schema": "http://json-schema.org/draft-04/schema#",
                  "description": "Product identifier",
                  "type": "object",
                  "properties": {
                    "productId": {
                      "description": "The actual product identifier",
                      "type": "string"
                    },
                    "productIdType": {
                      "description": "The type of product identifier",
                      "$schema": "http://json-schema.org/draft-04/schema#",
                      "type": "string",
                      "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
                    },
                    "qualifier": {
                      "description": "Information about the binding, format, volume numbers, part of a set, publisher, distributor, etc. which might be enclosed in parenthesis",
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "subscriptionFrom": {
                "description": "the start date of the subscription",
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "subscriptionInterval": {
                "description": "the subscription interval in days",
                "type": "integer"
              },
              "subscriptionTo": {
                "description": "the end date of the subscription",
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              }
            },
            "additionalProperties": false
          },
          "donor": {
            "description": "the donor contributing to this purchase order line",
            "type": "string"
          },
          "donorOrganizationIds": {
            "description": "donor organization ids associated with this fund",
            "type": "array",
            "items": {
              "description": "UUID of an donor organization record",
              "$schema": "http://json-schema.org/draft-04/schema#",
              "type": "string",
              "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
            }
          },
          "eresource": {
            "description": "eresource-related details of this purchase order line",
            "type": "object",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "properties": {
              "activated": {
                "description": "whether or not this resource is activated",
                "type": "boolean",
                "default": false
              },
              "activationDue": {
                "description": "number of days until activation, from date of order placement",
                "type": "integer"
              },
              "createInventory": {
                "description": "Shows what inventory objects need to be created for electronic resource",
                "type": "string",
                "enum": [
                  "Instance, Holding, Item",
                  "Instance, Holding",
                  "Instance",
                  "None"
                ]
              },
              "trial": {
                "description": "whether or not this is a trial",
                "type": "boolean",
                "default": false
              },
              "expectedActivation": {
                "description": "expected date the resource will be activated",
                "type": "string",
                "format": "date-time"
              },
              "userLimit": {
                "description": "the concurrent user-limit",
                "type": "string"
              },
              "accessProvider": {
                "description": "UUID of the access provider",
                "type": "string",
                "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
              },
              "license": {
                "description": "License record",
                "type": "object",
                "$schema": "http://json-schema.org/draft-04/schema#",
                "properties": {
                  "code": {
                    "description": "license code",
                    "type": "string"
                  },
                  "description": {
                    "description": "license description",
                    "type": "string"
                  },
                  "reference": {
                    "description": "license reference",
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "materialType": {
                "description": "UUID of the material Type",
                "type": "string",
                "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
              },
              "resourceUrl": {
                "description": "Electronic resource can be access via this URL",
                "type": "string",
                "pattern": "\\b((?:[a-z][\\w-]+:(?:/{1,3}|[a-z0-9%])|www\\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]{2,4}/)(?:[^\\s()<>]+|\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\))+(?:\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\)|[^\\s`!()\\[\\]{};:'\".,<>?]))"
              }
            },
            "additionalProperties": false
          },
          "fundDistribution": {
            "description": "Fund distribution records for this purchase order line",
            "id": "fundDistribution",
            "type": "array",
            "items": {
              "description": "a fund distribution record",
              "type": "object",
              "$schema": "http://json-schema.org/draft-04/schema#",
              "properties": {
                "code": {
                  "description": "the fund code",
                  "$schema": "http://json-schema.org/draft-04/schema#",
                  "type": "string",
                  "pattern": "^[^:]+$"
                },
                "encumbrance": {
                  "description": "UUID of encumbrance record associated with this fund distribution",
                  "$schema": "http://json-schema.org/draft-04/schema#",
                  "type": "string",
                  "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
                },
                "fundId": {
                  "description": "UUID of the fund associated with this fund distribution",
                  "$schema": "http://json-schema.org/draft-04/schema#",
                  "type": "string",
                  "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
                },
                "expenseClassId": {
                  "description": "UUID of the expense class associated with this fund distribution",
                  "$schema": "http://json-schema.org/draft-04/schema#",
                  "type": "string",
                  "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
                },
                "distributionType": {
                  "description": "Percentage or amount type of the value property",
                  "type": "string",
                  "enum": [
                    "amount",
                    "percentage"
                  ],
                  "default": "percentage"
                },
                "value": {
                  "description": "The value of the cost to be applied to this fund",
                  "type": "number"
                }
              },
              "additionalProperties": false,
              "required": [
                "fundId",
                "distributionType",
                "value"
              ]
            }
          },
          "instanceId": {
            "description": "UUID of the instance record this purchase order line is related to",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "string",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
          },
          "isPackage": {
            "description": "Indicates that this POL is for a package",
            "type": "boolean",
            "default": false
          },
          "locations": {
            "description": "Location records for this purchase order line",
            "id": "locations",
            "type": "array",
            "items": {
              "description": "The location details",
              "type": "object",
              "$schema": "http://json-schema.org/draft-04/schema#",
              "properties": {
                "locationId": {
                  "description": "UUID of the (inventory) location record",
                  "type": "string",
                  "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
                },
                "holdingId": {
                  "description": "Holding UUID associated with order line",
                  "type": "string",
                  "$schema": "http://json-schema.org/draft-04/schema#",
                  "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
                },
                "quantity": {
                  "description": "Combined/total quanitity of physical and electronic items",
                  "type": "integer"
                },
                "quantityElectronic": {
                  "description": "Quantity of electronic items",
                  "type": "integer"
                },
                "quantityPhysical": {
                  "description": "Quantity of physical items",
                  "type": "integer"
                },
                "tenantId": {
                  "description": "Associated tenant for ECS-enabled clusters",
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "searchLocationIds": {
            "description": "location ids used for search",
            "type": "array",
            "items": {
              "description": "UUID of location record",
              "$schema": "http://json-schema.org/draft-04/schema#",
              "type": "string",
              "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
            }
          },
          "lastEDIExportDate": {
            "description": "The last date when line was exported in the EDIFACT file",
            "type": "string",
            "format": "date-time"
          },
          "orderFormat": {
            "description": "The purchase order line format",
            "type": "string",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "enum": [
              "Electronic Resource",
              "P/E Mix",
              "Physical Resource",
              "Other"
            ]
          },
          "packagePoLineId": {
            "description": "UUID referencing the poLine that represents the package that this POLs title belongs to",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "string",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
          },
          "paymentStatus": {
            "description": "The purchase order line payment status",
            "type": "string",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "enum": [
              "Awaiting Payment",
              "Cancelled",
              "Fully Paid",
              "Partially Paid",
              "Payment Not Required",
              "Pending",
              "Ongoing"
            ],
            "default": "Pending"
          },
          "physical": {
            "description": "details of this purchase order line relating to physical materials",
            "type": "object",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "properties": {
              "createInventory": {
                "description": "Shows what inventory objects need to be created for physical resource",
                "type": "string",
                "enum": [
                  "Instance, Holding, Item",
                  "Instance, Holding",
                  "Instance",
                  "None"
                ]
              },
              "materialType": {
                "description": "UUID of the material Type",
                "type": "string",
                "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
              },
              "materialSupplier": {
                "description": "UUID of the material supplier record",
                "type": "string",
                "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
              },
              "expectedReceiptDate": {
                "description": "vendor agreed date prior to the Receipt Due date item is expected to be received by",
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "receiptDue": {
                "description": "date item should be received by",
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "volumes": {
                "description": "list of volumes included to the physical material",
                "type": "array",
                "items": {
                  "description": "the identifier of volume",
                  "type": "string"
                }
              }
            },
            "additionalProperties": false,
            "required": [
              "volumes"
            ]
          },
          "poLineDescription": {
            "description": "purchase order line description",
            "type": "string"
          },
          "poLineNumber": {
            "description": "A human readable number assigned to this PO line (assigned automatically)",
            "type": "string",
            "pattern": "^[a-zA-Z0-9]{1,22}-[0-9]{1,3}$"
          },
          "publicationDate": {
            "description": "date (year) of the material's publication",
            "type": "string"
          },
          "publisher": {
            "description": "publisher of the material",
            "type": "string"
          },
          "purchaseOrderId": {
            "description": "UUID of the purchase order",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "string",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
          },
          "receiptDate": {
            "description": "date the purchase order line was received",
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "receiptStatus": {
            "description": "The purchase order line receipt status",
            "type": "string",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "enum": [
              "Awaiting Receipt",
              "Cancelled",
              "Fully Received",
              "Partially Received",
              "Pending",
              "Receipt Not Required",
              "Ongoing"
            ],
            "default": "Pending"
          },
          "renewalNote": {
            "description": "Renewal note for this purchase order line",
            "type": "string"
          },
          "requester": {
            "description": "who requested this purchase order line",
            "type": "string"
          },
          "rush": {
            "description": "whether or not this is a rush order",
            "type": "boolean",
            "default": false
          },
          "selector": {
            "description": "who selected this material",
            "type": "string"
          },
          "source": {
            "description": "the source of this purchase order line",
            "type": "string",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "enum": [
              "User",
              "API",
              "EDI",
              "MARC",
              "EBSCONET"
            ]
          },
          "tags": {
            "description": "arbitrary tags associated with this purchase order line",
            "id": "tags",
            "type": "object",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "title": "tags",
            "properties": {
              "tagList": {
                "description": "List of tags",
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": false
          },
          "titleOrPackage": {
            "description": "title of the material",
            "type": "string"
          },
          "vendorDetail": {
            "description": "Details related to the vendor of this purchase order line",
            "type": "object",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "properties": {
              "instructions": {
                "description": "special instructions for the vendor",
                "type": "string"
              },
              "noteFromVendor": {
                "description": "free-form notes from the vendor",
                "type": "string"
              },
              "vendorAccount": {
                "description": "the accound number on the vendor's end associated with this purchase order line",
                "type": "string"
              },
              "referenceNumbers": {
                "description": "Collection of reference number items",
                "$schema": "http://json-schema.org/draft-04/schema#",
                "type": "array",
                "items": {
                  "$schema": "http://json-schema.org/draft-04/schema#",
                  "description": "Reference number item",
                  "type": "object",
                  "properties": {
                    "refNumber": {
                      "description": "a reference number for this purchase order line",
                      "type": "string"
                    },
                    "refNumberType": {
                      "description": "the reference number type",
                      "type": "string",
                      "enum": [
                        "Vendor continuation reference number",
                        "Vendor order reference number",
                        "Vendor subscription reference number",
                        "Vendor internal number",
                        "Vendor title number"
                      ],
                      "javaEnums": [
                        "CONTINUATION_REF_NUMBER",
                        "ORDER_REF_NUMBER",
                        "SUBSCRIPTION_REF_NUMBER",
                        "INTERNAL_NUMBER",
                        "TITLE_NUMBER"
                      ]
                    },
                    "vendorDetailsSource": {
                      "description": "the reference number type",
                      "type": "string",
                      "enum": [
                        "OrderLine",
                        "InvoiceLine"
                      ],
                      "javaEnums": [
                        "ORDER_LINE",
                        "INVOICE_LINE"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "suppressInstanceFromDiscovery": {
            "type": "boolean",
            "description": "Records the fact that the record should not be displayed in a discovery system",
            "default": false
          },
          "customFields": {
            "description": "Object that contains custom field",
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "javaName": "CustomFields",
            "additionalProperties": true
          },
          "metadata": {
            "type": "object",
            "readonly": true,
            "$schema": "http://json-schema.org/draft-04/schema#",
            "id": "metadata.schema",
            "title": "Metadata Schema",
            "description": "Metadata about creation and changes to records, provided by the server (client should not provide)",
            "properties": {
              "createdDate": {
                "description": "Date and time when the record was created",
                "type": "string",
                "format": "date-time"
              },
              "createdByUserId": {
                "description": "ID of the user who created the record (when available)",
                "type": "string",
                "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
              },
              "createdByUsername": {
                "description": "Username of the user who created the record (when available)",
                "type": "string"
              },
              "updatedDate": {
                "description": "Date and time when the record was last updated",
                "type": "string",
                "format": "date-time"
              },
              "updatedByUserId": {
                "description": "ID of the user who last updated the record (when available)",
                "type": "string",
                "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
              },
              "updatedByUsername": {
                "description": "Username of the user who last updated the record (when available)",
                "type": "string"
              }
            },
            "additionalProperties": false,
            "required": [
              "createdDate"
            ]
          }
        },
        "additionalProperties": false,
        "required": [
          "acquisitionMethod",
          "cost",
          "orderFormat",
          "source",
          "titleOrPackage"
        ]
      }
    },
    "totalRecords": {
      "description": "The number of objects contained in this collection",
      "type": "integer"
    }
  },
  "additionalProperties": false,
  "required": [
    "poLines",
    "totalRecords"
  ]
}

Example:

{
    "poLines": [
      {
        "id": "c0d08448-347b-418a-8c2f-5fb50248d67e",
        "edition": "First edition",
        "checkinItems": false,
        "instanceId": "8343e5a0-fed8-11e8-8eb2-f2801f1b9fd1",
        "isPackage": false,
        "agreementId": "bdc75fea-fed8-11e8-8eb2-f2801f1b9fd1",
        "acquisitionMethod": "73d14bc5-d131-48c6-b380-f8e62f63c8f3",
        "cancellationRestriction": false,
        "cancellationRestrictionNote": "ABCDEFGHIJKLMNOPQRSTUVW",
        "claims": [
          {
            "claimed": false,
            "sent": "2018-10-09T00:00:00.000Z",
            "grace": 30
          }
        ],
        "claimingActive": false,
        "claimingInterval": 0,
        "collection": false,
        "contributors": [
          {
            "contributor": "Ed Mashburn",
            "contributorNameTypeId": "fbdd42a8-e47d-4694-b448-cc571d1b44c3"
          }
        ],
        "cost": {
          "additionalCost": 4.99,
          "currency": "USD",
          "discount": 10,
          "discountType": "percentage",
          "exchangeRate": 1.12,
          "listUnitPriceElectronic": 24.99,
          "quantityElectronic": 2,
          "poLineEstimatedPrice": 49.97
        },
        "description": "ABCDEFGH",
        "details": {
          "receivingNote": "ABCDEFGHIJKL",
          "isBinderyActive": false,
          "productIds": [
            {
              "productId": "9780764354113",
              "productIdType": "8261054f-be78-422d-bd51-4ed9f33c3422",
              "qualifier": "(paperback)"
            }
          ],
          "subscriptionFrom": "2018-10-09T00:00:00.000Z",
          "subscriptionInterval": 824,
          "subscriptionTo": "2020-10-09T00:00:00.000Z"
        },
        "donor": "ABCDEFGHIJKLM",
        "donorOrganizationIds": [
          "d926d900-e27d-46d6-bba8-31e9d5c2cf44",
          "077274ad-6b4f-4c28-9779-6d381e7a1ca1"
        ],
        "eresource": {
          "accessProvider": "ba3f3d45-247d-41f6-8dc9-6488adcad329",
          "activated": false,
          "activationDue": 10,
          "createInventory": "Instance, Holding",
          "expectedActivation": "2018-10-09T00:00:00.000Z",
          "license": {
            "code": "Code 1",
            "description": "License Agreement 1"
          },
          "materialType": "f7e72403-2a13-43a4-a069-aaabe6c9dea8",
          "trial": false,
          "userLimit": "10",
          "resourceUrl": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
        },
        "fundDistribution": [
          {
            "code": "HIST",
            "fundId": "63157e96-0693-426d-b0df-948bacdfdb08",
            "distributionType": "percentage",
            "value": 100.0,
            "encumbrance": "eb506834-6c70-4239-8d1a-6414a5b08ac3"
          }
        ],
        "locations": [
          {
            "locationId": "eb2d063a-5b4c-4cab-8db1-5fc5c5941df6",
            "quantity": 1,
            "quantityElectronic": 1,
            "tenantId": "diku"
          },
          {
            "locationId": "53cf956f-c1df-410b-8bea-27f712cca7c0",
            "quantity": 1,
            "quantityElectronic": 1,
            "tenantId": "diku"
          }
        ],
        "searchLocationIds": [
          "eb2d063a-5b4c-4cab-8db1-5fc5c5941df6",
          "53cf956f-c1df-410b-8bea-27f712cca7c0"
        ],
        "orderFormat": "Electronic Resource",
        "paymentStatus": "Awaiting Payment",
        "poLineDescription": "ABCDEFGHIJKLMNOPQRSTUVWXY",
        "poLineNumber": "268758-03",
        "publicationDate": "2017",
        "publisher": "Schiffer Publishing",
        "purchaseOrderId": "d79b0bcc-DcAD-1E4E-Abb7-DbFcaD5BB3bb",
        "receiptDate": "2018-10-09T00:00:00.000Z",
        "receiptStatus": "Awaiting Receipt",
        "requester": "Leo Bulero",
        "rush": true,
        "selector": "ABCD",
        "source": "User",
        "tags": {
          "tagList": [
            "important"
          ]
        },
        "titleOrPackage": "Kayak Fishing in the Northern Gulf Coast",
        "vendorDetail": {
          "instructions": "ABCDEFG",
          "noteFromVendor": "ABCDEFGHIKJKLMNOP",
          "referenceNumbers": [
            {
              "refNumber": "123456-78",
              "refNumberType": "Vendor title number",
              "vendorDetailsSource": "OrderLine"
            }
          ],
          "vendorAccount": "8910-25"
        },
        "customFields": {
          "externalOrderNumber": "ML58723"
        },
        "metadata": {
          "createdDate": "2018-07-19T00:00:00.000+0000",
          "createdByUserId": "28d1057c-d137-11e8-a8d5-f2801f1b9fd1"
        },
        "holdingIds": [
          "c0d08448-347b-418a-8c2f-5fb50248d67x"
        ]
      }
    ],
    "totalRecords": 1
}

Response 400

Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.

Body

Media type: application/json

Type: any

Example:

{
  "errors": [
    {
      "message": "may not be null",
      "type": "1",
      "code": "-1",
      "parameters": [
        {
          "key": "moduleTo",
          "value": "null"
        }
      ]
    }
  ]
}

Media type: text/plain

Type: any

Example:

unable to list order-lines -- malformed parameter 'query', syntax error at column 6

Response 401

Not authorized to perform requested action

Body

Media type: application/json

Type: any

Example:

{
  "errors": [
    {
      "message": "may not be null",
      "type": "1",
      "code": "-1",
      "parameters": [
        {
          "key": "moduleTo",
          "value": "null"
        }
      ]
    }
  ]
}

Media type: text/plain

Type: any

Example:

unable to list order-lines -- unauthorized

Response 422

Validation errors

Body

Media type: application/json

Type: json

Content:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "errors.schema",
  "description": "A set of errors",
  "type": "object",
  "properties": {
    "errors": {
      "description": "List of errors",
      "id": "errors",
      "type": "array",
      "items": {
        "type": "object",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "id": "error.schema",
        "description": "An error",
        "properties": {
          "message": {
            "type": "string",
            "description": "Error message text"
          },
          "type": {
            "type": "string",
            "description": "Error message type"
          },
          "code": {
            "type": "string",
            "description": "Error message code"
          },
          "parameters": {
            "description": "Error message parameters",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "id": "parameters.schema",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                }
              }
            }
          }
        },
        "required": [
          "message"
        ]
      }
    },
    "total_records": {
      "description": "Total number of errors",
      "type": "integer"
    }
  }
}

Example:

{
  "errors": [
    {
      "message": "may not be null",
      "type": "1",
      "code": "-1",
      "parameters": [
        {
          "key": "moduleTo",
          "value": "null"
        }
      ]
    }
  ]
}

Response 500

Internal server error, e.g. due to misconfiguration

Body

Media type: application/json

Type: any

Example:

{
  "errors": [
    {
      "message": "may not be null",
      "type": "1",
      "code": "-1",
      "parameters": [
        {
          "key": "moduleTo",
          "value": "null"
        }
      ]
    }
  ]
}

Media type: text/plain

Type: any

Example:

internal server error, contact administrator

POST /orders/order-lines

Post a PO lines to corresponding PO

POST /orders/order-lines
Body

Media type: application/json

Type: json

Content:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description": "purchase order line",
  "type": "object",
  "javaName": "PoLine",
  "properties": {
    "id": {
      "description": "UUID identifying this purchase order line",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "type": "string",
      "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
    },
    "edition": {
      "description": "edition of the material",
      "type": "string"
    },
    "checkinItems": {
      "description": "if true this will toggle the Check-in workflow for details associated with this PO line",
      "type": "boolean",
      "default": false
    },
    "agreementId": {
      "description": "UUID of the agreement this purchase order line is related to",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "type": "string",
      "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
    },
    "acquisitionMethod": {
      "description": "UUID of the acquisition method for this purchase order line",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "type": "string",
      "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
    },
    "automaticExport": {
      "description": "if true then line will be marked as available to export in the EDIFACT format or other format",
      "type": "boolean",
      "default": false
    },
    "cancellationRestriction": {
      "description": "whether or not there are cancellation restrictions for this purchase order line",
      "type": "boolean"
    },
    "cancellationRestrictionNote": {
      "description": "free-form notes related to cancellation restrictions",
      "type": "string"
    },
    "claims": {
      "description": "claims associated with this purchase order line",
      "id": "claims",
      "type": "array",
      "items": {
        "description": "a claim record",
        "type": "object",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "properties": {
          "claimed": {
            "description": "whether or not this purchase order line has been claimed",
            "type": "boolean",
            "default": false
          },
          "sent": {
            "description": "date a claim was sent",
            "type": "string",
            "format": "date-time"
          },
          "grace": {
            "description": "the number of days after the expected receipt date during which claims should not be processed",
            "type": "integer"
          }
        },
        "additionalProperties": false
      }
    },
    "claimingActive": {
      "description": "Indicates if there is an active claim or dispute",
      "type": "boolean",
      "default": false
    },
    "claimingInterval": {
      "description": "Specifies the time interval, in days, within which claims or disputes must be initiated",
      "type": "integer"
    },
    "collection": {
      "description": "whether or not this purchase order line is for a collection",
      "type": "boolean",
      "default": false
    },
    "contributors": {
      "description": "list of contributors to the material",
      "id": "contributors",
      "type": "array",
      "items": {
        "type": "object",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "description": "contributor to the material",
        "properties": {
          "contributor": {
            "description": "the name of a contributor to the material",
            "type": "string"
          },
          "contributorNameTypeId": {
            "description": "UUID of the contributor type",
            "type": "string",
            "pattern": "^[a-f0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
          }
        },
        "additionalProperties": false,
        "required": [
          "contributorNameTypeId"
        ]
      }
    },
    "cost": {
      "description": "cost details associated with this purchase order line",
      "type": "object",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "properties": {
        "listUnitPrice": {
          "description": "The per-item list price for physical or resources of 'Other' order format",
          "type": "number"
        },
        "listUnitPriceElectronic": {
          "description": "The e-resource per-item list price",
          "type": "number"
        },
        "currency": {
          "description": "An ISO currency code",
          "type": "string"
        },
        "additionalCost": {
          "description": "Lump sum that is added to the total estimated price - not affected by discount",
          "type": "number"
        },
        "discount": {
          "description": "Percentage (0 to 100) or amount (positive number) that is subtracted from the list price time quantities calculation before additional cost",
          "type": "number"
        },
        "discountType": {
          "description": "Percentage or amount discount type",
          "type": "string",
          "enum": [
            "amount",
            "percentage"
          ],
          "default": "percentage"
        },
        "exchangeRate": {
          "description": "Exchange rate",
          "type": "number"
        },
        "quantityPhysical": {
          "description": "Quantity of physical items or resources of 'Other' order format in this purchase order line",
          "type": "integer"
        },
        "quantityElectronic": {
          "description": "Quantity of electronic items in this purchase order line",
          "type": "integer"
        },
        "poLineEstimatedPrice": {
          "description": "The calculated total estimated price for this purchase order line: list price time quantities minus discount amount plus additional cost",
          "type": "number"
        },
        "fyroAdjustmentAmount": {
          "description": "Adjustment amount if rollover was happen",
          "type": "number"
        }
      },
      "additionalProperties": false,
      "required": [
        "currency"
      ]
    },
    "description": {
      "description": "description of the material",
      "type": "string"
    },
    "details": {
      "description": "details about this purchase order line",
      "type": "object",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "properties": {
        "receivingNote": {
          "description": "notes regarding receiving instructions",
          "type": "string"
        },
        "isAcknowledged": {
          "description": "Flag for acknowledge receiving note",
          "type": "boolean",
          "default": false
        },
        "isBinderyActive": {
          "description": "Indicates that this POL is designated as required binding",
          "type": "boolean",
          "default": false
        },
        "productIds": {
          "description": "a list of product identifiers",
          "id": "productIds",
          "type": "array",
          "items": {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "description": "Product identifier",
            "type": "object",
            "properties": {
              "productId": {
                "description": "The actual product identifier",
                "type": "string"
              },
              "productIdType": {
                "description": "The type of product identifier",
                "$schema": "http://json-schema.org/draft-04/schema#",
                "type": "string",
                "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
              },
              "qualifier": {
                "description": "Information about the binding, format, volume numbers, part of a set, publisher, distributor, etc. which might be enclosed in parenthesis",
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        "subscriptionFrom": {
          "description": "the start date of the subscription",
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "subscriptionInterval": {
          "description": "the subscription interval in days",
          "type": "integer"
        },
        "subscriptionTo": {
          "description": "the end date of the subscription",
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "additionalProperties": false
    },
    "donor": {
      "description": "the donor contributing to this purchase order line",
      "type": "string"
    },
    "donorOrganizationIds": {
      "description": "donor organization ids associated with this fund",
      "type": "array",
      "items": {
        "description": "UUID of an donor organization record",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "string",
        "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
      }
    },
    "eresource": {
      "description": "eresource-related details of this purchase order line",
      "type": "object",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "properties": {
        "activated": {
          "description": "whether or not this resource is activated",
          "type": "boolean",
          "default": false
        },
        "activationDue": {
          "description": "number of days until activation, from date of order placement",
          "type": "integer"
        },
        "createInventory": {
          "description": "Shows what inventory objects need to be created for electronic resource",
          "type": "string",
          "enum": [
            "Instance, Holding, Item",
            "Instance, Holding",
            "Instance",
            "None"
          ]
        },
        "trial": {
          "description": "whether or not this is a trial",
          "type": "boolean",
          "default": false
        },
        "expectedActivation": {
          "description": "expected date the resource will be activated",
          "type": "string",
          "format": "date-time"
        },
        "userLimit": {
          "description": "the concurrent user-limit",
          "type": "string"
        },
        "accessProvider": {
          "description": "UUID of the access provider",
          "type": "string",
          "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
        },
        "license": {
          "description": "License record",
          "type": "object",
          "$schema": "http://json-schema.org/draft-04/schema#",
          "properties": {
            "code": {
              "description": "license code",
              "type": "string"
            },
            "description": {
              "description": "license description",
              "type": "string"
            },
            "reference": {
              "description": "license reference",
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        "materialType": {
          "description": "UUID of the material Type",
          "type": "string",
          "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
        },
        "resourceUrl": {
          "description": "Electronic resource can be access via this URL",
          "type": "string",
          "pattern": "\\b((?:[a-z][\\w-]+:(?:/{1,3}|[a-z0-9%])|www\\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]{2,4}/)(?:[^\\s()<>]+|\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\))+(?:\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\)|[^\\s`!()\\[\\]{};:'\".,<>?]))"
        }
      },
      "additionalProperties": false
    },
    "fundDistribution": {
      "description": "Fund distribution records for this purchase order line",
      "id": "fundDistribution",
      "type": "array",
      "items": {
        "description": "a fund distribution record",
        "type": "object",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "properties": {
          "code": {
            "description": "the fund code",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "string",
            "pattern": "^[^:]+$"
          },
          "encumbrance": {
            "description": "UUID of encumbrance record associated with this fund distribution",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "string",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
          },
          "fundId": {
            "description": "UUID of the fund associated with this fund distribution",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "string",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
          },
          "expenseClassId": {
            "description": "UUID of the expense class associated with this fund distribution",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "string",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
          },
          "distributionType": {
            "description": "Percentage or amount type of the value property",
            "type": "string",
            "enum": [
              "amount",
              "percentage"
            ],
            "default": "percentage"
          },
          "value": {
            "description": "The value of the cost to be applied to this fund",
            "type": "number"
          }
        },
        "additionalProperties": false,
        "required": [
          "fundId",
          "distributionType",
          "value"
        ]
      }
    },
    "instanceId": {
      "description": "UUID of the instance record this purchase order line is related to",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "type": "string",
      "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
    },
    "isPackage": {
      "description": "Indicates that this POL is for a package",
      "type": "boolean",
      "default": false
    },
    "locations": {
      "description": "Location records for this purchase order line",
      "id": "locations",
      "type": "array",
      "items": {
        "description": "The location details",
        "type": "object",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "properties": {
          "locationId": {
            "description": "UUID of the (inventory) location record",
            "type": "string",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
          },
          "holdingId": {
            "description": "Holding UUID associated with order line",
            "type": "string",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
          },
          "quantity": {
            "description": "Combined/total quanitity of physical and electronic items",
            "type": "integer"
          },
          "quantityElectronic": {
            "description": "Quantity of electronic items",
            "type": "integer"
          },
          "quantityPhysical": {
            "description": "Quantity of physical items",
            "type": "integer"
          },
          "tenantId": {
            "description": "Associated tenant for ECS-enabled clusters",
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    },
    "searchLocationIds": {
      "description": "location ids used for search",
      "type": "array",
      "items": {
        "description": "UUID of location record",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "string",
        "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
      }
    },
    "lastEDIExportDate": {
      "description": "The last date when line was exported in the EDIFACT file",
      "type": "string",
      "format": "date-time"
    },
    "orderFormat": {
      "description": "The purchase order line format",
      "type": "string",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "enum": [
        "Electronic Resource",
        "P/E Mix",
        "Physical Resource",
        "Other"
      ]
    },
    "packagePoLineId": {
      "description": "UUID referencing the poLine that represents the package that this POLs title belongs to",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "type": "string",
      "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
    },
    "paymentStatus": {
      "description": "The purchase order line payment status",
      "type": "string",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "enum": [
        "Awaiting Payment",
        "Cancelled",
        "Fully Paid",
        "Partially Paid",
        "Payment Not Required",
        "Pending",
        "Ongoing"
      ],
      "default": "Pending"
    },
    "physical": {
      "description": "details of this purchase order line relating to physical materials",
      "type": "object",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "properties": {
        "createInventory": {
          "description": "Shows what inventory objects need to be created for physical resource",
          "type": "string",
          "enum": [
            "Instance, Holding, Item",
            "Instance, Holding",
            "Instance",
            "None"
          ]
        },
        "materialType": {
          "description": "UUID of the material Type",
          "type": "string",
          "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
        },
        "materialSupplier": {
          "description": "UUID of the material supplier record",
          "type": "string",
          "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
        },
        "expectedReceiptDate": {
          "description": "vendor agreed date prior to the Receipt Due date item is expected to be received by",
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "receiptDue": {
          "description": "date item should be received by",
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "volumes": {
          "description": "list of volumes included to the physical material",
          "type": "array",
          "items": {
            "description": "the identifier of volume",
            "type": "string"
          }
        }
      },
      "additionalProperties": false,
      "required": [
        "volumes"
      ]
    },
    "poLineDescription": {
      "description": "purchase order line description",
      "type": "string"
    },
    "poLineNumber": {
      "description": "A human readable number assigned to this PO line (assigned automatically)",
      "type": "string",
      "pattern": "^[a-zA-Z0-9]{1,22}-[0-9]{1,3}$"
    },
    "publicationDate": {
      "description": "date (year) of the material's publication",
      "type": "string"
    },
    "publisher": {
      "description": "publisher of the material",
      "type": "string"
    },
    "purchaseOrderId": {
      "description": "UUID of the purchase order",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "type": "string",
      "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
    },
    "receiptDate": {
      "description": "date the purchase order line was received",
      "type": [
        "null",
        "string"
      ],
      "format": "date-time"
    },
    "receiptStatus": {
      "description": "The purchase order line receipt status",
      "type": "string",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "enum": [
        "Awaiting Receipt",
        "Cancelled",
        "Fully Received",
        "Partially Received",
        "Pending",
        "Receipt Not Required",
        "Ongoing"
      ],
      "default": "Pending"
    },
    "renewalNote": {
      "description": "Renewal note for this purchase order line",
      "type": "string"
    },
    "requester": {
      "description": "who requested this purchase order line",
      "type": "string"
    },
    "rush": {
      "description": "whether or not this is a rush order",
      "type": "boolean",
      "default": false
    },
    "selector": {
      "description": "who selected this material",
      "type": "string"
    },
    "source": {
      "description": "the source of this purchase order line",
      "type": "string",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "enum": [
        "User",
        "API",
        "EDI",
        "MARC",
        "EBSCONET"
      ]
    },
    "tags": {
      "description": "arbitrary tags associated with this purchase order line",
      "id": "tags",
      "type": "object",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "title": "tags",
      "properties": {
        "tagList": {
          "description": "List of tags",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "titleOrPackage": {
      "description": "title of the material",
      "type": "string"
    },
    "vendorDetail": {
      "description": "Details related to the vendor of this purchase order line",
      "type": "object",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "properties": {
        "instructions": {
          "description": "special instructions for the vendor",
          "type": "string"
        },
        "noteFromVendor": {
          "description": "free-form notes from the vendor",
          "type": "string"
        },
        "vendorAccount": {
          "description": "the accound number on the vendor's end associated with this purchase order line",
          "type": "string"
        },
        "referenceNumbers": {
          "description": "Collection of reference number items",
          "$schema": "http://json-schema.org/draft-04/schema#",
          "type": "array",
          "items": {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "description": "Reference number item",
            "type": "object",
            "properties": {
              "refNumber": {
                "description": "a reference number for this purchase order line",
                "type": "string"
              },
              "refNumberType": {
                "description": "the reference number type",
                "type": "string",
                "enum": [
                  "Vendor continuation reference number",
                  "Vendor order reference number",
                  "Vendor subscription reference number",
                  "Vendor internal number",
                  "Vendor title number"
                ],
                "javaEnums": [
                  "CONTINUATION_REF_NUMBER",
                  "ORDER_REF_NUMBER",
                  "SUBSCRIPTION_REF_NUMBER",
                  "INTERNAL_NUMBER",
                  "TITLE_NUMBER"
                ]
              },
              "vendorDetailsSource": {
                "description": "the reference number type",
                "type": "string",
                "enum": [
                  "OrderLine",
                  "InvoiceLine"
                ],
                "javaEnums": [
                  "ORDER_LINE",
                  "INVOICE_LINE"
                ]
              }
            },
            "additionalProperties": false
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "suppressInstanceFromDiscovery": {
      "type": "boolean",
      "description": "Records the fact that the record should not be displayed in a discovery system",
      "default": false
    },
    "customFields": {
      "description": "Object that contains custom field",
      "type": "object",
      "$schema": "http://json-schema.org/draft-07/schema#",
      "javaName": "CustomFields",
      "additionalProperties": true
    },
    "metadata": {
      "type": "object",
      "readonly": true,
      "$schema": "http://json-schema.org/draft-04/schema#",
      "id": "metadata.schema",
      "title": "Metadata Schema",
      "description": "Metadata about creation and changes to records, provided by the server (client should not provide)",
      "properties": {
        "createdDate": {
          "description": "Date and time when the record was created",
          "type": "string",
          "format": "date-time"
        },
        "createdByUserId": {
          "description": "ID of the user who created the record (when available)",
          "type": "string",
          "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
        },
        "createdByUsername": {
          "description": "Username of the user who created the record (when available)",
          "type": "string"
        },
        "updatedDate": {
          "description": "Date and time when the record was last updated",
          "type": "string",
          "format": "date-time"
        },
        "updatedByUserId": {
          "description": "ID of the user who last updated the record (when available)",
          "type": "string",
          "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
        },
        "updatedByUsername": {
          "description": "Username of the user who last updated the record (when available)",
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "createdDate"
      ]
    }
  },
  "additionalProperties": false,
  "required": [
    "acquisitionMethod",
    "cost",
    "orderFormat",
    "source",
    "titleOrPackage"
  ]
}

Example:

{
  "id": "c0d08448-347b-418a-8c2f-5fb50248d67e",
  "edition": "First edition",
  "checkinItems": false,
  "instanceId": "8343e5a0-fed8-11e8-8eb2-f2801f1b9fd1",
  "isPackage": false,
  "agreementId": "bdc75fea-fed8-11e8-8eb2-f2801f1b9fd1",
  "acquisitionMethod": "73d14bc5-d131-48c6-b380-f8e62f63c8f3",
  "automaticExport": true,
  "cancellationRestriction": false,
  "cancellationRestrictionNote": "ABCDEFGHIJKLMNOPQRSTUVW",
  "claims": [
    {
      "claimed": false,
      "sent": "2018-10-09T00:00:00.000Z",
      "grace": 30
    }
  ],
  "claimingActive": false,
  "claimingInterval": 0,
  "collection": false,
  "contributors": [
    {
      "contributor": "Ed Mashburn",
      "contributorNameTypeId": "fbdd42a8-e47d-4694-b448-cc571d1b44c3"
    }
  ],
  "cost": {
    "additionalCost": 4.99,
    "currency": "USD",
    "discount": 5,
    "discountType": "percentage",
    "exchangeRate": 1.12,
    "listUnitPrice": 24.99,
    "listUnitPriceElectronic": 14.99,
    "quantityElectronic": 1,
    "quantityPhysical": 2,
    "poLineEstimatedPrice": 66.71
  },
  "description": "ABCDEFGH",
  "details": {
    "receivingNote": "ABCDEFGHIJKL",
    "isBinderyActive": false,
    "productIds": [
      {
        "productId": "9780764354113",
        "productIdType": "8261054f-be78-422d-bd51-4ed9f33c3422",
        "qualifier": "(paperback)"
      }
    ],
    "subscriptionFrom": "2018-10-09T00:00:00.000Z",
    "subscriptionInterval": 824,
    "subscriptionTo": "2020-10-09T00:00:00.000Z"
  },
  "donor": "ABCDEFGHIJKLM",
  "donorOrganizationIds": [
    "d926d900-e27d-46d6-bba8-31e9d5c2cf44",
    "077274ad-6b4f-4c28-9779-6d381e7a1ca1"
  ],
  "eresource": {
    "accessProvider": "ba3f3d45-247d-41f6-8dc9-6488adcad329",
    "activated": false,
    "activationDue": 10,
    "createInventory": "Instance, Holding",
    "expectedActivation": "2018-10-09T00:00:00.000Z",
    "license": {
      "code": "Code 1",
      "description": "License Agreement 1"
    },
    "materialType": "4920caaf-871f-4f08-9bd5-b897203fd7fb",
    "trial": false,
    "userLimit": "10",
    "resourceUrl": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
  },
  "fundDistribution": [
    {
      "code": "HIST",
      "fundId": "63157e96-0693-426d-b0df-948bacdfdb08",
      "distributionType": "percentage",
      "value": 80.0,
      "encumbrance": "eb506834-6c70-4239-8d1a-6414a5b08ac3"
    },
    {
      "code": "EUROHIST",
      "fundId": "e9285a1c-1dfc-4380-868c-e74073003f43",
      "distributionType": "amount",
      "value": 13.34,
      "encumbrance": "fb506834-6c70-4239-8d1a-6414a5b08ac3"
    }
  ],
  "locations": [
    {
      "locationId": "eb2d063a-5b4c-4cab-8db1-5fc5c5941df6",
      "quantity": 1,
      "quantityElectronic": 1,
      "quantityPhysical": 0,
      "tenantId": "diku"
    },
    {
      "locationId": "53cf956f-c1df-410b-8bea-27f712cca7c0",
      "quantity": 2,
      "quantityElectronic": 0,
      "quantityPhysical": 2,
      "tenantId": "diku"
    }
  ],
  "searchLocationIds": [
    "eb2d063a-5b4c-4cab-8db1-5fc5c5941df6",
    "53cf956f-c1df-410b-8bea-27f712cca7c0"
  ],
  "lastEDIExportDate": "2018-10-05T00:00:00.000Z",
  "orderFormat": "P/E Mix",
  "paymentStatus": "Awaiting Payment",
  "physical": {
    "createInventory": "Instance, Holding, Item",
    "volumes": [
      "vol. 1"
    ],
    "materialSupplier": "73d14bc5-d131-48c6-b380-f8e62f63c8b6",
    "materialType": "a058cb27-a77d-4cb3-b76b-2adc931fb0c9",
    "expectedReceiptDate": "2018-10-05T00:00:00.000Z",
    "receiptDue": "2018-10-10T00:00:00.000Z"
  },
  "poLineDescription": "ABCDEFGHIJKLMNOPQRSTUVWXY",
  "poLineNumber": "268758-03",
  "publicationDate": "2017",
  "publisher": "Schiffer Publishing",
  "purchaseOrderId": "d79b0bcc-DcAD-1E4E-Abb7-DbFcaD5BB3bb",
  "receiptDate": "2018-10-09T00:00:00.000Z",
  "receiptStatus": "Awaiting Receipt",
  "requester": "Leo Bulero",
  "rush": true,
  "selector": "ABCD",
  "source": "User",
  "tags": {
    "tagList": [
      "important"
    ]
  },
  "titleOrPackage": "Kayak Fishing in the Northern Gulf Coast",
  "vendorDetail": {
    "instructions": "ABCDEFG",
    "noteFromVendor": "ABCDEFGHIKJKLMNOP",
    "referenceNumbers": [
      {
        "refNumber": "123456-78",
        "refNumberType": "Vendor title number",
        "vendorDetailsSource": "OrderLine"
      }
    ],
    "vendorAccount": "8910-25"
  },
  "suppressInstanceFromDiscovery": true,
  "customFields": {
    "externalOrderNumber": "ML58723"
  },
  "metadata": {
    "createdDate": "2018-07-19T00:00:00.000+0000",
    "createdByUserId": "28d1057c-d137-11e8-a8d5-f2801f1b9fd1"
  },
  "holdingIds": [
    "c0d08448-347b-418a-8c2f-5fb50248d67x"
  ]
}

Response 201

Returns a newly created item, with server-controlled fields like 'id' populated

Headers
  • Location: required (string)

    URI to the created order-line item

Body

Media type: application/json

Type: any

Example:

{
  "id": "c0d08448-347b-418a-8c2f-5fb50248d67e",
  "edition": "First edition",
  "checkinItems": false,
  "instanceId": "8343e5a0-fed8-11e8-8eb2-f2801f1b9fd1",
  "isPackage": false,
  "agreementId": "bdc75fea-fed8-11e8-8eb2-f2801f1b9fd1",
  "acquisitionMethod": "73d14bc5-d131-48c6-b380-f8e62f63c8f3",
  "automaticExport": true,
  "cancellationRestriction": false,
  "cancellationRestrictionNote": "ABCDEFGHIJKLMNOPQRSTUVW",
  "claims": [
    {
      "claimed": false,
      "sent": "2018-10-09T00:00:00.000Z",
      "grace": 30
    }
  ],
  "claimingActive": false,
  "claimingInterval": 0,
  "collection": false,
  "contributors": [
    {
      "contributor": "Ed Mashburn",
      "contributorNameTypeId": "fbdd42a8-e47d-4694-b448-cc571d1b44c3"
    }
  ],
  "cost": {
    "additionalCost": 4.99,
    "currency": "USD",
    "discount": 5,
    "discountType": "percentage",
    "exchangeRate": 1.12,
    "listUnitPrice": 24.99,
    "listUnitPriceElectronic": 14.99,
    "quantityElectronic": 1,
    "quantityPhysical": 2,
    "poLineEstimatedPrice": 66.71
  },
  "description": "ABCDEFGH",
  "details": {
    "receivingNote": "ABCDEFGHIJKL",
    "isBinderyActive": false,
    "productIds": [
      {
        "productId": "9780764354113",
        "productIdType": "8261054f-be78-422d-bd51-4ed9f33c3422",
        "qualifier": "(paperback)"
      }
    ],
    "subscriptionFrom": "2018-10-09T00:00:00.000Z",
    "subscriptionInterval": 824,
    "subscriptionTo": "2020-10-09T00:00:00.000Z"
  },
  "donor": "ABCDEFGHIJKLM",
  "donorOrganizationIds": [
    "d926d900-e27d-46d6-bba8-31e9d5c2cf44",
    "077274ad-6b4f-4c28-9779-6d381e7a1ca1"
  ],
  "eresource": {
    "accessProvider": "ba3f3d45-247d-41f6-8dc9-6488adcad329",
    "activated": false,
    "activationDue": 10,
    "createInventory": "Instance, Holding",
    "expectedActivation": "2018-10-09T00:00:00.000Z",
    "license": {
      "code": "Code 1",
      "description": "License Agreement 1"
    },
    "materialType": "4920caaf-871f-4f08-9bd5-b897203fd7fb",
    "trial": false,
    "userLimit": "10",
    "resourceUrl": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
  },
  "fundDistribution": [
    {
      "code": "HIST",
      "fundId": "63157e96-0693-426d-b0df-948bacdfdb08",
      "distributionType": "percentage",
      "value": 80.0,
      "encumbrance": "eb506834-6c70-4239-8d1a-6414a5b08ac3"
    },
    {
      "code": "EUROHIST",
      "fundId": "e9285a1c-1dfc-4380-868c-e74073003f43",
      "distributionType": "amount",
      "value": 13.34,
      "encumbrance": "fb506834-6c70-4239-8d1a-6414a5b08ac3"
    }
  ],
  "locations": [
    {
      "locationId": "eb2d063a-5b4c-4cab-8db1-5fc5c5941df6",
      "quantity": 1,
      "quantityElectronic": 1,
      "quantityPhysical": 0,
      "tenantId": "diku"
    },
    {
      "locationId": "53cf956f-c1df-410b-8bea-27f712cca7c0",
      "quantity": 2,
      "quantityElectronic": 0,
      "quantityPhysical": 2,
      "tenantId": "diku"
    }
  ],
  "searchLocationIds": [
    "eb2d063a-5b4c-4cab-8db1-5fc5c5941df6",
    "53cf956f-c1df-410b-8bea-27f712cca7c0"
  ],
  "lastEDIExportDate": "2018-10-05T00:00:00.000Z",
  "orderFormat": "P/E Mix",
  "paymentStatus": "Awaiting Payment",
  "physical": {
    "createInventory": "Instance, Holding, Item",
    "volumes": [
      "vol. 1"
    ],
    "materialSupplier": "73d14bc5-d131-48c6-b380-f8e62f63c8b6",
    "materialType": "a058cb27-a77d-4cb3-b76b-2adc931fb0c9",
    "expectedReceiptDate": "2018-10-05T00:00:00.000Z",
    "receiptDue": "2018-10-10T00:00:00.000Z"
  },
  "poLineDescription": "ABCDEFGHIJKLMNOPQRSTUVWXY",
  "poLineNumber": "268758-03",
  "publicationDate": "2017",
  "publisher": "Schiffer Publishing",
  "purchaseOrderId": "d79b0bcc-DcAD-1E4E-Abb7-DbFcaD5BB3bb",
  "receiptDate": "2018-10-09T00:00:00.000Z",
  "receiptStatus": "Awaiting Receipt",
  "requester": "Leo Bulero",
  "rush": true,
  "selector": "ABCD",
  "source": "User",
  "tags": {
    "tagList": [
      "important"
    ]
  },
  "titleOrPackage": "Kayak Fishing in the Northern Gulf Coast",
  "vendorDetail": {
    "instructions": "ABCDEFG",
    "noteFromVendor": "ABCDEFGHIKJKLMNOP",
    "referenceNumbers": [
      {
        "refNumber": "123456-78",
        "refNumberType": "Vendor title number",
        "vendorDetailsSource": "OrderLine"
      }
    ],
    "vendorAccount": "8910-25"
  },
  "suppressInstanceFromDiscovery": true,
  "customFields": {
    "externalOrderNumber": "ML58723"
  },
  "metadata": {
    "createdDate": "2018-07-19T00:00:00.000+0000",
    "createdByUserId": "28d1057c-d137-11e8-a8d5-f2801f1b9fd1"
  },
  "holdingIds": [
    "c0d08448-347b-418a-8c2f-5fb50248d67x"
  ]
}

Response 400

Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.

Body

Media type: application/json

Type: any

Example:

{
  "errors": [
    {
      "message": "may not be null",
      "type": "1",
      "code": "-1",
      "parameters": [
        {
          "key": "moduleTo",
          "value": "null"
        }
      ]
    }
  ]
}

Media type: text/plain

Type: any

Example:

"unable to add order-line -- malformed JSON at 13:3"

Response 401

Not authorized to perform requested action

Body

Media type: application/json

Type: any

Example:

{
  "errors": [
    {
      "message": "may not be null",
      "type": "1",
      "code": "-1",
      "parameters": [
        {
          "key": "moduleTo",
          "value": "null"
        }
      ]
    }
  ]
}

Media type: text/plain

Type: any

Example:

unable to create order-lines -- unauthorized

Response 422

Validation errors

Body

Media type: application/json

Type: json

Content:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "errors.schema",
  "description": "A set of errors",
  "type": "object",
  "properties": {
    "errors": {
      "description": "List of errors",
      "id": "errors",
      "type": "array",
      "items": {
        "type": "object",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "id": "error.schema",
        "description": "An error",
        "properties": {
          "message": {
            "type": "string",
            "description": "Error message text"
          },
          "type": {
            "type": "string",
            "description": "Error message type"
          },
          "code": {
            "type": "string",
            "description": "Error message code"
          },
          "parameters": {
            "description": "Error message parameters",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "id": "parameters.schema",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                }
              }
            }
          }
        },
        "required": [
          "message"
        ]
      }
    },
    "total_records": {
      "description": "Total number of errors",
      "type": "integer"
    }
  }
}

Example:

{
  "errors": [
    {
      "message": "may not be null",
      "type": "1",
      "code": "-1",
      "parameters": [
        {
          "key": "moduleTo",
          "value": "null"
        }
      ]
    }
  ]
}

Response 500

Internal server error, e.g. due to misconfiguration

Body

Media type: application/json

Type: any

Example:

{
  "errors": [
    {
      "message": "may not be null",
      "type": "1",
      "code": "-1",
      "parameters": [
        {
          "key": "moduleTo",
          "value": "null"
        }
      ]
    }
  ]
}

Media type: text/plain

Type: any

Example:

Internal server error, contact administrator

GET /orders/order-lines/{id}

Return a purchase order line with given {id}

GET /orders/order-lines/{id}
URI Parameters
  • id: required (string - pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$)

    The UUID of a purchase order line

Response 200

Returns item with a given ID

Body

Media type: application/json

Type: json

Content:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description": "purchase order line",
  "type": "object",
  "javaName": "PoLine",
  "properties": {
    "id": {
      "description": "UUID identifying this purchase order line",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "type": "string",
      "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
    },
    "edition": {
      "description": "edition of the material",
      "type": "string"
    },
    "checkinItems": {
      "description": "if true this will toggle the Check-in workflow for details associated with this PO line",
      "type": "boolean",
      "default": false
    },
    "agreementId": {
      "description": "UUID of the agreement this purchase order line is related to",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "type": "string",
      "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
    },
    "acquisitionMethod": {
      "description": "UUID of the acquisition method for this purchase order line",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "type": "string",
      "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
    },
    "automaticExport": {
      "description": "if true then line will be marked as available to export in the EDIFACT format or other format",
      "type": "boolean",
      "default": false
    },
    "cancellationRestriction": {
      "description": "whether or not there are cancellation restrictions for this purchase order line",
      "type": "boolean"
    },
    "cancellationRestrictionNote": {
      "description": "free-form notes related to cancellation restrictions",
      "type": "string"
    },
    "claims": {
      "description": "claims associated with this purchase order line",
      "id": "claims",
      "type": "array",
      "items": {
        "description": "a claim record",
        "type": "object",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "properties": {
          "claimed": {
            "description": "whether or not this purchase order line has been claimed",
            "type": "boolean",
            "default": false
          },
          "sent": {
            "description": "date a claim was sent",
            "type": "string",
            "format": "date-time"
          },
          "grace": {
            "description": "the number of days after the expected receipt date during which claims should not be processed",
            "type": "integer"
          }
        },
        "additionalProperties": false
      }
    },
    "claimingActive": {
      "description": "Indicates if there is an active claim or dispute",
      "type": "boolean",
      "default": false
    },
    "claimingInterval": {
      "description": "Specifies the time interval, in days, within which claims or disputes must be initiated",
      "type": "integer"
    },
    "collection": {
      "description": "whether or not this purchase order line is for a collection",
      "type": "boolean",
      "default": false
    },
    "contributors": {
      "description": "list of contributors to the material",
      "id": "contributors",
      "type": "array",
      "items": {
        "type": "object",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "description": "contributor to the material",
        "properties": {
          "contributor": {
            "description": "the name of a contributor to the material",
            "type": "string"
          },
          "contributorNameTypeId": {
            "description": "UUID of the contributor type",
            "type": "string",
            "pattern": "^[a-f0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
          }
        },
        "additionalProperties": false,
        "required": [
          "contributorNameTypeId"
        ]
      }
    },
    "cost": {
      "description": "cost details associated with this purchase order line",
      "type": "object",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "properties": {
        "listUnitPrice": {
          "description": "The per-item list price for physical or resources of 'Other' order format",
          "type": "number"
        },
        "listUnitPriceElectronic": {
          "description": "The e-resource per-item list price",
          "type": "number"
        },
        "currency": {
          "description": "An ISO currency code",
          "type": "string"
        },
        "additionalCost": {
          "description": "Lump sum that is added to the total estimated price - not affected by discount",
          "type": "number"
        },
        "discount": {
          "description": "Percentage (0 to 100) or amount (positive number) that is subtracted from the list price time quantities calculation before additional cost",
          "type": "number"
        },
        "discountType": {
          "description": "Percentage or amount discount type",
          "type": "string",
          "enum": [
            "amount",
            "percentage"
          ],
          "default": "percentage"
        },
        "exchangeRate": {
          "description": "Exchange rate",
          "type": "number"
        },
        "quantityPhysical": {
          "description": "Quantity of physical items or resources of 'Other' order format in this purchase order line",
          "type": "integer"
        },
        "quantityElectronic": {
          "description": "Quantity of electronic items in this purchase order line",
          "type": "integer"
        },
        "poLineEstimatedPrice": {
          "description": "The calculated total estimated price for this purchase order line: list price time quantities minus discount amount plus additional cost",
          "type": "number"
        },
        "fyroAdjustmentAmount": {
          "description": "Adjustment amount if rollover was happen",
          "type": "number"
        }
      },
      "additionalProperties": false,
      "required": [
        "currency"
      ]
    },
    "description": {
      "description": "description of the material",
      "type": "string"
    },
    "details": {
      "description": "details about this purchase order line",
      "type": "object",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "properties": {
        "receivingNote": {
          "description": "notes regarding receiving instructions",
          "type": "string"
        },
        "isAcknowledged": {
          "description": "Flag for acknowledge receiving note",
          "type": "boolean",
          "default": false
        },
        "isBinderyActive": {
          "description": "Indicates that this POL is designated as required binding",
          "type": "boolean",
          "default": false
        },
        "productIds": {
          "description": "a list of product identifiers",
          "id": "productIds",
          "type": "array",
          "items": {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "description": "Product identifier",
            "type": "object",
            "properties": {
              "productId": {
                "description": "The actual product identifier",
                "type": "string"
              },
              "productIdType": {
                "description": "The type of product identifier",
                "$schema": "http://json-schema.org/draft-04/schema#",
                "type": "string",
                "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
              },
              "qualifier": {
                "description": "Information about the binding, format, volume numbers, part of a set, publisher, distributor, etc. which might be enclosed in parenthesis",
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        "subscriptionFrom": {
          "description": "the start date of the subscription",
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "subscriptionInterval": {
          "description": "the subscription interval in days",
          "type": "integer"
        },
        "subscriptionTo": {
          "description": "the end date of the subscription",
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "additionalProperties": false
    },
    "donor": {
      "description": "the donor contributing to this purchase order line",
      "type": "string"
    },
    "donorOrganizationIds": {
      "description": "donor organization ids associated with this fund",
      "type": "array",
      "items": {
        "description": "UUID of an donor organization record",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "string",
        "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
      }
    },
    "eresource": {
      "description": "eresource-related details of this purchase order line",
      "type": "object",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "properties": {
        "activated": {
          "description": "whether or not this resource is activated",
          "type": "boolean",
          "default": false
        },
        "activationDue": {
          "description": "number of days until activation, from date of order placement",
          "type": "integer"
        },
        "createInventory": {
          "description": "Shows what inventory objects need to be created for electronic resource",
          "type": "string",
          "enum": [
            "Instance, Holding, Item",
            "Instance, Holding",
            "Instance",
            "None"
          ]
        },
        "trial": {
          "description": "whether or not this is a trial",
          "type": "boolean",
          "default": false
        },
        "expectedActivation": {
          "description": "expected date the resource will be activated",
          "type": "string",
          "format": "date-time"
        },
        "userLimit": {
          "description": "the concurrent user-limit",
          "type": "string"
        },
        "accessProvider": {
          "description": "UUID of the access provider",
          "type": "string",
          "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
        },
        "license": {
          "description": "License record",
          "type": "object",
          "$schema": "http://json-schema.org/draft-04/schema#",
          "properties": {
            "code": {
              "description": "license code",
              "type": "string"
            },
            "description": {
              "description": "license description",
              "type": "string"
            },
            "reference": {
              "description": "license reference",
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        "materialType": {
          "description": "UUID of the material Type",
          "type": "string",
          "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
        },
        "resourceUrl": {
          "description": "Electronic resource can be access via this URL",
          "type": "string",
          "pattern": "\\b((?:[a-z][\\w-]+:(?:/{1,3}|[a-z0-9%])|www\\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]{2,4}/)(?:[^\\s()<>]+|\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\))+(?:\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\)|[^\\s`!()\\[\\]{};:'\".,<>?]))"
        }
      },
      "additionalProperties": false
    },
    "fundDistribution": {
      "description": "Fund distribution records for this purchase order line",
      "id": "fundDistribution",
      "type": "array",
      "items": {
        "description": "a fund distribution record",
        "type": "object",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "properties": {
          "code": {
            "description": "the fund code",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "string",
            "pattern": "^[^:]+$"
          },
          "encumbrance": {
            "description": "UUID of encumbrance record associated with this fund distribution",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "string",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
          },
          "fundId": {
            "description": "UUID of the fund associated with this fund distribution",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "string",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
          },
          "expenseClassId": {
            "description": "UUID of the expense class associated with this fund distribution",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "string",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
          },
          "distributionType": {
            "description": "Percentage or amount type of the value property",
            "type": "string",
            "enum": [
              "amount",
              "percentage"
            ],
            "default": "percentage"
          },
          "value": {
            "description": "The value of the cost to be applied to this fund",
            "type": "number"
          }
        },
        "additionalProperties": false,
        "required": [
          "fundId",
          "distributionType",
          "value"
        ]
      }
    },
    "instanceId": {
      "description": "UUID of the instance record this purchase order line is related to",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "type": "string",
      "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
    },
    "isPackage": {
      "description": "Indicates that this POL is for a package",
      "type": "boolean",
      "default": false
    },
    "locations": {
      "description": "Location records for this purchase order line",
      "id": "locations",
      "type": "array",
      "items": {
        "description": "The location details",
        "type": "object",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "properties": {
          "locationId": {
            "description": "UUID of the (inventory) location record",
            "type": "string",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
          },
          "holdingId": {
            "description": "Holding UUID associated with order line",
            "type": "string",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
          },
          "quantity": {
            "description": "Combined/total quanitity of physical and electronic items",
            "type": "integer"
          },
          "quantityElectronic": {
            "description": "Quantity of electronic items",
            "type": "integer"
          },
          "quantityPhysical": {
            "description": "Quantity of physical items",
            "type": "integer"
          },
          "tenantId": {
            "description": "Associated tenant for ECS-enabled clusters",
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    },
    "searchLocationIds": {
      "description": "location ids used for search",
      "type": "array",
      "items": {
        "description": "UUID of location record",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "string",
        "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
      }
    },
    "lastEDIExportDate": {
      "description": "The last date when line was exported in the EDIFACT file",
      "type": "string",
      "format": "date-time"
    },
    "orderFormat": {
      "description": "The purchase order line format",
      "type": "string",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "enum": [
        "Electronic Resource",
        "P/E Mix",
        "Physical Resource",
        "Other"
      ]
    },
    "packagePoLineId": {
      "description": "UUID referencing the poLine that represents the package that this POLs title belongs to",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "type": "string",
      "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
    },
    "paymentStatus": {
      "description": "The purchase order line payment status",
      "type": "string",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "enum": [
        "Awaiting Payment",
        "Cancelled",
        "Fully Paid",
        "Partially Paid",
        "Payment Not Required",
        "Pending",
        "Ongoing"
      ],
      "default": "Pending"
    },
    "physical": {
      "description": "details of this purchase order line relating to physical materials",
      "type": "object",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "properties": {
        "createInventory": {
          "description": "Shows what inventory objects need to be created for physical resource",
          "type": "string",
          "enum": [
            "Instance, Holding, Item",
            "Instance, Holding",
            "Instance",
            "None"
          ]
        },
        "materialType": {
          "description": "UUID of the material Type",
          "type": "string",
          "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
        },
        "materialSupplier": {
          "description": "UUID of the material supplier record",
          "type": "string",
          "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
        },
        "expectedReceiptDate": {
          "description": "vendor agreed date prior to the Receipt Due date item is expected to be received by",
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "receiptDue": {
          "description": "date item should be received by",
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "volumes": {
          "description": "list of volumes included to the physical material",
          "type": "array",
          "items": {
            "description": "the identifier of volume",
            "type": "string"
          }
        }
      },
      "additionalProperties": false,
      "required": [
        "volumes"
      ]
    },
    "poLineDescription": {
      "description": "purchase order line description",
      "type": "string"
    },
    "poLineNumber": {
      "description": "A human readable number assigned to this PO line (assigned automatically)",
      "type": "string",
      "pattern": "^[a-zA-Z0-9]{1,22}-[0-9]{1,3}$"
    },
    "publicationDate": {
      "description": "date (year) of the material's publication",
      "type": "string"
    },
    "publisher": {
      "description": "publisher of the material",
      "type": "string"
    },
    "purchaseOrderId": {
      "description": "UUID of the purchase order",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "type": "string",
      "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
    },
    "receiptDate": {
      "description": "date the purchase order line was received",
      "type": [
        "null",
        "string"
      ],
      "format": "date-time"
    },
    "receiptStatus": {
      "description": "The purchase order line receipt status",
      "type": "string",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "enum": [
        "Awaiting Receipt",
        "Cancelled",
        "Fully Received",
        "Partially Received",
        "Pending",
        "Receipt Not Required",
        "Ongoing"
      ],
      "default": "Pending"
    },
    "renewalNote": {
      "description": "Renewal note for this purchase order line",
      "type": "string"
    },
    "requester": {
      "description": "who requested this purchase order line",
      "type": "string"
    },
    "rush": {
      "description": "whether or not this is a rush order",
      "type": "boolean",
      "default": false
    },
    "selector": {
      "description": "who selected this material",
      "type": "string"
    },
    "source": {
      "description": "the source of this purchase order line",
      "type": "string",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "enum": [
        "User",
        "API",
        "EDI",
        "MARC",
        "EBSCONET"
      ]
    },
    "tags": {
      "description": "arbitrary tags associated with this purchase order line",
      "id": "tags",
      "type": "object",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "title": "tags",
      "properties": {
        "tagList": {
          "description": "List of tags",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "titleOrPackage": {
      "description": "title of the material",
      "type": "string"
    },
    "vendorDetail": {
      "description": "Details related to the vendor of this purchase order line",
      "type": "object",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "properties": {
        "instructions": {
          "description": "special instructions for the vendor",
          "type": "string"
        },
        "noteFromVendor": {
          "description": "free-form notes from the vendor",
          "type": "string"
        },
        "vendorAccount": {
          "description": "the accound number on the vendor's end associated with this purchase order line",
          "type": "string"
        },
        "referenceNumbers": {
          "description": "Collection of reference number items",
          "$schema": "http://json-schema.org/draft-04/schema#",
          "type": "array",
          "items": {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "description": "Reference number item",
            "type": "object",
            "properties": {
              "refNumber": {
                "description": "a reference number for this purchase order line",
                "type": "string"
              },
              "refNumberType": {
                "description": "the reference number type",
                "type": "string",
                "enum": [
                  "Vendor continuation reference number",
                  "Vendor order reference number",
                  "Vendor subscription reference number",
                  "Vendor internal number",
                  "Vendor title number"
                ],
                "javaEnums": [
                  "CONTINUATION_REF_NUMBER",
                  "ORDER_REF_NUMBER",
                  "SUBSCRIPTION_REF_NUMBER",
                  "INTERNAL_NUMBER",
                  "TITLE_NUMBER"
                ]
              },
              "vendorDetailsSource": {
                "description": "the reference number type",
                "type": "string",
                "enum": [
                  "OrderLine",
                  "InvoiceLine"
                ],
                "javaEnums": [
                  "ORDER_LINE",
                  "INVOICE_LINE"
                ]
              }
            },
            "additionalProperties": false
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "suppressInstanceFromDiscovery": {
      "type": "boolean",
      "description": "Records the fact that the record should not be displayed in a discovery system",
      "default": false
    },
    "customFields": {
      "description": "Object that contains custom field",
      "type": "object",
      "$schema": "http://json-schema.org/draft-07/schema#",
      "javaName": "CustomFields",
      "additionalProperties": true
    },
    "metadata": {
      "type": "object",
      "readonly": true,
      "$schema": "http://json-schema.org/draft-04/schema#",
      "id": "metadata.schema",
      "title": "Metadata Schema",
      "description": "Metadata about creation and changes to records, provided by the server (client should not provide)",
      "properties": {
        "createdDate": {
          "description": "Date and time when the record was created",
          "type": "string",
          "format": "date-time"
        },
        "createdByUserId": {
          "description": "ID of the user who created the record (when available)",
          "type": "string",
          "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
        },
        "createdByUsername": {
          "description": "Username of the user who created the record (when available)",
          "type": "string"
        },
        "updatedDate": {
          "description": "Date and time when the record was last updated",
          "type": "string",
          "format": "date-time"
        },
        "updatedByUserId": {
          "description": "ID of the user who last updated the record (when available)",
          "type": "string",
          "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
        },
        "updatedByUsername": {
          "description": "Username of the user who last updated the record (when available)",
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "createdDate"
      ]
    }
  },
  "additionalProperties": false,
  "required": [
    "acquisitionMethod",
    "cost",
    "orderFormat",
    "source",
    "titleOrPackage"
  ]
}

Example:

{
  "id": "c0d08448-347b-418a-8c2f-5fb50248d67e",
  "edition": "First edition",
  "checkinItems": false,
  "instanceId": "8343e5a0-fed8-11e8-8eb2-f2801f1b9fd1",
  "isPackage": false,
  "agreementId": "bdc75fea-fed8-11e8-8eb2-f2801f1b9fd1",
  "acquisitionMethod": "73d14bc5-d131-48c6-b380-f8e62f63c8f3",
  "automaticExport": true,
  "cancellationRestriction": false,
  "cancellationRestrictionNote": "ABCDEFGHIJKLMNOPQRSTUVW",
  "claims": [
    {
      "claimed": false,
      "sent": "2018-10-09T00:00:00.000Z",
      "grace": 30
    }
  ],
  "claimingActive": false,
  "claimingInterval": 0,
  "collection": false,
  "contributors": [
    {
      "contributor": "Ed Mashburn",
      "contributorNameTypeId": "fbdd42a8-e47d-4694-b448-cc571d1b44c3"
    }
  ],
  "cost": {
    "additionalCost": 4.99,
    "currency": "USD",
    "discount": 5,
    "discountType": "percentage",
    "exchangeRate": 1.12,
    "listUnitPrice": 24.99,
    "listUnitPriceElectronic": 14.99,
    "quantityElectronic": 1,
    "quantityPhysical": 2,
    "poLineEstimatedPrice": 66.71
  },
  "description": "ABCDEFGH",
  "details": {
    "receivingNote": "ABCDEFGHIJKL",
    "isBinderyActive": false,
    "productIds": [
      {
        "productId": "9780764354113",
        "productIdType": "8261054f-be78-422d-bd51-4ed9f33c3422",
        "qualifier": "(paperback)"
      }
    ],
    "subscriptionFrom": "2018-10-09T00:00:00.000Z",
    "subscriptionInterval": 824,
    "subscriptionTo": "2020-10-09T00:00:00.000Z"
  },
  "donor": "ABCDEFGHIJKLM",
  "donorOrganizationIds": [
    "d926d900-e27d-46d6-bba8-31e9d5c2cf44",
    "077274ad-6b4f-4c28-9779-6d381e7a1ca1"
  ],
  "eresource": {
    "accessProvider": "ba3f3d45-247d-41f6-8dc9-6488adcad329",
    "activated": false,
    "activationDue": 10,
    "createInventory": "Instance, Holding",
    "expectedActivation": "2018-10-09T00:00:00.000Z",
    "license": {
      "code": "Code 1",
      "description": "License Agreement 1"
    },
    "materialType": "4920caaf-871f-4f08-9bd5-b897203fd7fb",
    "trial": false,
    "userLimit": "10",
    "resourceUrl": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
  },
  "fundDistribution": [
    {
      "code": "HIST",
      "fundId": "63157e96-0693-426d-b0df-948bacdfdb08",
      "distributionType": "percentage",
      "value": 80.0,
      "encumbrance": "eb506834-6c70-4239-8d1a-6414a5b08ac3"
    },
    {
      "code": "EUROHIST",
      "fundId": "e9285a1c-1dfc-4380-868c-e74073003f43",
      "distributionType": "amount",
      "value": 13.34,
      "encumbrance": "fb506834-6c70-4239-8d1a-6414a5b08ac3"
    }
  ],
  "locations": [
    {
      "locationId": "eb2d063a-5b4c-4cab-8db1-5fc5c5941df6",
      "quantity": 1,
      "quantityElectronic": 1,
      "quantityPhysical": 0,
      "tenantId": "diku"
    },
    {
      "locationId": "53cf956f-c1df-410b-8bea-27f712cca7c0",
      "quantity": 2,
      "quantityElectronic": 0,
      "quantityPhysical": 2,
      "tenantId": "diku"
    }
  ],
  "searchLocationIds": [
    "eb2d063a-5b4c-4cab-8db1-5fc5c5941df6",
    "53cf956f-c1df-410b-8bea-27f712cca7c0"
  ],
  "lastEDIExportDate": "2018-10-05T00:00:00.000Z",
  "orderFormat": "P/E Mix",
  "paymentStatus": "Awaiting Payment",
  "physical": {
    "createInventory": "Instance, Holding, Item",
    "volumes": [
      "vol. 1"
    ],
    "materialSupplier": "73d14bc5-d131-48c6-b380-f8e62f63c8b6",
    "materialType": "a058cb27-a77d-4cb3-b76b-2adc931fb0c9",
    "expectedReceiptDate": "2018-10-05T00:00:00.000Z",
    "receiptDue": "2018-10-10T00:00:00.000Z"
  },
  "poLineDescription": "ABCDEFGHIJKLMNOPQRSTUVWXY",
  "poLineNumber": "268758-03",
  "publicationDate": "2017",
  "publisher": "Schiffer Publishing",
  "purchaseOrderId": "d79b0bcc-DcAD-1E4E-Abb7-DbFcaD5BB3bb",
  "receiptDate": "2018-10-09T00:00:00.000Z",
  "receiptStatus": "Awaiting Receipt",
  "requester": "Leo Bulero",
  "rush": true,
  "selector": "ABCD",
  "source": "User",
  "tags": {
    "tagList": [
      "important"
    ]
  },
  "titleOrPackage": "Kayak Fishing in the Northern Gulf Coast",
  "vendorDetail": {
    "instructions": "ABCDEFG",
    "noteFromVendor": "ABCDEFGHIKJKLMNOP",
    "referenceNumbers": [
      {
        "refNumber": "123456-78",
        "refNumberType": "Vendor title number",
        "vendorDetailsSource": "OrderLine"
      }
    ],
    "vendorAccount": "8910-25"
  },
  "suppressInstanceFromDiscovery": true,
  "customFields": {
    "externalOrderNumber": "ML58723"
  },
  "metadata": {
    "createdDate": "2018-07-19T00:00:00.000+0000",
    "createdByUserId": "28d1057c-d137-11e8-a8d5-f2801f1b9fd1"
  },
  "holdingIds": [
    "c0d08448-347b-418a-8c2f-5fb50248d67x"
  ]
}

Response 404

Item with a given ID not found

Body

Media type: application/json

Type: any

Example:

{
  "errors": [
    {
      "message": "may not be null",
      "type": "1",
      "code": "-1",
      "parameters": [
        {
          "key": "moduleTo",
          "value": "null"
        }
      ]
    }
  ]
}

Media type: text/plain

Type: any

Example:

"order-line not found"

Response 422

Validation errors

Body

Media type: application/json

Type: json

Content:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "errors.schema",
  "description": "A set of errors",
  "type": "object",
  "properties": {
    "errors": {
      "description": "List of errors",
      "id": "errors",
      "type": "array",
      "items": {
        "type": "object",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "id": "error.schema",
        "description": "An error",
        "properties": {
          "message": {
            "type": "string",
            "description": "Error message text"
          },
          "type": {
            "type": "string",
            "description": "Error message type"
          },
          "code": {
            "type": "string",
            "description": "Error message code"
          },
          "parameters": {
            "description": "Error message parameters",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "id": "parameters.schema",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                }
              }
            }
          }
        },
        "required": [
          "message"
        ]
      }
    },
    "total_records": {
      "description": "Total number of errors",
      "type": "integer"
    }
  }
}

Example:

{
  "errors": [
    {
      "message": "may not be null",
      "type": "1",
      "code": "-1",
      "parameters": [
        {
          "key": "moduleTo",
          "value": "null"
        }
      ]
    }
  ]
}

Response 500

Internal server error, e.g. due to misconfiguration

Body

Media type: application/json

Type: any

Example:

{
  "errors": [
    {
      "message": "may not be null",
      "type": "1",
      "code": "-1",
      "parameters": [
        {
          "key": "moduleTo",
          "value": "null"
        }
      ]
    }
  ]
}

Media type: text/plain

Type: any

Example:

internal server error, contact administrator

PUT /orders/order-lines/{id}

Update a purchase order line with given {id}

PUT /orders/order-lines/{id}
URI Parameters
  • id: required (string - pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$)

    The UUID of a purchase order line

Body

Media type: application/json

Type: json

Content:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description": "purchase order line",
  "type": "object",
  "javaName": "PoLine",
  "properties": {
    "id": {
      "description": "UUID identifying this purchase order line",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "type": "string",
      "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
    },
    "edition": {
      "description": "edition of the material",
      "type": "string"
    },
    "checkinItems": {
      "description": "if true this will toggle the Check-in workflow for details associated with this PO line",
      "type": "boolean",
      "default": false
    },
    "agreementId": {
      "description": "UUID of the agreement this purchase order line is related to",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "type": "string",
      "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
    },
    "acquisitionMethod": {
      "description": "UUID of the acquisition method for this purchase order line",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "type": "string",
      "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
    },
    "automaticExport": {
      "description": "if true then line will be marked as available to export in the EDIFACT format or other format",
      "type": "boolean",
      "default": false
    },
    "cancellationRestriction": {
      "description": "whether or not there are cancellation restrictions for this purchase order line",
      "type": "boolean"
    },
    "cancellationRestrictionNote": {
      "description": "free-form notes related to cancellation restrictions",
      "type": "string"
    },
    "claims": {
      "description": "claims associated with this purchase order line",
      "id": "claims",
      "type": "array",
      "items": {
        "description": "a claim record",
        "type": "object",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "properties": {
          "claimed": {
            "description": "whether or not this purchase order line has been claimed",
            "type": "boolean",
            "default": false
          },
          "sent": {
            "description": "date a claim was sent",
            "type": "string",
            "format": "date-time"
          },
          "grace": {
            "description": "the number of days after the expected receipt date during which claims should not be processed",
            "type": "integer"
          }
        },
        "additionalProperties": false
      }
    },
    "claimingActive": {
      "description": "Indicates if there is an active claim or dispute",
      "type": "boolean",
      "default": false
    },
    "claimingInterval": {
      "description": "Specifies the time interval, in days, within which claims or disputes must be initiated",
      "type": "integer"
    },
    "collection": {
      "description": "whether or not this purchase order line is for a collection",
      "type": "boolean",
      "default": false
    },
    "contributors": {
      "description": "list of contributors to the material",
      "id": "contributors",
      "type": "array",
      "items": {
        "type": "object",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "description": "contributor to the material",
        "properties": {
          "contributor": {
            "description": "the name of a contributor to the material",
            "type": "string"
          },
          "contributorNameTypeId": {
            "description": "UUID of the contributor type",
            "type": "string",
            "pattern": "^[a-f0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
          }
        },
        "additionalProperties": false,
        "required": [
          "contributorNameTypeId"
        ]
      }
    },
    "cost": {
      "description": "cost details associated with this purchase order line",
      "type": "object",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "properties": {
        "listUnitPrice": {
          "description": "The per-item list price for physical or resources of 'Other' order format",
          "type": "number"
        },
        "listUnitPriceElectronic": {
          "description": "The e-resource per-item list price",
          "type": "number"
        },
        "currency": {
          "description": "An ISO currency code",
          "type": "string"
        },
        "additionalCost": {
          "description": "Lump sum that is added to the total estimated price - not affected by discount",
          "type": "number"
        },
        "discount": {
          "description": "Percentage (0 to 100) or amount (positive number) that is subtracted from the list price time quantities calculation before additional cost",
          "type": "number"
        },
        "discountType": {
          "description": "Percentage or amount discount type",
          "type": "string",
          "enum": [
            "amount",
            "percentage"
          ],
          "default": "percentage"
        },
        "exchangeRate": {
          "description": "Exchange rate",
          "type": "number"
        },
        "quantityPhysical": {
          "description": "Quantity of physical items or resources of 'Other' order format in this purchase order line",
          "type": "integer"
        },
        "quantityElectronic": {
          "description": "Quantity of electronic items in this purchase order line",
          "type": "integer"
        },
        "poLineEstimatedPrice": {
          "description": "The calculated total estimated price for this purchase order line: list price time quantities minus discount amount plus additional cost",
          "type": "number"
        },
        "fyroAdjustmentAmount": {
          "description": "Adjustment amount if rollover was happen",
          "type": "number"
        }
      },
      "additionalProperties": false,
      "required": [
        "currency"
      ]
    },
    "description": {
      "description": "description of the material",
      "type": "string"
    },
    "details": {
      "description": "details about this purchase order line",
      "type": "object",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "properties": {
        "receivingNote": {
          "description": "notes regarding receiving instructions",
          "type": "string"
        },
        "isAcknowledged": {
          "description": "Flag for acknowledge receiving note",
          "type": "boolean",
          "default": false
        },
        "isBinderyActive": {
          "description": "Indicates that this POL is designated as required binding",
          "type": "boolean",
          "default": false
        },
        "productIds": {
          "description": "a list of product identifiers",
          "id": "productIds",
          "type": "array",
          "items": {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "description": "Product identifier",
            "type": "object",
            "properties": {
              "productId": {
                "description": "The actual product identifier",
                "type": "string"
              },
              "productIdType": {
                "description": "The type of product identifier",
                "$schema": "http://json-schema.org/draft-04/schema#",
                "type": "string",
                "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
              },
              "qualifier": {
                "description": "Information about the binding, format, volume numbers, part of a set, publisher, distributor, etc. which might be enclosed in parenthesis",
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        "subscriptionFrom": {
          "description": "the start date of the subscription",
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "subscriptionInterval": {
          "description": "the subscription interval in days",
          "type": "integer"
        },
        "subscriptionTo": {
          "description": "the end date of the subscription",
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "additionalProperties": false
    },
    "donor": {
      "description": "the donor contributing to this purchase order line",
      "type": "string"
    },
    "donorOrganizationIds": {
      "description": "donor organization ids associated with this fund",
      "type": "array",
      "items": {
        "description": "UUID of an donor organization record",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "string",
        "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
      }
    },
    "eresource": {
      "description": "eresource-related details of this purchase order line",
      "type": "object",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "properties": {
        "activated": {
          "description": "whether or not this resource is activated",
          "type": "boolean",
          "default": false
        },
        "activationDue": {
          "description": "number of days until activation, from date of order placement",
          "type": "integer"
        },
        "createInventory": {
          "description": "Shows what inventory objects need to be created for electronic resource",
          "type": "string",
          "enum": [
            "Instance, Holding, Item",
            "Instance, Holding",
            "Instance",
            "None"
          ]
        },
        "trial": {
          "description": "whether or not this is a trial",
          "type": "boolean",
          "default": false
        },
        "expectedActivation": {
          "description": "expected date the resource will be activated",
          "type": "string",
          "format": "date-time"
        },
        "userLimit": {
          "description": "the concurrent user-limit",
          "type": "string"
        },
        "accessProvider": {
          "description": "UUID of the access provider",
          "type": "string",
          "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
        },
        "license": {
          "description": "License record",
          "type": "object",
          "$schema": "http://json-schema.org/draft-04/schema#",
          "properties": {
            "code": {
              "description": "license code",
              "type": "string"
            },
            "description": {
              "description": "license description",
              "type": "string"
            },
            "reference": {
              "description": "license reference",
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        "materialType": {
          "description": "UUID of the material Type",
          "type": "string",
          "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
        },
        "resourceUrl": {
          "description": "Electronic resource can be access via this URL",
          "type": "string",
          "pattern": "\\b((?:[a-z][\\w-]+:(?:/{1,3}|[a-z0-9%])|www\\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]{2,4}/)(?:[^\\s()<>]+|\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\))+(?:\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\)|[^\\s`!()\\[\\]{};:'\".,<>?]))"
        }
      },
      "additionalProperties": false
    },
    "fundDistribution": {
      "description": "Fund distribution records for this purchase order line",
      "id": "fundDistribution",
      "type": "array",
      "items": {
        "description": "a fund distribution record",
        "type": "object",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "properties": {
          "code": {
            "description": "the fund code",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "string",
            "pattern": "^[^:]+$"
          },
          "encumbrance": {
            "description": "UUID of encumbrance record associated with this fund distribution",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "string",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
          },
          "fundId": {
            "description": "UUID of the fund associated with this fund distribution",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "string",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
          },
          "expenseClassId": {
            "description": "UUID of the expense class associated with this fund distribution",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "string",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
          },
          "distributionType": {
            "description": "Percentage or amount type of the value property",
            "type": "string",
            "enum": [
              "amount",
              "percentage"
            ],
            "default": "percentage"
          },
          "value": {
            "description": "The value of the cost to be applied to this fund",
            "type": "number"
          }
        },
        "additionalProperties": false,
        "required": [
          "fundId",
          "distributionType",
          "value"
        ]
      }
    },
    "instanceId": {
      "description": "UUID of the instance record this purchase order line is related to",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "type": "string",
      "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
    },
    "isPackage": {
      "description": "Indicates that this POL is for a package",
      "type": "boolean",
      "default": false
    },
    "locations": {
      "description": "Location records for this purchase order line",
      "id": "locations",
      "type": "array",
      "items": {
        "description": "The location details",
        "type": "object",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "properties": {
          "locationId": {
            "description": "UUID of the (inventory) location record",
            "type": "string",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
          },
          "holdingId": {
            "description": "Holding UUID associated with order line",
            "type": "string",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
          },
          "quantity": {
            "description": "Combined/total quanitity of physical and electronic items",
            "type": "integer"
          },
          "quantityElectronic": {
            "description": "Quantity of electronic items",
            "type": "integer"
          },
          "quantityPhysical": {
            "description": "Quantity of physical items",
            "type": "integer"
          },
          "tenantId": {
            "description": "Associated tenant for ECS-enabled clusters",
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    },
    "searchLocationIds": {
      "description": "location ids used for search",
      "type": "array",
      "items": {
        "description": "UUID of location record",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "string",
        "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
      }
    },
    "lastEDIExportDate": {
      "description": "The last date when line was exported in the EDIFACT file",
      "type": "string",
      "format": "date-time"
    },
    "orderFormat": {
      "description": "The purchase order line format",
      "type": "string",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "enum": [
        "Electronic Resource",
        "P/E Mix",
        "Physical Resource",
        "Other"
      ]
    },
    "packagePoLineId": {
      "description": "UUID referencing the poLine that represents the package that this POLs title belongs to",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "type": "string",
      "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
    },
    "paymentStatus": {
      "description": "The purchase order line payment status",
      "type": "string",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "enum": [
        "Awaiting Payment",
        "Cancelled",
        "Fully Paid",
        "Partially Paid",
        "Payment Not Required",
        "Pending",
        "Ongoing"
      ],
      "default": "Pending"
    },
    "physical": {
      "description": "details of this purchase order line relating to physical materials",
      "type": "object",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "properties": {
        "createInventory": {
          "description": "Shows what inventory objects need to be created for physical resource",
          "type": "string",
          "enum": [
            "Instance, Holding, Item",
            "Instance, Holding",
            "Instance",
            "None"
          ]
        },
        "materialType": {
          "description": "UUID of the material Type",
          "type": "string",
          "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
        },
        "materialSupplier": {
          "description": "UUID of the material supplier record",
          "type": "string",
          "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
        },
        "expectedReceiptDate": {
          "description": "vendor agreed date prior to the Receipt Due date item is expected to be received by",
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "receiptDue": {
          "description": "date item should be received by",
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "volumes": {
          "description": "list of volumes included to the physical material",
          "type": "array",
          "items": {
            "description": "the identifier of volume",
            "type": "string"
          }
        }
      },
      "additionalProperties": false,
      "required": [
        "volumes"
      ]
    },
    "poLineDescription": {
      "description": "purchase order line description",
      "type": "string"
    },
    "poLineNumber": {
      "description": "A human readable number assigned to this PO line (assigned automatically)",
      "type": "string",
      "pattern": "^[a-zA-Z0-9]{1,22}-[0-9]{1,3}$"
    },
    "publicationDate": {
      "description": "date (year) of the material's publication",
      "type": "string"
    },
    "publisher": {
      "description": "publisher of the material",
      "type": "string"
    },
    "purchaseOrderId": {
      "description": "UUID of the purchase order",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "type": "string",
      "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
    },
    "receiptDate": {
      "description": "date the purchase order line was received",
      "type": [
        "null",
        "string"
      ],
      "format": "date-time"
    },
    "receiptStatus": {
      "description": "The purchase order line receipt status",
      "type": "string",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "enum": [
        "Awaiting Receipt",
        "Cancelled",
        "Fully Received",
        "Partially Received",
        "Pending",
        "Receipt Not Required",
        "Ongoing"
      ],
      "default": "Pending"
    },
    "renewalNote": {
      "description": "Renewal note for this purchase order line",
      "type": "string"
    },
    "requester": {
      "description": "who requested this purchase order line",
      "type": "string"
    },
    "rush": {
      "description": "whether or not this is a rush order",
      "type": "boolean",
      "default": false
    },
    "selector": {
      "description": "who selected this material",
      "type": "string"
    },
    "source": {
      "description": "the source of this purchase order line",
      "type": "string",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "enum": [
        "User",
        "API",
        "EDI",
        "MARC",
        "EBSCONET"
      ]
    },
    "tags": {
      "description": "arbitrary tags associated with this purchase order line",
      "id": "tags",
      "type": "object",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "title": "tags",
      "properties": {
        "tagList": {
          "description": "List of tags",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "titleOrPackage": {
      "description": "title of the material",
      "type": "string"
    },
    "vendorDetail": {
      "description": "Details related to the vendor of this purchase order line",
      "type": "object",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "properties": {
        "instructions": {
          "description": "special instructions for the vendor",
          "type": "string"
        },
        "noteFromVendor": {
          "description": "free-form notes from the vendor",
          "type": "string"
        },
        "vendorAccount": {
          "description": "the accound number on the vendor's end associated with this purchase order line",
          "type": "string"
        },
        "referenceNumbers": {
          "description": "Collection of reference number items",
          "$schema": "http://json-schema.org/draft-04/schema#",
          "type": "array",
          "items": {
            "$schema": "http://json-schema.org/draft-04/schema#",
            "description": "Reference number item",
            "type": "object",
            "properties": {
              "refNumber": {
                "description": "a reference number for this purchase order line",
                "type": "string"
              },
              "refNumberType": {
                "description": "the reference number type",
                "type": "string",
                "enum": [
                  "Vendor continuation reference number",
                  "Vendor order reference number",
                  "Vendor subscription reference number",
                  "Vendor internal number",
                  "Vendor title number"
                ],
                "javaEnums": [
                  "CONTINUATION_REF_NUMBER",
                  "ORDER_REF_NUMBER",
                  "SUBSCRIPTION_REF_NUMBER",
                  "INTERNAL_NUMBER",
                  "TITLE_NUMBER"
                ]
              },
              "vendorDetailsSource": {
                "description": "the reference number type",
                "type": "string",
                "enum": [
                  "OrderLine",
                  "InvoiceLine"
                ],
                "javaEnums": [
                  "ORDER_LINE",
                  "INVOICE_LINE"
                ]
              }
            },
            "additionalProperties": false
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "suppressInstanceFromDiscovery": {
      "type": "boolean",
      "description": "Records the fact that the record should not be displayed in a discovery system",
      "default": false
    },
    "customFields": {
      "description": "Object that contains custom field",
      "type": "object",
      "$schema": "http://json-schema.org/draft-07/schema#",
      "javaName": "CustomFields",
      "additionalProperties": true
    },
    "metadata": {
      "type": "object",
      "readonly": true,
      "$schema": "http://json-schema.org/draft-04/schema#",
      "id": "metadata.schema",
      "title": "Metadata Schema",
      "description": "Metadata about creation and changes to records, provided by the server (client should not provide)",
      "properties": {
        "createdDate": {
          "description": "Date and time when the record was created",
          "type": "string",
          "format": "date-time"
        },
        "createdByUserId": {
          "description": "ID of the user who created the record (when available)",
          "type": "string",
          "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
        },
        "createdByUsername": {
          "description": "Username of the user who created the record (when available)",
          "type": "string"
        },
        "updatedDate": {
          "description": "Date and time when the record was last updated",
          "type": "string",
          "format": "date-time"
        },
        "updatedByUserId": {
          "description": "ID of the user who last updated the record (when available)",
          "type": "string",
          "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
        },
        "updatedByUsername": {
          "description": "Username of the user who last updated the record (when available)",
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "createdDate"
      ]
    }
  },
  "additionalProperties": false,
  "required": [
    "acquisitionMethod",
    "cost",
    "orderFormat",
    "source",
    "titleOrPackage"
  ]
}

Example:

{
  "id": "c0d08448-347b-418a-8c2f-5fb50248d67e",
  "edition": "First edition",
  "checkinItems": false,
  "instanceId": "8343e5a0-fed8-11e8-8eb2-f2801f1b9fd1",
  "isPackage": false,
  "agreementId": "bdc75fea-fed8-11e8-8eb2-f2801f1b9fd1",
  "acquisitionMethod": "73d14bc5-d131-48c6-b380-f8e62f63c8f3",
  "automaticExport": true,
  "cancellationRestriction": false,
  "cancellationRestrictionNote": "ABCDEFGHIJKLMNOPQRSTUVW",
  "claims": [
    {
      "claimed": false,
      "sent": "2018-10-09T00:00:00.000Z",
      "grace": 30
    }
  ],
  "claimingActive": false,
  "claimingInterval": 0,
  "collection": false,
  "contributors": [
    {
      "contributor": "Ed Mashburn",
      "contributorNameTypeId": "fbdd42a8-e47d-4694-b448-cc571d1b44c3"
    }
  ],
  "cost": {
    "additionalCost": 4.99,
    "currency": "USD",
    "discount": 5,
    "discountType": "percentage",
    "exchangeRate": 1.12,
    "listUnitPrice": 24.99,
    "listUnitPriceElectronic": 14.99,
    "quantityElectronic": 1,
    "quantityPhysical": 2,
    "poLineEstimatedPrice": 66.71
  },
  "description": "ABCDEFGH",
  "details": {
    "receivingNote": "ABCDEFGHIJKL",
    "isBinderyActive": false,
    "productIds": [
      {
        "productId": "9780764354113",
        "productIdType": "8261054f-be78-422d-bd51-4ed9f33c3422",
        "qualifier": "(paperback)"
      }
    ],
    "subscriptionFrom": "2018-10-09T00:00:00.000Z",
    "subscriptionInterval": 824,
    "subscriptionTo": "2020-10-09T00:00:00.000Z"
  },
  "donor": "ABCDEFGHIJKLM",
  "donorOrganizationIds": [
    "d926d900-e27d-46d6-bba8-31e9d5c2cf44",
    "077274ad-6b4f-4c28-9779-6d381e7a1ca1"
  ],
  "eresource": {
    "accessProvider": "ba3f3d45-247d-41f6-8dc9-6488adcad329",
    "activated": false,
    "activationDue": 10,
    "createInventory": "Instance, Holding",
    "expectedActivation": "2018-10-09T00:00:00.000Z",
    "license": {
      "code": "Code 1",
      "description": "License Agreement 1"
    },
    "materialType": "4920caaf-871f-4f08-9bd5-b897203fd7fb",
    "trial": false,
    "userLimit": "10",
    "resourceUrl": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
  },
  "fundDistribution": [
    {
      "code": "HIST",
      "fundId": "63157e96-0693-426d-b0df-948bacdfdb08",
      "distributionType": "percentage",
      "value": 80.0,
      "encumbrance": "eb506834-6c70-4239-8d1a-6414a5b08ac3"
    },
    {
      "code": "EUROHIST",
      "fundId": "e9285a1c-1dfc-4380-868c-e74073003f43",
      "distributionType": "amount",
      "value": 13.34,
      "encumbrance": "fb506834-6c70-4239-8d1a-6414a5b08ac3"
    }
  ],
  "locations": [
    {
      "locationId": "eb2d063a-5b4c-4cab-8db1-5fc5c5941df6",
      "quantity": 1,
      "quantityElectronic": 1,
      "quantityPhysical": 0,
      "tenantId": "diku"
    },
    {
      "locationId": "53cf956f-c1df-410b-8bea-27f712cca7c0",
      "quantity": 2,
      "quantityElectronic": 0,
      "quantityPhysical": 2,
      "tenantId": "diku"
    }
  ],
  "searchLocationIds": [
    "eb2d063a-5b4c-4cab-8db1-5fc5c5941df6",
    "53cf956f-c1df-410b-8bea-27f712cca7c0"
  ],
  "lastEDIExportDate": "2018-10-05T00:00:00.000Z",
  "orderFormat": "P/E Mix",
  "paymentStatus": "Awaiting Payment",
  "physical": {
    "createInventory": "Instance, Holding, Item",
    "volumes": [
      "vol. 1"
    ],
    "materialSupplier": "73d14bc5-d131-48c6-b380-f8e62f63c8b6",
    "materialType": "a058cb27-a77d-4cb3-b76b-2adc931fb0c9",
    "expectedReceiptDate": "2018-10-05T00:00:00.000Z",
    "receiptDue": "2018-10-10T00:00:00.000Z"
  },
  "poLineDescription": "ABCDEFGHIJKLMNOPQRSTUVWXY",
  "poLineNumber": "268758-03",
  "publicationDate": "2017",
  "publisher": "Schiffer Publishing",
  "purchaseOrderId": "d79b0bcc-DcAD-1E4E-Abb7-DbFcaD5BB3bb",
  "receiptDate": "2018-10-09T00:00:00.000Z",
  "receiptStatus": "Awaiting Receipt",
  "requester": "Leo Bulero",
  "rush": true,
  "selector": "ABCD",
  "source": "User",
  "tags": {
    "tagList": [
      "important"
    ]
  },
  "titleOrPackage": "Kayak Fishing in the Northern Gulf Coast",
  "vendorDetail": {
    "instructions": "ABCDEFG",
    "noteFromVendor": "ABCDEFGHIKJKLMNOP",
    "referenceNumbers": [
      {
        "refNumber": "123456-78",
        "refNumberType": "Vendor title number",
        "vendorDetailsSource": "OrderLine"
      }
    ],
    "vendorAccount": "8910-25"
  },
  "suppressInstanceFromDiscovery": true,
  "customFields": {
    "externalOrderNumber": "ML58723"
  },
  "metadata": {
    "createdDate": "2018-07-19T00:00:00.000+0000",
    "createdByUserId": "28d1057c-d137-11e8-a8d5-f2801f1b9fd1"
  },
  "holdingIds": [
    "c0d08448-347b-418a-8c2f-5fb50248d67x"
  ]
}

Response 204

Item successfully updated

Response 400

Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.

Body

Media type: application/json

Type: any

Example:

{
  "errors": [
    {
      "message": "may not be null",
      "type": "1",
      "code": "-1",
      "parameters": [
        {
          "key": "moduleTo",
          "value": "null"
        }
      ]
    }
  ]
}

Media type: text/plain

Type: any

Example:

"unable to update order-line -- malformed JSON at 13:4"

Response 404

Item with a given ID not found

Body

Media type: application/json

Type: any

Example:

{
  "errors": [
    {
      "message": "may not be null",
      "type": "1",
      "code": "-1",
      "parameters": [
        {
          "key": "moduleTo",
          "value": "null"
        }
      ]
    }
  ]
}

Media type: text/plain

Type: any

Example:

"order-line not found"

Response 422

Validation errors

Body

Media type: application/json

Type: json

Content:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "errors.schema",
  "description": "A set of errors",
  "type": "object",
  "properties": {
    "errors": {
      "description": "List of errors",
      "id": "errors",
      "type": "array",
      "items": {
        "type": "object",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "id": "error.schema",
        "description": "An error",
        "properties": {
          "message": {
            "type": "string",
            "description": "Error message text"
          },
          "type": {
            "type": "string",
            "description": "Error message type"
          },
          "code": {
            "type": "string",
            "description": "Error message code"
          },
          "parameters": {
            "description": "Error message parameters",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "id": "parameters.schema",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                }
              }
            }
          }
        },
        "required": [
          "message"
        ]
      }
    },
    "total_records": {
      "description": "Total number of errors",
      "type": "integer"
    }
  }
}

Example:

{
  "errors": [
    {
      "message": "may not be null",
      "type": "1",
      "code": "-1",
      "parameters": [
        {
          "key": "moduleTo",
          "value": "null"
        }
      ]
    }
  ]
}

Response 500

Internal server error, e.g. due to misconfiguration

Body

Media type: application/json

Type: any

Example:

{
  "errors": [
    {
      "message": "may not be null",
      "type": "1",
      "code": "-1",
      "parameters": [
        {
          "key": "moduleTo",
          "value": "null"
        }
      ]
    }
  ]
}

Media type: text/plain

Type: any

Example:

internal server error, contact administrator

DELETE /orders/order-lines/{id}

Delete a purchase order line with given {id}

DELETE /orders/order-lines/{id}
URI Parameters
  • id: required (string - pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$)

    The UUID of a purchase order line

Response 204

Item deleted successfully

Response 400

Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response.

Body

Media type: application/json

Type: any

Example:

{
  "errors": [
    {
      "message": "may not be null",
      "type": "1",
      "code": "-1",
      "parameters": [
        {
          "key": "moduleTo",
          "value": "null"
        }
      ]
    }
  ]
}

Media type: text/plain

Type: any

Example:

"unable to delete order-line -- constraint violation"

Response 404

Item with a given ID not found

Body

Media type: application/json

Type: any

Example:

{
  "errors": [
    {
      "message": "may not be null",
      "type": "1",
      "code": "-1",
      "parameters": [
        {
          "key": "moduleTo",
          "value": "null"
        }
      ]
    }
  ]
}

Media type: text/plain

Type: any

Example:

"order-line not found"

Response 422

Validation errors

Body

Media type: application/json

Type: json

Content:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "errors.schema",
  "description": "A set of errors",
  "type": "object",
  "properties": {
    "errors": {
      "description": "List of errors",
      "id": "errors",
      "type": "array",
      "items": {
        "type": "object",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "id": "error.schema",
        "description": "An error",
        "properties": {
          "message": {
            "type": "string",
            "description": "Error message text"
          },
          "type": {
            "type": "string",
            "description": "Error message type"
          },
          "code": {
            "type": "string",
            "description": "Error message code"
          },
          "parameters": {
            "description": "Error message parameters",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "id": "parameters.schema",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                }
              }
            }
          }
        },
        "required": [
          "message"
        ]
      }
    },
    "total_records": {
      "description": "Total number of errors",
      "type": "integer"
    }
  }
}

Example:

{
  "errors": [
    {
      "message": "may not be null",
      "type": "1",
      "code": "-1",
      "parameters": [
        {
          "key": "moduleTo",
          "value": "null"
        }
      ]
    }
  ]
}

Response 500

Internal server error, e.g. due to misconfiguration

Body

Media type: application/json

Type: any

Example:

{
  "errors": [
    {
      "message": "may not be null",
      "type": "1",
      "code": "-1",
      "parameters": [
        {
          "key": "moduleTo",
          "value": "null"
        }
      ]
    }
  ]
}

Media type: text/plain

Type: any

Example:

Internal server error, contact administrator

PATCH /orders/order-lines/{id}

Apply partial modifications to a order line

PATCH /orders/order-lines/{id}
URI Parameters
  • id: required (string - pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$)

    The UUID of a purchase order line

Body

Media type: application/json

Type: json

Content:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description": "Patch order line request",
  "type": "object",
  "properties": {
    "operation": {
      "description": "Type of a partial order line modification",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "type": "string",
      "enum": [
        "Replace Instance Ref"
      ]
    },
    "replaceInstanceRef": {
      "description": "Replace instance reference operation",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "type": "object",
      "properties": {
        "newInstanceId": {
          "description": "Reference to new instance",
          "$schema": "http://json-schema.org/draft-04/schema#",
          "type": "string",
          "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
        },
        "holdingsOperation": {
          "description": "How to process connected holdings",
          "type": "string",
          "enum": [
            "Move",
            "Create",
            "Find or Create",
            "None"
          ],
          "default": "None"
        },
        "deleteAbandonedHoldings": {
          "description": "If abandoned holdings will be deleted",
          "type": "boolean",
          "default": false
        }
      },
      "additionalProperties": false,
      "required": [
        "newInstanceId",
        "holdingsOperation",
        "deleteAbandonedHoldings"
      ]
    }
  },
  "additionalProperties": false,
  "required": [
    "operation"
  ]
}

Example:

{
  "operation": "Replace Instance Ref",
  "replaceInstanceRef": {
    "newInstanceId": "c0d08448-347b-428a-8c2f-4fb40248d47e",
    "holdingsOperation": "Move",
    "deleteAbandonedHoldings": true
  }
}

Response 204

Order line successfully updated

Response 404

Not found

Body

Media type: text/plain

Type: any

Response 422

Validation errors

Body

Media type: application/json

Type: json

Content:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "errors.schema",
  "description": "A set of errors",
  "type": "object",
  "properties": {
    "errors": {
      "description": "List of errors",
      "id": "errors",
      "type": "array",
      "items": {
        "type": "object",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "id": "error.schema",
        "description": "An error",
        "properties": {
          "message": {
            "type": "string",
            "description": "Error message text"
          },
          "type": {
            "type": "string",
            "description": "Error message type"
          },
          "code": {
            "type": "string",
            "description": "Error message code"
          },
          "parameters": {
            "description": "Error message parameters",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "id": "parameters.schema",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                }
              }
            }
          }
        },
        "required": [
          "message"
        ]
      }
    },
    "total_records": {
      "description": "Total number of errors",
      "type": "integer"
    }
  }
}

Example:

{
  "errors": [
    {
      "message": "may not be null",
      "type": "1",
      "code": "-1",
      "parameters": [
        {
          "key": "moduleTo",
          "value": "null"
        }
      ]
    }
  ]
}

Response 500

Internal server error, e.g. due to misconfiguration

Body

Media type: text/plain

Type: any

Example:

internal server error, contact administrator

PUT /orders/order-lines/fund-distributions/validate

Validate is cost amount equals to sum of all fund distributions

PUT /orders/order-lines/fund-distributions/validate
Body

Media type: application/json

Type: json

Content:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description": "Fund distribution amount validation request",
  "type": "object",
  "properties": {
    "cost": {
      "description": "cost details associated with this purchase order line",
      "type": "object",
      "$schema": "http://json-schema.org/draft-04/schema#",
      "properties": {
        "listUnitPrice": {
          "description": "The per-item list price for physical or resources of 'Other' order format",
          "type": "number"
        },
        "listUnitPriceElectronic": {
          "description": "The e-resource per-item list price",
          "type": "number"
        },
        "currency": {
          "description": "An ISO currency code",
          "type": "string"
        },
        "additionalCost": {
          "description": "Lump sum that is added to the total estimated price - not affected by discount",
          "type": "number"
        },
        "discount": {
          "description": "Percentage (0 to 100) or amount (positive number) that is subtracted from the list price time quantities calculation before additional cost",
          "type": "number"
        },
        "discountType": {
          "description": "Percentage or amount discount type",
          "type": "string",
          "enum": [
            "amount",
            "percentage"
          ],
          "default": "percentage"
        },
        "exchangeRate": {
          "description": "Exchange rate",
          "type": "number"
        },
        "quantityPhysical": {
          "description": "Quantity of physical items or resources of 'Other' order format in this purchase order line",
          "type": "integer"
        },
        "quantityElectronic": {
          "description": "Quantity of electronic items in this purchase order line",
          "type": "integer"
        },
        "poLineEstimatedPrice": {
          "description": "The calculated total estimated price for this purchase order line: list price time quantities minus discount amount plus additional cost",
          "type": "number"
        },
        "fyroAdjustmentAmount": {
          "description": "Adjustment amount if rollover was happen",
          "type": "number"
        }
      },
      "additionalProperties": false,
      "required": [
        "currency"
      ]
    },
    "fundDistribution": {
      "description": "fund distribution records for this purchase order line",
      "id": "fundDistribution",
      "type": "array",
      "items": {
        "description": "a fund distribution record",
        "type": "object",
        "$schema": "http://json-schema.org/draft-04/schema#",
        "properties": {
          "code": {
            "description": "the fund code",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "string",
            "pattern": "^[^:]+$"
          },
          "encumbrance": {
            "description": "UUID of encumbrance record associated with this fund distribution",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "string",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
          },
          "fundId": {
            "description": "UUID of the fund associated with this fund distribution",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "string",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
          },
          "expenseClassId": {
            "description": "UUID of the expense class associated with this fund distribution",
            "$schema": "http://json-schema.org/draft-04/schema#",
            "type": "string",
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
          },
          "distributionType": {
            "description": "Percentage or amount type of the value property",
            "type": "string",
            "enum": [
              "amount",
              "percentage"
            ],
            "default": "percentage"
          },
          "value": {
            "description": "The value of the cost to be applied to this fund",
            "type": "number"
          }
        },
        "additionalProperties": false,
        "required": [
          "fundId",
          "distributionType",
          "value"
        ]
      }
    }
  },
  "additionalProperties": false,
  "required": [
    "cost",
    "fundDistribution"
  ]
}

Example:

{
  "cost": {
    "poLineEstimatedPrice": 100.00,
    "additionalCost": 0,
    "currency": "USD",
    "discount": 0,
    "discountType": "percentage",
    "exchangeRate": 1,
    "listUnitPrice": 50,
    "listUnitPriceElectronic": 50,
    "quantityElectronic": 1,
    "quantityPhysical": 1
  },
  "fundDistribution": [
    {
      "code": "HIST",
      "fundId": "63157e96-0693-426d-b0df-948bacdfdb08",
      "distributionType": "percentage",
      "value": 50.0
    },
    {
      "code": "EUROHIST",
      "fundId": "e9285a1c-1dfc-4380-868c-e74073003f43",
      "distributionType": "amount",
      "value": 50.00
    }
  ]
}

Response 204

Validation passes

Response 422

Validation failed, error with description and codes provided