Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.colossal.sh/llms.txt

Use this file to discover all available pages before exploring further.

Mutations

createCustomer

Create a new customer record. If a customer with the same email already exists in the store, the existing record is returned.
mutation CreateCustomer($payload: CreateCustomerInput!) {
  createCustomer(payload: $payload) {
    success
    data {
      uid
      email
      fullName
      createdAt
    }
  }
}
Input:
FieldTypeRequiredDescription
storeUidUUIDYesStore/project UID
emailStringYesCustomer email
fullNameStringYesCustomer name

Types

Customer

FieldTypeDescription
uidUUIDCustomer ID
emailStringEmail address
fullNameStringFull name
billingAddressAddress?Default billing address
addresses[Address]All saved addresses
orders[Order]Customer’s orders
createdAtDateTime
updatedAtDateTime

Address

FieldTypeDescription
line1String?Street address line 1
line2String?Street address line 2
cityString?City
stateString?State/province
postalCodeString?Postal/ZIP code
countryString?Country code