Get Cheque Preview
print_mail.cheques.retrieve_url(strid) -> ChequeRetrieveURLResponse
GET/print-mail/v1/cheques/{id}/url
Retrieve a cheque preview URL.
This is only available for customers with our document management addon, which offers document generation and hosting capabilities. This endpoint has a much higher rate limit than the regular order retrieval endpoint, so it is suitable for customer-facing use-cases.
Get Cheque Preview
import os
from postgrid import PostGrid
client = PostGrid(
print_mail_api_key=os.environ.get("POSTGRID_PRINT_MAIL_API_KEY"), # This is the default and can be omitted
)
response = client.print_mail.cheques.retrieve_url(
"id",
)
print(response.id){
"id": "cheque_123456",
"object": "cheque_url",
"url": "https://pg-prod-bucket-1.s3.amazonaws.com/test/cheque_uzTtdAPiBVC25hjEYDvyLk?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1736192587&Signature=GS6kJK3fgWWy49jq1Yb%2FRn%2BQjD4%3D"
}Returns Examples
{
"id": "cheque_123456",
"object": "cheque_url",
"url": "https://pg-prod-bucket-1.s3.amazonaws.com/test/cheque_uzTtdAPiBVC25hjEYDvyLk?AWSAccessKeyId=AKIA5GFUILSULWTWCR64&Expires=1736192587&Signature=GS6kJK3fgWWy49jq1Yb%2FRn%2BQjD4%3D"
}