iVvy Developer API
  • API Documentation
  • Getting Started
    • Obtaining Keys
    • Creating the request
      • Method/URI Header
      • Request Headers
        • Standard Headers
        • Custom Headers
      • Signing the request
      • Query Parameters
    • Test Ping
    • Interpreting the response
      • Collections
      • Pagination
      • Filtering
      • Exceptions
      • Response Headers
      • Dates
    • Batch
      • Run
      • Progress
      • Result
      • Restart
      • Repost
    • Use Cases
      • CRM Systems
      • Financial Accounting Systems
      • Point Of Sale
      • Property Management Systems
  • Contacts & Companies
    • Get Contact List
    • Get Contact
    • Get Contact Note List
    • Add or Update Contact
    • Get Contact Custom Field Definition
    • Get Company Custom Field Definition
    • Get Subscription Group List
    • Add Contacts To Subscription Group
    • Remove Contacts From Subscription Group
    • Get Company List
    • Get Company
    • Get Company Note List
    • Add or Update Company
    • Add or Update Lead
    • Add or Update Contact Note
    • Add or Update Company Note
  • Event
    • Add or Update Event
    • Get Event List
    • Get Event
    • Get Registration
    • Get Registration List
    • Get Attendee
    • Get Attendee List
    • Get Invited Contact List
    • Invite Contacts
    • Get Sponsorship List
    • Get Speaker List
    • Get Session List
    • Create Login Token
  • Venue
    • Venue Setup Data
      • Get Venue
      • Get Venue List
      • Get Venue Room List
      • Get Venue Room Option List
      • Get Venue Rate Plan List
      • Get Venue Rate Plan Rate List
      • Get Venue Rate Plan Room Rate List
      • Get Resource List
      • Get Resource Availability
      • Get Menu List
      • Get Beverage Package List
      • Get Function Space List
      • Get Space Blockout List
      • Get Function Space Category List
      • Get Function Space Availability
      • Get Function Space Hire Plan Rate List
      • Get Function Space Hire Plan Rate
      • Get Cost Center List
      • Get Session Type List
      • Get Revenue Template List
      • Get Tax List
      • Add or Update Function Space
      • Get Event Type List
      • Add or Update Function Space Category
      • Add or Update Guest Room
      • Get Booking Custom Field List
      • Get Space Hire Plans
      • Get Venue Package List
      • Get Venue Package
    • Booking Data
      • Convert Lead To Opportunity
      • Add or Update Opportunity
      • Get Booking
      • Get Booking List
      • Get Booking List For Account
      • Get Booking Notes
      • Get Booking Session List
      • Get Booking Session Menu List
      • Get Booking Changelog List
      • Get Booking Attendee (By Hash)
      • Get Booking Attendee List
      • Get Booking Release Schedule
      • Add or Update Booking
      • Change Booking Status
      • Add Items To Booking
      • Add Payment To Booking
      • Add Refund To Booking
      • Add or Update Booking Attendee
      • Add or Update Booking Note
      • Add or Update Booking Session
      • Add or Update Booking Session Beverage
      • Add or Update Booking Session Menu
      • Add or Update Booking Session Resource
      • Remove Booking Session
      • Remove Booking Session Beverage
      • Remove Booking Session Menu
      • Remove Booking Session Resource
      • Get Space Blockout List
      • Add or Update Blockout Space
      • Remove Blockout Space
      • Get Booking Tax List
      • Add or Update Opportunity Note
      • Add or Update Booking Package
      • Get Booking Document List
      • Get Booking BEO List
      • Get Booking BEO Version List
      • Upload Booking Document
    • Booking Accommodation Data
      • Get Booking Accommodation List
      • Add or Update Booking Accommodation
      • Remove Booking Accommodation
      • Get Booking Room Reservation List
      • Add or Update Booking Room Reservation
      • Update Room Reservation Guest Contact
      • Remove Booking Room Reservation
      • Confirm Booking Room Reservation
      • Cancel Booking Room Reservation
      • Change Status of Booking Room Reservation
      • Add or Update Room Counts
      • Add or Update Room Dynamic Rates
      • Remove Room Dynamic Rates
      • Add or Update Rate Plan Booking Rules
  • Partner
    • Get Venue List
    • Get Venue
  • Invoice
    • Get Invoice List
    • Get Invoice
    • Get Options
    • Add Payment
    • Get Credit Note List
    • Get Credit Note
  • Account
    • Add or Update Cost Center
    • Get Cost Center List
    • Get Email Log List
    • Get Industry List
    • Add Error Report
    • Get Account User List
  • CRM
    • Get Lead List
    • Get Opportunity List
    • Get Opportunity Note List
    • Get Task List
    • Get Activity List
    • Get Lead Stage List
    • Get Lead Type List
    • Get Lead Quality List
    • Get Lead Source List
    • Get Lead Channel List
    • Get Lead Note List
    • Add or Update Activity Purpose
    • Add or Update Activity
    • Add or Update Task
    • Add or Update Lead Quality
    • Add or Update Lead Stage
    • Add or Update Lead Channel
    • Add or Update Lead Type
    • Add or Update Lead Source
    • Add or Update Lead Note
  • Notifications
    • Company Endpoint
    • Contact Endpoint
    • CRM Endpoint
    • Invoice Endpoint
    • Booking Endpoint
    • Event Endpoint
  • Development Reference
    • Calculating md5
    • HMAC-SHA1
    • JSON Encoding
    • Timestamp Format
    • Date Format
    • Time Format
    • Address Format
    • URLEncoding
    • Timezone List
  • Announcements
    • Room Reservation Contact Changes
    • Contact Customfield Changes
    • Booking Accommodation API Changes
