customerPayments.getConfig
Get payment readiness and webhook configuration without returning secrets.- Auth: Organization API key (
Authorization: Bearer korve_...) or dashboard session. - Minimum role:
member - Risk:
read
Query parameters
Example
Responses
Response body (200)
customerPayments.connect
Connect a customer-owned payment account with a write-only restricted credential. Korve rejects full-access credentials, validates authenticated resource access, and enforces the declared Korve operation allowlist; the connected processor remains authoritative for credential permissions.- Auth: Dashboard session only — organization API keys are rejected.
- Minimum role:
owner - Billing: requires active organization billing — returns
402otherwise. - Risk:
write· sensitive (elevated blast radius)
Query parameters
Request body
Example
Responses
Response body (200)
customerPayments.disconnect
Revoke the local connection and permanently delete payment projections and audit events.- Auth: Dashboard session only — organization API keys are rejected.
- Minimum role:
owner - Risk:
destructive· sensitive (elevated blast radius)
Query parameters
Example
Responses
customerPayments.listProducts
List products in ascending creation order, with UUID as the stable tie-breaker.- Auth: Organization API key (
Authorization: Bearer korve_...) or dashboard session. - Minimum role:
member - Risk:
read
Query parameters
Example
Responses
Response body (200)
customerPayments.createProduct
Create a product idempotently.- Auth: Organization API key (
Authorization: Bearer korve_...) or dashboard session. - Minimum role:
admin - Billing: requires active organization billing — returns
402otherwise. - Risk:
write
Query parameters
Request body
Example
Responses
Response body (201)
customerPayments.updateProduct
Update or archive a product idempotently.- Auth: Organization API key (
Authorization: Bearer korve_...) or dashboard session. - Minimum role:
admin - Risk:
write
Query parameters
Request body
Example
Responses
Response body (200)
customerPayments.listPrices
List immutable prices in ascending creation order, with UUID as the stable tie-breaker.- Auth: Organization API key (
Authorization: Bearer korve_...) or dashboard session. - Minimum role:
member - Risk:
read
Query parameters
Example
Responses
Response body (200)
customerPayments.createPrice
Create an immutable one-time or recurring price idempotently.- Auth: Organization API key (
Authorization: Bearer korve_...) or dashboard session. - Minimum role:
admin - Billing: requires active organization billing — returns
402otherwise. - Risk:
write
Query parameters
Request body
Example
Responses
Response body (201)
customerPayments.archivePrice
Archive an immutable price. Existing subscriptions remain valid.- Auth: Organization API key (
Authorization: Bearer korve_...) or dashboard session. - Minimum role:
admin - Risk:
destructive· sensitive (elevated blast radius)
Query parameters
Example
Responses
Response body (200)
customerPayments.listCustomers
List end-customer projections in ascending creation order, with UUID as the stable tie-breaker.- Auth: Organization API key (
Authorization: Bearer korve_...) or dashboard session. - Minimum role:
admin - Risk:
read
Query parameters
Example
Responses
Response body (200)
customerPayments.createCustomer
Create an end customer idempotently.- Auth: Organization API key (
Authorization: Bearer korve_...) or dashboard session. - Minimum role:
admin - Billing: requires active organization billing — returns
402otherwise. - Risk:
write
Query parameters
Request body
Example
Responses
Response body (201)
customerPayments.eraseCustomer
Erase end-customer personal data at the processor and redact the local projection.- Auth: Organization API key (
Authorization: Bearer korve_...) or dashboard session. - Minimum role:
admin - Risk:
destructive· sensitive (elevated blast radius)
Query parameters
Example
Responses
customerPayments.runtimeCreateCustomer
Create an end customer from the deployed server runtime scoped to exactly one project and environment.- Auth: Project app-service token (
Authorization: Bearer $APP_SERVICE_TOKEN). - Billing: requires active organization billing — returns
402otherwise. - Risk:
write
Request body
Example
Responses
Response body (201)
customerPayments.listCheckouts
List checkout sessions in ascending creation order, with UUID as the stable tie-breaker. Hosted URLs are not retained or returned.- Auth: Organization API key (
Authorization: Bearer korve_...) or dashboard session. - Minimum role:
member - Risk:
read
Query parameters
Example
Responses
Response body (200)
customerPayments.createCheckout
Create a hosted checkout session idempotently.- Auth: Organization API key (
Authorization: Bearer korve_...) or dashboard session. - Minimum role:
admin - Billing: requires active organization billing — returns
402otherwise. - Risk:
write· sensitive (elevated blast radius)
Query parameters
Request body
Example
Responses
Response body (201)
customerPayments.runtimeCreateCheckout
Create a hosted checkout from the deployed server runtime scoped to exactly one project and environment.- Auth: Project app-service token (
Authorization: Bearer $APP_SERVICE_TOKEN). - Billing: requires active organization billing — returns
402otherwise. - Risk:
write· sensitive (elevated blast radius)
Request body
Example
Responses
Response body (201)
customerPayments.listSubscriptions
List webhook-reconciled subscriptions in ascending creation order, with UUID as the stable tie-breaker.- Auth: Organization API key (
Authorization: Bearer korve_...) or dashboard session. - Minimum role:
member - Risk:
read
Query parameters
Example
Responses
Response body (200)
customerPayments.cancelSubscription
Cancel a subscription now or at the end of its current period.- Auth: Organization API key (
Authorization: Bearer korve_...) or dashboard session. - Minimum role:
admin - Risk:
write· sensitive (elevated blast radius)
Query parameters
Request body
Example
Responses
Response body (200)
customerPayments.listEvents
List bounded, deduplicated payment lifecycle events in descending receipt order, with UUID as the stable tie-breaker.- Auth: Organization API key (
Authorization: Bearer korve_...) or dashboard session. - Minimum role:
member - Risk:
read