> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mitu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Provider

Creates a new payment provider entry for tracking and analytics. Providers represent payment service providers (like Paystack, Flutterwave) that you integrate with. Providers are used for tracking and analytics purposes only - no credentials are stored.

## Request Body

<ParamField body="name" type="string" required>
  Provider display name (e.g., "Paystack", "Flutterwave")
</ParamField>

<ParamField body="slug" type="string" required>
  Unique identifier for the provider. Must be:

  * Lowercase
  * No spaces (use underscores or hyphens)
  * Unique within your account
  * Examples: "paystack", "flutterwave", "stripe"
</ParamField>

<ParamField body="enabled" type="boolean" default="true">
  Whether provider is active
</ParamField>

## Example Request

```json theme={null}
{
  "name": "Paystack",
  "slug": "paystack",
  "enabled": true
}
```

## Response

<ResponseField name="status" type="string">
  Response status ("success")
</ResponseField>

<ResponseField name="message" type="string">
  Success message
</ResponseField>

<ResponseField name="data" type="object">
  Provider object
</ResponseField>

<ResponseField name="data.id" type="string">
  Provider ID
</ResponseField>

<ResponseField name="data.accountId" type="string">
  Account ID
</ResponseField>

<ResponseField name="data.name" type="string">
  Provider name
</ResponseField>

<ResponseField name="data.slug" type="string">
  Provider slug
</ResponseField>

<ResponseField name="data.enabled" type="boolean">
  Whether provider is enabled
</ResponseField>

<ResponseField name="data.createdAt" type="string">
  ISO 8601 timestamp
</ResponseField>

<ResponseField name="data.updatedAt" type="string">
  ISO 8601 timestamp
</ResponseField>

## Example Response

```json theme={null}
{
  "status": "success",
  "message": "Provider created successfully",
  "data": {
    "id": "prv_xxxxxxxxxxxxx",
    "accountId": "1dae3dd7-7194-479d-a8af-8ebf3c258a05",
    "name": "Paystack",
    "slug": "paystack",
    "enabled": true,
    "createdAt": "2025-11-12T17:46:07.000Z",
    "updatedAt": "2025-11-12T17:46:07.000Z"
  }
}
```

## Error Responses

**409 Conflict**: Provider slug already exists for your account\
**400 Bad Request**: Invalid input data

## Notes

* The slug must be unique per account
* Providers are used for analytics and tracking only
* No payment credentials are stored
