from polar_sdk import Polarwith Polar( access_token="<YOUR_BEARER_TOKEN_HERE>",) as polar: res = polar.orders.invoice(id="<value>") # Handle response print(res)
Copy
Ask AI
{ "url": "<string>"}
The invoice must be generated first before it can be retrieved. You should call the POST /v1/orders/{id}/invoice endpoint to generate the invoice.If the invoice is not generated, you will receive a 404 error.
from polar_sdk import Polarwith Polar( access_token="<YOUR_BEARER_TOKEN_HERE>",) as polar: res = polar.orders.invoice(id="<value>") # Handle response print(res)