CPAPI calls
Candidate preview. This page describes the candidate Canonical Provider API v1 contract, candidate manifest SHA-256 c85d92a38cd495f7d8a0cf1b5d4b0c2783abdd90f3c51d4827ca24e24d11ea0e. It is non-normative: it explains the contract and does not define it.
Two kinds of traffic cross CPAPI. We call your Control API to open and look up game sessions; your server calls our Money API to read balances and settle bets and wins. Both carry signed JSON, as CPAPI signatures describes. Identifiers on both sides, such as tenant_id, game_id, session_id, provider_session_ref, player_ref, transaction_id, round_id and provider_transaction_ref, must match ^[A-Za-z0-9._:-]{1,128}$: 1 to 128 ASCII letters, digits, ., _, : or -.
Calls you answer
Section titled “Calls you answer”We call your registered origin. Answer each call within 5 seconds: certification and production checks wait no longer, and a player launch waits 10. Our session requests carry compact JSON with sorted member names, and our GET calls send no Content-Type. Answer with uncompressed JSON: our calls send Accept-Encoding: identity and refuse a compressed answer, so check that a CDN in front of your API does not compress it. We do not follow redirects, and we refuse an answer larger than 8192 bytes.
| Call | What it does | Your answer |
|---|---|---|
POST /v1/sessions |
Opens a session for one player and game | 201 with the session, state active |
GET /v1/sessions/{session_id} |
Reads a session | 200 with the session |
GET /v1/session-recovery |
Finds the session for an Idempotency-Key whose 201 we never received |
200 with the session, or 404 session_invalid for an unknown key |
A session request looks like this; locale is optional:
{ "tenant_id": "…", "integration_id": "…", "environment": "certification", "game_id": "…", "player_ref": "…", "currency": "EUR"}tenant_id is the operator’s organization ID on our side, integration_id is your studio’s provider code on our side, and locale is the lang of the operator’s launch request (default en, up to 5 characters), trimmed and lowercased, so en-US arrives as en-us: treat it as a hint. game_id is the provider_game_id from your catalog, which must match the identifier pattern above, and player_ref is a pseudonymous player reference, never personal data. Keep tenant_id, integration_id, player_ref and the currency with the session: your Money calls for it repeat them. We do not promise that a player_ref is unique across operators, so key a player by tenant_id and player_ref together.
For an ordinary session, answer with JSON that has session_id, state, environment and launch_url, plus provider_session_ref if you have one, and no other fields. session_id and provider_session_ref must match ^[A-Za-z0-9._:-]{1,128}$. For example:
{ "session_id": "…", "state": "active", "environment": "certification", "launch_url": "https://play.example.com/…", "provider_session_ref": "…"}environmentrepeats the environment of the request.stateisactiveon a new session; a read can also returnexpiredorclosed.launch_urlishttps, on one of your launch domains, at most 2048 bytes, with no user name, IP address or fragment. Write the host in lowercase and put a path of at least/before any query:https://play.example.com/?s=1works, whilehttps://play.example.com?s=1andhttps://Play.example.com/fail the launch. We hand it to the player and never fetch it ourselves.
Session requests and recovery lookups carry an Idempotency-Key of 1 to 255 visible ASCII characters without spaces; store and compare it exactly as received. A repeat with the same key and body must return the same session unchanged, and the same key with a different body gets 409 idempotency_fingerprint_conflict with no effect. When we lose your 201, we look the session up through GET /v1/session-recovery instead of launching again, so keep each key with the session it created.
Before we call you
Section titled “Before we call you”We open sessions only for titles in your published catalog, and we refuse a launch from a country in the title’s blocked_countries before we call your API. Bet limits are different: min_bet and max_bet in your catalog are information for operators, and our Money API does not check bets against them, so your game enforces its own bet limits.
If your API answers a session request with anything other than 201, or with a 201 whose body breaks the rules above, the launch fails: the operator gets 503 launch_outcome_unresolved, and your problem does not reach the player. A retry of that launch with the same launch key only looks the session up through GET /v1/session-recovery, so answer it with 404 session_invalid for a key you refused; a launch with a new key sends a new session request.
When a betting session expires
Section titled “When a betting session expires”When an operator opens an ordinary or Sweepstakes CPAPI game session for a player, it accepts new bets for 24 hours from opening. Bets do not extend that window. A session opened under the previous one-hour limit keeps its original deadline. Remove any one-hour timer in your game that stops new bets. The Control request omits the deadline and policy version. Record when you first receive the signed session create request and keep that time across retries and recovery.
At expiry, a new bet gets 404 session_invalid. Ask the player to reopen the game from the operator’s site. If your integration already has a return-to-lobby action, you can offer it here. The operator opens a new session for the same player_id with a new Idempotency-Key. Answer the new Control request with a fresh session_id, unique across all operators in that environment. Return the original session receipt only on a retry or recovery of the original launch.
Use the committed bet’s original session_id to settle a win. An eligible refund also uses the original session. Follow the ordinary refund rules for fiat or crypto, or the US Sweepstakes rules for SC or GC. To replay a completed transaction, use its original session, transaction ID, key and body. Reusing a session ID for a different launch by the same operator fails the launch. Reusing it across operators makes Money calls fail with 403 session_binding_mismatch.
US Sweepstakes profile
Section titled “US Sweepstakes profile”The optional candidate profile cpapi-sweepstakes.v1 lets your studio serve US Sweepstakes operators in English with Social Coins (SC) or Gold Coins (GC). Each coin uses 100 minor units and its own balance. In the v1 catalog title, include the offered coin codes in supported_currencies and sc_en in languages. Add the studio’s actual English social build revision as a lowercase SHA-256 digest.
{ "profile": "cpapi-sweepstakes.v1", "build_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "countries": ["US"]}The example is the value of the title’s sweepstakes field. Operators can launch the title only while Support Sweepstakes Mode is on for your studio. An owner or admin turns it on under Organization > Company.
While your studio is live, publishing a title with this profile in your current catalog offers it to every US Sweepstakes operator. Each operator that selects the title and turns your studio on can launch it. Aggregator records no per-title approval and cannot limit a title to some operators, brands or US states. Publish the profile only for builds whose rights cover every US Sweepstakes operator. Your catalog serves both environments. A new catalog applies to new launches at once, including a new build_sha256. To stop offering a title, publish a catalog that leaves it out, or that drops its profile together with SC, GC and sc_en. A title with the profile cannot list US in blocked_countries. Turning off Support Sweepstakes Mode stops all of your Sweepstakes titles. Open sessions settle in their original coin.
A Sweepstakes operator lists the titles it selected from the studios it turned on with GET /v1/games?country=US¤cy=SC, using its organization’s API keys. The operator can filter by your registered provider code, then use the returned game UUID in POST /v1/sessions with lang: "sc_en", country: "US" and the selected coin. CPAPI titles require the canonical sc_en locale.
On signed Control create, the platform sends mode: "sweepstakes", locale: "sc_en", currency and build_sha256 alongside the ordinary tenant, integration, environment, game and player fields. Echo those four values on create and recovery. The active launcher must serve the identified build. Ordinary and demo sessions retain their own request shapes.
Your server signs balance, bet, win and refund requests to the platform using its Money credential. For a 1.23 SC bet, send "amount": {"currency": "SC", "amount_minor": 123}. A full refund uses POST /v1/transactions/refund, its own transaction_id and idempotency key, and the original CPAPI bet’s ID in bet_transaction_id. Match the original amount, coin, tenant, integration, environment, session, player and round. The platform resolves that bet’s operator wallet debit. The operator callback carries action=REFUND, transaction_type=refund, reference_transaction_type=bet and the original wallet debit ID in reference_transaction_id.
A refund that cannot prove a committed original, including an unknown bet, a partial amount or a different session, returns 403 session_binding_mismatch. A new refund ID and key for a bet already refunded returns 409 transaction_key_conflict. Reusing the same key with a different body returns 409 idempotency_fingerprint_conflict. A win with an unknown bet retains its 409 unknown_bet_reference response. A definitively declined refund replays its decline and the original bet can still receive a win. An unresolved refund keeps a later win blocked. A known successful replay returns the original receipt. An uncertain outcome requires a status read using the same transaction ID. The signed profile covers cross-coin and duplicate-refund refusals. Qualify the exact game build with both independent test wallets, as CPAPI certification describes. Profile OpenAPI · Wire schemas · Coin registry · Artifact digests.
Ordinary bet refunds
Section titled “Ordinary bet refunds”The optional cpapi-refund.v1 module lets your studio cancel one full fiat or crypto bet. Arrange enablement for your studio and environment with your integration contact, then open a new session. A session keeps the refund eligibility it had when it opened. For SC and GC, use the US Sweepstakes profile.
Send POST /v1/transactions/refund to the Money origin for that environment. Give the refund its own transaction_id and Idempotency-Key. In bet_transaction_id, send the studio’s original bet ID. Copy the bet’s tenant, integration, environment, player, session, round, currency and full amount. Sign the exact JSON bytes using the Money signature profile.
For example, to refund a 1.50 EUR certification bet named bet-17, save this request and a new key such as refund-key-42 before the first attempt.
{ "tenant_id": "operator-example", "integration_id": "studio-example", "environment": "certification", "player_ref": "player-example", "session_id": "session-example", "round_id": "round-example", "transaction_id": "refund-42", "bet_transaction_id": "bet-17", "amount": { "currency": "EUR", "amount_minor": 150 }}A new refund that needs a wallet credit must reach the platform within seven days of its receipt of the original bet. An admitted refund can finish after that deadline. The separate 24-hour betting window governs new bets. Keep the refund on the original session.
- Committed, with no active or committed win and no other refund. The wallet receives the refund. A terminal
201includes the balance receipt. A definitively declined win also permits a refund if the other conditions hold. - Missing or never sent to the wallet. The refund commits with
unknown_originaland moves no money. A later attempt at that bet ID gets409 transaction_key_conflict. Its status isdeclined,terminal, with reasonrefunded. - Declined by the wallet. The refund commits with
original_declinedand moves no money. A repeat of either no-money refund can return the current balance. - Still in flight during its first 60 seconds.
409 unknown_bet_reference. No refund was recorded. Retry the same request after backoff. - Wallet outcome unknown. A verified wallet can reverse an actual debit once or keep the balance unchanged and refuse a late bet. If that wallet has not been verified for this session, the request gets
403 session_binding_mismatchbefore admission. Contact support with both IDs. - Active or committed win, or another refund for the same bet.
409 transaction_key_conflict. Check the recorded transaction and reconcile the conflict.
A session opened without the module gets 400 validation_failed. A partial amount, a mismatched binding, a reference to an operation other than a bet, or a new monetary refund outside the seven-day window gets 403 session_binding_mismatch. A changed command with the same key gets 409 idempotency_fingerprint_conflict. Keep the original ID and key for recovery.
Recovering an ordinary refund
Section titled “Recovering an ordinary refund”After a timeout or 500 internal_error, read GET /v1/transactions/{transaction_id} using the refund ID. For the example, read /v1/transactions/refund-42.
committedordeclined,terminal. Record the decision even if the POST returned no balance receipt. A first confirmed wallet refusal givesdeclinedwithwallet_refusedand keeps wins on that bet blocked. If the wallet omitted a valid balance, even an exact repeat POST returns500. Use the terminal GET.pending, non-terminal. Keep the refund open and check again with backoff. It can be waiting for its first wallet delivery, a scheduled retry, or finalization of a recorded wallet answer. Resume with the original ID, key and body, signed with a fresh nonce.indeterminate. Stop submitting the refund. Keep the round open and contact support with the refund ID and original bet ID to reconcile the wallet entry. Wins on the bet remain blocked.404 transaction_not_foundafter an uncertain POST. Send the saved request again with the same ID, key and body and a fresh nonce.
A wallet 5xx or a connection lost before response headers can trigger redelivery of the same wallet request and ID. If a later attempt is refused, a previous attempt may already have credited the player. An unreadable success response, a redirect, a wallet 4xx other than a first confirmed 402, or exhausted attempts leaves the refund open for reconciliation. Keep a single refund ID throughout. Module OpenAPI · Wire schemas · Signing vectors · Artifact digests.
Optional demo play
Section titled “Optional demo play”Studios that offer virtual play can implement the optional cpapi-demo.v1 Control module. Your studio provides the virtual balance and display units and runs the game in demo mode. An operator opens it through the existing operator endpoint with game_id, or from the operator cabinet in production. A demo session has no player account, real currency, wallet or Money callbacks.
The platform calls the registered Control origin with its usual environment-bound key. Implement all three operations.
| Operation on your server | Successful response | Signed fields beyond method, authority and path |
|---|---|---|
POST /v1/demo-sessions |
201 with the active receipt |
Body digest, then Idempotency-Key |
GET /v1/demo-session-recovery |
200 with the receipt recorded for this exact key |
Idempotency-Key |
GET /v1/demo-sessions/{demo_session_id} |
200 with the current receipt for this demo |
None |
The create command contains five required fields. An optional locale carries the operator’s language code exactly as the operator sent it, up to 64 characters.
{ "module": "cpapi-demo.v1", "demo_session_id": "502732fc-489a-4261-92ba-a7972c33d142", "integration_id": "your-provider-code", "environment": "certification", "game_id": "your-game-id"}Echo those five fields in the receipt, but not locale, and add no fields beyond the ones below. Add state, expires_at and, while active, an HTTPS launch_url on one of your registered launch hosts. Use a UTC timestamp ending in Z with at most six fractional digits. Return an expiry within 15 minutes of the original issue time. A ten-minute expiry leaves room for network transit. Serve the game only while the launch token is valid. When the demo expires or closes, return expired or closed and omit the URL. Answer all three operations with Content-Type: application/json.
Bind the request to the integration and environment of the verified Control key. Store each exact key and typed command atomically. An active replay returns the same receipt. A conflicting command returns 409 idempotency_fingerprint_conflict. A replay of a terminal demo returns 409 idempotency_window_expired. Recovery and status return the registered 404 session_invalid problem for an absent demo in the authenticated scope. After an uncertain create, the platform checks the original signed key. Keep demo IDs and launcher credentials in dedicated demo storage.
To switch demos on, find Demo play among the environment’s keys on Credentials and choose Enable demos; in production this asks for an authenticator code. Demos need an API URL at the root of an HTTPS host, at least one launch domain and an active Control key, and the setting applies to the endpoint and Control key current at that moment. Declare "has_demo": true explicitly on each eligible game in the current catalog. After you change the endpoint or rotate or revoke the Control key, demos stay off until you choose Enable demos again; your has_demo flags stay as published. In certification, demos open once you enable them; in production, only while your studio is live. Certification does not test the demo module, so check your three operations yourself before you enable demos: checkDemoModule in @aggregator-gg/cpapi-conformance runs them against your certification endpoint. Download the OpenAPI contract, signing vectors and SHA-256 manifest.
Calls you make
Section titled “Calls you make”In production your server calls our Money API at https://api.aggregator.gg, so the @authority you sign is api.aggregator.gg. Every call is signed, and a call with a body sends uncompressed JSON with Content-Type: application/json.
| Call | Purpose | Idempotency-Key |
|---|---|---|
POST /v1/balance |
Reads the player’s balance for a session | Not needed |
POST /v1/transactions/bet |
Places a bet | Required |
POST /v1/transactions/win |
Settles a win for a bet | Required |
POST /v1/transactions/refund |
Refunds a full bet under the applicable ordinary or Sweepstakes profile | Required |
GET /v1/transactions/{transaction_id} |
Reads a transaction’s recorded outcome | Not needed |
Our Money API refuses calls outside these limits:
- A body larger than 8192 bytes gets
400validation_failed. - A call with a body and a
Content-Typeother thanapplication/json, optionally withcharset=utf-8, gets400validation_failed. - A
Content-Encodingheader of any kind, or aHostother thanapi.aggregator.gg, gets401invalid_signature. - Too many calls at once get
429rate_limited. Each of our API processes handles 8 Money calls at a time across all studios, and the answer has noRetry-Afterheader: keep your own calls few in parallel, and retry after a backoff with jitter. - We answer within 15 seconds. A bet or win we cannot finish in time gets
500internal_error, withstatus_urlonce we have read itstransaction_id; set your client timeout above 15 seconds, and after a timeout readGET /v1/transactions/{transaction_id}before any retry.
A bet looks like this:
{ "tenant_id": "…", "integration_id": "…", "environment": "live", "session_id": "…", "player_ref": "…", "transaction_id": "…", "round_id": "…", "amount": { "currency": "EUR", "amount_minor": 100 }}session_idis thesession_idyour API returned for the session.tenant_id,integration_id,environment,player_refand the currency of the amount must match that session exactly; otherwise the call is refused with403session_binding_mismatchbefore any balance is read or any money moves.transaction_ididentifies one money movement, never a round or a session, and stays the same across retries. Keep it unique across all operators in an environment, for example a UUID: the status call names no operator, and an ID you used for two operators gets403session_binding_mismatchthere.round_idcorrelates a bet with its win. CPAPI v1 does not enforce round rules such as one open round per session. Today we accept several bets in one round and several wins for one bet, each with its owntransaction_id, and we do not compare a win’sround_idwith its bet’s: keep them consistent yourself.- A win also names its bet in
bet_transaction_id. - Optional fields are
provider_transaction_ref, your own reference, andoccurred_at, an RFC 3339 send time.occurred_atis not part of the call’s identity, so a retry may stamp it again.
A balance request carries tenant_id, integration_id, environment, session_id, player_ref and currency. The answer is 200 with the player’s current balance in the session’s currency; the contract also allows an optional as_of, which our API does not return today:
{ "balance": { "currency": "EUR", "amount_minor": 125000 } }A balance we cannot read from the operator’s wallet gets 500 internal_error; read it again after a backoff. The balance request has the same identity checks as a bet, so a mismatch gets 403 session_binding_mismatch.
Money and outcomes
Section titled “Money and outcomes”Every amount is an object such as {"currency": "EUR", "amount_minor": 1250}: a whole number of the currency’s minor units from 0 to 9007199254740991, written as a plain JSON integer. Quoted numbers, decimals, exponents, a leading +, leading zeros and negative values are refused with a 400 problem before anything else happens: malformed_money, or malformed_json when the number is not valid JSON at all or any integer in the body is outside -9007199254740991 to 9007199254740991.
- The minor unit follows our currency registry: for example 2 decimal places for
EUR,USDandTRY, 0 forJPY, 8 forBTC, 9 forETH, so{"currency": "BTC", "amount_minor": 1}is 0.00000001 BTC. The ordinary CPAPI Money contract requires three capital letters: list only such codes in your catalog, because a launch in a registry code such asUSDTorUSDCfails although publishing accepts it. Publishing refuses a code our registry does not have. - A bet is at least 1. A win can be 0: a zero win commits with no money moved.
- A win names a committed bet of the same session in
bet_transaction_id. A win whose bet we cannot see yet is refused with409unknown_bet_referenceand no effect; send the same win again later, unchanged, and it commits once. A win that names another session’s bet gets the same409unknown_bet_referenceand no effect, but that bet never becomes visible to this session: stop retrying such a win, because resending it cannot succeed. - A bet or win answers
201withtransaction_id,outcome,outcome_finalityand the resultingbalance.outcomeiscommittedordeclined, andoutcome_finalityisterminal. A decline is a normal answer, not an error: it carriesoutcome_reason, and moves no money. A wallet decline for insufficient funds carriesoutcome_reasoninsufficient_funds. A bet already closed by an ordinary refund can instead showrefundedon its status. If the wallet answers with any status other than 200 or 402, answers 200 in a form we cannot read, or does not answer within 5 seconds, the call gets500internal_errorand the status call showsindeterminate. We do not send it to the wallet again, and today it does not resolve on its own: keep the transaction and send itstransaction_idto support@aggregator.gg.
{ "transaction_id": "…", "outcome": "committed", "outcome_finality": "terminal", "balance": { "currency": "EUR", "amount_minor": … }}A 500 internal_error can also follow a recorded terminal outcome when the required balance receipt is missing or invalid. Read the transaction status after a 500: a committed or declined result with outcome_finality: terminal is authoritative, even without a balance receipt. Apply the recovery rules below when status reports pending or indeterminate. Never repeat a completed operation under a new transaction_id.
GET /v1/transactions/{transaction_id} returns transaction_id, amount, the recorded outcome and outcome_finality, and outcome_reason where it applies. Use a terminal committed or declined outcome to settle the round. For an ordinary refund, follow refund status and recovery. For a non-terminal bet or win, keep the original transaction_id, Idempotency-Key and body. A status read reports the state at the moment of the read. An earlier request may still be in flight.
pendingwith nooutcome_reason. At the time of the read, the call was waiting for its first wallet dispatch. While the session is known to accept bets, you can retry that same bet. Once the session expires, stop submitting bets on it. If an earlier attempt timed out, read the original transaction again with backoff. A singlependingread cannot tell you whether the wallet subsequently received the bet.pendingwithoutcome_reason: finalization_pending. We have recorded the wallet’s answer. An exact retry with the original identity, body and a fresh nonce can finish recording the outcome, including after expiry.indeterminate. We started the wallet call and have no usable answer yet. A later read can see its outcome. Repeating the POST cannot send it to the wallet again. A win referencing an unconfirmed bet gets409unknown_bet_reference.
After a timeout, poll the original transaction with backoff for a bounded period. If the result remains unresolved, keep the round open for reconciliation and send its original transaction_id to support@aggregator.gg. The player can relaunch for new bets. Keep the old bet on its original session and submit its win there only after the bet is confirmed committed. For a bet at or near expiry, follow the status checks below.
A win refused with unknown_bet_reference is not recorded, so a status read for it gets 404 transaction_not_found. The contract also defines recorded_at and the outcomes reconciliation_required and reconciled_declined_remainder; our API does not return them today, but accept them if they appear.
Checking a bet across the session lifetime change
Section titled “Checking a bet across the session lifetime change”If you cannot establish which deadline applies to an unresolved bet, keep its original transaction ID and read GET /v1/transactions/{transaction_id} with backoff. Use 24 hours from the first time your server received that session’s signed create request as an upper bound. The platform reserved the session before sending the request. A retry or recovery keeps the original clock.
At expiry, switch to status reads for an unresolved bet. After the deadline the platform cannot authorize a new first dispatch to the wallet. A previously authorized attempt can still be in flight when the read returns pending with no outcome_reason. Even after the 24-hour bound, that response leaves the financial outcome open.
Apply a terminal outcome as recorded. A fresh 200 showing pending with outcome_reason finalization_pending confirms that the wallet has answered. Even after expiry, resend the original bet with the same ID, key and body to finish recording that answer without another debit. For a timed-out or possibly in-flight bet with no recorded wallet answer, keep using status reads with the original ID. If the first receipt time is missing, status is unavailable, or reads remain pending without a reason, indeterminate or reconciliation_required, contact support@aggregator.gg with the original ID to reconcile before settling the round.
Retries and recovery
Section titled “Retries and recovery”Bets, wins and refunds carry an Idempotency-Key header of 1 to 255 characters. It is not part of the signature. Sign every retry again with a new nonce: the same signed bytes sent twice get 401 replayed_nonce, even when the key and body are unchanged.
| You send | You get |
|---|---|
| The same key and the same body again | The recorded outcome, with no second effect |
| The same key with a different body | 409 idempotency_fingerprint_conflict, no additional effect; the original call may already have completed |
| The same transaction with a new key | 409 transaction_key_conflict; recover through the status call, never with more new keys |
The comparison of bodies leaves out occurred_at. After a timeout, never retry blindly: read GET /v1/transactions/{transaction_id} first, and when you do retry, reuse the same transaction_id and the same Idempotency-Key. Problems for a bet or win carry status_url, the path of its status call, once we have read its transaction_id. A refused call is not always recorded, so that status call can answer 404 transaction_not_found.
A status read that gets 404 transaction_not_found found no record at the time of the read. An earlier POST may still arrive. For a win against a committed bet, or a bet in a session known to accept new bets, an exact retry uses the original transaction_id, Idempotency-Key and body with a fresh nonce. When the bet’s session has expired or may have expired, use status reads for that bet and follow the status checks above. Never give the old bet a new ID on the new session.
| Window | Length |
|---|---|
| Replay of a session request by the same key | 60 seconds; after that, recovery goes through GET /v1/session-recovery |
| Nonce memory | 24 hours |
| Idempotency of a finished bet or win | Kept with no end today. The contract lets us end it after 7 days, and a later call with that key would then get 409 idempotency_window_expired; we do not return that problem today |
Problems
Section titled “Problems”Errors on both APIs are RFC 9457 problem JSON (application/problem+json) with type, title, status, code, requirement_id and retry_class. retry_class says what to do next: never means do not retry, poll_status means read the transaction status, and after_backoff means try again later. The problem schema also lists same_key, which no code in the registry uses yet; treat it, like any class you do not recognize, as never. Business declines are outcomes, not problems.
code |
Status | type |
requirement_id |
retry_class |
Meaning |
|---|---|---|---|---|---|
invalid_signature |
401 | invalid-signature |
CPAPI-SEC-001 |
never |
The signature does not verify |
expired_signature |
401 | expired-signature |
CPAPI-SEC-003 |
never |
The signature is outside its validity window |
replayed_nonce |
401 | replayed-nonce |
CPAPI-SEC-003 |
never |
The nonce was already used |
unknown_keyid |
401 | unknown-keyid |
CPAPI-SEC-004 |
never |
The signing key is unknown |
revoked_key |
401 | revoked-key |
CPAPI-SEC-004 |
never |
The signing key is revoked |
wrong_environment_credential |
403 | wrong-environment-credential |
CPAPI-SEC-005 |
never |
The key or tag belongs to the other environment. A certification key signed with the certification tag but sent for a live session is refused with 403 session_binding_mismatch or 404 session_invalid instead |
session_binding_mismatch |
403 | session-binding-mismatch |
CPAPI-MONEY-006 |
never |
The identity in the call does not match the session |
malformed_money |
400 | malformed-money |
CPAPI-MONEY-001 |
never |
A money value is not a plain integer in range |
validation_failed |
400 | validation-failed |
CPAPI-WIRE-002 |
never |
The request does not match the schema |
malformed_json |
400 | malformed-json |
CPAPI-WIRE-006 |
never |
The body breaks the I-JSON rules, for example a member name appears twice |
idempotency_fingerprint_conflict |
409 | idempotency-fingerprint-conflict |
CPAPI-IDEMP-003 |
never |
The key was used with a different body |
transaction_key_conflict |
409 | transaction-key-conflict |
CPAPI-CONF-001 |
poll_status |
The transaction is already known under another key |
idempotency_window_expired |
409 | idempotency-window-expired |
CPAPI-IDEMP-005 |
poll_status |
The key’s idempotency window has ended. Reserved: not returned today |
unknown_bet_reference |
409 | unknown-bet-reference |
CPAPI-MONEY-007 |
after_backoff |
The win’s bet is not visible yet, or an ordinary refund references a bet still in flight |
session_invalid |
404 | session-invalid |
CPAPI-CONF-001 |
never |
The session is unknown, expired or not addressable by your integration |
transaction_not_found |
404 | transaction-not-found |
CPAPI-DOM-001 |
never |
The transaction is unknown to your integration and environment |
rate_limited |
429 | rate-limited |
CPAPI-OPS-002 |
after_backoff |
Too many requests |
internal_error |
500 | internal-error |
CPAPI-RECON-002 |
poll_status |
A fault on our side; after a possible effect, check status before any retry |
type is the registry type shown or a URI that ends with it. Your Control API refuses our bad calls with the same problem shape and the same type, requirement_id and retry_class as this table; CPAPI signatures lists the five problems certification expects from it.