OnPrintShop icon

OnPrintShop

Interact with OnPrintShop API

Actions218

Customer → Create

AI-generated

Summary

Create a customer in OnPrintShop via GraphQL mutation with required registration type, name, and email; optional safe mode for 5xx retry; and optional fields collection for additional customer attributes.

Inputs

  • safeMode — If enabled, retries first page without nested groups when server returns 5xx
  • registration_type (required) — Two Step Register (1) sends email for completion; Normal Register (0) creates fully registered customer
  • first_name (required) — Customer first name
  • last_name (required) — Customer last name
  • email (required) — Customer email address
  • optionalFields — Optional customer fields: corporate ID, phone number, company name, password, status, department ID, set password flag, user group, secondary emails, tax exemption, payon account, payon limit

Output shape

Created customer record data returned from GraphQL mutation

Password auto-generated as random 8-character string for normal registration if not provided; two-step registration sends completion email; GraphQL request uses customer_id=0 for create operations

Examples

Example 1: Create a normally registered customer with password auto-generation

registration_type=0, first_name=John, last_name=Doe, email=john@example.com

Example 2: Create a two-step registered customer

registration_type=1, first_name=Jane, last_name=Smith, email=jane@example.com

Discussion