{
  "opencollection": "1.0.0",
  "info": {
    "name": "Limble API V2 Assets Items API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Items",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Purchase Order Items",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.limblecmms.com/v2/po/items",
            "params": [
              {
                "name": "pos",
                "value": "1,2,3",
                "type": "query",
                "description": "This parameter is used to only get specific POs. This parameter expects a comma delimited list of PO IDs."
              },
              {
                "name": "items",
                "value": "45,8998,3434",
                "type": "query",
                "description": "This parameter is used to only get specific PO Items by ID. This parameter expects a comma delimited list of poItem IDs."
              },
              {
                "name": "numbers",
                "value": "1,2",
                "type": "query",
                "description": "This parameter is used to only get specific POs by Number. This parameter expects a comma delimited list of PO Numbers."
              },
              {
                "name": "cursor",
                "value": "112",
                "type": "query",
                "description": "This parameter is a cursor that selects what vendorID you want to start receiving results at. e.g. passing 137 here will only get you vendors with an id greater than 137."
              },
              {
                "name": "limit",
                "value": "100",
                "type": "query",
                "description": "This parameter is a result limiter. The default is set to return no more than 100 results at one time."
              },
              {
                "name": "lastEditedStart",
                "value": "1518559856",
                "type": "query",
                "description": "This parameter is used to only get PO items that were last edited after the unix timestamp passed into the start parameter. For example, all PO items that were last edited after April 18th, 2018."
              },
              {
                "name": "lastEditedEnd",
                "value": "1518559856",
                "type": "query",
                "description": "This parameter is used to only get POs items that were last edited *before* the unix timestamp passed in."
              }
            ]
          },
          "docs": "This request gets information associated with PO items. Every line item on a PO is an item returned by this call.\n\nReturn data description\n\npoID | The unique ID of the purchase order associated to this item.\npoItemID | The unqiue ID of this Purchase Order Item\nitemType | Which type (Part, Service, or Other) this item is.\nname | The name of the item.\ndescription | A more detailed description of the item.\nglID | The unique ID of the GL associated to this item.\npartID | The unique ID of the part as"
        },
        {
          "info": {
            "name": "New Purchase Order Item",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.limblecmms.com/v2/po/:poID/items",
            "params": [
              {
                "name": "poID",
                "value": "1",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This request creates a new Purchase Order Item.\n\nitemType | Int | Required | A number describing what type of PO Item this is. Valid values are: 1 (Part), 2 (Service), 4 (Other). If itemType is 1, name and taskID cannot be present and partID is required. If itemType is 2 or 4, name is required and partID cannot be present. If itemType is 2, a checklistID is required.\nname | String | Optional | A short line-item title for this PO Item.\ndescription | String | Optional | A more detailed description"
        },
        {
          "info": {
            "name": "Receive PO Item",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.limblecmms.com/v2/po/:poID/items/:poItemID",
            "params": [
              {
                "name": "poID",
                "value": "1",
                "type": "path"
              },
              {
                "name": "poItemID",
                "value": "1",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This request marks a quantity of a PO item as having been received and generates a bill for the receipt of the item.\n\nParameter: quantity, Type: Int, Required?: Required, Description: A positive number representing the received number of items. The sum of all receipts cannot be greater than the total quantity on the PO item., For example: if a PO item has a quantity of 5, then we use this request to receive 3, that will mark 3 of the PO item as received and generate a bill for that receipt of 3 "
        },
        {
          "info": {
            "name": "Update Purchase Order Item",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.limblecmms.com/v2/po/:poID/items/:poItemID",
            "params": [
              {
                "name": "poID",
                "value": "1",
                "type": "path"
              },
              {
                "name": "poItemID",
                "value": "1",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This request updates a Purchase Order Item. Considering the validation for this route is non-trivial -- keep in mind that before this update takes place, we validate the resulting PO Item, so the itemType must be valid with any existing or updated properties. For example, if you have a PO Item of itemType 1 (Part) and attempt to send a PATCH that only provides a checklistID, you will get an error back saying that this is an invalid combination.\n\nTo remove an associated ID, pass in the value 0.\n\n"
        },
        {
          "info": {
            "name": "Delete PO Item",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.limblecmms.com/v2/po/:poID/items/:poItemID",
            "params": [
              {
                "name": "poID",
                "value": "1",
                "type": "path"
              },
              {
                "name": "poItemID",
                "value": "1",
                "type": "path"
              }
            ]
          },
          "docs": "This request deletes a PO Item, which will also remove any relationships between the PO Item, Parts, and Tasks, and will clean up any history of transactions on this PO Item."
        }
      ]
    }
  ],
  "bundled": true
}