TidePay
Customers

Create a customer portal session

POST
/portal-sessions

Returns a one-time URL that signs the customer straight into the Tidepay customer portal, where they see their subscriptions with you and their payment history, and can cancel (effective at the end of the period already paid). Create one each time the customer clicks a "Manage subscription" button on your site and redirect them to url — it expires in 15 minutes and works once. The session only shows this customer's subscriptions with you.

X-API-Key<token>

Your merchant API key, shown once at creation in the dashboard (Settings → API key).

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/portal-sessions" \  -H "Content-Type: application/json" \  -d '{    "customerId": "cus_01j8x2q3r4s5t6u7v8w9x0y1z2"  }'
{  "url": "string",  "expiresAt": "2019-08-24T14:15:22Z"}