Build with RUC on Rails
APIs designed for developers. Add RUC purchasing and vehicle intelligence to your platform with a few lines of code.
APIs
RUC Transaction API
Purchase RUC licences programmatically. Generate quotes, create transactions, and receive NZTA confirmations.
Vehicle Intelligence API
Access verified NZ vehicle data. Registration, WOF/COF status, RUC liability, specifications, and compliance information.
Authentication
All API requests require authentication via the X-API-Key header.
Sandbox keys
Prefixed with ruc_test_. Test with simulated data.
Production keys
Prefixed with ruc_live_. Real NZTA transactions.
API keys are shown once when generated. Store them securely.
Endpoints
Quotes
| POST | /v1/quotes | Generate a price quote for RUC purchase |
| GET | /v1/quotes/:id | Retrieve a specific quote |
| GET | /v1/quotes | List all quotes for your account |
Transactions
| POST | /v1/transactions | Create a RUC purchase transaction |
| GET | /v1/transactions/:id | Retrieve transaction details |
| GET | /v1/transactions | List all transactions |
Vehicles
| GET | /v1/vehicles/:plate | Get full vehicle details by plate |
| GET | /v1/vehicles/:plate/stolen | Check if vehicle is reported stolen |
| GET | /v1/vehicles/:plate/finance | Check for finance owing or encumbrances |
| GET | /v1/vehicles/:plate/ruc | Get current RUC status and balance |
| GET | /v1/vehicles/:plate/owner | Get registered person details |
| GET | /v1/vehicles/:plate/wof | Get WOF/COF status and history |
Built for developers
RESTful design
Standard HTTP methods with JSON request and response bodies
API key authentication
Secure header-based auth with X-API-Key
Sandbox environment
Test with simulated data before going live
Rate limiting
Per-minute, daily, monthly, and yearly limits
Idempotent requests
Safe to retry without duplicate transactions
Request logging
Full audit trail available in Partner Portal
Error handling
The API uses standard HTTP status codes. Errors include a message explaining what went wrong.
200OKRequest successful201CreatedResource created400Bad RequestInvalid parameters401UnauthorizedInvalid or missing API key404Not FoundResource not found429Too Many RequestsRate limit exceededResources
Ready to integrate?
Get sandbox API keys and start building. Our team is available to support your integration.