credit_notes
Replace credit note metadata
This endpoint replaces all existing metadata on a credit note with the provided key-value pairs. Any existing metadata keys not included in the request will be removed.
post/credit_notes/{lago_id}/metadata
Path parameters
lago_idstring uuid required
Example:1f615414-ceb0-11f0-94bf-0f2d5b311aba
The credit note unique identifier, created by Lago.
Request body
Example request
{
"metadata": {
"external_id": "ext-123",
"synced_at": "2024-01-15",
"source": null
}
}Response
Credit note metadata replaced
Example response
{
"metadata": {
"external_id": "ext-123",
"synced_at": "2024-01-15",
"source": null
}
}