Mark As Unpaid

Description

The markAsUnpaid endpoint allows users to mark an paid invoice to Unpaid.

Request

Endpoint

    /ui/v1/markAsUnpaid

Method

    POST

Header

Content-Type: application/json

Request Body

{
    "id": 6385,
    "invoiceNumber": "1112",
    "createdDateTime": 1604957997000,
    "lastUpdatedDateTime": null,
    "invoiceDate": 1604898000000,
    "paidDate": null,
    "dueDate": 1607490000000,
    "terms": 30,
    "aging": 0,
    "invoiceAmount": {
        "amount": 225,
        "currency": {
            "id": 1,
            "currencyCode": "USD",
            "currencyText": "United States Dollar",
            "currencySymbol": "$",
            "fractionalUnit": "Cent",
            "numOfDecimalPlaces": "2",
            "supportedByVisaCheckout": true,
            "createdDateTime": 1608267267000,
            "isoNumericCode": "840",
            "isoCountryCode": "840"
        }
    },
    "paidAmount": {
        "amount": 225,
        "currency": {
            "id": 1,
            "currencyCode": "USD",
            "currencyText": "United States Dollar",
            "currencySymbol": "$",
            "fractionalUnit": "Cent",
            "numOfDecimalPlaces": "2",
            "supportedByVisaCheckout": true,
            "createdDateTime": 1608267267000,
            "isoNumericCode": "840",
            "isoCountryCode": "840"
        }
    },
    "amountDue": {
        "amount": 0,
        "currency": {
            "id": 1,
            "currencyCode": "USD",
            "currencyText": "United States Dollar",
            "currencySymbol": "$",
            "fractionalUnit": "Cent",
            "numOfDecimalPlaces": "2",
            "supportedByVisaCheckout": true,
            "createdDateTime": 1608267267000,
            "isoNumericCode": "840",
            "isoCountryCode": "840"
        }
    },
    "createdUserId": 65,
    "lastModifiedUserId": "65",
    "invoiceStatus": {
        "value": "Paid Offline",
        "name": "UNPAID"
    },
    "customerId": 6044,
    "invoiceBatchId": null,
    "paidByUserId": null,
    "merchantId": 1,
    "customerType": {
        "value": "Patient",
        "name": "PATIENT"
    },
    "waiveReasonOnLateFees": null,
    "waiveLateFeesByPercentage": null,
    "waivedByUserId": null,
    "waivedDate": null,
    "memo": "Mark As Unpaid",
    "amountAdjustedReason": null,
    "customerNumber": "1001",
    "customerName": "Patient Test",
    "merchantName": "ABC Business",
    "paidByUserName": null,
    "message": null,
    "geolocation": null,
    "channelId": null,
    "roleType": null,
    "paymentAction": null,
    "addressLine1": null,
    "addressLine2": null,
    "city": null,
    "state": null,
    "zipCode": null,
    "phone": null,
    "merchantCode": null
}

Response

{
    "id": 6385,
    "invoiceNumber": "1112",
    "createdDateTime": 1604957997000,
    "lastUpdatedDateTime": null,
    "invoiceDate": 1604898000000,
    "paidDate": null,
    "dueDate": 1607490000000,
    "terms": 30,
    "aging": 0,
    "invoiceAmount": {
        "amount": 225,
        "currency": {
            "id": 1,
            "currencyCode": "USD",
            "currencyText": "United States Dollar",
            "currencySymbol": "$",
            "fractionalUnit": "Cent",
            "numOfDecimalPlaces": "2",
            "supportedByVisaCheckout": true,
            "createdDateTime": 1608267267000,
            "isoNumericCode": "840",
            "isoCountryCode": "840"
        }
    },
    "paidAmount": {
        "amount": 0.00,
        "currency": {
            "id": 1,
            "currencyCode": "USD",
            "currencyText": "United States Dollar",
            "currencySymbol": "$",
            "fractionalUnit": "Cent",
            "numOfDecimalPlaces": "2",
            "supportedByVisaCheckout": true,
            "createdDateTime": 1608267267000,
            "isoNumericCode": "840",
            "isoCountryCode": "840"
        }
    },
    "amountDue": {
        "amount": 225,
        "currency": {
            "id": 1,
            "currencyCode": "USD",
            "currencyText": "United States Dollar",
            "currencySymbol": "$",
            "fractionalUnit": "Cent",
            "numOfDecimalPlaces": "2",
            "supportedByVisaCheckout": true,
            "createdDateTime": 1608267267000,
            "isoNumericCode": "840",
            "isoCountryCode": "840"
        }
    },
    "createdUserId": 65,
    "lastModifiedUserId": 65,
    "invoiceStatus": {
        "value": "Unpaid",
        "name": "UNPAID"
    },
    "customerId": 6044,
    "invoiceBatchId": null,
    "paidByUserId": null,
    "merchantId": 1,
    "customerType": {
        "value": "Patient",
        "name": "PATIENT"
    },
    "waiveReasonOnLateFees": null,
    "waiveLateFeesByPercentage": null,
    "waivedByUserId": null,
    "waivedDate": null,
    "memo": "Mark As Unpaid",
    "amountAdjustedReason": null,
    "customerNumber": "1001",
    "customerName": "Patient Test",
    "merchantName": "ABC Business",
    "paidByUserName": null,
    "message": {
        "code": "81",
        "type": {
            "value": "Success",
            "name": "SUCCESS"
        },
        "text": null,
        "include_i_icon": false,
        "description": "The Invoice <strong>1112</strong> has been Marked as Unpaid successfully."
    },
    "geolocation": null,
    "channelId": null,
    "roleType": null,
    "paymentAction": null,
    "addressLine1": null,
    "addressLine2": null,
    "city": null,
    "state": null,
    "zipCode": null,
    "phone": null,
    "merchantCode": null
}

Updated As Of Version 7.0.1