Skip to main content
GET
/
v1
/
customer-portal
/
orders
/
{id}
/
receipt
Python (SDK)
import polar_sdk
from polar_sdk import Polar


with Polar() as polar:

    res = polar.customer_portal.orders.receipt(security=polar_sdk.CustomerPortalOrdersReceiptSecurity(
        customer_session="<YOUR_BEARER_TOKEN_HERE>",
    ), id="<value>")

    assert res is not None

    # Handle response
    print(res)
{
  "url": "<string>"
}

Authorizations

Authorization
string
header
required

Customer session tokens are specific tokens that are used to authenticate customers on your organization. You can create those sessions programmatically using the Create Customer Session endpoint.

Path Parameters

id
string<uuid4>
required

The order ID.

Response

Successful Response

Order's receipt data.

url
string
required

The URL to the receipt PDF.