Would like a way to pull just scheduled letters
in progress
J
John
I'm using your API to add the ability to send letters and SMS from our application.
I want to give our end offices the ability to cancel any sent scheduled letters. We're currently sending them scheduled 2 days out.
I want to allow them to cancel those scheduled ones.
Currently, i'm using the endpoint PostLettersHistoryget to pull the entire list of letters ever sent, looping it to find ones in scheduled status and then using the api to cancel those letters.
I'd really like to have a single api call that just gives me back all scheduled letters.
Or a query param on PostLettersHistoryget to specify it etc.
an api call that cancels ALL scheduled letters for a subaccount would also work.
i'm going to guess looping PostLettersHistoryget when an office has 10000 letters already sent won't be very fast.
Thanks!
Joel - Product Manager
in progress
Joel - Product Manager
Hi John,
Thanks for submitting a feature request. Unfortunately, we do not have a way for you to cancel all scheduled requests at the one time. However, you can see all letters that are currently scheduled by including it as a query parameter in the history endpoint with
Happy Sending!
J
John
Joel - Product Manager TY! that's perfect. is there a list of q queries that we can use defined somewhere?
Joel - Product Manager
Hi John,
Glad to know that's worked for you. Unfortunately not since that depends on the product and endpoint that you're using.
However, one way to figure out what query parameters are supported would be to perform the action in the dashboard, and check out the network requests that are being fired. For example, going to https://dashboard.clicksend.com/#/post/reporting/history and filtering for a particular message.