Get a license key activation.
Scopes: license_keys:read license_keys:write
license_keys:read
license_keys:write
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.LicenseKeys.GetActivation(ctx, "<value>", "<value>") if err != nil { log.Fatal(err) } if res.LicenseKeyActivationRead != nil { // handle response } }
{ "id": "<string>", "license_key_id": "<string>", "label": "<string>", "meta": {}, "created_at": "2023-11-07T05:31:56Z", "modified_at": "2023-11-07T05:31:56Z", "license_key": { "id": "<string>", "created_at": "2023-11-07T05:31:56Z", "modified_at": "2023-11-07T05:31:56Z", "organization_id": "<string>", "customer_id": "<string>", "customer": { "id": "<string>", "created_at": "2023-11-07T05:31:56Z", "modified_at": "2023-11-07T05:31:56Z", "metadata": {}, "external_id": "usr_1337", "email": "<string>", "email_verified": true, "name": "John Doe", "billing_address": { "country": "AD", "line1": "<string>", "line2": "<string>", "postal_code": "<string>", "city": "<string>", "state": "<string>" }, "tax_id": [ "911144442", "us_ein" ], "organization_id": "<string>", "deleted_at": "2023-11-07T05:31:56Z", "avatar_url": "<string>" }, "benefit_id": "<string>", "key": "<string>", "display_key": "<string>", "status": "granted", "limit_activations": 123, "usage": 123, "limit_usage": 123, "validations": 123, "last_validated_at": "2023-11-07T05:31:56Z", "expires_at": "2023-11-07T05:31:56Z" } }
You can generate an Organization Access Token from your organization's settings.
Successful Response
Show child attributes
Was this page helpful?