SDKs, install, and client. Pick an SDK or integrate with cURL; all examples use the same HMAC authentication.
Introduction
Integrate payments and catalog with the Node.js SDK or direct cURL. Every request is signed with HMAC-SHA256; the apiKey never travels in headers or the body.
Language SDKs
Node.js and cURL share the same REST endpoints.
cURL without SDK
Try the API with bash, openssl, and manual HMAC headers.
Full catalog
Product and category CRUD, images, and inventory via /business/merchant-catalog.
Browse by topic
import { HanixBusinessClient } from '@hanix.io/business';
const client = new HanixBusinessClient({
merchantId: process.env.HANIX_MERCHANT_ID!,
apiKey: process.env.HANIX_API_KEY!,
});
const order = await client.createPaymentOrder({
merchant_reference: 'pedido-1001',
amount_in_cents: 15000,
currency_id: 'uuid-moneda',
country_id: 'uuid-pais',
});
console.log(order.payment_url);Languages
Node.js and cURL share the same HTTP contract. Pick one to update all examples in the docs.
Install
npm install @hanix.io/businesspnpm add @hanix.io/businessClient
new HanixBusinessClient({
merchantId: string, // obligatorio
apiKey: string, // secreto HMAC
timeoutMs?: number, // default 30000
fetch?: typeof fetch,
userAgent?: string,
});