Overview

This method allows you to update a purchase order line with a specific reference number.

Request

https://api.kometsales.com/api/purchase.order.item.reference.update

  • Method: POST
  • Content-Type: application/json

Input Parameters:

  • authenticationToken (required)(string:50): Komet Sales security token.
  • purchaseOrderItemId (required)(integer:20): Purchase Order Item internal ID. You can obtain this value from the purchase.order.list API method.
  • reference (required)(string:20): reference number. 

Sample 1
{
    "authenticationToken": "token_info_goes_here",
    "purchaseOrderItemId": 23423,
    "reference": "PA034534"
   }

Response

Output:

  • status (integer:1): transaction status. 1 for success or 0 for failure.
  • message (string:500): description of the status of the transaction.

Sample 1
 {
  "status": "1",
  "message": "success"
  }
Sample 2
{
  "status": "0",
  "message": "Box not found"   
 }