Get an order’s invoice data.
Scopes: orders:read
orders:read
Go
package main import( "context" "os" polargo "github.com/polarsource/polar-go" "log" ) func main() { ctx := context.Background() s := polargo.New( polargo.WithSecurity(os.Getenv("POLAR_ACCESS_TOKEN")), ) res, err := s.Orders.Invoice(ctx, "<value>") if err != nil { log.Fatal(err) } if res.OrderInvoice != nil { // handle response } }
{ "url": "<string>" }
POST /v1/orders/{id}/invoice
404
You can generate an Organization Access Token from your organization's settings.
The order ID.
Successful Response
Order's invoice data.
The URL to the invoice.
Was this page helpful?