Creates a new customer in the Asaas account. Use this operation to register a payer that will be referenced in payments, subscriptions and other operations linked to customers.
The response represents the created customer and includes its Asaas ID. Store this identifier to reuse it in subsequent operations.
The API allows duplicate customers to be created. If your integration requires unique records, check the existing customers before creating one. In case of a timeout or an inconclusive response, check whether the record was created before repeating the request.
When postalCode is provided, Asaas may automatically fill in address data based on the postal code (CEP). Provide addressNumber separately when applicable.
Foreign customersTo register a foreign payer, provide
foreignCustomer: true.In Production, the feature must be enabled for the account. In the Sandbox, enable Foreign payers in the account settings.
