Update a merchant account

Update a surcharging merchant account by either account ID or external identifier.

PUT/api/v1/platform/surcharging/accounts/{accountId}

Update a surcharging merchant account by either account ID or external identifier.

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
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).

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

200Default Response
RequestPUT/api/v1/platform/surcharging/accounts/{accountId}
curl 'https://api.theyeeld.com/api/v1/platform/surcharging/accounts/{accountId}' \
  --request PUT \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "string",
  "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
}
}