---
title: "Ordering API SDK"
description: "SDK availability: These examples describe a historical interface. We have not confirmed a supported Ordering JavaScript SDK release."
canonical: https://docs.ordering.co/api-reference/guides/ordering-api-skd/
---

# Ordering API SDK

> **SDK availability:** These examples describe a historical interface. We have not confirmed a supported Ordering JavaScript SDK release. Use the REST API for a new integration unless Ordering confirms an SDK release for your project.

The historical SDK wrapped Ordering API resources in JavaScript methods and stored connection settings in an `Ordering` client instance.

## Historical initialization example

```javascript
import { Ordering } from 'ordering-api-sdk'

const ordering = new Ordering({
  url: 'https://api.ordering.co',
  version: 'v400',
  project: 'demo',
  language: 'en'
})
```

This is a historical example and does not establish that the package is currently installable or supported.

## Historical client settings

| Name          | Type   | Historical setter             | Historical default        |
| ------------- | ------ | ----------------------------- | ------------------------- |
| `url`         | string | None documented               | `https://api.ordering.co` |
| `version`     | string | None documented               | `v400`                    |
| `project`     | string | None documented               | `demo`                    |
| `language`    | string | None documented               | `en`                      |
| `accessToken` | string | `setAccessToken(accessToken)` | `null`                    |
| `apiKey`      | string | `setApiKey(apiKey)`           | `null`                    |

The historical examples use inconsistent token setter names (`setToken()` and `setAccessToken()`). Verify the exact SDK version before relying on either method.

For new integrations, use the HTTP operations and schemas in the API Reference unless a supported SDK release is identified separately.
