Delete an invoice timeline message

Deletes an invoice timeline message with a specified ID.

SecurityAPI Key: SecretApiKey or HTTP: JWT
Request
path Parameters
id
required
string <= 50 characters ^[@~\-\.\w]+$

ID of the resource.

messageId
required
string

ID of the invoice timeline message.

delete
/invoices/{id}/timeline/{messageId}
Request samples
const request = await api.invoices
    .deleteTimelineMessage({id: 'foobar-001', messageId: 'message-202'});

// the request does not return any fields but
// you can confirm the success using the status code
console.log(request.response.status); // 204
Responses

204

Invoice timeline message deleted.

401

Unauthorized access. Invalid credentials used.

403

Access forbidden.

404

Resource not found.

409

Conflict.

Response samples
application/json
{ "status": 401, "type": "http://example.com", "title": "string", "detail": "string", "instance": "string" }