Get Invoice

Get Invoice

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

Get details of an invoice

Path Parameters

{
    "id": 957114,
    "reference": "1007458",
    "title": "Deposit Invoice",
    "description": "Example Invoice Description",
    "currency": "AUD",
    "totalCost": 233.45,
    "totalTaxCost": 21.22,
    "amountPaid": 233.45,
    "toContactEmail": "example@ivvy.com",
    "toContactName": "Example Name",
    "currentStatus": 2,
    "createdDate": "2018-06-11 06:06:42 UTC",
    "issuedDate": "2018-06-11 06:06:42 UTC",
    "modifiedDate": "2018-06-11 06:06:43 UTC",
    "refType": 4,
    "refId": 92471,
    "taxRateUsed": null,
    "isTaxCharged": 1,
    "paymentDueDate": "2018-06-11 06:06:42 UTC",
    "eventId": null,
    "venueId": 1683,
    "toContactId": null,
    "payments": [
        {
            "id": 63791,
            "paymentId": 0,
            "receiptNum": 729424,
            "amountPaid": 233.45,
            "feeAmount": 3.45,
            "feePercentage": 1.5,
            "notes": "",
            "chequeNumber": null,
            "paymentMethod": 1,
            "customPaymentMethodId": null,
            "paidDate": "2018-06-11 06:06:42 UTC",
            "cardType": 3,
        }
    ],
    "contact": {
            "id": 580,
            "firstName": "First",
            "lastName": "last",
            "email": "filrst.last@email.com",
            "phone": 614535435
        },
    "company": {
            "id": 214,
            "businessName": "Company BusinessName",
            "businessNumber": "BUS123",
            "phone": null,
            "email": company@owner.com
        },
    "toAddress": {
        "line1": 1,
        "line2": "",
        "line3": "",
        "line4": "",
        "city": "asdf",
        "stateCode": "QLD",
        "stateName": null,
        "countryCode": "AU",
        "countryName": null,
        "postalCode": 2222
    },
    "venueExTaxes": [
        {
            "taxId": 6064,
            "amount": 15,
            "taxRateId": 0,
            "taxRateAmount": 15,
            "taxRateAmountType": 2,
            "costcenterId": 4
        },
        {
            "taxId": 6221,
            "amount": 5,
            "taxRateId": 0,
            "taxRateAmount": 5,
            "taxRateAmountType": 2,
            "costcenterId": 4
        }
    ],
    "items": [
        {
            "description": "Deposit payment for Christmas Party",
            "quantity": 1,
            "unitCost": 230,
            "totalCost": 230,
            "totalTaxCost": 20.91,
            "amountPaid": 230,
            "refType": 500,
            "refId": 50,
            "ref2Id": 500,
            "costCenters": [
                {
                    "costcenterId": 1,
                    "totalCost": 100,
                    "totalTaxCost": 10
                },
                {
                    "costcenterId": 2,
                    "totalCost": 100,
                    "totalTaxCost": 10
                },
                {
                    "costcenterId": 3,
                    "totalCost": 30,
                    "totalTaxCost": 0.91
                },
            ]
        },
        {
            "description": "1.5% iVvy Marketplace transaction fee included in AU$233.45 payment made Jun 11, 2018",
            "quantity": 1,
            "unitCost": 3.45,
            "totalCost": 3.45,
            "totalTaxCost": 0.31,
            "amountPaid": 3.45,
            "refType": 103,
            "costCenters": [
                {
                    "costcenterId": 1,
                    "totalCost": 1.50,
                    "totalTaxCost": 0.15
                },
                {
                    "costcenterId": 2,
                    "totalCost": 1.50,
                    "totalTaxCost": 0.15
                },
                {
                    "costcenterId": 3,
                    "totalCost": 0.45,
                    "totalTaxCost": 0.01
                },
            ],
            "taxes": [
                {
                    "taxId": 1,
                    "amount": 427.3789,
                    "taxRateId": 0,
                    "taxRateAmount": 10,
                    "taxRateAmountType": 1,
                    "costcenterId": 1
                },
                {
                    "taxId": 5455,
                    "amount": 1.4514,
                    "taxRateId": 2,
                    "taxRateAmount": 10,
                    "taxRateAmountType": 1,
                    "costcenterId": 2
                },
                {
                    "taxId": 5485,
                    "amount": 104.0434,
                    "taxRateId": 0,
                    "taxRateAmount": 10,
                    "taxRateAmountType": 1,
                    "costcenterId": 3
                }
            ]
        }
    ]
}

Example Request

Get a specific invoice

{
  "id":15
}

Returns

A collection object with the following properties in the results

Current status

Reference type

Refund Details

Address Details

Item Details

Item Taxes Details

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.

Payment Details

Note about fee: If the payment is applied to multiple invoices, the fee amount is applied to the first invoice only.

Throws

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

Last updated