API Reference
The Nickel API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.Authorization and Testing
The Nickel API uses Bearer Authentication. You will be provided with a pair of API keys: one for production and one for sandbox testing.| Environment | Base URL |
|---|---|
| Production | https://rest.nickel.com |
| Sandbox | https://rest.staging.nickel.com |
Authorization header of every request:
Requests and Responses
ForPOST requests, set the Content-Type header to application/json and pass parameters in the JSON request body.
For GET requests, pass parameters as query string parameters in the URL.
All API responses return application/json.
Errors
The Nickel API uses standard HTTP response codes to indicate the success or failure of a request.- 2xx — Success
- 4xx — Client error (invalid request, authentication failure, etc.)
- 5xx — Server error
type attribute and follows a consistent shape.