Cycle Logo

Direct API Reference

A detailed reference for transaction statuses and error codes for the Cycle Direct API.

Payment & Order Status

The top-level state that a transaction can be in.

TypeDescription
AUTHORIZE_PENDINGA request for an AUTH has happened, but we are waiting for the status to be determined
AUTHORIZEDA request for an AUTH has completed, the funds can now be captured (CHARGE)
CHARGE_PENDINGA charge request is awaiting a response from the PSP
AUTH_REVERSEDA transaction was voided by the merchant (auth, pending charge, pending refund, pending credit), or an AUTH timed out.
CANCELLEDA charge was cancelled by the customer after redirecting to the PSP site, but before the charge
DECLINEDA charge/credit was declined by our fraud system, or the PSP
ERRORA charge/credit request had a technical error before being charged
CHARGEDA charge was successful. Note that partially refunded, or pending refunded charges are in CHARGED state until they are fully refunded
REFUND_PENDINGA refund (for the full remaining amount of the charge) has been initiated but not completed
REFUNDEDA charge has been fully refunded
CHARGEBACK_PENDINGA chargeback has been initiated by the PSP, and has not been accepted or disputed yet
CHARGED_BACKA charge was chargedback by the PSP
CHARGEBACK_REVERSEDA chargeback has been successfully disputed and reversed
CREDIT_PENDINGA credit is awaiting a response from the PSP
CREDITEDA credit is complete

Hard Decline Codes

Hard declines are responses with an HTTP status code other than 2xx.

TypeDescription
unrecognized_json_propertyThere are field error in the request Json
json_mapping_errorField value type does not match
json_parse_errorFailed to parse the request json
json_invalid_value_errorField value is invalid
validation_errorField value is not allowed in the context
bad_request_errorOther errors in the request, refer message for detail
authentication_errorFailed to authenticate the caller
user_lockedThe caller is locked
access_denied_errorThe access is denied
unauthorized_errorThe caller does not have the authority
internal_server_errorSystem error, please contact Cycle support if you see this
service_unavailable_exceptionInternal service outage, please contact Cycle support if you see this
entity_conflict_errorDuplicate key provided in request
entity_not_found_errorResource not found

Result Codes

Result codes for each transaction are found in the `transactions[n].resultCode` field.

TypeDescription
0Success
10Cancelled
100The credentials, IP address, URL, signature or operation are invalid.
110There was an error parsing the provided inputs
120The requested operation cannot be performed on a charge in this state.
130An SPP ID was supplied that does not belong to the customer or is marked as invalid.
140The charge is initiated with the returring flag, but the method does not support recurring
150The method, country or currency are invalid or not supported for this customer's trust level.
155The provided charge ID already exists
160The following required inputs are missing or invalid: xxx
170The following required customer fields are missing or invalid:xxx
171Failed to fetch customer data from 3rd party
180The customer has an active block.
190The IP address or country is blocked.
200The payment information (card #, etc) is blocked
210The customer has exceeded a velocity limit.
220The fraud system declined this transaction.
230The payment service is unavailable.
240The payment failed for an unknown reason.
500The provider declined to authorize this transaction.
510The provided expiration date is incorrect.
520The billing information provided has the following missing or invalid fields.
530The processor has declined due to missing or insufficient funds.
540The processor has declined the transaction as a duplicate.
550The merchant ID or other information is incorrect.
560The amount is outside the range accepted by this processor.
570The operation cannot be performed on this charge.
580The processor or issuer has placed a limit or restriction on this ID.
590The processor has declined the transaction without providing a reason.
1000The processor has permanently blocked this account ID or customer.
1100The processor declined for an unknown reason.
1200The authorization for this charge has expired. A new authorization is required.