Skip to main content

Enums

This page documents every enum used in the AccruPay GraphQL API. Pass enum values as plain strings in JSON variables (e.g. "USD", "PAYMENT").


TRANSACTION_ACTION

Describes the type of operation a transaction represents.

ValueDescription
PAYMENTA charge to a payment method
ADD_PAYMENT_METHODStoring a payment method without charging it
REFUNDReturning funds to a previously charged payment method
VOIDCanceling an authorized or pending transaction before capture
CREDITIssuing a credit to a payment method outside of a prior charge
CHARGEBACKA dispute-initiated reversal initiated by the cardholder's bank
MODIFICATIONModification of a previously authorized amount
AUTHORIZATIONReserving funds on a payment method without immediate capture
AUTHENTICATIONA 3DS or identity verification step without a payment
PAYOUTSending funds out to a payment method
SETTLECapture of a previously authorized amount
UNKNOWNAction type not recognized or not yet mapped

TRANSACTION_STATUS

Describes where a transaction is in its lifecycle.

ValueDescription
PENDINGCreated and waiting to be started
STARTEDProcessing has begun; awaiting provider response
SUCCEEDEDCompleted successfully
FAILEDProcessing completed but the transaction was not successful
DECLINEDDeclined by the payment provider or card network
CANCELEDCanceled by the merchant or customer before completion
EXPIREDSession or transaction timed out before completion
ERRORAn unexpected error occurred during processing
UNKNOWNStatus not recognized or not yet mapped

State transitions

PENDING → STARTED → SUCCEEDED
→ FAILED
→ DECLINED
→ CANCELED
→ ERROR
STARTED → EXPIRED
PENDING → CANCELED
tip

Poll or use webhooks for STARTED transactions. A STARTED transaction that is not resolved may transition to EXPIRED after a provider-defined timeout.

warning

FAILED, DECLINED, and ERROR are distinct. DECLINED means the provider or card network rejected the payment. FAILED means processing completed but was unsuccessful for a business reason. ERROR means an unexpected system error occurred.


CLIENT_TRANSACTION_SESSION_KIND

Describes how a client transaction session was initiated.

ValueDescription
CLIENTSession initiated from a client (browser/mobile) context
SERVERSession initiated from a server-side context

CLIENT_TRANSACTION_SESSION_STATUS

Describes the lifecycle state of a client transaction session. Sessions are short-lived and drive the payment UI flow.

ValueDescription
PENDINGSession created but not yet used
ACTIVESession is open and the customer is interacting with the payment UI
COMPLETEDSession completed; call the matching verify mutation to get the final transaction
CANCELEDSession was canceled before completion
DECLINEDSession was declined by the provider
EXPIREDSession timed out before the customer completed payment
ERRORAn error occurred during the session
UNKNOWNStatus not recognized or not yet mapped
note

COMPLETED does not mean the payment succeeded — it means the session flow finished. Always call the verify mutation and check the resulting transaction's status field.


PAYMENT_METHOD

The type of payment instrument.

ValueDescription
CARDCredit or debit card
ACHACH bank transfer (US only)
OTHERAny other payment method type not covered above

TRANSACTION_ACH_SECCODE

ACH Standard Entry Class codes. Only relevant for ACH transactions.

ValueDescription
CCDCorporate Credit or Debit — used for business-to-business payments
WEBInternet-initiated — used for consumer payments authorized online
TELTelephone-initiated — used for consumer payments authorized by phone
UNKNOWNSEC code not recognized or not yet mapped

PAYMENT_PLAN_STATUS

Describes the current state of a recurring payment plan.

ValueDescription
INITIALIZINGPlan is being set up with the provider
ACTIVEPlan is active and scheduled billing will continue
INACTIVEPlan exists but billing is paused or suspended
CANCELEDPlan was canceled; no further charges will occur
ENDEDPlan reached its natural end date or cycle limit
ERRORAn error occurred during plan setup or a billing cycle

PAYMENT_PLAN_TEMPLATE_STATUS

Describes whether a payment plan template is available for use.

ValueDescription
ENABLEDTemplate is active and can be used to create payment plans
DISABLEDTemplate is inactive and cannot be used to create new plans

CURRENCY

ISO 4217 currency codes. Common values:

ValueCurrency
USDUS Dollar
EUREuro
GBPBritish Pound Sterling
CADCanadian Dollar
AUDAustralian Dollar
JPYJapanese Yen

Any valid ISO 4217 three-letter code is accepted. Amounts are always in the smallest unit of the currency (cents for USD, pence for GBP, etc.).

tip

JPY and other zero-decimal currencies do not use minor units. An amount of 500 in JPY means ¥500, not ¥5.00. Check the currency's decimal places before sending amounts.


COUNTRY_ISO_2

ISO 3166-1 alpha-2 country codes. Common values:

ValueCountry
USUnited States
GBUnited Kingdom
CACanada
AUAustralia
DEGermany
FRFrance

Any valid ISO 3166-1 alpha-2 two-letter code is accepted.


TRANSACTION_PROVIDER

Provider values are integration-specific. See the Provider Integrations section in the sidebar (Nuvei, Stripe) for the list of accepted values for each payment provider you have configured.

note

TRANSACTION_PROVIDER values are not listed here because they depend on which providers are enabled for your merchant account. Contact AccruPay support or refer to your integration documentation for the exact values to use.