Errors

The errors array within the web-hook payload plays critical role in identifying issues that arise during an event, associated with a Receivable. In certain scenarios, the errors array may capture multiple errors related to a single event.

Each error listed within the array gives detailed info on the specific issue, covering:

{
        "message": "Unable to cancel Receivable with record number ad3400c3-7699-4aaa-8145-af2a61857304. The current status of Paid does not allow cancelation.",
        "statusId": 4,
        "eventReferenceId": "ad3400c3-7699-4aaa-8145-af2a61857304",
        "eventTimeStamp": "2024-03-27T11:21:10.4941794-04:00",
        "correlationId": "",
        "errorsAndNotices": {
          "errorFound": true,
          "errors": [
            {
              "message": "",
              "propertyName": "",
              "reasonCode": "",
              "reason": "Unable to cancel Receivable with record number ad3400c3-7699-4aaa-8145-af2a61857304. The current status of Paid does not allow cancelation."
            }
          ],
          "notices": []
        }
      }

Errors are triggered when an action fails to complete successfully. These are critical notifications that require immediate attention to resolve operational issues. Below are some of the common error codes and their descriptions.

Receivable Action StatusId Message Text Method of Payment
Creation
of a Receivable
4 Request payload with payment method of SmartCollect is missing one of the following TokenDeliveryMethods: EmailAddress: , SmsPhoneNumber: . The receivable with the record number recordNumber has not been created. 1 (SMART Collect)
Creation
of a Receivable
4 Smart Collect failed due to internal error: 1 (SMART Collect)
Creation
of a Receivable
4 Request payload with payment method of SmartCollect has no behaviors listed. The receivable with the record number recordNumber has not been created. 1 (SMART Collect)
Creation
of a Receivable
4 One of the SmartCollectDetails parameters exceeds the 1000 character limit. The receivable with the record number recordNumber has not been created." 1 (SMART Collect)
Creation
of a Receivable
4 Receivable with record number recordNumber could not be created because there is already a receivable with that record number 1 (SMART Collect)
Creation
of a Receivable
4 The receivable with the record number recordNumber could not be created because the payment type is set to SmartCollect and there are one or more payees that are missing the question field in one or more of their security questions. 1 (SMART Collect)
Creation
of a Receivable
4 The receivable with the record number recordNumber could not be created because the payment type is set to SmartCollect and there are one or more payees that are missing the answer field in one or more of their security questions. 1 (SMART Collect)
Creation
of a Receivable
4 Receivable with record number recordNumber has not been created. The provided lineItemTotal for one or more line items does not match the calculated total based on unitPrice and quantity. 1 (SMART Collect)
Creation
of a Receivable
4 Receivable with record number recordNumber has not been created. The calculated gross total from line items does not match the provided remittance gross total. 1 (SMART Collect)
Creation
of a Receivable
4 One or more provided AccountReferences do not belong to the participant 1 (SMART Collect)
Cancellation
of a Receivable
3 Unable to cancel Receivable with record number recordNumber. The current status of Paid does not allow cancelation. 1 (SMART Collect)
Cancellation
of a Receivable
6 Unable to cancel Receivable with record number recordNumber. The current status of Canceled does not allow cancelation. 1 (SMART Collect)
Cancellation
of a Receivable
4 Unable to cancel Receivable with record number recordNumber. The current status of Failed does not allow cancelation. 1 (SMART Collect)
Cancellation
of a Receivable
4 No receivable with RecordNumber recordNumber was found. 1 (SMART Collect)

Notices

Notices within the web-hook payload serve as informative messages that communicate positive events or non-critical information related to a Receivable.

Unlike errors, notices do not indicate problems but rather convey useful updated or confirmations about the processes associated with your payment.

The structure of the notices includes several key components designed o offer clarity and context:

{
        "message": "Receivable with the record number 153c53e7-1c51-4f0a-a280-828a525467f8 has been created on 3/22/2024 9:47:37 AM",
        "statusId": 1,
        "eventReferenceId": "153c53e7-1c51-4f0a-a280-828a525467f8",
        "eventTimeStamp": "2024-03-22T09:47:37.3540714-04:00",
        "correlationId": "",
        "errorsAndNotices": {
          "errorFound": false,
          "errors": [],
          "notices": [
            {
              "message": "",
              "propertyName": "",
              "reasonCode": "",
              "reason": "Receivable with the record number 153c53e7-1c51-4f0a-a280-828a525467f8 has been created on 3/22/2024 9:47:37 AM"
            }
          ]
        }
      }

Notices provide additional information about a successful action, offering insights or warnings that do not necessarily indicate an error but may require attention or action.

Receivable Action StatusId Message Text Method of Payment
Creation
of a Receivable
1 Receivable with the record number recordNumber has been created on date-time Any (1-3)
Initiation
of a Receivable
2 Payment for receivable with the record number recordNumber has been initiated via SMART Collect on date-time 1 (SMART Collect)
Completion
of a Receivable
3 SMART Collect Payment Complete 1 (SMART Collect)
Scheduling
of a Receivable
5 Receivable with RecordNumber recordNumber is scheduled for date Any (1-3)
Cancellation
of a Receivable
6 Receivable with the record number recordNumber has been successfully canceled Any (1-3)
Revocation
of a Receivable
6 Token revoked by API 1 (SMART Collect)
Revocation
of a Receivable
6 Exhausted attempts to answer security question(s) 1 (SMART Collect)
Revocation
of a Receivable
6 Document(s) disputed 1 (SMART Collect)