Skip to content
campaiDeveloper
campai.com

Templates · Receipt

GET/{organizationId}/templates/receipt/defaultsReads only

Get standard receipt templates

Gets the standard templates assigned to invoice, reminder, and other receipt contexts for an organization. Supply the organizationId in the path. The endpoint returns the organization's receipt template defaults.

Permissions

Send an API key of the organization in the path, using the X-API-Key header.

Who may call it

  • Organization access with both template.read and receipt.read is required.

Request

Path parameters

  • organizationIdidrequired
Request
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
  --request GET 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/templates/receipt/defaults' \
  --header 'X-API-Key: YOUR_API_KEY'

A request the admin app sent for “Create a receipt”.

Response

200 Successful response

Content-Type: application/json

object of id

Response200
{
  "key": "000000000000000000000001"
}

Errors

Other errors

StatusErrorWhen
404No fixed messageIf no finance settings are found for the organization, the endpoint returns HTTP 404 (NOT_FOUND).

Errors nearly every request can meet are listed under Errors.