Plans

get
Authorizations
Responses
200Success
application/json
get
GET /api/church/plans HTTP/1.1
Host: prosper-api-test.churchpad.com
Authorization: Bearer JWT
Accept: */*
200Success
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "text",
    "description": "text",
    "monthly_free_credits": 1,
    "perks": null,
    "prices": null
  }
]
post
Authorizations
Body
idstring · uuidRead-onlyRequired
namestring · max: 100Required
descriptionstringRequired
monthly_free_creditsinteger · min: -2147483648 · max: 2147483647Optional
perksanyOptional
pricesanyOptional
Responses
201Success
application/json
post
POST /api/church/plans HTTP/1.1
Host: prosper-api-test.churchpad.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 88

{
  "name": "text",
  "description": "text",
  "monthly_free_credits": 1,
  "perks": null,
  "prices": null
}
201Success
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "description": "text",
  "monthly_free_credits": 1,
  "perks": null,
  "prices": null
}
get
Authorizations
Path parameters
idstring · uuidRequired

A UUID string identifying this plan.

Responses
200Success
application/json
get
GET /api/church/plans/{id} HTTP/1.1
Host: prosper-api-test.churchpad.com
Authorization: Bearer JWT
Accept: */*
200Success
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "description": "text",
  "monthly_free_credits": 1,
  "perks": null,
  "prices": null
}
put
Authorizations
Path parameters
idstring · uuidRequired

A UUID string identifying this plan.

Body
idstring · uuidRead-onlyRequired
namestring · max: 100Required
descriptionstringRequired
monthly_free_creditsinteger · min: -2147483648 · max: 2147483647Optional
perksanyOptional
pricesanyOptional
Responses
200Success
application/json
put
PUT /api/church/plans/{id} HTTP/1.1
Host: prosper-api-test.churchpad.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 88

{
  "name": "text",
  "description": "text",
  "monthly_free_credits": 1,
  "perks": null,
  "prices": null
}
200Success
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "description": "text",
  "monthly_free_credits": 1,
  "perks": null,
  "prices": null
}
delete
Authorizations
Path parameters
idstring · uuidRequired

A UUID string identifying this plan.

Responses
204
No response body
delete
DELETE /api/church/plans/{id} HTTP/1.1
Host: prosper-api-test.churchpad.com
Authorization: Bearer JWT
Accept: */*
204

No response body

No content

patch
Authorizations
Path parameters
idstring · uuidRequired

A UUID string identifying this plan.

Body
idstring · uuidRead-onlyOptional
namestring · max: 100Optional
descriptionstringOptional
monthly_free_creditsinteger · min: -2147483648 · max: 2147483647Optional
perksanyOptional
pricesanyOptional
Responses
200Success
application/json
patch
PATCH /api/church/plans/{id} HTTP/1.1
Host: prosper-api-test.churchpad.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 88

{
  "name": "text",
  "description": "text",
  "monthly_free_credits": 1,
  "perks": null,
  "prices": null
}
200Success
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "description": "text",
  "monthly_free_credits": 1,
  "perks": null,
  "prices": null
}