Customers are stored in a Merchant's customer database.

Properties

PropertyTypeDescriptionExample
idNumber(integer)Read-only unique identifier.1234567890
first_nameStringCustomer's first name."Firstname"
last_nameStringCustomer's last name."Lastname"
contact_mediaArray(of Contact Media objects)At least one Contact Media of type email is required.See Contact Media Example
addressesArray(of Address objects)The address associated to the Customer. Limit 1 for now.See Address Example
custom_fieldsArray(of Custom Field objects)The custom fields associated with the Customer.See Custom Field Example
external_idStringUnique identifier used to look up customer. This is not generated by PaidYET."1234567890"

Example

{
  "first_name": "Firstname",
  "last_name": "Lastname",
  "contact_media": [
    {
      "type": "email",
      "value": "[email protected]"
    }
  ],
  "addresses": [
    {
      "address": "1234 Test Street S.",
      "city": "Test City",
      "state": "CA",
      "postal": 50001
    }
  ],
  "custom_fields": [
    {
      "id": 1234567890,
      "key": "shoesize",
      "value": "9"
    }
  ],
  "external_id": "1234567890"
}