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.
Bring your own key. This API needs your own Fulfillment.com APIv2 key - get one from the provider, add it once below, and the proxy injects it on every call. Your OmniStream plan covers the unified SDK, key storage, and proxy - the provider's own rate limits still apply to your key.
This is a community listing. If you own this API, you can request ownership.
npm install omnistream-sdkimport { OmniClient } from "omnistream-sdk";
const omni = new OmniClient({ token: process.env.OMNI_KEY! });
// One key reaches every API on the marketplace.
const data = await omni.call("fulfillment/get-accounting");One install, one key - the same client calls every API on the marketplace.
Orders invoice date. Date-time in ISO 8601 format for selecting orders after, or at, the specified time
Orders invoice date. Date-time in ISO 8601 format for selecting orders before, or at, the specified time
A multiplier of the number of items (limit parameter) to skip before returning results
The numbers of items to return
A CSV of warehouse id, '123' or '1,2,3'
A CSV of FDC order id, '123' or '1,2,3'
Adds additional information to the response, uses a CSV format for multiple values.
List Order Accounting
List of Item Inventories
Generate an Access Token
List of Orders
New Order
/**
* FulfillmentcomAPIv2 - generated by OmniStream from Fulfillment.com APIv2's OpenAPI spec.
* One typed method per endpoint. A single Omni key reaches the API.
*/
const DEFAULT_BASE = "https://grid.skinvaults.online/v1/proxy/fulfillment";
export class FulfillmentcomAPIv2Error extends Error {
status: number;
code?: string;
constructor(status: number, code: string | undefined, message?: string) {
super(message || `FulfillmentcomAPIv2 error ${status}`);
this.name = "FulfillmentcomAPIv2Error";
this.status = status;
this.code = code;
}
}
export interface FulfillmentcomAPIv2Options {
baseUrl?: string;
fetch?: typeof fetch;
timeoutMs?: number;
}
export class FulfillmentcomAPIv2 {
/** @param token Your OmniStream key (one key for every API). */
constructor(private token: string, private opts: FulfillmentcomAPIv2Options = {}) {
if (!token) throw new Error("FulfillmentcomAPIv2: token is required");
}
rateLimit: { remainingMinute?: number; remainingDay?: number } | null = null;
private async _request(method: string, path: string, { params, body }: { params?: Record<string, unknown>; body?: unknown } = {}): Promise<any> {
const f = this.opts.fetch ?? globalThis.fetch;
const url = new URL((this.opts.baseUrl ?? DEFAULT_BASE).replace(/\/+$/, "") + path);
if (params) for (const [k, v] of Object.entries(params)) if (v != null) url.searchParams.set(k, String(v));
const headers: Record<string, string> = { "x-omni-key": this.token };
if (body !== undefined) headers["content-type"] = "application/json";
const res = await f(url, { method, headers, body: body !== undefined ? JSON.stringify(body) : undefined });
this.rateLimit = {
remainingMinute: Number(res.headers.get("x-ratelimit-remaining-minute")) || undefined,
remainingDay: Number(res.headers.get("x-ratelimit-remaining-day")) || undefined,
};
const data = await res.json().catch(() => ({}));
if (!res.ok) throw new FulfillmentcomAPIv2Error(res.status, data?.error?.code, data?.error?.message);
return data.data ?? data;
}
/** List Order Accounting */
getAccounting(params: { "fromDate": string; "toDate": string; "hydrate": unknown[]; "page"?: number; "limit"?: number; "warehouseIds"?: unknown[]; "orderIds"?: unknown[] }): Promise<any> {
return this._request("GET", "/accounting", { params });
}
/** List of Item Inventories */
getInventory(params: { "page"?: number; "limit"?: number; "merchantIds"?: unknown[]; "warehouseIds"?: unknown[]; "externalSkuNames"?: unknown[] }): Promise<any> {
return this._request("GET", "/inventory", { params });
}
/** Generate an Access Token */
postOauthAccessToken(body: unknown): Promise<any> {
return this._request("POST", "/oauth/access_token", { body });
}
/** List of Orders */
getOrders(params: { "fromDate": string; "toDate": string; "merchantIds"?: unknown[]; "warehouseIds"?: unknown[]; "page"?: number; "limit"?: number; "hydrate"?: unknown[] }): Promise<any> {
return this._request("GET", "/orders", { params });
}
/** New Order */
postOrders(body: unknown): Promise<any> {
return this._request("POST", "/orders", { body });
}
/** Order Details */
getOrder(params: { "id": string; "merchantId"?: number; "hydrate"?: unknown[] }): Promise<any> {
return this._request("GET", "/orders/{id}", { params });
}
/** Cancel an Order */
deleteOrdersId(params: { "id": number }): Promise<any> {
return this._request("DELETE", "/orders/{id}", { params });
}
/** Ship an Order */
putOrdersIdShip(body: unknown, params: { "id": number }): Promise<any> {
return this._request("PUT", "/orders/{id}/ship", { body, params });
}
/** Update Order Status */
putOrdersIdStatus(body: unknown, params: { "id": number }): Promise<any> {
return this._request("PUT", "/orders/{id}/status", { body, params });
}
/** List Returns */
getReturns(params: { "fromDate": string; "toDate": string; "page"?: number; "limit"?: number }): Promise<any> {
return this._request("GET", "/returns", { params });
}
/** Inform us of an RMA */
putReturns(body: unknown): Promise<any> {
return this._request("PUT", "/returns", { body });
}
/** Tracking */
getTrack(params: { "trackingNumber"?: string }): Promise<any> {
return this._request("GET", "/track", { params });
}
/** About Me */
getUsersMe(): Promise<any> {
return this._request("GET", "/users/me", {});
}
}
export default FulfillmentcomAPIv2;
No reviews yet. Be the first to rate this API.
Yes. Fulfillment.com APIv2 uses apiKey authentication, so you bring your own key from the provider. You store it once on OmniStream and the proxy injects it into every call, so your code only ever sends your Omni key.
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. It exposes 13 endpoints over GET, POST, DELETE, PUT, including GET /accounting, GET /inventory, POST /oauth/access_token.
Install the OmniStream SDK for your language and call Fulfillment.com APIv2 through it. The client is generated from this API's OpenAPI spec, so parameters and responses are fully typed, and the same client also calls every other API in the marketplace.
You can start on the free plan. OmniStream charges for the unified SDK, key storage and proxy rather than for Fulfillment.com APIv2 itself, and Fulfillment.com APIv2's own rate limits still apply to your provider key.
QuickChart: An API to generate charts and QR codes using QuickChart services.
Order Details
Cancel an Order
Ship an Order
Update Order Status
List Returns
Inform us of an RMA
Tracking
About Me