Purchase Order Part

WIP: A summary needs to be written for Purchase Order Part


GET/v3/purchase_order_part/:id

Find purchase order part

Find the purchase order part by id

URL parameters

  • Name
    id
    Type
    string Required
    Description
    the id for the object

200 Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message
  • Name
    data
    Type
    object Required
    Description

Properties for data object

  • Name
    id
    Type
    string Required
    Description
  • Name
    companyId
    Type
    string Required
    Description
  • Name
    locationId
    Type
    string Required
    Description
  • Name
    purchaseOrderId
    Type
    string Required
    Description
  • Name
    meta
    Type
    object Required
    Description
    the metadata about the most recent change to the row
  • Name
    metadata
    Type
    object
    Description
    metadata reserved for customers to control
  • Name
    createdDate
    Type
    string Required
    Description
  • Name
    updatedDate
    Type
    string Required
    Description
  • Name
    name
    Type
    string Required
    Description
  • Name
    number
    Type
    string Required
    Description
  • Name
    costCents
    Type
    integer Required
    Description
  • Name
    quantity
    Type
    number Required
    Description
  • Name
    receivedQuantity
    Type
    number Required
    Description
  • Name
    ordinal
    Type
    number Required
    Description
  • Name
    inventoryPartId
    Type
    string Required
    Description
  • Name
    providerData
    Type
    object
    Description
  • Name
    purchaseOrder
    Type
    object Required
    Description
    PurchaseOrder schema

Properties for meta object

  • Name
    userId
    Type
    string
    Description
    the user id that made the most recent change
  • Name
    sessionId
    Type
    string
    Description
    the session id for the most recent change
  • Name
    version
    Type
    number
    Description
    a monotonically increasing number for the most recent change

Properties for purchaseOrder object

  • Name
    id
    Type
    string Required
    Description
  • Name
    companyId
    Type
    string Required
    Description
  • Name
    locationId
    Type
    string Required
    Description
  • Name
    meta
    Type
    object Required
    Description
    the metadata about the most recent change to the row
  • Name
    metadata
    Type
    object
    Description
    metadata reserved for customers to control
  • Name
    session
    Type
    object
    Description
  • Name
    number
    Type
    integer Required
    Description
  • Name
    status
    Type
    string Required
    Description
  • Name
    totalCostCents
    Type
    integer Required
    Description
  • Name
    invoiceNumber
    Type
    string Required
    Description
  • Name
    orderId
    Type
    string Required
    Description
  • Name
    note
    Type
    string Required
    Description
  • Name
    provider
    Type
    string Required
    Description
  • Name
    providerData
    Type
    object
    Description
  • Name
    createdDate
    Type
    string Required
    Description
  • Name
    updatedDate
    Type
    string Required
    Description
  • Name
    orderedDate
    Type
    string Required
    Description
  • Name
    fulfilledDate
    Type
    string Required
    Description
  • Name
    vendorId
    Type
    string Required
    Description

Properties for meta object

  • Name
    userId
    Type
    string
    Description
    the user id that made the most recent change
  • Name
    sessionId
    Type
    string
    Description
    the session id for the most recent change
  • Name
    version
    Type
    number
    Description
    a monotonically increasing number for the most recent change

4xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

5xx Response

  • Name
    code
    Type
    string
    Description
    The error code
  • Name
    documentation_url
    Type
    string
    Description
    An optional link to the documentation for the error
  • Name
    message
    Type
    string
    Description
    the error message if not successful
  • Name
    success
    Type
    boolean Required
    Description
    if successful, will be true. if not successful, will be false and message will contain a human readable error message

Example Request

GET
/v3/purchase_order_part/:id
curl https://api.shopmonkey.cloud/v3/purchase_order_part/ID \ 
  -H "Authorization: Bearer ${SM_TOKEN}"

Example Response
application/json

{
  "success": true,
  "data": {
    "id": "id",
    "companyId": "companyId",
    "locationId": "locationId",
    "purchaseOrderId": "purchaseOrderId",
    "meta": {
      "userId": "userId",
      "sessionId": "sessionId",
      "version": 1
    },
    "createdDate": "createdDate",
    "updatedDate": null,
    "name": "name",
    "number": "number",
    "costCents": 1,
    "quantity": 1,
    "receivedQuantity": 1,
    "ordinal": 1,
    "inventoryPartId": null,
    "purchaseOrder": {
      "id": "id",
      "companyId": "companyId",
      "locationId": "locationId",
      "meta": {
        "userId": "userId",
        "sessionId": "sessionId",
        "version": 1
      },
      "number": 1,
      "status": "status",
      "totalCostCents": 1,
      "invoiceNumber": null,
      "orderId": null,
      "note": null,
      "provider": null,
      "createdDate": "createdDate",
      "updatedDate": null,
      "orderedDate": null,
      "fulfilledDate": null,
      "vendorId": null
    }
  }
}