Skip to main content
POST
/
accounting
/
invoice_credit_notes
curl --request POST \
  --url https://api.rootfi.dev/accounting/invoice_credit_notes \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '{
  "company_id": 1,
  "data": [
    {
      "contact_id": "123456",
      "document_number": "ROOTFI01",
      "posted_date": "2021-09-28T15:00:00.000Z",
      "currency_id": "GBP",
      "invoice_ids": [],
      "memo": "Test Invoice",
      "line_items": [
        {
          "account_id": "123456",
          "quantity": 1,
          "item_id": "123456",
          "tax_id": "123456",
          "unit_amount": 100,
          "total_discount": 0,
          "description": "Test Item"
        }
      ]
    }
  ]
}'
}'
{
  "data": {
    "status": "SUCCESS",
    "upload_job_id": "<string>",
    "data": [
      {
        "job_id": "<string>",
        "status": "success",
        "response": {
          "platform_id": "<string>",
          "invoice_ids": [
            "<string>"
          ],
          "contact_id": "<string>",
          "currency_id": "<string>",
          "document_number": "<string>",
          "posted_date": "2023-11-07T05:31:56Z",
          "memo": "<string>",
          "status": "DRAFT",
          "tax_amount": 123,
          "total_amount": 123,
          "remaining_credit": 123,
          "updated_at": "2023-11-07T05:31:56Z",
          "raw_data": {}
        },
        "error": {
          "code": "<string>",
          "message": "<string>",
          "platform_error": "<string>",
          "raw_data": {}
        }
      }
    ]
  },
  "request_timestamp": "2023-11-07T05:31:56Z",
  "response_timestamp": "2023-11-07T05:31:56Z",
  "request_id": "<string>"
}
An Invoice Credit Note is a financial transaction representing a reduction that can be applied against one or multiple invoices issued to Customers.
curl --request POST \
  --url https://api.rootfi.dev/accounting/invoice_credit_notes \
  --header 'Content-Type: application/json' \
  --header 'api_key: <api-key>' \
  --data '{
  "company_id": 1,
  "data": [
    {
      "contact_id": "123456",
      "document_number": "ROOTFI01",
      "posted_date": "2021-09-28T15:00:00.000Z",
      "currency_id": "GBP",
      "invoice_ids": [],
      "memo": "Test Invoice",
      "line_items": [
        {
          "account_id": "123456",
          "quantity": 1,
          "item_id": "123456",
          "tax_id": "123456",
          "unit_amount": 100,
          "total_discount": 0,
          "description": "Test Item"
        }
      ]
    }
  ]
}'
}'

Authorizations

api_key
string
header
required

Body

application/json
company_id
integer
required
Example:

1

data
accountingtypesInvoiceCreditNotesWriteRequest · object[]
required

Response

200 - application/json
data
accountingtypesCreateInvoiceCreditNotesResponseData · object
required
request_timestamp
string<date-time>
required

The time at which the request was received by the server

response_timestamp
string<date-time>
required

The time at which the response was sent by the server

request_id
string
required

The unique ID of the request