Syntax

GET new-vendor-requests/{id}/comments/

Returns a JSON object that contains all comments associated with a New Vendor Request identified by {id}. The user performing this request has to be authorized to View New Vendor Requests.

Example:

GET /api/new-vendor-requests/16493/comments/

This sample call will return all comments that are associated with New Vendor Registration 16493

Request Parameters

ParameterTypeDescriptionExample
pageNumberA page number within the paginated result set.page=2 will return the second page.
per_pageNumberNumber of results to return per page. Default value is 10.per_page=20 will return twenty comments per page.

Success Codes

HTTP Status CodeExceptionDescription
200SuccessIt will return all comments that that are associated with a particular NVR.

Sample Response

Returns a JSON object with one page of results. Example:

{
  "count": 4,
  "next": null,
  "previous": null,
  "results": [ ... 
  ]
}

where:

KeyTypeSample ValueDescription
count
Number4
How many tags were retrieved.
nextStringhttps://paymentworks.com/api/new-vendor-requests/16493/comments/?page=2The URL to the next page or null if the number of result is less than per_page (default is 10).
previousStringhttps://paymentworks.com/api/new-vendor-requests/16493/comments/?page=1The URL to the previous page or null if this is the first page.
resultsArray of JSON objects[ { Comment 1 },
{ Comment 2 },
{ Comment 3} … ]
An array of JSON objects where each object is one comment. This array is always at most one page long.

Each comment is a JSON object. Example:

{
    "id": 19066,
    "created": "2023-02-17T16:13:59.005666-05:00",
    "modified": "2023-02-17T16:13:59.005666-05:00",
    "submitted_by_email": "goran.stojanov+wolcott@paymentworks.com",
    "message": "This comment will be added to the NVR",
    "submitted_by_user": "Goran Stojanov",
    "nvr": 16493
}

where:

Error Codes

HTTP Status CodeExceptionDescription
400Bad RequestThe request could not be understood by the server due to incorrect syntax.
401UnauthenticatedThe request requires user authentication information. Your API token is missing or invalid.
403ForbiddenUnauthorized request. The client does not have access rights to the content. Unlike 401, the client’s identity is known to the server.
404Not FoundYou are trying to retrieve comments for a non existing NVR.
500

503

Service UnavailableThe request has failed due to a temporary failure of the server. You can try this request at a later time.

Calling the API