Skip to content

Document selecting API error language - #56

Closed
javorosas wants to merge 1 commit into
mainfrom
docs/api-error-language
Closed

javorosas wants to merge 1 commit into
mainfrom
docs/api-error-language

Conversation

@javorosas

@javorosas javorosas commented Sep 8, 2026

Copy link
Copy Markdown
Member

Documents how to request English API V2 errors using an injected Guzzle client with a default Accept-Language header. The bilingual examples preserve the SDK's timeout configuration and explain fallback, stable codes, external messages, local SDK errors, and instance-level configuration.

Adds a transport test using real Guzzle middleware to verify that the language header and SDK authentication are both sent and that the English API error shape is exposed unchanged.

Validation: PHPUnit passed with 53 tests and 202 assertions.

@javorosas

Copy link
Copy Markdown
Member Author

Closing this PR because the SDK already supports custom request headers. The Accept-Language usage will be documented centrally in facturapi-docs.

@javorosas javorosas closed this Sep 8, 2026
@javorosas
javorosas deleted the docs/api-error-language branch September 8, 2026 15:55
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