Idempotency

Retry any order without ever paying or provisioning twice.

Pass a reference on POST /orders: any string up to 64 characters, unique per key. If you retry with the same reference, you get back the same order. You are never double-charged and nothing is provisioned twice. Leave it out and the server generates one.

Two requests at once

If a second request with the same reference arrives while the first is still being processed, it returns 409 duplicate_in_progress. Wait a moment and retry the same reference; it resolves to the order once it has been saved.

Retry with the same reference
curl -X POST https://naara.app/api/v1/orders \
  -H "Authorization: Bearer $NAARA_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"esim","plan_id":12,"reference":"your-order-abc123"}'
<?php
require 'vendor/autoload.php';

$client = new GuzzleHttp\Client(['base_uri' => 'https://naara.app/api/v1/']);

$response = $client->post('orders', [
    'headers' => ['Authorization' => 'Bearer ' . getenv('NAARA_KEY')],
    'json' => ['type' => 'esim', 'plan_id' => 12, 'reference' => 'your-order-abc123'],
]);

echo $response->getBody();
const res = await fetch("https://naara.app/api/v1/orders", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.NAARA_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ type: "esim", plan_id: 12, reference: "your-order-abc123" }),
});
console.log(await res.json());
import os
import requests

res = requests.post(
    "https://naara.app/api/v1/orders",
    headers={"Authorization": f"Bearer {os.environ['NAARA_KEY']}"},
    json={"type": "esim", "plan_id": 12, "reference": "your-order-abc123"},
)
print(res.json())
409 Conflict
JSON
{
    "error": "duplicate_in_progress"
}

From the Naara blog

All posts
Naara Pro & Business Broadcast Messages Done Right: Consent, STOP and What Channels Allow A broadcast can build loyalty or burn your reputation. Here is how Respond handles consent, opt-outs and the rules that differ between channels. Oct 16, 2026 Money, Wallet & Pricing Wallet Top-Ups and Gift Cards on Naara: Paying, Withdrawing and Staying in Control One wallet pays for everything. Here is how to top up, which payment methods you can expect, how to withdraw earnings and how gift cards fit in. Oct 15, 2026 Naara Chat & Community Naara Chat Tips: Gestures, Status Updates and Other Things You Might Have Missed A quick tour of the small features that make Naara Chat faster: swipe to reply, status updates with mentions, scheduled messages and more. Oct 14, 2026 NaaraCredits & Loyalty Earn NaaraCredits by Following Brands: How the Rewards Hunt Works Follow a brand's real social pages, earn credits you can spend on chat and calls, and know exactly how it is checked. Oct 13, 2026 Naara Chat & Community Voice and Video Calls on Naara: What Makes a Call Connect (and Why TURN Matters) Calls inside Naara are peer to peer when they can be and relayed when they must be. Here is what that means for call quality and what to check if a call will not connect. Oct 12, 2026 Developers & Integrations Build on Naara: API Keys, Signed Webhooks and Testing Safely How to connect your own tools to Naara: create a key, call the API, receive signed webhooks and verify them properly. Oct 11, 2026 Developers & Integrations Sell eSIMs on Your Own Website With Naara Widgets and the WordPress Plugin Embed a Naara catalogue on your site, let visitors check out on a hosted page, and track every order, with or without writing code. Oct 10, 2026 Naara Pro & Business Launch Your Own Connectivity Brand: How Naara White Label Works White Label lets an agency or entrepreneur run the Naara platform under its own name. Here is the path from landing page to your own live install. Oct 9, 2026 Travel Handbooks The Naara Travel Handbook Store: Long-Form Guides for People Who Move Across Borders Short blog posts cannot cover a visa, a degree or a first lease. The Handbook Store has book-length guides, with a reader that can read aloud. Oct 8, 2026