Get Credit Note
Get Credit Note
POST
[PlatformAddress]/api/1.0/invoice?action=getCreditNote
Get details of a credit note
Path Parameters
id*
integer
The credit note identifier
Example Request
Get a specific credit note
Returns
A collection object with the following properties in the results
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
The reference type of the credit note
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
The "to" address of the credit note. See Address Details
taxes
List of individual taxes with their amount of the credit note. See Tax Details
items
List of items the credit note items. See Item Details
allocations
List of credit note allocations. See Allocation Details
refunds
List of credit note refunds. See Refund Details
Reference type
0
Custom
1
Event Registration
2
Membership Sign Up
3
Membership Renewal
4
Venue Booking
Address Details
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
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
The reference type of the item
costCenters
The total cost and total tax cost by cost center
taxes
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 Tax Details for the data in each tax item
Tax Details
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.
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
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
refundId
The refund identifier
refundDate
The date when the amount was refunded
amountRefunded
The refunded amount
notes
The notes of the refund
Throws
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.
Last updated