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
| Item | Value |
|---|---|
| API title | Capricorn Transaction Experience API |
| Asset name | exp-capricorn-transaction |
| API version | v1 |
| Specification format | Swagger 2.0 |
| Base URL | The published asset documents paths only. Use the environment-specific host supplied during Capricorn onboarding. |
| Correlation header | X-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.
| Header | Required | Type | Constraints | Description |
|---|---|---|---|---|
client_id | Yes | string | 32-character alphanumeric, pattern ^([A-Za-z0-9]){32}$ | Client application identifier issued during onboarding. |
client_secret | Yes | string | 32-character alphanumeric, pattern ^([A-Za-z0-9]){32}$ | Client application secret issued during onboarding. |
x-captoken | Yes | string | Published as a string header | Mandatory Capricorn authorization token supplied during onboarding. |
X-Correlation-ID | No | string | Pattern ^[0-9a-zA-Z(\-){}]+$, min length 1 | Optional 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
| Status | Type | Notes |
|---|---|---|
400 | CAP:BAD_REQUEST | Request validation failed. |
401 | CAP:UNAUTHORIZED | Client credentials are invalid. |
404 | CAP:NOT_FOUND | Returned only where the endpoint documents a not-found case. |
409 | CAP:DUPLICATE | Duplicate transaction submission detected by sourceTransactionReference. |
422 | CAP:UNPROCESSABLE_ENTITY | Business-rule or semantic validation failed. |
429 | n/a | Rate-limit response body is { "message": "Too Many Requests" }. |
500 | CAP:INTERNAL_SERVER_ERROR | Unexpected server-side failure. |
503 | CAP:SERVICE_UNAVAILABLE | Temporary backend/system outage. May include Retry-After in seconds. |
Endpoint catalogue
Retained endpoints
| Endpoint | Method and path | Description |
|---|---|---|
| Health | GET /health | Lightweight authenticated API health check. |
| Get Accounts | GET /accounts/{memberId} | Retrieve one member account by memberId. |
| Post Transaction (Deprecated) | POST /transaction | Submit a CapLink transaction for asynchronous processing. |
| Get Members | GET /members | Retrieve supplier and zone member details, with optional incremental filtering. |
| Payment Intent | POST /payment-intent | Create a payment intent for the E-Commerce Integration journey. |