Dispute Integration API

Internal/admin endpoints used by Dispute.com integration.

Internal/admin endpoints.

Authentication

All endpoints require:

  • Header: x-api-key: <DISPUTE_MASTER_OR_SERVICE_KEY>

Also send:

  • Content-Type: application/json

Base path

Paths below are shown as implemented (for example: POST /accounts).

If these routes are hosted behind an internal prefix (like /admin), apply that prefix in your environment.

Accounts

POST /accounts

Create a new Fense account.

Request body

  • api_key (string, required)

    • Merchant API key for this account

  • name (string, required)

    • Account/company name

  • email (string, required)

    • Owner email address

  • suppress_notifications (boolean, optional, default: false)

    • Skip all outbound notifications

  • suppress_billing (boolean, optional, default: false)

    • Skip billing/charging operations

  • dispute_account_id (uuid, optional)

    • UUID linking to the Dispute.com account

Response: 201 Created

GET /accounts/{fense_account_id}

Retrieve a Fense account by ID.

Path parameters

  • fense_account_id (integer, required)

Response: 200 OK

POST /accounts/{fense_account_id}

Update an existing Fense account.

All fields are optional.

Path parameters

  • fense_account_id (integer, required)

Request body

  • api_key (string)

    • Update the merchant API key

  • name (string)

    • Update account name

  • suppress_notifications (boolean)

    • Toggle notifications

  • suppress_billing (boolean)

    • Toggle billing

  • is_active (boolean)

    • Activate/deactivate account

  • dispute_account_id (uuid)

    • Update Dispute.com link

Response

Returns the updated account.

Usage

GET /accounts/usage and GET /accounts/usage/{fense_account_id}

Get anti-fraud lookup usage metrics.

If fense_account_id is omitted, returns usage for all accounts.

Path parameters

  • fense_account_id (integer, optional)

Query parameters (optional)

  • start_date (YYYY-MM-DD)

    • Filter start date

  • end_date (YYYY-MM-DD)

    • Filter end date

  • fense_account_id (integer)

    • Alternative to the path parameter

If `start_date` is provided, `end_date` is required.

Response: 200 OK (single account)

Response: 200 OK (all accounts)

Errors

All endpoints return a consistent error shape.

  • 400 Bad Request

  • 401 Unauthorized

  • 403 Forbidden

  • 404 Not Found

  • 500 Internal Server Error

Last updated