跳至內容
Fumadocs

Customer

QUERYcustomer(id: ID!): Customer

Look up a customer by its ID.

參數

id*ID!

回傳值

  1. customer

A registered customer.

id*ID!
name*String!

The customer's full name.

email?String已棄用

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
  }
}
變數
{
  "id": "cus_42"
}
範例回應
{
  "data": {
    "customer": {
      "id": "1",
      "name": "string"
    }
  }
}