---
title: "Create a Receipt"
method: POST
path: "/api/record/invoicereceipt"
---

# Create a Receipt

`POST /api/record/invoicereceipt`

## Request body

- object
  - `accountid` string, required — The related account's GUID.
  - `companyname` string, required — The name of the related account or company receiving the invoice.
  - `ReceiptItems` object, required — Add an object for each receipt item you'd like to add to this receipt. You must include at least one receipt item.
    - `ReceiptItem` object[]
      - `itemtotal` number, float, required — Total amount to be paid for this receipt item.
      - `paymentdate` string, date, required — Date the payment was made.
      - `paymenttypecode` integer, required — Type of payment (Picklist). Insert a number between 1 and 18.
      - `bankcode` '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | '14' | '15' | '16' | '17' | '18' | '19' | '20' | '21' | '22' | '23' | '24' | '25' | '26' | '27' | '28' — Select the relevant bank code.
      - `branch` string — Bank branch
      - `cardnumber` string — Card or check number
      - `credittypecode` integer — Type of payment (Picklist). Use 1 for multiple payments and 2 for a single payment.
      - `invoicereceiptitemid` string — Use the GUID of a receipt item to update it here. Use GET to retrieve the GUID. This option is only relevant when updating a receipt.
      - `numofpayments` integer — Number of payments. Relevant if you've selected the multiple payments option in the credittypecode field.
      - `ownerid` string — A system user's GUID, will fill in automatically with the user who created the item and be used for permissions. Can be set manually.
      - `voucher` string — Page number in accounting book.
  - `address` string — Full address of the related account.
  - `crmorderid` string — The related order's GUID.
  - `currencycode` integer — Type of currency, defaults to NIS (Picklist).
  - `description` string — Description of up to 4,000 characters.
  - `emailaddress` string — Email of the related account, must be in email format.
  - `fax` string — Fax of the related account.
  - `idnumber` string — ID number of the related account.
  - `ownerid` string — The GUID of the system user who created the record, can also be set manually. Will be used for permissions.
  - `taxdeduction` number, float — Tax added to the total amount field.
  - `telephone` string — Phone number of the related account.

## Response `200`

200

## Other responses

- `400` — 400
- `401` — 401

---

[API](https://skmtc.dev/fireberry/apis/fireberry-api.md) · [All operations](https://skmtc.dev/fireberry/apis/fireberry-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fireberry/fireberry-api/revisions/ad6720f3920f/schema)
