Skip to end of banner
Go to start of banner

GET payments/configuration/payment_methods/list

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Available from CRM.COM R9.0.0


This method returns the payment methods that are allowed to be used by payments of a specific type. Multiple payment methods are returned by each call


Resource URL

Parameters

Name

Type

Description

token

String

The token retrieved from the login method

payment_type_identifier

(mandatory)

Financial Transaction Type Identifier

The identifier of the type of the payment that will be using the payment methods. The payment methods are filtered against the allowed payment methods of the specified type. The allowed financial transaction type identifier fields are the following:

Name

Type

Description

id

(semi-optional)

String

The ID of the financial transaction type

name

(semi-optional)

String

The name of the financial transaction type

alternative_code

(semi-optional)

String

The alternative code of  the financial transaction type

 fields_set

(optional)

List of Strings, comma separated 

A list of fields that should be included in the results. If not specified then all the available fields will be returned

Response Data

NameType Description

id

String

The ID of the retrieved payment type payment method

defaultBooleanDetermines if the payment type payment method is the default payment method or not

payment_method

Payment Method Object

The actual payment method supported by the payment type

Referred Objects Response Data

 payment_method object response data

Name

Type

Description

id

String

The id of the retrieved payment method

name

String

The name of the retrieved payment method

alternative_code

String

The alternative code of the retrieved payment method

descriptionString

The description  of the retrieved payment method

 

Examples

 Example 1

HTTP Method: GET

 

Request:

Response:

 

{
    "status":
    {
        "message": "",
        "description": "",
        "code": "OK"
    },
    "data":
    [
        {
            "default": true,
            "payment_method":
            {
                "id": "PM7",
                "name": "Bank Transfer",
                "description": "Bank Transfer",
                "alternative_code": "BT"
            },
            "id": "C9441F357B22A2E7ECE1C0AB9C47ED96"
        },
        {
            "default": false,
            "payment_method":
            {
                "id": "E239F9E5D1B43BE5734ADA8DD8BE535B",
                "name": "Paypal",
                "description": "Paypal",
                "alternative_code": "P"
            },
            "id": "4877F44AFD415A58CB823549FC418AAD"
        }
    ]
} 
  • No labels