Fumadocs

Customer

QUERYcustomer(id: ID!): Customer

Look up a customer by its ID.

Arguments

id*ID!

Returns

  1. customer

A registered customer.

id*ID!
name*String!

The customer's full name.

email?StringDeprecated

The customer's email address.

Use contact instead.

contact?

Contact information of the customer.

orders*

Orders placed by this customer.

The public profile of a customer.

query CustomerProfile($id: ID!) {
  customer(id: $id) {
    id
    name
  }
}
Variables
{
  "id": "cus_42"
}
Example Response
{
  "data": {
    "customer": {
      "id": "1",
      "name": "string"
    }
  }
}