freshbooks_auth_exchange
Complete FreshBooks OAuth by exchanging the full redirect URL for tokens; state must match a consent URL, and the code is single-use.
Instructions
Complete FreshBooks authorization. Local sessions save the credentials privately and return only status; hosted sessions return the refresh token to the host's credential-capture flow. Pass the whole redirect URL: its state must match a consent URL freshbooks_auth_url issued, so a bare code is refused. The code is SINGLE-USE — if this fails, authorize again rather than retrying it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The entire redirect URL you were sent to after approving, including its state parameter. A bare ?code= value is refused. |