Endpoint is used to export your basic document types’ data from Repsly. This serves with the document status update capability as a document’s status can only be updated with a valid status (from the corresponding document type).

More Info

In every response you will receive meta variables FirstID and LastID. Save LastID for future requests so you can use it as a parameter {lastDocumentID} for every subsequent request until the response meta variable TotalCount is equal to 0, which means you have received all updates.

To get the complete list of purchase orders, start your request with parameter {lastDocumentID} = 0.

Response definition

Name

Type

Description

DocumentTypeID

Integer

Unique ID of the document type

DocumentTypeName

String

Document type name

Statuses

Array(DocumentStatus)

List of document type statuses (described below)

Pricelists

Array(DocumentTypePricelist)

List of pricelists available for this document type

DocumentStatus

DocumentStatusID

Integer

Unique ID of the document status

DocumentStatusName

String

Document status name

DocumentTypePricelist

PricelistID

Integer

Unique ID of the pricelist

PricelistName

String

Pricelist name

Language