Production and Sandbox accounts are separate, and you have different API keys for each environment for isolation.

Create a Goody for Business account

To sign up for a Goody for Business account in production or sandbox, go to the corresponding link:

EnvironmentAPI Keys Link
Productionhttps://www.ongoody.com/business/signup
Sandboxhttps://sandbox.ongoody.com/business/signup

Create an API Key

Once you’re signed up, to create an API key, go to the top-right account menu, and click Account, and then click the API Keys sub-menu. Or, use the links below.

EnvironmentAPI Keys Link
Productionhttps://www.ongoody.com/plus/account/api-keys
Sandboxhttps://sandbox.ongoody.com/plus/account/api-keys

Base URL

The base URL of the API depends on the environment you’re using:

EnvironmentAPI Keys Link
Productionhttps://api.ongoody.com
Sandboxhttps://api.sandbox.ongoody.com

Authentication header

This API uses bearer authentication. Send your API key in the Authorization HTTP header preceded by Bearer :

Authorization: Bearer YOUR_GOODY_API_KEY

API keys are scoped to users, and any orders created with your API key show up in your Goody for Business account like orders created from the website. You can track them on the Track page.

Calling /me

To check that you’re authenticated, you can send a request to the /me endpoint:

GET https://api.sandbox.ongoody.com/v1/me
Authorization: Bearer YOUR_GOODY_API_KEY

And it should respond with:

{
  "email": "example-email@ongoody.com"
}