Bulk File Uploads: Consumer/Loan Data Files

Inbound MAM File (from Client to PayNearMe)

The purpose of this file is for the client to provide PayNearMe with consumer/loan data and to trigger the results file which will return the PayNearMe Smart Link for each record. The Smart Link is a unique URL assigned to each consumer record/loan, which routes consumers directly to the PayNearMe Consumer Portal and allows them to make or schedule payments. With the consumer contact data, PayNearMe will provide consumer communications including payment and schedule notifications. PayNearMe will also use various consumer data-related flags to control loan payability, allowed payment types, and customized business rule logic.

For each client, PayNearMe creates a template for the client's Master Account Management (MAM) file to ensure all consumer and order data is properly ingested, parsed, and recorded into the platform. Since every client has unique business, consumer, and data requirements, this file can be customized and tailored for your specific use case and business vertical.

Filename and Extension

  • Naming convention: PNM_consumer_export_MMDDYYYY.txt
  • Format: CSV
  • Delimited: Comma or Pipe

Timing

  • Frequency: Daily
  • Time of Day: TBD

SFTP Details

  • Host: sftp://files.paynearme.com
  • Username: shared separately
  • Password: shared separately
  • Sandbox Path: /orders/sandbox/dropbox
  • Production Path: /orders/prod/dropbox
  • Port: 22

File Data Specifications

The following table displays the file format for your MAM file. Use this as a starter template when planning the information you'd like to include for your integration.

RowColumn HeaderDescriptionSample ValuePossible Values
0account_numberA unique ID that identifies the order or the consumer.Integer(7-10 digits)123456789
1first_nameThe consumer's first name.VARCHAR(255)Peppa
2last_nameThe consumer's last name.VARCHAR(255)Pigg
3addr1The first line of the consumer's billing address.VARCHAR(255)3 Astley Street
4addr2If necessary, the second line of the consumer's billing address.VARCHAR(255)APT 2
5cityThe city of the consumer's billing address.VARCHAR(255)Peppatown
6stateThe state of the consumer's billing address.VARCHAR(2)CA
7postal_codeThe ZIP code of the consumer's billing address.Integer(5 digits)94115
8mobile_phoneThe consumer's mobile phone number.Integer(10 digits)5555551212
9emailThe consumer's email address.Integer(10 digits)[email protected]
10past_due_amountThe past due amount owed by the consumerDecimal(6,2)100.50
11past_due_dateThe date when the account became past due.Date(YYYY-MM-DD)2024-06-05
12current_payment_amountThe current amount owed by the consumer.Decimal(6,2)100.50
13payment_due_dateThe date when the current payment is due.Date(YYYY-MM-DD)2024-07-05
14total_account_balanceThe total remaining balance on the account.Decimal(6,2)1500.50

The fields listed above are not a comprehensive listing of all the fields that you can include in your MAM file; rather they are merely a listing of generic data that you may want to include. Furthermore, the column header names can be customized to your format and naming conventions. Your PayNearMe Implementation Specialist will map your unique MAM file to the PayNearMe platform so that the consumer experience is seamless and personalized.

Below is an example MAM file specification that was created for an auto lending client.

