Note API Reference
Save time by creating notes and reusing them on your invoices & estimates.
The Note model
Notes serve as additional information within the context of estimates and invoices. They include a name, type, and the detailed notes themselves. Businesses can leverage notes to provide specific details, instructions, or explanations related to items, services, or transactions. This feature enhances communication and clarity, allowing for a more comprehensive and transparent interaction with customers during the estimation and invoicing processes.
Properties
- Name
id
- Type
- string
- Field Type
- Description
Unique identifier for the note.
- Name
type
- Type
- string
- Field Type
- Description
Type of the note. Must be one of Invoice or Estimate.
- Name
name
- Type
- string
- Field Type
- Description
Name of the note.
- Name
notes
- Type
- string
- Field Type
- Description
Description for what you are writing this note for.
- Name
business_id
- Type
- string
- Field Type
- Description
Unique identifier for the business.
List all notes
This endpoint allows you to retrieve a list of your notes.
Query Parameters
- Name
limit
- Type
- integer
- Field Type
optional
- Description
A limit on the number of notes to be returned. (default is 5)
- Name
page
- Type
- integer
- Field Type
optional
- Description
Page number for pagination. (default is 1)
Request
curl --request GET \
--get "https://payments.your-domain.com/api/v1/notes" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Business: 995c98ce-cdd9-4ef6-b018-9c696cb07e9d" \
Response
{
"data": [
{
"id": "9907a673-17a0-4444-9287-96d0609851e4",
"type": "Estimate",
"name": "Estimate Issued",
"notes": "Please review the attached estimate at your earliest convenience. Note that the estimated pricing is subject to change based on market conditions and availability of resources."
},
{
"id": "d8578edf-5d26-4b2b-9a1b-2454c1e5f073",
"type": "Invoice",
"name": "Invoice Payment",
"notes": "The payment for the attached invoice is due within the standard 5-business-day term as per our payment policy. Prompt payment ensures uninterrupted service."
}, {...}
]
}
Create a note
This endpoint allows you create a new note.
Body Parameters
- Name
name
- Type
- string
- Field Type
required
- Description
Name of the note.
- Name
type
- Type
- string
- Field Type
required
- Description
Type of the note. Must be one of Invoice or Estimate.
- Name
notes
- Type
- string
- Field Type
required
- Description
Description for the note.
Request
curl --request POST \
"https://payments.your-domain.com/api/v1/notes" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Business: 995c98ce-cdd9-4ef6-b018-9c696cb07e9d" \
--data "{
\"name\": \"Invoice note\",
\"type\": \"Invoice\",
\"notes\": \"The payment for the attached invoice is due within the standard 5-business-day term as per our payment policy.\"
}"
Response
{
"data": {
"id": "990176fd-4f1f-4102-8cc4-a5f3e678a9a9",
"type": "Invoice",
"name": "Invoice note",
"notes": "The payment for the attached invoice is due within the standard 5-business-day term as per our payment policy.",
"business_id": "995c98ce-cdd9-4ef6-b018-9c696cb07e9d"
}
}
Retrieve a note
This endpoint allows you to retrieve a note object.
URL Parameters
- Name
id
- Type
- string
- Field Type
required
- Description
ID of the note.
Request
curl --request GET \
--get "https://payments.your-domain.com/api/v1/notes/990176fd-4f1f-4102-8cc4-a5f3e678a9a9" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Business: 995c98ce-cdd9-4ef6-b018-9c696cb07e9d" \
Response
{
"data": {
"id": "990176fd-4f1f-4102-8cc4-a5f3e678a9a9",
"type": "Invoice",
"name": "Invoice note",
"notes": "The payment for the attached invoice is due within the standard 5-business-day term as per our payment policy.",
"business_id": "995c98ce-cdd9-4ef6-b018-9c696cb07e9d"
}
}
Update a note
This endpoint allows you to perform an update on a note.
URL Parameters
- Name
id
- Type
- string
- Field Type
required
- Description
The ID of the note.
Body Parameters
- Name
name
- Type
- string
- Field Type
optional
- Description
Name of the note.
- Name
type
- Type
- string
- Field Type
optional
- Description
Type of the note. Must be one of Invoice or Estimate.
- Name
notes
- Type
- string
- Field Type
optional
- Description
Description for what you are writing this note for.
Request
curl --request PUT \
"https://payments.your-domain.com/api/v1/notes/990176fd-4f1f-4102-8cc4-a5f3e678a9a9" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Business: 995c98ce-cdd9-4ef6-b018-9c696cb07e9d" \
--data "{
\"name\": \"Invoice note\",
\"type\": \"Invoice\",
\"notes\": \"The payment for the attached invoice is due within the standard 6-business-day term as per our payment policy.\"
}"
Response
{
"data": {
"id": "990176fd-4f1f-4102-8cc4-a5f3e678a9a9",
"type": "Invoice",
"name": "Invoice note",
"notes": "The payment for the attached invoice is due within the standard 6-business-day term as per our payment policy.",
"business_id": "995c98ce-cdd9-4ef6-b018-9c696cb07e9d"
}
}
Delete a note
This endpoint allows you to delete a note.
URL Parameters
- Name
id
- Type
- string
- Field Type
required
- Description
The ID of the note.
Request
curl --request DELETE \
"https://payments.your-domain.com/api/v1/notes/990176fd-4f1f-4102-8cc4-a5f3e678a9a9" \
--header "Authorization: Bearer {YOUR_AUTH_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Business: 995c98ce-cdd9-4ef6-b018-9c696cb07e9d" \
Response
{
"id": "990176fd-4f1f-4102-8cc4-a5f3e678a9a9",
"object": "Note",
"deleted": true
}