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

PAYMENT_METHOD_STATUS

State of a stored payment method.

ValueDescription
ENABLEDUsable for charges
DISABLEDNot usable (disabled locally or by the provider)
EXPIREDExpired (e.g. card past its expiration date)

MERCHANT_TRANSACTION_PROVIDER_STATUS

State of a connected provider configuration.

ValueDescription
ENABLEDProvider connection is active and routable
DISABLEDProvider connection is inactive

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

ENTITY_TYPE

Account holder type for ACH transactions.

ValueDescription
INDIVIDUALThe bank account holder is a person
COMPANYThe bank account holder is a business

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

CUSTOMER_RESOLUTION_STRATEGY

Controls how merchantApiCustomerResolve (and customer selectors elsewhere) match or create a customer from the provided identifiers.

ValueDescription
AUTOResolve based on the provided identifiers and metadata. Internal IDs and provider codes are prioritized. Throws if the provided identifiers do not match.
MATCH_OR_CREATEMatch on the provided identifiers and metadata; if not found, create a new customer with the provided data.
MATCH_OR_FAILMatch on the provided identifiers and metadata; if not found, throw an error.
STRICTResolve on the provided identifiers only (e.g. id, providerCode); no metadata is used. Throws if not found.

CUSTOMER_STATUS

Status of a customer record relative to the connected provider.

ValueDescription
ENABLEDCustomer is active with the provider
DISABLEDCustomer is disabled with the provider
ERRORThe last provider sync or verification errored
UNKNOWNStatus not recognized or not yet mapped

CURRENCY

Supported ISO 4217 currency codes. This is a fixed enum — only the values below are accepted.

ValueCurrency
USDUS Dollar
EUREuro

Amounts are always in the smallest unit of the currency (cents for USD and EUR).


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

The payment provider type.

ValueProvider
NUVEINuvei
STRIPEStripe
note

The enum accepts both values, but a provider only works once it is configured and enabled for your merchant account (each connection is a MerchantTransactionProvider). Passing a provider you have not enabled fails provider resolution. See Provider Integrations.


DEVICE_TYPE

Device classification for the optional device object on payment and session inputs.

ValueDescription
DESKTOPDesktop computer
SMARTPHONESmartphone
TABLETTablet
TVTelevision / set-top device
UNKNOWNDevice type not determined