github getbrevo/brevo-php v4.0.10

6 hours ago

v4.0.10

Added

  • Batch events endpoint$client->event->createBatchEvents() to track multiple contact interactions in a single request
  • Email campaign excludeHtmlContent parametergetEmailCampaign() accepts a new optional flag to omit the HTML body from the response, reducing payload size

Fixed

  • Boolean attributes serializationUpdateContactRequest and CreateContactRequest now correctly serialize boolean values in union-typed attribute maps (float | string | bool | array). Previously threw JsonException: Cannot serialize value of type boolean
  • Order::products item typeOrderProductsItem now correctly exposes all product fields: price, productId, variantId, quantity, quantityFloat. Previously only quantity was accessible
  • GetCampaignStats nullable fieldsappleMppOpens and opensRate are now correctly typed as nullable (?int, ?float), preventing TypeError when the API returns null

Deprecated

  • sendTransacSms() — Use sendAsyncTransactionalSms() instead. The synchronous method is deprecated. Note: remainingCredits is intentionally not returned by the async endpoint; use the account endpoints to retrieve credit balance

Internal

  • Generator updated from 2.1.42.1.10
  • Fern CLI updated from 3.91.24.22.0

Don't miss a new brevo-php release

NewReleases is sending notifications on new releases.