Skip to content

Fiskaly Upsert Client

This module allows creating or updating a device (client) in Fiskaly via PUT (upsert) operation. In the Fiskaly context, a “Client” represents a point of sale or device from which invoices are issued. Each billing device must be registered as a client associated with a taxpayer.

If no client_id is provided, a UUIDv4 is automatically generated. Optional fields include client tax identification number, country code and address in JSON format.

The module is of type hidden (hidden in the main interface).

ParameterTypeRequiredDescription
credentials_idcredentialsYesFiskaly credential
taxpayer_idtextYesUUID of the taxpayer that owns the device
client_idtextNoClient UUID (auto-generated if empty)
nametextYesIdentifying name of the device/POS
tax_numbertextNoClient NIF/CIF
country_codetextNoISO country code (default: ES)
addresstextareaNoAddress in JSON: {street, city, postal_code}

Requires Fiskaly type credentials with:

  • api_key: Fiskaly API Key
  • api_secret: Fiskaly API Secret
{
"nextModule": "siguiente_modulo",
"data": {
"success": true,
"client": { "...datos del dispositivo creado..." },
"client_id": "550e8400-e29b-41d4-a716-446655440000",
"message": "Cliente \"TPV Principal\" creado/actualizado exitosamente"
}
}
{
"credentials_id": "mi-fiskaly",
"taxpayer_id": "uuid-contribuyente",
"name": "TPV Tienda Madrid",
"tax_number": "B12345678",
"country_code": "ES",
"address": "{\"street\": \"Calle Mayor 1\", \"city\": \"Madrid\", \"postal_code\": \"28001\"}"
}
  • Fiskaly SIGN ES API - PUT /taxpayers/{taxpayer_id}/clients/{client_id}
  • Uses PUT (upsert): if the client already exists, it is updated
  • If client_id is not provided, a UUIDv4 is automatically generated
  • The address field must be a valid JSON with the keys street, city and postal_code
  • The device name is required and should be identifying