Skip to main content
Updates a provider’s information. You can update the name and enabled status.

Path Parameters

id
string
required
Provider ID

Request Body

All fields are optional.
name
string
New provider name
enabled
boolean
Enable/disable provider

Example Requests

Update name only

{
  "name": "Paystack Pro"
}

Disable provider

{
  "enabled": false
}

Update both

{
  "name": "Paystack Pro",
  "enabled": true
}

Response

status
string
Response status (“success”)
message
string
Success message
data
object
Updated provider object

Example Response

{
  "status": "success",
  "message": "Provider updated successfully",
  "data": {
    "id": "prv_xxxxxxxxxxxxx",
    "name": "Paystack Pro",
    "slug": "paystack",
    "enabled": true,
    "createdAt": "2025-11-12T17:46:07.000Z",
    "updatedAt": "2025-11-12T18:30:00.000Z"
  }
}

Notes

  • The slug cannot be changed after creation
  • Only name and enabled status can be updated