Skip to content

/client/comments

Path: /client/comments
Namespace: client
Resource: comments

Overview

The Comment resource in the client namespace allows customers to add notes and comments to their orders and other resources.

Key Difference from Admin: Client namespace provides customer self-service access to comments for their own resources.

Relationships

See Admin Comments for complete relationship documentation. Client comments use the same Comment model with customer self-service access.

Available Operations

List Comments (GET)

Endpoint: GET /client/comments.json

Request Examples:

bash
curl -X GET "https://your-company.erpax.com/client/comments.json" \
  -H "Accept: application/json" \
  -H "Cookie: session_cookie"

JavaScript Example:

javascript
const response = await fetch('/client/comments.json', {
  credentials: 'include',
  headers: { 'Accept': 'application/json' }
});
const data = await response.json();

Show Comment (GET /:id)

Endpoint: GET /client/comments/:id.json

Create Comment (POST)

Endpoint: POST /client/comments.json

Update Comment (PATCH /:id)

Endpoint: PATCH /client/comments/:id.json

Delete Comment (DELETE /:id)

Endpoint: DELETE /client/comments/:id.json

Scopes

See Admin Comments for complete scope documentation. Client namespace supports the same scopes, but filtered to the current user's comments.

Filters

See Admin Comments for complete filter documentation. Client namespace supports the same filters, but filtered to the current user's comments.

Business Rules

  • Customer Self-Service: Customers can only access comments on their own resources
  • Same Business Rules: Follows the same business rules as admin namespace comments

Released under an open source license.