Powered by GitBook
On this page
  • Get Credit Note
  • Example Request
  • Returns
  • Reference type
  • Address Details
  • Item Details
  • Tax Details
  • Item Ref Type
  • Allocation Details
  • Refund Details
  • Throws
  1. Invoice

Get Credit Note

Get Credit Note

POST [PlatformAddress]/api/1.0/invoice?action=getCreditNote

Get details of a credit note

Path Parameters

Name
Type
Description

id*

integer

The credit note identifier

{
    "id": 716,
    "reference": "CN10000129",
    "title": "Test Credit Note",
    "notes": "",
    "currency": "AUD",
    "totalAmount": 1118.4,
    "totalTaxAmount": 100,
    "amountAllocated": 1118.4,
    "amountRefunded": null,
    "createdDate": "2021-02-16 05:10:55 UTC",
    "modifiedDate": "2021-02-16 05:15:42 UTC",
    "refType": 4,
    "refId": 27398,
    "eventId": null,
    "venueId": 1,
    "contactId": null,
    "companyId": 854,
    "address": {
        "line1": "2/1 New Castle Stree",
        "line2": "",
        "line3": "",
        "line4": "",
        "city": "Burleigh Heads",
        "stateCode": "QLD",
        "countryCode": "AU",
        "postalCode": 4220
    },
    "taxes": [
        {
            "taxId": 5455,
            "amount": 100,
            "costcenterId": 0,
            "taxRateId": 0,
            "taxRateAmount": 0,
            "taxRateAmountType": 0
        }
    ],
    "items": [
        {
            "id": 551,
            "description": "Accommodation: Room \"Room 4\" arrive 02/01/2021 depart 03/01/2021",
            "quantity": 1,
            "unitCost": 1000,
            "totalCost": 1000,
            "totalTaxCost": 90.91,
            "amountPaid": null,
            "refType": 510,
            "costCenters": [
                {
                    "costcenterId": 6,
                    "totalCost": 1000,
                    "totalTaxCost": 90.909
                }
            ],
            "taxes": [
                {
                    "taxId": 5455,
                    "amount": 90.909,
                    "taxRateId": 0,
                    "taxRateAmount": 0,
                    "taxRateAmountType": 0,
                    "costcenterId": 0
                }
            ]
        },
        {
            "id": 552,
            "description": "Service Fee: Accomm SF (10%) on Room \"Room 4\"",
            "quantity": 1,
            "unitCost": 100,
            "totalCost": 100,
            "totalTaxCost": 9.09,
            "amountPaid": null,
            "refType": 513,
            "costCenters": [
                {
                    "costcenterId": 6,
                    "totalCost": 100.000091,
                    "totalTaxCost": 9.091
                }
            ],
            "taxes": [
                {
                    "taxId": 5455,
                    "amount": 9.091,
                    "taxRateId": 0,
                    "taxRateAmount": 0,
                    "taxRateAmountType": 0,
                    "costcenterId": 0
                }
            ]
        },
        {
            "id": 553,
            "description": "Balance Adjustment",
            "quantity": 1,
            "unitCost": 18.4,
            "totalCost": 18.4,
            "totalTaxCost": 0,
            "amountPaid": null,
            "refType": 504,
            "costCenters": [
                {
                    "costcenterId": 16105,
                    "totalCost": 500,
                    "totalTaxCost": 45.455
                }
            ],
            "taxes": []
        }
    ],
    "allocations": [
        {
            "invoiceId": 4842,
            "creditDate": "2021-02-16 05:16:17",
            "amountAllocated": 1000.0,
            "notes": null
        }
    ],
    "refunds": [
        {
            "refundId": 195,
            "refundDate": "2021-02-18 00:05:15",
            "amountRefunded": 118.4,
            "notes": "Jus refunded."
        }
    ]
}

