15.1 Overview

A file refers to a collection of payments in a csv or text format that can be uploaded to CPX to generate payments from buyers to suppliers.
Users can upload files and create payments in CPX via API and also cancel transactions that are created in the same file. Users can fetch file information from CPX using APIs. Additionally they can also approve and reject Files awaiting internal approval.

15.2 Attributes

FieldSub-fieldTypeDescription
aggregationsObjectTotal Aggregate amount of the records fetched
totalAmount
  • value
Object IntegerTotal Amount Total Amount value
totalRecordsIntegerTotal number of records available
totalTypeStringWhether the records returned are an exact or in range
recordCountIntegerNumber of records fetched
recordsArray of objectsDetails of the records fetched
creator
  • id
  • username
Object
String
String
Id of user creating the supplier
Username of user creating the supplier
displayRecordCountIntegerCount of records displayed
exceptionsStringErrors for the file
fileDateStringDate of file creation on CPX
fileIdStringId of File generated by CPX
fileNameStringName of File generated by CPX
filePathStringPickup Path of the file
fileSourceStringSource of File creation
fileStatusMessageStringMessage related to Status of File
idStringId of file generated
importDateStringDate and time of file being imported
isPifPlanCreatedBooleanWhether PIF Plan is created for the file
isPifPlanLockedBooleanWhether PIF Plan is created for the file
messageStringMessage associated with the Get API
originalRecordCountStringTotal payments uploaded by user in file
recordCountIntegerTotal records of payments associated with the file including debits and refunds
statusStringStatus of file
totalAmountIntegerTotal amount of payments in the file
uploadedFileNameStringName of file as uploaded by user
buyersArrayList of buyers for the payment
paymentFileInfo
  • bid
  • buyerId
  • fid
  • fileId
  • fileType
  • mappings
    • actions
      • action
      • column
      • columnName
      • id
      • format
    • preactions
      • action
      • id
  • nid
  • username
Array
String
String
String
String
Enum
Object
Object
String
String
String
String
String
Object
String
String
String
String
Information of payments
  • BID of buyer
  • Buyer Id of buyer
  • FID associated to buyer
  • fileId of the file
  • Type of file uploaded
  • Mapping of uploaded file
    • Actions set on the file
      • Action to be taken
      • Column on which action is to be taken
      • Name of column
      • Id of the column
      • Format of the column
    • Preactions set on the file
      • Action to be taken
      • Id of the column
  • NID associated to the buyer
  • Username of user
_scroll_idStringThe id for the search context
payloadObjectObject to send file ID to be approved or rejected
idStringId of the file to be approved or rejected
fileInfoObjectInformation about the file
fileIdstringId of the file uploaded to CPX
fileNamestringName of the file uploaded to CPX
statusStringStatus of the file
successesArrayList of Ids of payments successfully cancelled
successCountIntegerNumber of payments successfully cancelled
failuresArrayList of Ids of payments for which cancellation failed
failureCountIntegerNumber of payments for which cancellation failed

15.3 Operations

15.3.1. Search Files
15.3.2. Search Files for Export
15.3.3. Approve/Reject PIF Files
15.3.4. Post PIF Files in CSV format
15.3.5. Cancel all transactions in PIF File


Priority Technology Holdings Logo