Insert payment

POST /payments
application/json

Body Required

  • order_type string Required

    Values are course or order.

  • order_id Required

    Resource ID

  • amount number(float) Required
  • transaction_type string Required

    Values are credit_via_transfer, credit, credit_correction, course_payment, course_payment_correction, registration_fee, registration_fee_correction, discount, discount_correction, refund, or simple_refund.

  • credits array[number]
  • create_invoice boolean
  • variable_symbol number
  • posting_date string(date)
  • value_date string(date)
  • payers_reference string
  • payers_bank_reference string
  • currency string

    Values are EUR, CZK, PLN, GBP, or RON.

  • note string
  • information_for_beneficiary string
  • bic string
  • payers_iban string
  • origin string

    Values are import, inbound, or manual.

  • created_by string(email)
  • modified_by string(email)

Responses

  • 200 application/json

    API will return back posted array of transactions with added property: payment_processed with boolean true if payment has been written or false if not

POST /payments
curl \
 --request POST 'https://api.zooza.app/v1/payments' \
 --header "Content-Type: application/json" \
 --data '[{"order_type":"course","amount":42.0,"transaction_type":"credit_via_transfer","credits":[42.0],"create_invoice":true,"variable_symbol":42.0,"posting_date":"2025-05-04","value_date":"2025-05-04","payers_reference":"string","payers_bank_reference":"string","currency":"EUR","note":"string","information_for_beneficiary":"string","bic":"string","payers_iban":"string","origin":"import","created_by":"hello@example.com","modified_by":"hello@example.com"}]'
Request examples
[
  {
    "order_type": "course",
    "amount": 42.0,
    "transaction_type": "credit_via_transfer",
    "credits": [
      42.0
    ],
    "create_invoice": true,
    "variable_symbol": 42.0,
    "posting_date": "2025-05-04",
    "value_date": "2025-05-04",
    "payers_reference": "string",
    "payers_bank_reference": "string",
    "currency": "EUR",
    "note": "string",
    "information_for_beneficiary": "string",
    "bic": "string",
    "payers_iban": "string",
    "origin": "import",
    "created_by": "hello@example.com",
    "modified_by": "hello@example.com"
  }
]
Response examples (200)
[]