Skip to main content
POST
Create transaction state

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

slug
string
required

Issuer slug assigned by OpenCard

cardId
string
required

Your card id from POST /cards

Body

application/json
id
string
required
state
enum<string>
required
Available options:
authorized,
cleared,
invoiced,
deleted
type
enum<string>
required
Available options:
CARD_PURCHASE,
CASH_WITHDRAWAL,
FEE_AND_DISCOUNT
original_amount
number
required
original_currency
string
required
accounting_amount
number
required
accounting_currency
string
required
exchange_rate
number
required
purchase_merchant
string
required
purchase_time
string<date-time>
required
purchase_country
string
required
mcc_code
string
required
merchant_number
string
required
terminal_id
string
required
rrn
string
required
auth_code
string
required
invoice_number
string | null
vat_rate
number
vat_amount
number
vat_currency
string
purchase_city
string

Response

Accepted