Skip to content
Developer Tools
Accelerate development using AI assistants and tools

Retrieve Customer Portal URL ​

  • Endpoint: POST /aggregate-pay/api/gateway/portalSessionCreate
  • Tags: Collection Service/Subscription Management

Description ​

Retrieve the user portal URL. Merchants can integrate this URL on the user details page. Once the user opens the URL, they can view and manage their subscriptions.

Parameters ​

FieldInTypeRequiredConstraintsDescription
Content-TypeheaderstringYes
signheaderstringYes签名信息请参考技术文档

Parameter Examples ​

  • Content-Type: "application/json"
  • sign: "FPFVT3o227JrFRbqu19boZCpVVTF9KznxyRawUmxpfXilHV/0yK46haPhAjNu1hPUMy7Vw/ILXhfzffNm4Fj0apWknlTY9OJxnSoQxS9BTFtc61tn5yV1q69x/kkBl82/qwg+XTJ4fOzy7Mar3VaC1E2PlDA6RkkKBUyNE6RYgsdB+Su7an4+4HVTNAnoe74WyvBgxTLMNg28igBTdqxaO3w/UBY6ObVp7vkqkQGdL1Y+HgmMYaAVwrM3+ALWGId0sJ+YqTY4WJ+0xCRGhaSnybiIjZsQEYyID68WNUfuavDLDsEhaMm/HfQvf5p0R1Ltovp3wwJnEbQcjY458iX5A=="

Request Body ​

Required

Content-Type: application/json

FieldTypeRequiredConstraintsDescriptionEnum
versionstringYesAPI version. Current value: 1.5
keyVersionstringYesSignature Algorithm Version, Current value: 1
requestTimestringYesRequest time, compliant with rfc3339 specification, format: yyyy-MM-dd'T'HH:mm:ss.SSSXXX The time must be within two minutes of the current time
appIdstringYesMerchant AppId,The unique identifier assigned to the merchant app by PayerMax
merchantNostringNomaxLength: 32Merchant Id, the unique identifier generated when the merchant signs the contract with PayerMax
dataobjectYes
data.portalIdstringYesCustomer Portal Configuration ID. You can add a customer portal configuration in the PayerMax Merchant Management, Portal under 【Acquiring Product】 - 【Subscription】 - 【Customer Portal】.
data.requestIdstringYesRequest ID, which must be unique.
data.outUserIdstringYesThe user ID of the merchant, needs to ensure the uniqueness of each user ID.
data.frontCallbackUrlstringNoCan redirect to this link from the user portal page

Example ​

json
{
  "version": "1.5",
  "keyVersion": "1",
  "requestTime": "2025-02-26T05:00:00+00:00",
  "appId": "<your-app-id>",
  "merchantNo": "<your-merchant-no>",
  "data": {
    "portalId": "<your-portal-id>",
    "requestId": "<your-request-id>",
    "outUserId": "user_10001",
    "frontCallbackUrl": "https://your-domain.com/account"
  }
}

Responses ​

200 ​

FieldTypeRequiredConstraintsDescriptionEnum
codestringYesReturn code, ‘APPLY_SUCCESS’ means success
msgstringYesReturn message, ‘Success.’
dataobjectYes
data.redirectUrlstringYesCustomer Portal Address.
data.requestIdstringYesRequest ID, which must be unique.
data.sessionIdstringYesSession ID, which expires in 60 minutes.
data.outUserIdstringYesThe user ID of the merchant, needs to ensure the uniqueness of each user ID.
data.merchantNostringYesMerchant Id, the unique identifier generated when the merchant signs the contract with PayerMax.

Response Example ​

json
{
  "msg": "",
  "code": "APPLY_SUCCESS",
  "data": {
    "redirectUrl": "https://billing-uat.payermax.com/#/home?sessionId=<session-id>&merchantId=<your-merchant-no>&appId=<your-app-id>",
    "requestId": "<your-request-id>",
    "sessionId": "<session-id>",
    "outUserId": "user_10001",
    "merchantNo": "<your-merchant-no>"
  }
}

Was this page helpful?

Thank you for your help in improving PayerMax Product Docs!

Released under the MIT License.