Skip to content

List an organization's sellable services

GET
/checkout/services
curl --request GET \
--url 'https://apisandbox.puurk.com/checkout/services?oid=example' \
--header 'Authorization: Bearer <token>'

Returns the services and packages an organization sells online, with their prices, so a page can show prices and payment plan estimates. Callable with a service token or, from a browser, with a publishable client. A publishable client is an API client issued with POST /auth/clients whose scope is {resource: 'checkout', oid: <org>, actions: ['read', 'write'], public: true} and whose allowed_origins list is non-empty. Pass its id as client_id (or the X-Puurk-Client-Id header) instead of a bearer token. No secret is used, so the request must come from a browser Origin in allowed_origins and target the one organization the scope names.

oid
required
string

Organization ID

ids
string

Comma-separated service ids to return (1 to 100). Omit to list every sellable service.

client_id
string

Publishable client id, for browser calls with no bearer token. Omit when calling with a service token.

Successful operation

Media typeapplication/json
object
services
Array<object>
object
id
string
name
string
description
string
nullable
type
string
Allowed values: service package
is_package
boolean
category
string
nullable
subcategory
string
nullable
unit_price

Price per unit in cents

integer
down_payment

Down payment per unit in cents

integer
term_cap

Longest plan length in months this service allows, when the organization uses term caps

integer
nullable
savings

Package savings in cents versus buying its services separately

integer
nullable
photo_url
string
nullable
services

Services included in a package (null for a single service)

Array<object>
nullable
object
service_id
string
name
string
quantity
integer
Example
{
"services": [
{
"type": "service"
}
]
}

Invalid input (missing oid, or more than 100 ids)

Unauthorized (no token, or an unknown client id)

Forbidden (origin not allowed, client inactive, or no checkout scope on the organization)

Internal server error