POST
/
v1
/
customer-portal
/
license-keys
/
deactivate
package main

import(
	"context"
	polargo "github.com/polarsource/polar-go"
	"github.com/polarsource/polar-go/models/components"
	"log"
)

func main() {
    ctx := context.Background()

    s := polargo.New()

    res, err := s.CustomerPortal.LicenseKeys.Deactivate(ctx, components.LicenseKeyDeactivate{
        Key: "<key>",
        OrganizationID: "<value>",
        ActivationID: "<value>",
    })
    if err != nil {
        log.Fatal(err)
    }
    if res != nil {
        // handle response
    }
}
This response does not have an example.

Body

application/json
key
string
required
organization_id
string
required
activation_id
string
required

Response

204
_mintlify/placeholder

License key activation deactivated.