Updating API POST Attachment to Supplier by ID Query

Updates:

Attachment to Supplier by ID

The POST Attachment to Supplier by ID changes from suppliers/{supplier_id}/attachment to attachments/{supplier_id}/8.


This method is used to add attachments to the Suppliers in Precoro.

In attachments/{supplier_id}/8, the value "8" indicates the type of object to which we are posting the attachment. In this case, "8" stands for Supplier.


What does the change include:

  • The method for adding attachments to the Supplier.

  • You need to update the old method if you have been using it.

The process of downloading attachments remains unchanged.

Upload Date for Attachments


The upload date for attachments will be changed to timestamp format to be consistent with other dates. For example:

"uploadDate": {

"date": "2023-06-08 08:24:49.000000",

"timezone_type": 3,

"timezone": "UTC"

},

Will be reformated into:

"uploadDate": "2023-06-06T08:24:49+00:00"


The affected endpoints include:

  • Get Warehouse Request by IDN
  • Get Purchase Requisition by IDN
  • Get Request For Proposal by IDN
  • Get Request for Proposals Proposition by ID
  • Get Purchase Order by IDN
  • Get Receipt by IDN
  • Get Invoice by IDN
  • Get Supplier by ID
  • Get Stock Transfer by ID.

Approval Step in the Responses


The "Approval step" in the responses will be changed to "Approval steps".


The affected endpoints include:

  • Get Warehouse Request by IDN
  • Get Purchase Requisition by IDN
  • Get Purchase Order by IDN
  • Get Receipt by IDN
  • Get Invoice by IDN
  • Get Supplier by ID.


The expiration date of the old methods

Starting from 15.06.2023, the old "suppliers/{supplier_id}/attachment", "Upload Date" format, and "Approval Step" methods will no longer be functional.


If you have any questions regarding this update, please contact our Support Team, who will be happy to assist you.