Get payment provider by ID

GET /api/financial/payment-providers/{paymentProviderId}

Success: 200 OK

Overview

Retrieves one payment provider by id.

Despite what the summary suggests, this returns no credentials, no supported payment methods and no fee structure — it is the same three-field object Get all payment providers returns for each entry, selected by id. It returns the matching entry from that same list, so there is nothing to be gained over calling the list endpoint once and filtering client-side.

Endpoint

GET {base_url}/api/financial/payment-providers/{paymentProviderId}

{base_url} is the environment URL issued to your integration. See Authenticating with Gladstone APIs.

Path parameters

NameTypeRequiredDescription
paymentProviderIdinteger (int32)YesThe provider to retrieve, as returned in [].id by Get all payment providers. An id that matches no provider returns 404.

Sample request

cURL
curl -X GET '{base_url}/api/financial/payment-providers/{paymentProviderId}' \
  -H 'Authorization: Bearer {accessToken}' \
  -H 'X-Use-SSO: true'

Response fields

FieldTypeDescription
idinteger (int32)The payment provider identifier — the same value you sent in the path.
configurationGroupIdinteger (int32)The system configuration group holding this provider's settings. This API exposes no endpoint for reading the group, so there is nothing you can do with the value.
namestringThe provider's display name, always present and at most 60 characters. It is free-text configuration rather than a controlled vocabulary, so do not switch on it: the value that matters when taking a payment is the paymentProvider enum on Pay for sales invoices, which currently accepts only GladstonePay.

Sample response

200 OK
{
  "id": 12345,
  "configurationGroupId": 12345,
  "name": "string"
}

Errors

StatusMeaningWhen
404Not foundPayment provider ID {paymentProviderId} could not be found. — no provider with that id exists for the operator.
500Internal server errorAn unexpected server-side failure while reading the provider list. The response body is empty.

This page as markdown · All pages · llms.txt