POST
/
customers
/
{customer_id}
/
customer-portal
/
session
import DodoPayments from 'dodopayments';

const client = new DodoPayments({
  bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});

async function main() {
  const customerPortalSession = await client.customers.customerPortal.create('customer_id');

  console.log(customerPortalSession.link);
}

main();
{
  "link": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

customer_id
string
required

Customer Id

Query Parameters

send_email
boolean | null

If true, will send link to user.

Response

200 - application/json
Successfully send email to customer (if they exist)