Record that requests, or reminders, were sent (ANALYST+, dashboard user)
POST
/statement-requests/mark-sent
const url = 'https://api.invogi.com/v1/statement-requests/mark-sent';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"requestIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"reminder":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.invogi.com/v1/statement-requests/mark-sent \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "requestIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "reminder": true }'Marks prepared requests sent and starts the reply-by clock; whoever
sent one is told once if the supplier has not answered by then. With
reminder: true, records a reminder for requests already sent: the
reply-by date moves on 14 days and the sender is told again if that
passes too.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
requestIds
required
Array<string>
reminder
Record a reminder for requests already sent
boolean
Example generated
{ "requestIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "reminder": true}Responses
Section titled “Responses”How many were marked
Media typeapplication/json
object
sent
integer
Example generated
{ "sent": 1}Invalid request
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
request_id
required
string
Example
{ "error": { "code": "NOT_FOUND" }}API key lacks required scope/role
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
request_id
required
string
Example
{ "error": { "code": "NOT_FOUND" }}