Phase 1 preview. Version de démonstration. Prix, soldes et commandes sont fictifs. Aucun paiement ni livraison réels.
Sample announcement: try the marketplace preview with promo code WELCOME10 (sample code, no real discount).See deals

Authentication guide

API keys, scopes and request signing.

Preview only. These pages describe the proposed Phase 2 API. Endpoints are not live.

API keys

Send your secret key in the Authorization header as a Bearer token. Keys start with nv_test_ in sandbox and nv_live_ in production. Never put a secret key in a browser, mobile app or public repository.

Scopes

  • catalogue.read
  • orders.read
  • orders.write
  • webhooks.manage
  • wallet.read (licensed markets only)

Rotation

Rotate keys from your workspace. The new secret is shown once and the old key keeps working for the grace period you choose.

Example: create an order

curl -X POST https://api.example.com/v1/orders \ -H "Authorization: Bearer nv_test_****" \ -H "Idempotency-Key: 6f1c2a1e-9d3b-4b1e-8f7e-2c4d5a6b7c8d" \ -H "Content-Type: application/json" \ -d '{"items":[{"product_id":"PRD-1A2B3C","value":"25.00","currency":"USD","recipient":{"email":"friend@example.com"}}]}'
// PHP: verify a webhook signature $payload = file_get_contents('php://input'); $expected = hash_hmac('sha256', $_SERVER['HTTP_X_NESVRA_TIMESTAMP'] . '.' . $payload, getenv('NESVRA_WEBHOOK_SECRET')); if (!hash_equals($expected, $_SERVER['HTTP_X_NESVRA_SIGNATURE'] ?? '')) { http_response_code(400); exit; }