Skip to main content
GET
List Decline Groups
Lists the decline groups saved on an account: the groups of decline sub-statuses you reference with status: "DECLINE_GROUP" and the groups of Merchant Advice Codes you reference with status: "MAC_CODE_GROUP". Use the id of a group as group_id in a routing output — see Outcome groups. The endpoint is read only. Groups are created in the dashboard, or automatically when a DECLINE_GROUP output is saved with decline_types and no group_id (those are named auto_…).

Query Parameters

string
required
The account to list groups for. Must belong to the organization your API credentials are scoped to.

Response

An array with the groups of the account, or an empty array if it has none. Each group contains:
integer
The value to send as group_id.
string
The group’s name, as shown in the dashboard and returned as group_name on routing outputs.
enum
The output status the group is used with: DECLINE_GROUP for a group of decline sub-statuses, MAC_CODE_GROUP for a group of Merchant Advice Codes.
string[]
The group’s members, in the same vocabulary routing outputs use: decline sub-statuses such as DECLINED_BY_BANK for DECLINE_GROUP, normalized Merchant Advice Codes such as NO_RETRY_POLICY for MAC_CODE_GROUP. See Transaction codes.

Errors

Authorizations

PUBLIC-API-KEY
string
header
default:<Your PUBLIC-API-KEY>
required
PRIVATE-SECRET-KEY
string
header
default:<Your PRIVATE-SECRET-KEY>
required

Query Parameters

account_id
string<uuid>
required

Account to list groups for. Must belong to the organization of your API credentials.

Response

The groups of the account, or an empty array if it has none.

id
integer

The value to send as group_id in a routing output.

Example:

1044

name
string
Example:

"Soft declines"

type
enum<string>

The output status the group is used with.

Available options:
DECLINE_GROUP,
MAC_CODE_GROUP
decline_types
string[]

Members of the group: decline sub-statuses for DECLINE_GROUP, normalized Merchant Advice Codes for MAC_CODE_GROUP.

Example: