Mark As Paid

Description

The markAsPaidStatus endpoint allows user to mark an Unpaid Invoice to Paid.

Request

Endpoint

    /ui/v1/markAsPaidStatus

Method

    POST

Header

Content-Type: application/json

Request Body

{
    "id": 6384,
    "invoiceNumber": "1111",
    "createdDateTime": 1604957997000,
    "lastUpdatedDateTime": null,
    "invoiceDate": 1604898000000,
    "paidDate": null,
    "dueDate": 1607490000000,
    "terms": 30,
    "aging": 0,
    "invoiceAmount": {
        "amount": 33.93,
        "currency": {
            "id": 1,
            "currencyCode": "USD",
            "currencyText": "United States Dollar",
            "currencySymbol": "$",
            "fractionalUnit": "Cent",
            "numOfDecimalPlaces": "2",
            "supportedByVisaCheckout": true,
            "createdDateTime": 1608267267000,
            "isoNumericCode": "840",
            "isoCountryCode": "840"
        }
    },
    "paidAmount": null,
    "amountDue": {
        "amount": 33.93,
        "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": "PAID_OFFLINE"
    },
    "customerId": 6043,
    "invoiceBatchId": null,
    "paidByUserId": null,
    "merchantId": 1,
    "customerType": {
        "value": "Patient",
        "name": "PATIENT"
    },
    "waiveReasonOnLateFees": null,
    "waiveLateFeesByPercentage": null,
    "waivedByUserId": null,
    "waivedDate": null,
    "memo": "Mark As Paid",
    "amountAdjustedReason": null,
    "customerNumber": "1000",
    "customerName": "Xyz Abc",
    "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": 6384,
    "invoiceNumber": "1111",
    "createdDateTime": 1604957997000,
    "lastUpdatedDateTime": null,
    "invoiceDate": 1604898000000,
    "paidDate": null,
    "dueDate": 1607490000000,
    "terms": 30,
    "aging": 0,
    "invoiceAmount": {
        "amount": 33.93,
        "currency": {
            "id": 1,
            "currencyCode": "USD",
            "currencyText": "United States Dollar",
            "currencySymbol": "$",
            "fractionalUnit": "Cent",
            "numOfDecimalPlaces": "2",
            "supportedByVisaCheckout": true,
            "createdDateTime": 1608267267000,
            "isoNumericCode": "840",
            "isoCountryCode": "840"
        }
    },
    "paidAmount": {
        "amount": 33.93,
        "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.00,
        "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": "PAID_OFFLINE"
    },
    "customerId": 6043,
    "invoiceBatchId": null,
    "paidByUserId": null,
    "merchantId": 1,
    "customerType": {
        "value": "Patient",
        "name": "PATIENT"
    },
    "waiveReasonOnLateFees": null,
    "waiveLateFeesByPercentage": null,
    "waivedByUserId": null,
    "waivedDate": null,
    "memo": "Mark As Paid",
    "amountAdjustedReason": null,
    "customerNumber": "1000",
    "customerName": "Xyz Abc",
    "merchantName": "ABC Business",
    "paidByUserName": null,
    "message": {
        "code": "80",
        "type": {
            "value": "Success",
            "name": "SUCCESS"
        },
        "text": null,
        "include_i_icon": false,
        "description": "The Invoice <strong>1111</strong> has been Marked as Paid successfully."
    },
    "geolocation": null,
    "channelId": null,
    "roleType": null,
    "paymentAction": null,
    "addressLine1": null,
    "addressLine2": null,
    "city": null,
    "state": null,
    "zipCode": null,
    "phone": null,
    "merchantCode": null
}

Updated Of Version 7.0.1