Skip to main content
PUT
Create or update IRP credentials

Body Parameters

Example Request

Response

Notes

  • Sensitive fields (client_secret, password) are masked in the response for security.
  • Recurso automatically manages IRP token refresh. The last_token_refresh field shows when the OAuth token was last renewed.
  • Use environment: "sandbox" for testing before enabling production e-invoicing.
  • Setting is_enabled: false pauses all e-invoice generation without removing credentials.
To retrieve the current IRP configuration, use GET /v1/settings/irp with the same authorization header. The GET endpoint returns the same response structure with sensitive fields masked.
Ensure your IRP credentials are valid before switching to production. Invalid credentials will cause all e-invoice submissions to fail.

Authorizations

Authorization
string
header
required

Tenant API key obtained from POST /auth/register or POST /v1/developer/keys.

Query Parameters

entity_id
string<uuid>

Legal entity to scope the tax config to (Multi-Entity Books). Omit for the tenant's primary entity / default config.

Body

application/json
id
string
tenant_id
string
environment
enum<string>
Available options:
sandbox,
production
client_id
string
client_secret
string

Masked (first 4 characters + ****) in GET responses.

username
string
password
string

Masked (****) in GET responses.

gstin
string
is_enabled
boolean

Response

Configuration saved.

data
object
message
string