Configure Services

Enable or disable a service and switch its features on or off, for the whole business or one location.

A business turns on a service, then switches on the features it supports. Services are a desired-state map written whole and merged: an omitted service code is left untouched; to turn something off, send it explicitly with enabled: false. For the codes you can use, see Supported services and features.

Common use cases

  • Enable Accept Payments for a business.
  • Switch a feature on or off under a service.
  • Override a service's features at one location.
🚧

PENDING-PUBLISH

The boarding API Reference is pending publication; the ref: targets on this page are placeholders. Replace each with the real boarding-spec operationId once the boarding reference ships.


Scenarios

The services map is written as the desired state and merged: send a service to change it, omit it to leave it untouched, and send enabled: false to turn it off. PCE returns each service's status plus what it still needs.

Before you begin (all scenarios)

  • You have the businessId (and a locationId for per-location features).
  • You know the service and feature codes you're setting (see Supported services and features).
  • The business has the owners, accounts, addresses, and locations the service requires.

Scenario 1: Enable Accept Payments and its features

Write the services map with the service enabled and the features you want. Make a PATCH request to /v1/businesses/{businessId}/services.

curl -X PATCH https://sandbox-api.prioritycommerce.com/v1/businesses/{businessId}/services \
  -H "x-api-key: <your-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "payin": {
      "card": {
        "enabled": true,
        "features": {
          "mxAdvantage.surcharge": { "enabled": true },
          "threeDsAuthentication": { "enabled": false }
        }
      }
    }
  }'

Response: 200 OK

{
  "payin": {
    "card": {
      "uri": "/v1/businesses/{businessId}/services/payin/card",
      "enabled": true,
      "status": "PENDING_UNDERWRITING",
      "missingFields": [],
      "missingDocuments": [],
      "errors": []
    }
  }
}

status, missingFields, missingDocuments, and errors are read-only fields PCE computes for you.

Scenario 2: Turn a feature off

Send the feature explicitly with enabled: false; omitting it would leave it unchanged.

curl -X PATCH https://sandbox-api.prioritycommerce.com/v1/businesses/{businessId}/services \
  -H "x-api-key: <your-key>" \
  -H "Content-Type: application/json" \
  -d '{ "payin": { "card": { "features": { "mxAdvantage.surcharge": { "enabled": false } } } } }'

Scenario 3: Configure a service for one location

The same business can run different features at different locations. Set a location's service and features with a PATCH request to /v1/businesses/{businessId}/locations/{locationId}/services.

curl -X PATCH https://sandbox-api.prioritycommerce.com/v1/businesses/{businessId}/locations/{locationId}/services \
  -H "x-api-key: <your-key>" \
  -H "Content-Type: application/json" \
  -d '{ "payin": { "card": { "enabled": true, "features": { "threeDsAuthentication": { "enabled": true } } } } }'

See Locations for the one-business-many-locations model.

🚧

PENDING-PUBLISH

Accept Payments (services.payin.card) is the service supported end-to-end; other service codes appear in the underlying model but are not enabled for onboarded businesses. Confirm the exact services.payin.card shape and its feature codes against the boarding spec before publish.


Read the services

curl https://sandbox-api.prioritycommerce.com/v1/businesses/{businessId}/services \
  -H "x-api-key: <your-key>"

Request reference

FieldDescription
payin.card.enabledWhether the Accept Payments card service is on. Send false to turn it off.
payin.card.features.{code}.enabledWhether a feature under the service is on. Codes are on Supported services and features.
statusRead-only. The service's underwriting status.
missingFields, missingDocuments, errorsRead-only. What the service still needs to activate.

Statuses

An enabled service reports its own status as underwriting reviews it. See Service lifecycle for the service statuses and Status lifecycle for the business flow. Resolve a service that can't activate on Underwriting exceptions.


Sandbox testing

Use the sandbox to enable services and features before going live, and read back the computed status.

ScenarioTest dataExpected result
Enable a servicepayin.card.enabled: true on a complete business200 OK, status: PENDING_UNDERWRITING
Missing requirementEnable on a business with gapsstatus with populated missingFields / missingDocuments
Turn a feature offenabled: false on a featureFeature disabled; service unchanged

Go live

The shared pre-production checklist is in Getting Started. Specific to configuring services:

  • The service you enable has its required owners, accounts, addresses, and locations in place.
  • Per-location features are set where they should differ.
  • You read back missingFields / missingDocuments and resolve them before submitting.

Best practices

PracticeDescription
Write the desired stateSend a service to change it, omit it to leave it untouched, and send enabled: false to turn it off.
Read the computed fieldsstatus, missingFields, missingDocuments, and errors tell you what the service still needs.
Set features per locationConfigure each site's features on its own services path when they differ.
Don't invent codesUse only the service and feature codes on Supported services and features.

Next steps

See also



Did this page help you?
.readme-logo { display: none !important; }