Orders Storage (v1)

http://github.com/folio-org/mod-orders-storage

Table of contents

Purchase Order Number

API used to manage PO number.

/orders-storage/po_number

GET /orders-storage/po_number

Get generated purchase order number

GET /orders-storage/po_number
Query Parameters
  • lang: (string - default: en - pattern: [a-zA-Z]{2})

    Requested language. Optional. [lang=en]

Response 200

Body

Media type: application/json

Type: json

Content:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description": "Generated PO number object",
  "type": "object",
  "properties": {
    "po_number": {
      "description": "A human readable generated or manually entered ID assigned to the purchase order",
      "type": "string",
      "pattern": "^[a-zA-Z0-9]{5,16}$"
    }
  },
  "required": [
    "po_number"
  ],
  "additionalProperties": false
}

Response 400

Bad request, e.g. malformed request body or query parameter

Body

Media type: text/plain

Type: any

Example:

Unable to generate purchase order number

Response 500

Internal server error, e.g. due to misconfiguration

Body

Media type: text/plain

Type: any

Example:

internal server error, contact administrator