PATCH
/
sources
/
{id}
Update source
curl --request PATCH \
  --url https://api.paygentic.io/v0/sources/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "config": {},
  "metadata": {},
  "enabled": true,
  "processingMode": "automatic"
}'
{
  "id": "<string>",
  "planId": "<string>",
  "merchantId": "<string>",
  "object": "source",
  "type": "stripe_revenue",
  "name": "<string>",
  "description": "<string>",
  "config": {},
  "metadata": {},
  "enabled": true,
  "processingMode": "automatic",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API key authentication

Path Parameters

id
string
required

The unique identifier of the source

Body

application/json
name
string

Display name for the source

description
string

Description of the source

config
object

Configuration specific to the source type

metadata
object

Metadata for the source

enabled
boolean

Whether the source is enabled

processingMode
enum<string>

How events are processed - automatic (immediate) or manual (requires approval)

Available options:
automatic,
manual

Response

Source updated successfully

id
string
required

Unique identifier for a source

planId
string
required

Unique identifier for a plan

merchantId
string
required

Unique identifier for an organization

object
enum<string>
required
Available options:
source
type
enum<string>
required
Available options:
stripe_revenue
name
string
required
enabled
boolean
required
processingMode
enum<string>
required
Available options:
automatic,
manual
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
description
string
config
object
metadata
object