Skip to main content
GET
/
api
/
v3
/
subscriptions
/
{donorId}
/
{subscriptionId}
Get Subscription By Id
curl --request GET \
  --url https://server.stage.overflow.co/api/v3/subscriptions/{donorId}/{subscriptionId} \
  --header 'x-client-id: <api-key>'
{
  "data": {
    "id": "6710f34fd5061afeec3eab57",
    "donorId": "6710f34fd5061afeec3eab57",
    "createdAt": "2025-01-01T00:00:00.000Z",
    "updatedAt": "2025-01-01T00:00:00.000Z",
    "startDate": "2025-01-01T00:00:00.000Z",
    "status": "active",
    "amount": 50,
    "anonymous": false,
    "frequency": "weekly",
    "nextPaymentDate": "2025-01-01T00:00:00.000Z",
    "paymentMethod": {
      "id": "6710f34fd5061afeec3eab57",
      "holderName": "John Doe",
      "type": "card",
      "last4": "4242",
      "expiration": "12/2025"
    },
    "campaign": {
      "id": "7710f34fd5061afeec3eab78",
      "name": "Mission 2025"
    },
    "subcampaign": {
      "id": "7710f34fd5061afeec3eab79",
      "name": "Toy Drive"
    },
    "donorCoveredFees": false
  }
}

Authorizations

x-client-id
string
header
required

Client ID for API authentication

Path Parameters

donorId
string
required

The Id of the donor to get the subscription for.

Example:

"2ea1ae03ca521e437db76d76"

subscriptionId
string
required

The Id of the subscription to get.

Example:

"2ea1ae03ca521e437db76d76"

Response

Subscription

data
object
required

Subscription.