Skip to main content
POST
Record a receipt on a log

Authorizations

Authorization
string
header
required

Effective API key. Send Authorization: Bearer sk-eai-...

Headers

Idempotency-Key
string

Client-chosen key for safe retries: 1-128 letters, digits, -, _, . or :. Use a new random UUID for each intended operation and the same key when retrying it. Do not put customer data or credentials in the key.

Required string length: 1 - 128
Pattern: ^[A-Za-z0-9\-_.:]+$

Path Parameters

id
string
required

Your organization’s ID for the program, chosen at its first upload: lowercase letters, digits, dots, underscores and hyphens. A rater’s program ID is its rater ID.

Required string length: 1 - 128
Pattern: ^[a-z0-9][a-z0-9._-]{0,127}$
log
string<uuid>
required

The log’s id: a UUID the caller chooses when it opens the log, such as the id of the case the log decides. One id has one log.

Body

application/json
step
string
required

The step of the work, such as issue-refund.

Pattern: ^[a-z0-9][a-z0-9_-]{0,63}$
key
string
required

The idempotency key the step was sent to the outside system with.

Required string length: 1 - 255
outcome
enum<string>
required

performed: the system applied it. failed: it did not, and may be tried again.

Available options:
performed,
failed
role
string

The program role to record in, when the caller holds several.

detail
any | null

What the outside system answered: its receipt or its error.

Response

The receipt kept for the step.

at
string
required
by
object
required
step
string
required
key
string
required
outcome
enum<string>
required
Available options:
performed,
failed
basedOn
integer
required

The log’s final entry the step was done on.

detail
unknown