Retrieve a Connection

Returns a connection you previously created. Secrets are masked.

Path Parameters

connection_idstringrequired

The id returned by Create a Connection. Must belong to the account your API key is scoped to.

Response

connection_idstring

Unique identifier for the connection.

merchant_connection_idstring

Your internal label for this connection.

provider_idstring

The provider this connection belongs to.

statusstring

Current status.

flow_typestring

Always PAYIN.

payment_methodsstring[]

List of supported payment methods.

paramsobject[]

Echoed parameters. Sensitive values are masked as ***.

costsobject[]

Cost configuration for the connection.

created_atstring

ISO 8601 timestamp.

updated_atstring

ISO 8601 timestamp.

cURL
curl -X GET 'https://api.whitelabel.com/v1/connections/f1a3c4d5-7b8e-4a2c-9d1e-3f4a5b6c7d8e' \
  -H 'public-api-key: <YOUR_PUBLIC_KEY>' \
  -H 'private-secret-key: <YOUR_SECRET_KEY>'
200 OK — Stripe
{
  "connection_id": "f1a3c4d5-7b8e-4a2c-9d1e-3f4a5b6c7d8e",
  "merchant_connection_id": "stripe-us-prod-001",
  "provider_id": "STRIPE",
  "status": "ACTIVE",
  "flow_type": "PAYIN",
  "payment_methods": ["CARD", "GOOGLE_PAY", "APPLE_PAY"],
  "params": [
    { "param_id": "API_KEY",             "value": "***" },
    { "param_id": "PUBLISHABLE_KEY",     "value": "pk_live_..." }
  ],
  "costs": [
    {
      "sort_number": 1,
      "cost_name": "Transaction Fee",
      "currency": "USD",
      "cost_values": {
        "successful":   { "fixed_fee": 0.30, "percentage": 2.9 },
        "unsuccessful": { "fixed_fee": 0.0,  "percentage": 0.0 }
      }
    }
  ],
  "created_at": "2026-05-12T10:24:00Z",
  "updated_at": "2026-05-12T10:24:00Z"
}
404 Not Found
{
  "type": "not_found",
  "code": "CONNECTION_NOT_FOUND",
  "message": "Connection '...' was not found",
  "details": { "connection_id": "..." }
}

Errors

HTTPcodeWhen
401NOT_AUTHENTICATEDMissing or invalid API key.
404CONNECTION_NOT_FOUNDUnknown connection_id, or the id belongs to a different account.
GET/connections/{connection_id}

Returns a connection you previously created.

Path Parameters

connection_idstringrequired

Response

OK

connection_idstring
merchant_connection_idstring
provider_idstring
statusstring
flow_typestring
payment_methodsstring[]
paramsobject[]
Show params properties
param_idstring
valuestring
costsobject[]
Show costs properties
sort_numberinteger
cost_namestring
currencystring
created_atstring<date-time>
updated_atstring<date-time>

Unauthorized

typestring
codestring
messagestring

Not Found

typestring
codestring
messagestring
Request
curl -X GET "https://api-sandbox.whitelabel.com/v1/connections/<connection_id>" \
  -H "PUBLIC-API-KEY: <PUBLIC-API-KEY>" \
  -H "PRIVATE-SECRET-KEY: <PRIVATE-SECRET-KEY>"
Response
{
  "connection_id": "f1a3c4d5-7b8e-4a2c-9d1e-3f4a5b6c7d8e",
  "merchant_connection_id": "stripe-us-prod-001",
  "provider_id": "STRIPE",
  "status": "ACTIVE",
  "flow_type": "PAYIN",
  "payment_methods": [
    "CARD",
    "GOOGLE_PAY",
    "APPLE_PAY"
  ],
  "params": [
    {
      "param_id": "merchantAccount",
      "value": "ACME_LIVE"
    }
  ],
  "costs": [
    {
      "sort_number": 1,
      "cost_name": "Transaction Fee",
      "currency": "USD"
    }
  ],
  "created_at": "2026-05-12T10:24:00Z",
  "updated_at": "2026-05-12T10:24:00Z"
}