ColumnColumn HeaderDescriptionPossible ValuesSample Value
0Customer NumberUnique Client Generated Customer/Loan IDInteger(7-10 digits)9999999999
1Regular Payment AmountRegular Payment AmountDecimal(6,2)200
2Payoff DatePayoff dateDate(YYYY-MM-DD)45224
3Late Charge AmountLate Fee amountDecimal(6,2)378
4Payoff AmountPayoff amountDecimal(6,2)812
5Past Due AmountPast due amountDecimal(6,2)25
6Total Current Due AmountTotal current amount dueDecimal(6,2)2893
7Due Date 1Current due date.  If the loan is current, Due2-Due4 will not be populated.Date(YYYY-MM-DD)2023-06-05
8Due Date 2Previous due date.  If populated, this loan is past due.  If the loan is current, it will not be populated.Date(YYYY-MM-DD)2023-05-05
9Due Date 3Due date from two periods ago. If populated, indicates the loan has missed two due dates. If loan is current, it will not be populated.Date(YYYY-MM-DD)2023-04-05
10Due Date 4Due date from three periods ago. If populated, indicates the loan has missed three due dates. If loan is current, it will not be populated.Date(YYYY-MM-DD)2023-03-05
11Days Past DueDays Past DueInteger(1-4 digits)15
12Consumer Last NameBorrower Last NameVARCHAR(255)Jones
13Consumer First NameBorrower First NameVARCHAR(255)Jane
14Consumer Middle NameBorrower Middle NameVARCHAR(255)Rose
15Max Post DateMaximum days in the future a payment can be posted.Date(YYYY-MM-DD)45132
16Minimum Payment AmountMinimum Transaction AmountDecimal(6,2)10
17Address1Borrower Street AddressVARCHAR(255)123 Main Street
18Address 2Borrower Street Address ExtendedVARCHAR(255)Suite 215
19CityBorrower CityVARCHAR(255)New York
20StateBorrower StateVARCHAR(2)NY
21ZipBorrower ZipInteger(5 or 9 digits)94115
22Consumer EmailBorrower EmailVARCHAR(255)
Valid Email
[email protected]
23Consumer PhoneBorrower Mobile PhoneInteger(10 digits)5555551212
24Max Post Date 2Second parameter for maximum days in the future a payment can be posted.  May be used in business rule.Date(YYYY-MM-DD)45132
25Loan Origination TypeRepresents different portfolio segments.  Drives customer to different site configurations.  Integer(2 digits)54
26Deficient Account IndicatorIndicates vehicle has been repossessed and sold.Y
N
N
27Current Payoff AmountCurrent Loan Payoff AmountDecimal(6,2)2879
28Vin NumberVehicle Identification NumberVARCHAR(255)7A9TSVA227L100000
29Loan Origination StateState where the Loan originatedVARCHAR(2)NY
30Payment TypesAllowed Payment Types (comma separated list. If all allowed, can provide complete list or just ‘any’ach
cash
debit
paypal
venmo
any
any
31Vehicle DescriptionDescription of the VehicleVARCHAR(255)2023 Nissan Titan
32Recurring EligibleFlag representing whether a consumer is eligible for setting up recurring paymentsY
N
Y
33Brand NameBrand Name associated with the LoanVARCHAR(255)Brand1
34Direct IndicatorSpecifies Direct Loan or Indirect LoanD
I
D
35Suspend IndicatorDetermines whether a loan is payable or not. A false indicator means the loan is not suspended and is payable. All other options will suspend the Account. A true indicator will also suspend the account if a generic value is preferred.FALSE
TRUE
FALSE
36Fee IndicatorDetermines whether we charge fees to the consumer or not. fee
nofee
fee
37Consumer YOBConsumer’s Year of BirthInteger(4 digits)1947
38LanguageConsumer’s Preferred Languageen
sp
en
39UDF1User Defined Field 1VARCHAR(255)
40UDF2User Defined Field 2VARCHAR(255)
41UDF3User Defined Field 3VARCHAR(255)

Outbound MAM File (From PayNearMe to Client)

This file serves as a response from the PayNearMe system to the client after processing the provided Consumer/Loan data. It contains the validated inbound data for each consumer record that was ingested, along with the generated Smart Link for each record. For details regarding the purpose of the Smart Link, please refer back to the Inbound MAM file description.

Filename and Extension

📘

Naming Conventions

The XX referenced at the end of filename is a random integer between 0 and 99, so you’ll receive a value that is either one or two digits in that space.

  • Naming convention: PNM_consumer_export_MMDDYYYY_YYYYMMDD_HHMMSS_XX.txt
  • Format: CSV
  • Delimited: Comma or Pipe

Timing

  • Frequency: Daily
  • Time of Day: Delivered immediately after the Inbound MAM file has completed processing.

SFTP Details

  • Host: sftp://files.paynearme.com
  • Username: shared separately
  • Password: shared separately
  • Sandbox Path: /orders/sandbox/results
  • Production Path: /orders/prod/results
  • Port: 22

File Data Specifications

ColumnColumn HeaderDescriptionPossible ValuesSample Value
0Customer NumberUnique Client Generated Customer/Loan IDInteger(7-10 digits)9999999999
1ZipBorrower ZipInteger(5 digits)94115
2Consumer EmailBorrower EmailVARCHAR(255)
Valid Email
[email protected]
3Consumer PhoneBorrower Mobile PhoneInteger(10 digits)5555551212
4smartlink_urlUnique SmartLink URL
Sandbox: http://psbx.us/Fxxxxxxxx
Prod: http://pnme.co/Nxxxxxxxx
VARCHAR(24)http://psbx.us/Fabcd1234
http://pnme.co/Nabcd1234
5statusIndicates the current status of the record after being processed.new
changed
unchanged
error
new
6errorsContains validation or processing errors associated with the record that cause the record to be skippedVARCHAR(255)cannot change order created in same file
7warningsContains data validation errors associated with the record that caused theVARCHAR(255)site_customer_phone must be ten digits

Like the inbound MAM file, this file can also be customized to include data relevant to your records and business processes. Your PayNearMe Implementation Specialist can help build and format a return file that can be seamlessly incorporated into your account processing procedures.

File Not Processed (Fails Entirely)

The file will not be processed if the first record has too few columns. Naturally, this implies that if the entire file has too few columns, it will also fail.

status|errors  
	error|"Template index (Date: 9) > number of columns (7) ""validation"""

Errors (Record Skipped)

  • Duplicate Record in file - cannot change order created in same file
  • Too many columns - row X too many columns (truncated to match header columns: 10 row columns: 13)
  • Too few columns (apart from first row) - row X too few columns (padded to match header columns: 10 row columns: 7)
  • Missing Customer Number - order key cannot be null
  • Bad encoding in Customer Number - unable to parse order_key

Warnings (Record Stored, Invalid Data Ignored)

  • Invalid Phone Number - site_customer_phone must be ten digits
  • Invalid Email - site_customer_email isn’t correct format
  • Invalid 2-Character State - site_customer_fixed_state isn’t correct format
  • Invalid Postal Code - site_customer_postal_code isn't correct format