Skip to main content
POST
Create transaction

Authorizations

Authorization
string
header
required

JWT Bearer token authentication

Body

application/json
items
object[]
required
payment_method
string
required
Example:

"cash"

customer_id
string

Response

201 - application/json

Transaction created

id
string
Example:

"trx_123"

transaction_code
string
Example:

"TRX-20240101-001"

total_amount
number<double>
Example:

250000

status
enum<string>
Available options:
pending,
completed,
cancelled
Example:

"completed"

payment_method
string
Example:

"cash"

created_at
string<date-time>