Skip to main content
POST

Send a credit note by email

Scope:sales:invoices.write
https://api.holded.com/api/v2/credit-notes/{creditNoteId}/send

Sends the credit note by email to the contact using the template configured in your account settings. You can optionally specify recipient email addresses, subject, and message body.

Parameters

Path parameters

creditNoteIdstringrequired

Credit Note ID (24-char hex ObjectId)

Request body

object
emails[]string[]required

List of recipient email addresses

subjectstring | nulloptional

Custom email subject line

messagestring | nulloptional

Custom email body message

mail_template_idstring | nulloptional

Identifier of the email template to use

cc[]string[] | nulloptional

List of CC email addresses

bcc[]string[] | nulloptional

List of BCC email addresses

Request

python
import requests

url = "https://api.holded.com/api/v2/credit-notes/{creditNoteId}/send"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

payload = {
    "emails": [
        "string"
    ],
    "subject": "string",
    "message": "string",
    "mail_template_id": "string",
    "cc": [
        "string"
    ],
    "bcc": [
        "string"
    ]
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())

Responses

Response

json
{
  "status": "sent"
}

Success responses

200Credit note sentapplication/json
object
statusstringrequired

Confirmation status

Error responses

400Bad requestapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Credit note not foundapplication/json
429Rate limit exceededapplication/json
500Internal server errorapplication/json
object
typestring
titlestring
statusinteger
detailstring