Create a merchant account

Create a new surcharging merchant account.

Surcharging merchant accounts should have a 1:1 relationship with the platform application's merchant accounts (e.g., Stripe Connected Accounts).

POST/api/v1/platform/surcharging/accounts

Create a new surcharging merchant account.

Surcharging merchant accounts should have a 1:1 relationship with the platform application's merchant accounts (e.g., Stripe Connected Accounts).

Request Body

object
namestringMerchant Name · min: 2 · max: 100required

For internal use to identify an account.

Best practice is for this to be unique among a platform's accounts, and should align with any other account resources (e.g, Stripe Connected Accounts).

externalIdentifierstringExternal Identifier

Optional unique identifier for an external asset to link to this account.

This can be used to manage a merchant account instead of using the Account ID (acct_***).

This can be useful to align merchant accounts with other merchant accounts (e.g., Stripe Connected Account IDs).

WARNING: External identifiers MUST be unique to each merchant account.

Example: unique-identifier
maxRatenumberMax Surcharge Rate · min: 0 · max: 0.5

A percentage rate based on the merchant's cost of acceptance (processing fees for credit card transactions).

This is represented as a decimal value - e.g., For a rate of 2.5% the maxRate should be set to 0.025.

This is used by the surcharge calculation engine to determine the maximum surcharge that can be applied to a transaction for this merchant.

NOTE: Other rate caps may supersede the merchant's max rate on a given calculation, including ones based on card network rules, and jurisdictional regulations.

For more information on merchant max rate please refer to our compliance documentation

locationobjectMerchant Of Record Location

Merchant Of Record location.

This is the location for the merchant as it appears on the sales receipt.

IMPORTANT: Location data must be provided for surcharge calculations to succeed. If a qualified location is not provided, surcharge calculations will result in a zero value

enabledUsStatesarray string[]Special US States

US States that are disabled by default, but should be enabled for this merchant account.

Must be formatted as an array of valid US State ISO codes.

Please refer to our compliance documentation for more information on ambiguous states.

US states that can be enabled:

  • CA
  • NY
annualCreditCardVolumeobjectAnnual Credit Card Volume

annualCreditCardVolume is only for platforms that have direct onboarding enabled.

This is used for the Create merchant portal session endpoint to calculate the billing rate that Yeeld uses to charge the merchant.

Responses

201Default Response
RequestPOST/api/v1/platform/surcharging/accounts
curl 'https://api.theyeeld.com/api/v1/platform/surcharging/accounts' \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "string",
  "externalIdentifier": "unique-identifier",
  "maxRate": null,
  "location": {
    "country": "US",
    "stateProvince": "WA"
  },
  "enabledUsStates": [
    "string"
  ],
  "annualCreditCardVolume": {
    "value": 0
  }
}'
Response
{
"id": "acct_***",
"name": "string",
"externalIdentifier": "unique-identifier",
"maxRate": 0.025,
"location": {
"country": "US",
"stateProvince": "WA"
},
"onboardingStatus": null,
"isSurchargingEnabled": false,
"enabledUsStates": [
"string"
],
"annualCreditCardVolume": {
"value": 0
},
"canadianMastercardDisclosure": {
"submittedAt": 0,
"surchargingEnabledAt": 0
}
}