Example Request

Get a specific credit note

{
  "id" : 716
}

Returns

A collection object with the following properties in the results

Property
Description

id

The unique credit note identifier

reference

The unique reference number of the credit note

title

The title of the credit note

notes

The description of the credit note

currency

The currency of the credit note

totalAmount

The total of the credit note

totalTaxAmount

The tax of the credit note

amountAllocated

Sum of the allocated amounts to invoices from the credit note

amountRefunded

Sum of the refunded amounts from the credit note

createdDate

The created date of the credit note

modifiedDate

The modified date of the credit note

refType

refId

The reference Id of the credit note

eventId

Event Identifier to which the credit note belongs

venueId

Venue Identifier to which the credit note belongs

companyId

Company Identifier to which the credit note belongs

invoiceId

Invoice Identifier from which the credit note is created

address

taxes

items

allocations

refunds

Reference type

#
Description

0

Custom

1

Event Registration

2

Membership Sign Up

3

Membership Renewal

4

Venue Booking

Address Details

Property
Description

line1

Line 1 of the address (part of the "street")

line2

Line 2 of the address (part of the "street")

line3

Line 3 of the address (part of the "street")

line4

Line 4 of the address (part of the "street")

city

The city name of the address

stateCode

The state code of the address (e.g. QLD)

stateName

The state name of the address (e.g. Queensland)

countryCode

The country code of the address (e.g. AU)

countryName

The country name of the address (e.g. Australia)

postalCode

The postal code of the address

Item Details

Property
Description

id

The identifier of the item

description

The description of the item

quantity

Quantity of the item

unitCost

The unit cost of the item

totalCost

The total cost of the item

totalTaxCost

The tax of the item

amountPaid

The amount paid of the item'

refType

costCenters

The total cost and total tax cost by cost center

taxes

Tax Details

Property
Description

taxId

The identifier of the tax

amount

The amount of tax

taxRateId

The identifier of the rate that overrided the default tax rate. Zero (0) when the default tax rate is not overridden

taxRateAmount

The rate at which the tax was calculated

taxRateAmountType

The tax rate amount type: 1 = A percentage, 2 = An amount

costcenterId

The identifier of the cost center to which the tax applies

Item Ref Type

Used to categorise the line based on the type of item sold. Note: This isn't linked to cost centres as a package can be a single line on an invoice, but revenue can be allocated to multiple cost centres.

RefType
Description

0

Unknown

100

Fee ( [102] => Card Fee, [103] => Payment Fee)

500

Deposit

501

Package

502

Invoice

503

Payment

505

Session

506

Menu Package

507

Beverage Package

508

Resource

509

Product

510

Accommodation

511

Additional Line

512

Invoice Payment Fee

513

Service Fee

Allocation Details

Property
Description

invoiceId

The invoice identifier to which the amount allocated

creditDate

The date when the amount was allocated

amountAllocated

The allocated amount

notes

The notes of the allocation

Refund Details

Property
Description

refundId

The refund identifier

refundDate

The date when the amount was refunded

amountRefunded

The refunded amount

notes

The notes of the refund

Throws

Code
Description

Specific Code: 24406

The credit note does not exist

The credit note identifier must be provided as part of this call to fetch the specific credit note. E.g. {"id":1} can be used to fetch the details of an credit note with the identifier of 1.

PreviousGet Credit Note ListNextAccount

Last updated 9 months ago

The of the credit note

The "to" address of the credit note. See

List of individual taxes with their amount of the credit note. See

List of items the credit note items. See

List of credit note allocations. See

List of credit note refunds. See

The of the item

The taxes applied to the item. Some information in the tax item might be empty if information is not available. ie. for old credit notes. See for the data in each tax item

reference type
Address Details
Tax Details
Item Details
Allocation Details
Refund Details
reference type
Tax Details