Skip to main content

Capricorn Transaction Experience API Overview

The Capricorn Transaction Experience API provides the endpoints used for Capricorn Direct Integration and E-Commerce Integration solutions.

API basics​

ItemValue
API titleCapricorn Transaction Experience API
Asset nameexp-capricorn-transaction
API versionv1
Specification formatSwagger 2.0
Base URLThe published asset documents paths only. Use the environment-specific host supplied during Capricorn onboarding.
Correlation headerX-Correlation-ID (optional, recommended for troubleshooting and support investigations)

How this reference is organised​

  • Overview explains authentication, common error behaviour, and the published endpoint catalogue for this API.
  • One page per endpoint gives the request headers, URI/query parameters, request body, code examples, and response details for that specific operation.

Authentication​

Every endpoint in this asset is protected by the client_id_secret security scheme.

HeaderRequiredTypeConstraintsDescription
client_idYesstring32-character alphanumeric, pattern ^([A-Za-z0-9]){32}$Client application identifier issued during onboarding.
client_secretYesstring32-character alphanumeric, pattern ^([A-Za-z0-9]){32}$Client application secret issued during onboarding.
x-captokenYesstringPublished as a string headerMandatory Capricorn authorization token supplied during onboarding.
X-Correlation-IDNostringPattern ^[0-9a-zA-Z(\-){}]+$, min length 1Optional client-supplied correlation identifier. If omitted, the service can generate one for tracing and support.

Every currently documented endpoint page in this reference requires the x-captoken header.

Correlation identifiers​

Suppliers can send a correlation identifier in the optional X-Correlation-ID request header. If omitted, the service can generate one. When returned, the identifier may appear in an X-Correlation-ID response header or as correlationId in the response body; availability varies by endpoint and response.

Retain the available correlation values for troubleshooting and support. If the values differ, provide each one when raising an issue. An x-transaction-id, when returned, is a separate transaction identifier, not a replacement for the correlation ID.

Standard error format​

Unless a response is explicitly documented otherwise, error responses use this shape:

{
"error": {
"type": "CAP:XXX",
"description": "human readable category",
"message": "detailed message"
}
}

Common error responses​

StatusTypeNotes
400CAP:BAD_REQUESTRequest validation failed.
401CAP:UNAUTHORIZEDClient credentials are invalid.
404CAP:NOT_FOUNDReturned only where the endpoint documents a not-found case.
409CAP:DUPLICATEDuplicate transaction submission detected by sourceTransactionReference.
422CAP:UNPROCESSABLE_ENTITYBusiness-rule or semantic validation failed.
429n/aRate-limit response body is { "message": "Too Many Requests" }.
500CAP:INTERNAL_SERVER_ERRORUnexpected server-side failure.
503CAP:SERVICE_UNAVAILABLETemporary backend/system outage. May include Retry-After in seconds.

Endpoint catalogue​

Retained endpoints​

EndpointMethod and pathDescription
HealthGET /healthLightweight authenticated API health check.
Get AccountsGET /accounts/{memberId}Retrieve one member account by memberId.
Post Transaction (Deprecated)POST /transactionSubmit a CapLink transaction for asynchronous processing.
Get MembersGET /membersRetrieve supplier and zone member details, with optional incremental filtering.
Payment IntentPOST /payment-intentCreate a payment intent for the E-Commerce Integration journey.