Quick Access
API Reference
Appearance
Path: /client/commentsNamespace: clientResource: comments
/client/comments
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.
See Admin Comments for complete relationship documentation. Client comments use the same Comment model with customer self-service access.
Endpoint: GET /client/comments.json
GET /client/comments.json
Request Examples:
curl -X GET "https://your-company.erpax.com/client/comments.json" \ -H "Accept: application/json" \ -H "Cookie: session_cookie"
JavaScript Example:
const response = await fetch('/client/comments.json', { credentials: 'include', headers: { 'Accept': 'application/json' } }); const data = await response.json();
Endpoint: GET /client/comments/:id.json
GET /client/comments/:id.json
Endpoint: POST /client/comments.json
POST /client/comments.json
Endpoint: PATCH /client/comments/:id.json
PATCH /client/comments/:id.json
Endpoint: DELETE /client/comments/:id.json
DELETE /client/comments/:id.json
See Admin Comments for complete scope documentation. Client namespace supports the same scopes, but filtered to the current user's comments.
See Admin Comments for complete filter documentation. Client namespace supports the same filters, but filtered to the current user's comments.
/client/comments
Path:
/client/commentsNamespace: 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.jsonRequest Examples:
2
3
JavaScript Example:
2
3
4
5
Show Comment (GET /:id)
Endpoint:
GET /client/comments/:id.jsonCreate Comment (POST)
Endpoint:
POST /client/comments.jsonUpdate Comment (PATCH /:id)
Endpoint:
PATCH /client/comments/:id.jsonDelete Comment (DELETE /:id)
Endpoint:
DELETE /client/comments/:id.jsonScopes
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
Related Resources