# Fulfillment.com APIv2 API

> Welcome to our current iteration of our REST API. While we encourage you to upgrade to v2.0 we will continue support for our [SOAP API](https://github.com/fulfillment/soap-integration). # Versioning The Fulfillment.com (FDC) REST API is version controlled and backwards compatible. We have many future APIs scheduled for publication within our v2.0 spec so please be prepared for us to add data nodes in our responses, however, we will not remove knowledge from previously published APIs. #### A Current Response ```javascript { id: 123 } ``` #### A Potential Future Response ```javascript { id: 123, reason: "More Knowledge" } ``` # Getting Started We use OAuth v2.0 to authenticate clients, you can choose [implicit](https://oauth.net/2/grant-types/implicit/) or [password](https://oauth.net/2/grant-types/password/) grant type. To obtain an OAuth `client_id` and `client_secret` contact your account executive. **Tip**: Generate an additional login and use those credentials for your integration so that changes are accredited to that "user". You are now ready to make requests to our other APIs by filling your `Authorization` header with `Bearer {access_token}`. ## Perpetuating Access Perpetuating access to FDC without storing your password locally can be achieved using the `refresh_token` returned by [POST /oauth/access_token](#operation/generateToken). A simple concept to achieve this is outlined below. 1. Your application/script will ask you for your `username` and `password`, your `client_id` and `client_secret` will be accessible via a DB or ENV. 2. [Request an access_token](#operation/generateToken) + Your function should be capable of formatting your request for both a `grant_type` of \"password\" (step 1) and \"refresh_token\" (step 4). 3. Store the `access_token` and `refresh_token` so future requests can skip step 1 4. When the `access_token` expires request anew using your `refresh_token`, replace both tokens in local storage. + If this fails you will have to revert to step 1. Alternatively if you choose for your application/script to have access to your `username` and `password` you can skip step 4. In all scenarios we recommend storing all credentials outside your codebase. ## Date Time Definitions We will report all date-time stamps using the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) standard. When using listing API's where fromDate and toDate are available note that both dates are inclusive while requiring the fromDate to be before or at the toDate. ### The Fulfillment Process Many steps are required to fulfill your order we report back to you three fundamental milestones inside the orders model. * `recordedOn` When we received your order. This will never change. * `dispatchDate` When the current iteration of your order was scheduled for fulfillment. This may change however it is an indicator that the physical process of fulfillment has begun and a tracking number has been **assigned** to your order. The tracking number **MAY CHANGE**. You will not be able to cancel an order once it has been dispatched. If you need to recall an order that has been dispatched please contact your account executive. * `departDate` When we recorded your order passing our final inspection and placed with the carrier. At this point it is **safe to inform the consignee** of the tracking number as it will not change. ## Evaluating Error Responses We currently return two different error models, with and without context. All errors will include a `message` node while errors with `context` will include additional information designed to save you time when encountering highly probable errors. For example, when you send us a request to create a duplicate order, we will reject your request and the context will include the FDC order `id` so that you may record it for your records. ### Without Context New order with missing required fields. | Header | Response | | ------ | -------- | | Status | `400 Bad Request` | ```javascript { "message": "Invali.

Fulfillment.com APIv2 is a shopping API from fulfillment.com. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 13 endpoints.

## At a glance

- Category: [Shopping](https://www.openparable.com/apis/category/shopping)
- Provider: fulfillment.com
- Authentication: API key
- HTTPS: Yes
- CORS: Not stated
- Base URL: https://api.fulfillment.com/v2
- Documentation: https://fulfillment.com/
- OpenAPI description: https://api.apis.guru/v2/specs/fulfillment.com/2.0/openapi.json
- Version: 2.0
- Specification updated: 2023-03-06

## Example request

```bash
curl -X GET "https://api.fulfillment.com/v2/accounting" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
```

## Endpoints

- `GET /accounting` — List Order Accounting
- `GET /inventory` — List of Item Inventories
- `POST /oauth/access_token` — Generate an Access Token
- `GET /orders` — List of Orders
- `POST /orders` — New Order
- `GET /orders/{id}` — Order Details
- `DELETE /orders/{id}` — Cancel an Order
- `PUT /orders/{id}/ship` — Ship an Order
- `PUT /orders/{id}/status` — Update Order Status
- `GET /returns` — List Returns
- `PUT /returns` — Inform us of an RMA
- `GET /track` — Tracking
- `GET /users/me` — About Me

## Questions

### Does the Fulfillment.com APIv2 API need an API key?

Yes. The Fulfillment.com APIv2 API uses API key authentication; the documentation explains how to get credentials.

### Does the Fulfillment.com APIv2 API support HTTPS?

Yes, the Fulfillment.com APIv2 API is served over HTTPS.

### How many endpoints does the Fulfillment.com APIv2 API have?

Its OpenAPI description lists 13 endpoints in version 2.0. All of them are shown on this page.

### What are alternatives to the Fulfillment.com APIv2 API?

Other Shopping APIs include Etsy, eBay, Flipkart Marketplace, Inventory Management, Intel Product Catalogue Service.

## Similar shopping APIs

- [Etsy](https://www.openparable.com/apis/etsy): Manage shop and interact with listings
- [eBay](https://www.openparable.com/apis/ebay): Sell and Buy on eBay
- [Flipkart Marketplace](https://www.openparable.com/apis/flipkart-marketplace): Product listing management, Order Fulfilment in the Flipkart Marketplace
- [Inventory Management](https://www.openparable.com/apis/inventory-management): Maintaining up-to-date inventory for your items on Walmart.com ensures a great experience for your customers and greater sales opportunities for you.
- [Intel Product Catalogue Service](https://www.openparable.com/apis/intel-product-catalogue-service): This is the documentation for PIM Micro services. In order to use this tool you need to have Basic Auth credentials and a client id. If you dont have one, please make sure to request one by sending an email to the PIM MS team: [pim.360.team@intel.com](mailto:pim.360.team@intel.com?subject=PIMServices)
- [Item API](https://www.openparable.com/apis/item): Please make sure you use the correct version of the APIs for your use case. To find out the appropriate version, go to the API Docs drop down on the menu.
- [Tokopedia](https://www.openparable.com/apis/tokopedia): Tokopedia's Official API for integration of various services from Tokopedia
- [Pendo Feedback API](https://www.openparable.com/apis/pendo-feedback): ## Who is this for? This documentation is for developers creating their own integration with [Feedback's](https://www.pendo.io/product/feedback/) API. If you are doing a standard integration, there's a really easy [Javascript integration](https://help.receptive.io/hc/en-us/articles/209221969-How-to-integrate-Receptive-with-your-app) that you should know about before you go to the effort of building your own integration. ## Authentication API calls generally need to be authenticated. Generate an API Key at https://feedback.pendo.io/app/#/vendor/settings?section=integrate. This key should then be added to every request as a request header named 'auth-token' (preferred), or as a query parameter named 'auth-token'. ## Endpoint API endpoint is https://api.feedback.eu.pendo.io / https://api.feedback.us.pendo.io depending where your datacenter is located. ## Notes API endpoints are being added to this documentation as needed by customers. If you don't see an endpoint you need please contact support and if it exists we'll publish the docs here. The 'try it out' feature on this documentation page will probably be blocked by your browser because the Access-Control-Allow-Origin header has its value set by the Feedback server depending on your hostname. ## Generating client code This documentation is automatically generated from an OpenAPI spec available [here](http://apidoc.receptive.io/receptive.swagger.json). You can use Swagger to auto-generate API client code in many languages using the [Swagger Editor](http://editor.swagger.io/#/)
- [OLX Poland](https://www.openparable.com/apis/olx-poland): Integrate with local sites by posting, managing adverts and communicating with OLX users
- [Shopee](https://www.openparable.com/apis/shopee): Shopee's official API for integration of various services from Shopee
- [Mercadolibre](https://www.openparable.com/apis/mercadolibre): Manage sales, ads, products, services and Shops
- [Shop](https://www.openparable.com/apis/shop): Search for millions of products from the world's greatest brands.

Listed from: APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/fulfillment-com-apiv2 (OpenParable). Cite the canonical URL above.
