Querying for notes
GET/api/v3/note
Available query parameter values for filtering:
- context_str (this should be one of: customer, billing_package, invoice, user, quote, item)
- context_id
Request
Query Parameters
where string
context_str:EQUALS:customer
order string
context_id:ASC
limit string
2
offset string
8
Responses
- 200
- 400
- 401
Object was fetched successfully
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
code integer
status string
message stringnullable
details objectnullable
response object
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": {}
}
{
"code": 200,
"status": "OK",
"message": "",
"details": {},
"response": [
{
"note_id": 3,
"user_id": null,
"admin_id": 1,
"note_is_pinned": false,
"note_datetime": "2024-02-16 07:46:58",
"note": "Customer agreed to upgrade to PRO plan.",
"context_str": "customer",
"context_id": 265
},
{
"note_id": 4,
"user_id": null,
"admin_id": 1,
"note_is_pinned": false,
"note_datetime": "2024-02-16 07:47:14",
"note": "Customer requested billing date be changed from 14th of the month to 12th of the month; credit issues.",
"context_str": "customer",
"context_id": 265
}
]
}
Bad request
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
code integer
status string
message stringnullable
details objectnullable
response boolean
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 400,
"status": "Error",
"message": "Missing or invalid parameter.",
"details": {},
"response": false
}
Authentication error
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
code integer
status string
message stringnullable
details objectnullable
response boolean
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 401,
"status": "Error",
"message": "Invalid or incorrect authorization [Missing (basic) authorization header.]",
"details": {},
"response": false
}
Loading...