PayPack logo
PayPack logo

All articles

MappingsUpdated 3 days ago

There are optional field mappings available in the PayPack configuration. In some scenarios, a transaction may require a specific field to populate such as field ID class. By entering metadata in JSON format, you are able to satisfy the requirement.

There are currently 2 custom field mapping fields available.

  1. Customer Deposit Field Mapping
  2. Customer Payment Field Mapping

Custom_Field_Mapping.png

Sample JSON data for Field Mapping

Customer Deposit / Payment Field Mapping

1{
2 "lookups": {},
3 "mapping": {
4 "fields": [
5 {
6 "generate": "undepfunds",
7 "hardCodedValue": "T",
8 "fieldtype": "",
9 "discardIfEmpty": false
10 },
11 {
12 "generate": "paymentmethod",
13 "hardCodedValue": 10,
14 "fieldtype": "",
15 "discardIfEmpty": false
16 }
17 ]
18 }
19}

Transaction Currency-Specific Account Mapping

The JSON example below uses Stripe's API response currency value to select a NetSuite bank account based on USD or CAD.

1{
2 "lookups": {
3 "accountlookup": {
4 "map": {
5 "usd": "1001 Stripe USD Bank Account",
6 "cad": "2001 Stripe CAD Bank Account"
7 }
8 }
9 },
10 "mapping": {
11 "fields": [
12 {
13 "generate": "account",
14 "extract": "currency",
15 "discardIfEmpty": true,
16 "fieldType": "text",
17 "lookupName": "accountlookup"
18 }
19 ]
20 }
21}

Date Format Function with Join String

Enhance your PayPack configuration with the ability to add date and time values using our mapping fields feature. This functionality allows you to effortlessly incorporate various date and time formats into your NetSuite fields by simply adding key-value pairs to the provided JSON data sample.

For detailed instructions, read the documentation PayPack - Mappings - Date Format Function with Join String.

Was this article helpful?
Yes
No