PayorData Object Model
Object model for the PayorData object
This object contains data about a payor and is used in Pay In endpoints that require customerData
.
In some cases, customerData is required, like when saving a payment method. The fields that are required depend on the paypoint’s identifier settings and the method or request you’re using.
When this object is required, you must include enough information for Payabli to identify the customer. If the paypoint isn’t using custom identifiers, then one of these values is required: customerID
, firstname
and lastname
, email
, or customerNumber
. If the paypoint is using custom identifiers, use those.
Pass custom identifiers in the customerData.additionalData
object like this:
You can find the paypoint’s identifier settings in the web app at Settings > Custom Fields, or by calling /api/Paypoint/settings/{entry}
.
Customer information. May be required, depending on the paypoint's settings. Required for subscriptions. See PayorData object Model for a complete reference.
Custom dictionary of key:value pairs. You can use this field to store any data related to the object or for your system. If you are using custom identifiers, pass those in this object. Example usage:
{
"additionalData": {
"CustomIdentifier": "value",
"key2": "value2",
"key3": "value3"
}
}
Customer's billing address.
250
Additional line for Customer's billing address.
100
Customer's billing city.
250
Customer's billing country.
100
Customer's email address.
250
Customer's phone number.
50
Customer's billing state. Must be 2-letter state code for address in US.
250
Customer's billing ZIP code.
50
Customer's company name.
250
The Payabli-generated unique ID for the customer.
User-provided unique identifier for the customer. This is typically the customer ID from your own system.
250
Customer/Payor first name.
250
List of fields acting as customer identifiers, to be used instead of CustomerNumber.
Customer/Payor last name.
250
The shipping address.
250
Additional line for shipping address.
100
Shipping city.
250
Shipping address country.
100
Shipping state or province.
Shipping ZIP code.
50
Was this page helpful?