PIF Transaction In Json Format
Example of how to create a PIF transaction
API reference for the following endpoint:
https://developer.cpxchange.com/reference#post-transactions-to-file
Available account type:
"VCN", "ACH", "CHK", "PPD", "VWA", "TRS", "LDG"
Post to "/payment/v1/pifTransactions/json"
Payload:
[
{
"nid": "{{YourNetworkid}}",
"fid": "{{YourInstitutionId}}",
"buyerId": "{{YourBuyerId}}",
"fileDate": "2019-11-27",
"transactionId": "21244e-2g-e93-2d43e2-es",
"accountType": "CHK",
"accountId": "eera2jkwefw4iofjdjfdkdfffdw",
"amount": 20.20,
"invoiceNumbers": [
"0024"
],
"invoiceDates": [
"2019-11-21"
],
"invoiceAmounts": [
11.11
],
"invoiceTotals": [
11.11
],
"invoiceDescriptions": [
"inv desc03"
],
"poNumbers": ["0024"],
"poDates": ["2019-11-21"],
"supplierId": "{{YourSupplierId}}",
"supplierName": "{{YourSupplierName}}",
"supplierAddressLine1": "1112 Main Street",
"supplierAddressLine2": "Unit Z",
"supplierCity": "Alpharetta",
"supplierState": "GA",
"supplierZip": "30004",
"supplierEmail": "[email protected]",
"reference1": "reference 1",
"reference2": "reference 2",
"reference3": "reference 8fds",
"reference4": "reference 970ruoweijlk",
"reference5": "reference 97oiuljkew",
"emailnotes": "email 8r0uwoiejk"
}
]
Response:
{
"fileInfo": {
"fileId": "753af32a-546b-5de8-9bc2-02800c615a6f",
"fileName": "KPSANDBOX.KPSANDBOX.pif.WEB_20191127104912.csv"
},
"rec": [
{
"id": "0d1ddd9e-cb04-512c-8515-b8abc5dd6393",
"originalAmount": 20.2,
"paymentAuthMessage": null,
"paymentMethod": "Check",
"paymentStatus": "Pending",
"transactionId": "21244e-2g-e93-2d43e2-es",
"paymentType": "Check",
"accountType": "CHK",
"achTransactionType": null,
"isProxyPay": false,
"institution": {
"id": "60ea3ec4-35b3-5358-9f0e-6b8e812fe2df",
"fid": "KPSANDBOX"
},
"network": {
"id": "22859b04-d3f6-5eae-bbbd-435ea27c28d6",
"nid": "KPSANDBOX"
},
"buyer": {
"id": "d0168885-24bc-5d3f-aca6-a79a1a521297",
"bid": "JNTester"
},
"supplier": {
"id": "ea9dddec-8e07-5abb-af4b-10d1443d9e58",
"sid": "JN_Supplier"
}
}
]
}
A log of this payment is in your buyer's payment history.
You can review our developer documentation for creating a PIF here: https://developer.cpxchange.com/reference#generatepiffilefromjson-1
Updated almost 4 years ago