Skip to main content
Glama

Get or create a customer

get_or_create_customer
Destructive

MUTATES Autumn billing data — fetches a customer by id, creating them if they do not exist. Autumn API: POST /v1/customers.get_or_create.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoCustomer's name.
emailNoCustomer's email address.
expandNoRelated data to expand, e.g. invoices, entities, subscriptions.plan, purchases.plan, balances.feature.
currencyNoCurrency to bill this customer in (e.g. usd, eur).
metadataNoArbitrary key/value metadata for the customer.
stripe_idNoExisting Stripe customer id, if any.
customer_idYesYour unique identifier for the customer (null to create an anonymous customer).
fingerprintNoUnique identifier to detect duplicate customers / prevent free-trial abuse.
create_in_stripeNoWhether to create the customer in Stripe.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / customer_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / customer_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.