Field NationDeveloper Platform
Field NationDeveloper Platform
IntroductionQuick StartAPI Playground

Getting Started

AuthenticationAPI BasicsTroubleshooting

API Reference

Getting Started

Troubleshooting

Common error codes, pitfalls, and how to resolve them.


Troubleshooting

If you run into issues integrating with the Field Nation API, use this guide to diagnose and resolve common errors.

Standard Error Codes

CodeMeaningAction
400Bad RequestCheck your JSON syntax and data types.
401UnauthorizedCheck your token validity.
403ForbiddenCheck your user permissions (Scopes).
404Not FoundValidate your IDs.
429Too Many RequestsSlow down. Implement exponential backoff.
500Server ErrorRetry once. If it persists, contact support.

Common Resolution Guides

Symptom: You send a date, but get a validation error. Fix: Ensure you are using the precise { "utc": "YYYY-MM-DD HH:mm:ss" } object structure. Plain strings like "2023-01-01" are often rejected in strict fields.

Symptom: You are testing in Sandbox using IDs (Type of Work, Template, Project) from Production. Fix: IDs are unique to each environment. You must recreate your setup (Projects, Templates) in Sandbox and use those new IDs for testing.

Symptom: Used to work, now returns 401. Fix: Access tokens expire after 1 hour. Your code must handle the 401 response by using the refresh_token to fetch a fresh access_token automatically.

Symptom: You have a valid token, but cannot modify Financials or Users. Fix: The API user associated with your credentials likely lacks the specific permission bit (e.g., "Manage Providers" or "View Financials"). Log in to the UI with that user to verify access, or ask an Admin to grant the permission.

Last updated on

API Basics

Fundamental concepts, standards, and conventions used across the Field Nation API.

Work Order Lifecycle

Understand the stages of a work order from creation to payment.

On this page

Troubleshooting
Standard Error Codes
Common Resolution Guides