Skip to main content

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​

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​

NameTypeHistorical setterHistorical default
urlstringNone documentedhttps://api.ordering.co
versionstringNone documentedv400
projectstringNone documenteddemo
languagestringNone documenteden
accessTokenstringsetAccessToken(accessToken)null
apiKeystringsetApiKey(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.