create_deal: true, Nova.Pay additionally creates an order for the customer and returns the resulting order_id. All endpoints are relative to the base URL https://pay.nova.money/api/v1.
Create or update a customer
Create a new customer or update an existing one. You can also trigger an order creation in the same request by settingcreate_deal to true.
Request body
Customer email address. Must be a valid email format. Used as the unique identifier for upsert behaviour.
Customer full name.
Customer phone number. Maximum 11 characters. Use only digits (e.g.,
11999998888).Brazilian CPF (11 digits) or CNPJ (14 digits). Maximum 14 characters.
Set to
true for customers outside Brazil. When true, identification validation is relaxed.Neighborhood or district of the customer’s address.
Street number of the customer’s address.
Street name of the customer’s address.
Postal/ZIP code of the customer’s address.
State abbreviation (e.g.,
SP, RJ).City name.
Address complement (apartment number, suite, floor, etc.).
Comma-separated tags to attach to the customer record.
Comma-separated list IDs to associate with this customer in connected CRM or email marketing tools.
Carrier name or identifier, used for shipping preferences.
Source URL where the customer originated (e.g., a landing page). Stored for attribution purposes.
ID of the primary product to associate with this customer record.
ID of the checkout page to associate with this customer request.
Coupon code to apply when
create_deal: true creates an order.Minimum order value to apply when evaluating retention pricing for this customer.
State tax inscription number (Inscrição Estadual). Relevant for business customers.
Legal company name (Razão Social) for business customers.
Municipal tax inscription number (Inscrição Municipal). Relevant for service providers.
Additional email addresses to associate with this customer. Each entry must be a valid email.
Arbitrary key-value metadata to store on the customer record. Values must be strings.
When
true, Nova.Pay creates an order for this customer after upserting the customer record. The new order’s ID is returned in order_id.ISO 8601 datetime for scheduling the order, when
create_deal: true and the product requires scheduling.Internal observation or note to attach to the order, when
create_deal: true.Response — CustomerResponse
Unique numeric ID of the created or updated customer record.
Customer email address.
CPF or CNPJ stored on the customer record.
Arbitrary metadata stored on the customer record.
Customer full name.
Customer phone number.
Whether the customer is flagged as foreign.
Customer address details.
The ID of the order created for this customer. Only present when
create_deal: true was sent and an order was successfully created. Returns null otherwise.