[Beta] Create a merchant portal session

Note: Direct onboarding must be enabled on your platform account to use this endpoint. Reach out to your Yeeld contact to have this enabled.

Generates a hosted session URL for a merchant to onboard or manage their Yeeld subscription.

The session type is determined automatically based on the merchant's onboarding status:

  • Not yet onboarded - Returns an onboarding session URL
  • Already onboarded - Returns a merchant portal session URL

Onboarding Sessions:

Session URL expires after 24 hours.

Opens a hosted page for the merchant to create a subscription and agree to Yeeld terms.


Merchant Portal Sessions:

Session URL expires after 5 minutes.

Opens a hosted page for the merchant to manage their subscription and payment methods.

NOTE: Once the merchant has been redirected to the merchant portal, the portal will remain open for 1 hour.

POST/api/v1/platform/surcharging/accounts/{accountId}/merchant-portal-session

Note: Direct onboarding must be enabled on your platform account to use this endpoint. Reach out to your Yeeld contact to have this enabled.

Generates a hosted session URL for a merchant to onboard or manage their Yeeld subscription.

The session type is determined automatically based on the merchant's onboarding status:

  • Not yet onboarded - Returns an onboarding session URL
  • Already onboarded - Returns a merchant portal session URL

Onboarding Sessions:

Session URL expires after 24 hours.

Opens a hosted page for the merchant to create a subscription and agree to Yeeld terms.


Merchant Portal Sessions:

Session URL expires after 5 minutes.

Opens a hosted page for the merchant to manage their subscription and payment methods.

NOTE: Once the merchant has been redirected to the merchant portal, the portal will remain open for 1 hour.

Path Parameters

accountIdpathrequired

The ID of the merchant account (acct_***)

NOTE: If using external identifiers, this can be used instead of the account ID.

Request Body

object
returnUrlstringrequired

The URL that the merchant will be redirected to after billing setup is complete.

This will typically be a destination on the platform application.

Must be a fully qualified URL, (e.g., https://myplatform.com/dashboard)

emailstringrequired

Email address for the merchant user that is handling billing setup, and is qualified to agree to Yeeld's terms.

Must be a valid email address that is able to receive correspondence from Yeeld regarding their account.

discountCodestring

Discount code to apply to the subscription.

Must be a valid promo code - Reach out to your Yeeld contact for details.

Responses

200Default Response
RequestPOST/api/v1/platform/surcharging/accounts/{accountId}/merchant-portal-session
curl 'https://api.theyeeld.com/api/v1/platform/surcharging/accounts/{accountId}/merchant-portal-session' \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "returnUrl": "string",
  "email": "string",
  "discountCode": "string"
}'
Response
{
"url": "string"
}