Fiat Integrations
A fiat integration is the configuration that connects one of your sites to Niftipay’s card payment system. Each integration defines:- Return URL — where to redirect the customer after payment (required)
- Failure URL — where to redirect after a failed or cancelled payment (optional)
- Merchant Webhook URL — where Niftipay sends payment status updates for this integration’s orders (required — it is the only reliable way to learn a payment result; you can register additional URLs in Settings → Webhooks and bind them to this integration, see scoping webhooks)
- Contact URL — a link to your contact form, shown to customers on the fraud block page (optional)
id as integrationId when
creating fiat orders — it is required on every create call.
Where to find your integration ID
- Dashboard: Settings → Fiat → Your integrations. Each row shows
Integration ID: <id>with a Copy ID button. - API:
GET /api/fiat/integrations→integrations[].id(below).
Base URL
All examples use:https://www.niftipay.com
Authentication
All endpoints require API key (x-api-key header) or session authentication.
List Integrations
Endpoint
GET /api/fiat/integrations
Returns all fiat integrations for the authenticated user.
Query parameters
Example request
Example response
Response fields
Create Integration
Endpoint
POST /api/fiat/integrations
Creates a new fiat integration.
Request body
Example request
Example response
Update Integration
Endpoint
PATCH /api/fiat/integrations/:id
Updates an existing fiat integration. Only include the fields you want to change. Set a field to null to clear it.
Path parameters
Request body
All fields are optional. Only included fields are updated.Example: add a contact URL
Example: remove a contact URL
Example response
Delete Integration
Endpoint
DELETE /api/fiat/integrations/:id
Deletes an integration. Any fiat orders linked to this integration will have their integrationId set to null.
Path parameters
Example request
Example response
Error Responses
Invalid URL (400)
Returned when a URL field is not a validhttp or https URL.