Skip to content

fix: according to API Docs, when creating a customer, all metadata fields are required and not nullable#97

Open
mauriciogior wants to merge 1 commit into
AbacatePay:mainfrom
mauriciogior:fix/customer-metadata
Open

fix: according to API Docs, when creating a customer, all metadata fields are required and not nullable#97
mauriciogior wants to merge 1 commit into
AbacatePay:mainfrom
mauriciogior:fix/customer-metadata

Conversation

@mauriciogior

Copy link
Copy Markdown

Descrição

Apesar do endpoint de criação de clientes ter apenas o email como valor obrigatório e todos os outros campos podem ser vazios, ele ainda espera que o client envie os campos, mesmo que vazios. A SDK está aceitando valores nulos, e por consequência os campos não são enviados para API, resultando em erro.


Notas Adicionais

O ideal seria ajustar a API para caso um campo seja opcional, não obrigar o client a enviar ele no JSON.

@changeset-bot

changeset-bot Bot commented Nov 16, 2025

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 49f03bd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant