Getting started as a Cash Account Referral Partner

1. Create an endpoint in your system that can save our clients' external account identifier

Our clients, through our system, will initiate the process of signing up with a cash account. The first step of this process will include our system generating an external account identifier that represents the NPM account that this cash account corresponds to. The reason for this external account identifier is two fold:

  1. To make sure that the owner of the NPM account consented to signing up for a cash account.
  2. To make sure that the correct NPM account is signing up for the correct cash account.

Your system should contain an endpoint accepts this external account id and persistently saves it because it will be needed throughout the cash account signup process.

2. Generate your own self signed JWT

For details on how to do this see Generating a JWT

3. Generate NPM signed JWT for API calls

Use the JWT from step #2 to generate the NPM issued JWT for making partner api calls:

curl --request POST 'https://sandbox.npmdev.net/api/partners/{partner_name}/oauth2/v1/token' \
     --header 'Authorization: Bearer {self_signed_jwt}'
{
  "token": "ey..."
}

Please note that this JWT can only be used to sign up a singular cash account for the NPM client described in step 1.