## Void `client.V1.CreditGrants.Void(ctx, body) (*V1CreditGrantVoidResponse, error)` **post** `/v1/credits/voidGrant` Void a credit grant ### Parameters - **body:** `V1CreditGrantVoidParams` - **ID:** `param.Field[string]` - **ReleaseUniquenessKey:** `param.Field[bool]` If true, resets the uniqueness key on this grant so it can be re-used - **VoidCreditPurchaseInvoice:** `param.Field[bool]` If true, void the purchase invoice associated with the grant ### Returns - Not supported - **Data:** `ID` ### Example ```go package main import ( "context" "fmt" "github.com/Metronome-Industries/metronome-go" "github.com/Metronome-Industries/metronome-go/option" ) func main() { client := metronome.NewClient( option.WithBearerToken("My Bearer Token"), ) response, err := client.V1.CreditGrants.Void(context.TODO(), metronome.V1CreditGrantVoidParams{ ID: metronome.F("9b85c1c1-5238-4f2a-a409-61412905e1e1"), }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response.Data) } ```