Skip to content

POST /device/

  • Method: POST
  • URL: https://pos.b4bit.com/api/v1/device/
  • Authentication: X-Device-Id header with an existing merchant device’s API Key.

Content-Type: application/json.

{
"name": "caja-tienda-3"
}
FieldTypeRequiredMaxDescription
namestring128Human-readable device name. Unique per merchant recommended.
Ventana de terminal
curl -X POST \
-H "X-Device-Id: $B4BIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "caja-tienda-3"}' \
https://pos.b4bit.com/api/v1/device/
{
"name": "caja-tienda-3",
"identifier": "abcdef12-3456-7890-abcd-ef1234567890"
}
  • identifier is the new API Key of the freshly created device. Save it: it cannot be recovered later.
  • 403 — Missing or invalid X-Device-Id.
  • 500 — Internal error.
  1. Create the device via API.
  2. Copy the returned identifier into your production environment variables.
  3. In the dashboard, configure the device’s notification_url and default fiat.
  4. Generate the Secret Key (to sign webhooks) from the dashboard.

The most common way to create devices is from the web dashboard: Settings → Merchant → Devices. Use this endpoint only if you need to create devices programmatically (for example, automated branch onboarding).