Skip to main content
PATCH
/
v0
/
sources
/
{id}
Update
curl --request PATCH \
  --url https://api.paygentic.io/v0/sources/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "config": {},
  "description": "<string>",
  "enabled": true,
  "metadata": {},
  "name": "<string>",
  "processingMode": "automatic"
}
'
{
  "id": "src_t1u2v3w4x5y6z7a8",
  "config": {
    "ampersandProjectId": "proj_345678"
  },
  "createdAt": "2024-01-10T08:00:00Z",
  "description": "Data warehouse query tracking",
  "enabled": false,
  "metadata": {
    "billableMetricMapping": {
      "revenue": "bm_j7k8l9m0n1o2p3q4"
    }
  },
  "name": "Data Processing Monitor",
  "planId": "plan_b9c0d1e2f3g4h5i6",
  "processingMode": "automatic",
  "type": "stripe_revenue",
  "updatedAt": "2024-03-05T16:45:00Z"
}

Authorizations

Authorization
string
header
required

API key authentication

Path Parameters

id
string
required

The unique identifier of the source Unique identifier for a source

Body

application/json
config
object

Configuration specific to the source type

description
string

Description of the source

enabled
boolean

Whether the source is enabled

metadata
object

Metadata for the source

name
string

Display name for the source

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

object
enum<string>
required
Available options:
source
createdAt
string<date-time>
required
enabled
boolean
required
merchantId
string
required

Unique identifier for an organization

name
string
required
planId
string
required

Unique identifier for a plan

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