Skip to navigation

Connection configuration references

View as Markdown

References for configuring HTTP connections, including setup, request handling, and authentication types.

Connection configuration

Defines the base setup for the external HTTP service.

FieldDescription
Base URLThe API endpoint for all requests
AuthenticationAPI key, token, or credentials (stored securely)
Common HeadersHeaders applied to all requests

HTTP request configuration

Defines how the request is sent to the target API.

ParameterTypeRequiredDescription
httpMethodStringYesHTTP method (GET & POST)
urlPathStringNoPath appended to base URL
bodyStringNoRequest body (supports template variables)
headersListNoAdditional headers
parametersListNoQuery parameters
retriesIntegerNoNumber of retry attempts (default: 0)
timeoutInMillisIntegerNoTimeout (default: 30000 ms, max: 180000 ms)
capacityIntegerNoMaximum number of HTTP calls that this HTTP processor can execute in parallel per mediation context. Additional requests are queued until capacity is available. Valid values are 1-100. Default is 20.

Template Variables

You can dynamically reference values from events or secrets using the ${} syntax.

VariableExampleDescription
${event.customerId}/customers/${event.customerId}Pulls value from input event
${secrets.apiKey}"Bearer ${secrets.apiKey}"Inserts secure API key from secrets

If a template variable in the HTTP request configuration (body, headers, or parameters) references a missing or invalid JSONPath (for example, ${event.invalid}), the HTTP processor does not throw an error. Instead, the resolved value is sent as an empty string in the outbound request. The event continues downstream without failure, and no error is recorded in the audit trail. To avoid unexpected behavior, validate all JSONPath expressions and ensure the referenced fields exist in the incoming event before deploying the pipeline.

Example

{
"urlPath": "/customers/${event.customerId}",
"headers": [
{ "key": "Authorization", "value": "Bearer ${secrets.apiKey}" }
]
}

HTTP output configuration

Controls how response data is added to the output event.

ParameterTypeDefaultDescription
Pass on event in case of errorBooleanfalseContinue pipeline execution even if the HTTP call fails
Fields To AppendList-Maps response JSON fields to output event fields
responseSampleString (JSON)-Sample JSON response used to configure responseToOutputMapper. When Use sample response for test run is enabled and the meter runs in Test Mode, this JSON is also used as the mock response body instead of the real HTTP response.
skipHttpCallsInTestModeBooleanfalseWhen true and the meter is run in Test Mode, the HTTP processor does not make an outbound HTTP request. Instead, it returns the responseSample JSON as the response payload and applies responseToOutputMapper to that sample. In normal (non-test) runs, this flag is ignored and the HTTP processor always calls the real endpoint.

Example

"responseToOutputMapper": [
{ "field": "customerName", "jsonPath": "$.name" },
{ "field": "customerTier", "jsonPath": "$.tier" }
]

Supported authentication types

Zuora currently supports the following authentication types for HTTP connections:

ParameterDescription
Basic AuthUses a username and password encoded in the HTTP header
Bearer Token AuthUses a bearer token (example: Authorization: Bearer <token>)
No AuthSends requests without authentication (for open/public APIs)
OAuth 2.0Uses a managed HTTP connection. Configure the OAuth settings in the connection, then reference that connection from the HTTP processor. Supports Grant Type, Client ID, Client Secret, Token Endpoint, and Scopes. At runtime, Zuora Mediation uses the managed connection to retrieve or refresh the access token and add the required authorization header automatically.