Public API: Overview
Public API
Quick Summary: Access Floship programmatically through the REST API to manage orders, products, inventory, and more.
Overview
The Floship Public API provides programmatic access to your account. Use it to create orders, manage products, check inventory, retrieve tracking information, and more — all through standard REST API calls.
The API is ideal for:
- Custom integrations — connect platforms not in the standard integration list
- Automation — build workflows that create orders or update products automatically
- Reporting — pull order and inventory data into your own systems
- Mobile apps — integrate Floship into your own applications
Quick Start
- Navigate to Developers from your profile menu (top right)
- Copy your Production Token from the credentials section
- Click Explore to open the interactive API documentation
- Try a test request using the examples in the documentation
- Contact qa-testing+operations@floship.com if you need assistance
Accessing the API Documentation
- Navigate to Developers from your profile menu
- Click Explore to open the interactive API documentation in a new tab
The documentation includes:
- All available endpoints
- Request and response formats
- Authentication details
- Example requests
Note: If you don't see Developers in your menu, ask your company administrator to update your access.
Authentication
The API uses token-based authentication. Your credentials are available on the Developers page:
| Credential | Description |
|---|---|
| Production Token | API token for live operations |
| Sandbox Token | API token for testing (does not affect live data) |
| Sandbox Email / Password | Credentials for sandbox portal access (if available) |
Include your token in the Authorization header of every request:
Authorization: Token YOUR_API_TOKEN
Warning: Keep your API token secure. Do not share it publicly or commit it to source code repositories. Regenerating a token invalidates the previous one — all integrations using the old token will stop working.
Key API Resources
| Resource | What You Can Do |
|---|---|
| Orders | Create, list, and retrieve sales orders |
| Products | Create, update, and list products |
| Inventory | Check stock levels and availability |
| Tracking | Retrieve tracking information for shipped orders |
| ASN | Create and manage inbound shipment notices |
| Couriers | List available courier services |
| Webhooks | Subscribe to events for real-time notifications |
Creating Forward Orders from Quarantine
When you create a forward order from quarantined return items, each order line can optionally include a return item condition. Use this when you have the same SKU in quarantine with different conditions and need to choose which condition should be forwarded.
In the order creation request:
- Set
stock_typetoquarantine - Add
conditionto an order line when that line should use only quarantined items with that condition - Leave
conditionblank or omit it when any quarantined item for that SKU can be used
The condition value must match one of your available return item condition codes. Standard condition codes include new, used, unset, damaged, damaged_packaging, expired, and cannot_decide. If your account uses custom return conditions, active custom condition codes available to your account can also be used.
Example order line:
{
"item_sku": "SKU-001",
"quantity": 2,
"condition": "new"
}
If the condition is invalid or there are not enough quarantined items matching the requested SKU and condition, the API returns a validation error and the order is not created.
Webhooks
The API supports webhooks for real-time event notifications. Subscribe to events like order status changes, tracking updates, and inventory changes to receive instant notifications at your specified URL.
Webhook management is done via the API. See the API documentation for available webhook events, payload formats, and setup instructions.
Workflows
Workflow: Get Your API Token
When: You're setting up an integration and need your API credentials.
Steps:
- Navigate to Developers from your profile menu (top right)
- Copy the Production Token from the credentials section
- Store the token securely in your integration's configuration
Result: Your integration can authenticate API requests using the token.
Workflow: Test API Requests in Sandbox
When: You want to test your integration without affecting live data.
Steps:
- Navigate to Developers from your profile menu
- Copy the Sandbox Token
- Use the sandbox token and sandbox API URL in your test requests
- Verify the responses match your expectations
- Switch to the Production Token when ready to go live
Result: You can safely test API calls without affecting real orders or inventory.
Workflow: Create a Forward Order for a Specific Return Condition
When: You want to forward quarantined returned items, but only items with a specific condition should be selected.
Steps:
- Confirm the returned items are in Quarantined status
- Review the available condition code for the items you want to forward
- Create an order with
stock_typeset toquarantine - Add
conditionto each order line that needs a specific return item condition - Submit the order creation request
Result: The forward order is created using only matching quarantined items for lines where condition was provided. Lines without condition can use any quarantined item for that SKU.
Workflow: Regenerate Your API Token
When: Your token may have been compromised, or you need a fresh token.
Steps:
- Navigate to Developers from your profile menu
- Click the regenerate button next to the token you want to replace
- Confirm the regeneration — the old token is invalidated immediately
- Update all integrations using the old token with the new one
Result: A new token is generated. The previous token no longer works.
Warning: All integrations using the old token will fail until updated with the new token.
Workflow: Set Up Webhook Notifications
When: You want to receive real-time notifications when events occur (e.g., order shipped).
Steps:
- Review the webhook events in the API documentation (Developers → Explore)
- Create a webhook subscription via the API, specifying the event type and your callback URL
- Verify the webhook delivers test payloads to your endpoint
- Handle incoming notifications in your application
Result: Your system receives automatic notifications when events occur, without polling the API.
Troubleshooting
| Issue | Cause | Solution |
|---|---|---|
| Developers not in profile menu | You don't have developer access | Ask your company administrator to update your access |
API returns 401 Unauthorized |
Token is missing, invalid, or expired | Check the Authorization header format: Token YOUR_TOKEN. If the token was regenerated, update to the new one |
API returns 403 Forbidden |
Token doesn't have permission for the requested resource | Verify you're using the correct token (production vs sandbox) and that your account has access to the resource |
| Forward order rejects a condition | The condition code is invalid or not available for your account | Check your return item condition codes and retry with an available value |
| Forward order says quarantine stock is unavailable | Not enough quarantined items match the requested SKU and condition | Review Returns → Return Items, adjust the condition or quantity, then retry |
| Sandbox requests affecting live data | Using production token instead of sandbox token | Double-check you're using the Sandbox Token and sandbox API URL for testing |
| Webhook notifications not arriving | Callback URL unreachable or returns errors | Ensure your endpoint is publicly accessible, returns 200 OK, and handles the payload format correctly |
| Old integrations stopped working | API token was regenerated | Update all integrations with the new token from the Developers page |
Related Documentation
- Developers — API token management and developer access
- API Endpoint Reference — endpoint groups and payload reference
- Integrations Overview — connected platform setup and integration options
Support
For API questions, integration help, or to report issues:
- Email: qa-testing+operations@floship.com
- Review the interactive API documentation in your portal