User

This POST endpoint is used to create a new user in MassPay. <br> You can use this endpoint to create a new user with the specified user details in JSON format in the request Body. <br> To use this endpoint, you need to provide the internal_user_id, country, first_name, last_name, and email as required parameters in the Request Body. <br> The response will include details about the newly created user.<br><br>Email already on file. An email belongs to a single MassPay user. When the email is already on file, the request links a user_token for your account to that existing user instead of creating another user. If that user's name or business name does not match the submitted one, the request is rejected with 400 and the title User exist with other information; the message says which. Legal designators (LLC, Inc., Ltd., GmbH...), punctuation and case are ignored, and close variants or abbreviations are judged the same business, as for personal names. The rejection includes a name_override_code and override_instructions. To get the user_token anyway, resubmit the same request with name_override_code added to the body. The code only applies to the same email address and the exact same first, middle, last and business name, and expires after 7 days.<br>If the existing user has no transactions and its name is not locked, it takes the submitted name, including a submitted business_name (an omitted one leaves the business name on file). Otherwise the name on file is kept, MassPay compliance gets a note with the submitted name and your account, and your user_token for that user is LOCKED until compliance reviews it; this also applies to a user_token you already had for that user. Resending an override compliance has already reviewed returns the user_token unchanged; a different name needs a new code and is reviewed again. The internal_user_id must be new to your account or the one already assigned to that user; an id assigned to another of your users is rejected.

post/payout/user

Request

Request body

internal_user_idstring required

A client-defined identifier for the user. This is the unique ID assigned to the user on your system. Max 75 characters. Allows letters, numbers, and + , - . / _ ~ |

address1string

The user's street address. Required in order to process a payout.

address2string

The user's street address, line 2.

citystring

The user's city. Required in order to process a payout.

state_provincestring

The user's state/province.

postal_codestring

The user's postal code.

countrystring required

The user's country code. ISO_3166 code. Required in order to process a payout.

first_namestring required

The user's first name. (If Business account, the first name of the representative)

middle_namestring

The user's middle name. (If Business account, the middle name of the representative)

last_namestring required

The user's last name. (If Business account, the last name of the representative)

emailstring required

The user's e-mail address. Must be unique. Cannot have two users with the same e-mail address.

languagestring

The user's preferred language of communication. If not provided, defaults to English (en)

mobile_numberstring

(Optional) Mobile number of user. Allows for SMS notifications upon availability of funds

business_namestring

Company legal name (Only if Business account)

date_of_birthstring date

Date of birth. Optional when creating a user, but required before processing a payout unless explicitly exempted by compliance. Users must be at least 18 years old, unless a lower age is approved by compliance.

notify_userboolean

Should we notify the user via email that their user has been created in the system? They will receive instructions to establish such account.

name_override_codestring

Only when resubmitting a request that was rejected because the email already belongs to a MassPay user with a different name or business name (400, title User exist with other information): the name_override_code returned by that rejection. A user_token for your account is then linked to that existing user despite the different name. The code only applies to the same email address and the exact same first, middle, last and business name, and expires after 7 days; any other change to the name returns a new rejection with a new code. If the existing user has no transactions and its name is not locked, it takes the submitted name, including a submitted business_name (an omitted one leaves the business name on file). Otherwise the name on file is kept, MassPay compliance gets a note with the submitted name, and your user_token for that user is LOCKED until compliance reviews it. The same applies when you already had a user_token for that user.

Example request

{
  "internal_user_id": "4324-rOzk",
  "address1": "2000 main st",
  "address2": "apt D",
  "city": "Santa Monica",
  "state_province": "CA",
  "postal_code": "90405",
  "country": "USA",
  "first_name": "John",
  "last_name": "Doe",
  "email": "jdoe@gmail.com",
  "language": "en",
  "mobile_number": "16502000226",
  "business_name": "ABC Company",
  "date_of_birth": "1975-03-24",
  "metadata": {
    "group_id": 541
  },
  "name_override_code": "Q4ZP7K2MXJ5RT3BV6NWA"
}

Response

Successfully created.

user_tokenstring uuid required

Token representing the user that was just created

status'ACTIVE' | 'LOCKED' | 'DEACTIVE' | 'CLOSED' required

The status of the user

created_onstring YYYY-MM-DDThh:mm:ss required

The timestamp the user was created in the system. Using UTC timestamp.ISO 8601

internal_user_idstring required

A client-defined identifier for the user. This is the unique ID assigned to the user on your system. Max 75 characters. Allows letters, numbers, and + , - . / _ ~ |

address1string

The user's street address.

address2string

The user's street address, line 2.

citystring

The user's city.

state_provincestring

The user's state/province.

postal_codestring

The user's postal code.

countrystring

The user's country code. ISO_3166-1_alpha-3 code

first_namestring required

The user's first name. (If Business account, the first name of the representative)

middle_namestring

The user's middle name. (If Business account, the middle name of the representative)

last_namestring required

The user's last name. (If Business account, the last name of the representative)

emailstring required

The user's e-mail address. Must be unique. Cannot have two users with the same e-mail address.

languagestring

The user's preferred language of communication. If not provided, defaults to English (en)

mobile_numberstring

(Optional) Mobile number of user. Allows for SMS notifications upon availability of funds

business_namestring

Company legal name (Only if Business account)

timezonestring required

User's computed timezone

date_of_birthstring date

Date of birth. (optional). Minimum 18 years old

metadataobject

Optional JSON object with attributes that can later be searched to locate this user. Do not include PII as this object is not encrypted.

activation_urlstring

If the user does not have an activated account yet, an activation URL will be provided.

Example response

{
  "user_token": "123e4567-e89b-12d3-a456-426614174000",
  "created_on": "2019-07-07T23:03:05",
  "internal_user_id": "4324-rOzk",
  "address1": "2000 main st",
  "address2": "apt D",
  "city": "Santa Monica",
  "state_province": "CA",
  "postal_code": "90405",
  "country": "USA",
  "first_name": "John",
  "last_name": "Doe",
  "email": "jdoe@gmail.com",
  "language": "en",
  "mobile_number": "16502000226",
  "business_name": "ABC Company",
  "timezone": "America/Los_Angeles",
  "date_of_birth": "1975-03-24",
  "metadata": {
    "group_id": 541
  }
}

Changes

    • breaking

      added to the response body oneOf list for the response status

    • breaking

      the response's body type changed from object to no type for status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      added the new optional request property