Payment Methods

Deactivate a payment method

curl -X POST https://api.subscriby.net/v1/projects/$PROJECT_ID/payment-methods/$METHOD_ID/deactivate \
  -H "Authorization: Bearer $SUBSCRIBY_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)"

The creator's switch. A deactivated method is no longer offered at checkout; the subscriptions already sold through it keep renewing with their gateway. Re-queues the plan sync like activating does. Answers 200 with the method; idempotent, and project.payment_method.updated fires once with changes.active when the switch flips.

post/v1/projects/{project}/payment-methods/{method}/deactivate

Request

  • Base URL: https://api.subscriby.net
  • URL: https://api.subscriby.net/v1/projects/{project}/payment-methods/{method}/deactivate
  • Auth: HTTP bearer

Path parameters

projectstring uuid required

The project, resolved by the route binder.

methodstring uuid required

The method, resolved within the project by the route binder.

Headers

Idempotency-Keystring uuid required

A key unique to this operation, such as a fresh UUID. The same key replays the original 2xx response for 24 hours (with Idempotent-Replay: true), so a retry after a timeout never repeats the write; the same key with a different body is refused with 409.

Response

The method, switched off.

Example response

{
  "data": {
    "id": "a15d70c8-3e46-4b92-b70f-58c9d2140e63",
    "project_id": "7f3d1c92-8b45-4e6a-9d21-5c8e0a4b6f13",
    "provider": "stripe",
    "mode": "live",
    "linked": true,
    "active": true,
    "created_at": "2026-05-18T10:05:00Z",
    "updated_at": "2026-05-18T10:05:00Z"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.