Rev

Create

Create a new Rev record.

post/api/cp/rev

Request body

idinteger

Id

card_idstring required

Card Id (references card.id)

namestring required

Name

tsstring date-time required

Ts

revisioninteger required

Revision

presentationstring

Presentation

externalinteger required

External

expirestring date-time required

Expire

staleinteger required

Stale

currencystring

Currency

date_livestring date-time

Date Live

countinteger

Count

live_rev_idinteger

Live Rev Id

billing_precisioninteger required

Billing Precision

rounding_method'up' | 'down' | 'half-up' | 'half-down'

Rounding Method

duration_rounding_method'up' | 'down' | 'half-up' | 'half-down'

Duration Rounding Method

origin_billing_sourcestring required

Origin Billing Source

origin_billing_destinationstring required

Origin Billing Destination

storage'live' | 'archive' | 'archiving' | 'archiving-deleting' | 'making-live' required

Storage

archiving_atstring date-time nullable

Archiving At

archive_rule_countinteger

Archive Rule Count

archive_sha256string

Archive Sha 256

archive_sizeinteger

Archive Size

archive_created_atstring date-time nullable

Archive Created At

archive_deleted_atstring date-time nullable

Archive Deleted At

archive_errorstring

Archive Error

Example request

{
  "id": 12345,
  "card_id": 1,
  "name": "Example Name",
  "ts": "2025-01-17T10:30:00Z",
  "revision": 123,
  "presentation": "example_presentation",
  "external": 1,
  "expire": "2025-01-17T10:30:00Z",
  "stale": 1,
  "currency": "USD",
  "date_live": "2025-01-17T10:30:00Z",
  "count": 10,
  "live_rev_id": 1,
  "billing_precision": 1,
  "rounding_method": "up",
  "duration_rounding_method": "up",
  "origin_billing_source": "example_origin_billing_source",
  "origin_billing_destination": "example_origin_billing_destination",
  "storage": "live",
  "archiving_at": "2025-01-17T10:30:00Z",
  "archive_rule_count": 10,
  "archive_sha256": "example_archive_sha256",
  "archive_size": 1000000,
  "archive_created_at": "2025-01-17T10:30:00Z",
  "archive_deleted_at": "2025-01-17T10:30:00Z",
  "archive_error": "Sample archive_error text content"
}

Response

Successful response

statusstring

Operation status

Example response

{
  "id": 12345,
  "status": "OK"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.