Skip to content

Create Product error: Unexpected unit_label #158

@sanderpick

Description

@sanderpick

Using the latest Go client, I get the following error when creating a product:

Request error from Stripe (status 400): {"status":400,"message":"Unexpected unit_label","type":"invalid_request_error"}

Go client code:

product, err := client.Products.New(&stripe.ProductParams{
	Name:      stripe.String("Stored Data"),
	UnitLabel: stripe.String("50 MiB"),
})

Perhaps unit_label is missing from the mocked model?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions