Skip to main content
POST
/
transactions
Create transaction
curl --request POST \
  --url https://api.projectcor.com/v1/transactions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "date": "2023-12-25",
  "type": "<string>",
  "total": 123,
  "currency_change_amount": 123,
  "exchange": 123,
  "source_id": 123,
  "currency_id": 123,
  "receipt_number": "<string>",
  "is_income": true,
  "client_id": 123,
  "company_id": 123,
  "can_update": true,
  "can_delete": true
}
'
{
  "id": 123,
  "date": "2023-12-25",
  "receipt_number": "<string>",
  "type": "<string>",
  "total": 123,
  "currency_change_amount": 123,
  "exchange": 123,
  "source_id": 123,
  "currency_id": 123,
  "is_income": true,
  "client_id": 123,
  "company_id": 123
}

Authorizations

Authorization
string
header
required

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

Body

application/json
date
string<date>
required

Date

type
string
required

Type

total
number
required

Total

currency_change_amount
number
required

Currency change amount

exchange
number
required

Exchange

source_id
integer
required

Source ID

currency_id
integer
required

Currency ID

receipt_number
string

Receipt number

is_income
boolean

Is income

client_id
integer

Client ID

company_id
integer

Company ID

can_update
boolean

Can update

can_delete
boolean

Can delete

Response

200 - application/json

Transaction created successfully

id
integer
date
string<date>
receipt_number
string
type
string
total
number
currency_change_amount
number
exchange
number
source_id
integer
currency_id
integer
is_income
boolean
client_id
integer
company_id
integer