Skip to main content
POST
/
payments
/
fetch-fees
cURL
curl --request POST \
  --url https://api.dev.ecos.gcservices.io/payments/payment-order/v1/payments/fetch-fees \
  --header 'Content-Type: application/json' \
  --data '
{
  "chargeBearer": "DEBT",
  "amount": {
    "amountType": "PRINCIPAL",
    "instructedCurrency": "2",
    "transferCurrency": "USD",
    "transferAmount": 100.25,
    "instructedAmount": 10.25
  },
  "payeeReference": {
    "involvedParty": {
      "reference": "Ref-1",
      "address": {
        "country": "US",
        "streetName": "Main Street",
        "townName": "Anytown",
        "countrySubDivision": "CA",
        "postalCode": "12345",
        "buildingNumber": "123",
        "subDepartment": "Institute of Education Sciences",
        "type": "POSTAL",
        "department": "Department of Education",
        "addressLine": "John Smith 123 Main Street, Apt 4B Anytown, CA 12345",
        "primary": true
      },
      "organisationIdentification": {
        "identificationNo": "12345",
        "type": "LEI"
      },
      "partyName": "David",
      "partyType": "PERSON",
      "partyInvolvementType": "DEBTOR",
      "personIdentifications": [
        {
          "id": "123456789",
          "type": "ALIEN_REGISTRATION_NUMBER"
        },
        {
          "id": "123456789",
          "type": "ALIEN_REGISTRATION_NUMBER"
        }
      ]
    }
  },
  "customFields": {
    "key": "{}"
  },
  "payerBankReference": {
    "involvedParty": {
      "reference": "Ref-1",
      "address": {
        "country": "US",
        "streetName": "Main Street",
        "townName": "Anytown",
        "countrySubDivision": "CA",
        "postalCode": "12345",
        "buildingNumber": "123",
        "subDepartment": "Institute of Education Sciences",
        "type": "POSTAL",
        "department": "Department of Education",
        "addressLine": "John Smith 123 Main Street, Apt 4B Anytown, CA 12345",
        "primary": true
      },
      "organisationIdentification": {
        "identificationNo": "12345",
        "type": "LEI"
      },
      "partyName": "David",
      "partyType": "PERSON",
      "partyInvolvementType": "DEBTOR",
      "personIdentifications": [
        {
          "id": "123456789",
          "type": "ALIEN_REGISTRATION_NUMBER"
        },
        {
          "id": "123456789",
          "type": "ALIEN_REGISTRATION_NUMBER"
        }
      ]
    }
  },
  "payerAccountReference": {
    "paymentInstructionAccount": {
      "accountId": "12232",
      "numberType": "IBAN",
      "accountSubType": "CURRENT_ACCOUNT",
      "accountType": "LOAN",
      "involvedAccountType": "DEBTOR"
    }
  },
  "payeeBankReference": {
    "involvedParty": {
      "reference": "Ref-1",
      "address": {
        "country": "US",
        "streetName": "Main Street",
        "townName": "Anytown",
        "countrySubDivision": "CA",
        "postalCode": "12345",
        "buildingNumber": "123",
        "subDepartment": "Institute of Education Sciences",
        "type": "POSTAL",
        "department": "Department of Education",
        "addressLine": "John Smith 123 Main Street, Apt 4B Anytown, CA 12345",
        "primary": true
      },
      "organisationIdentification": {
        "identificationNo": "12345",
        "type": "LEI"
      },
      "partyName": "David",
      "partyType": "PERSON",
      "partyInvolvementType": "DEBTOR",
      "personIdentifications": [
        {
          "id": "123456789",
          "type": "ALIEN_REGISTRATION_NUMBER"
        },
        {
          "id": "123456789",
          "type": "ALIEN_REGISTRATION_NUMBER"
        }
      ]
    }
  },
  "businessFunction": "CCD",
  "dates": [
    {
      "dateTime": "2000-01-23T04:56:07.000Z",
      "dateType": "REQUESTED_EXECUTION_DATE"
    },
    {
      "dateTime": "2000-01-23T04:56:07.000Z",
      "dateType": "REQUESTED_EXECUTION_DATE"
    }
  ],
  "priority": "NORM",
  "usedMechanism": "US_DOMESTIC_WIRE_RET",
  "identification": "123456",
  "payerReference": {
    "involvedParty": {
      "reference": "Ref-1",
      "address": {
        "country": "US",
        "streetName": "Main Street",
        "townName": "Anytown",
        "countrySubDivision": "CA",
        "postalCode": "12345",
        "buildingNumber": "123",
        "subDepartment": "Institute of Education Sciences",
        "type": "POSTAL",
        "department": "Department of Education",
        "addressLine": "John Smith 123 Main Street, Apt 4B Anytown, CA 12345",
        "primary": true
      },
      "organisationIdentification": {
        "identificationNo": "12345",
        "type": "LEI"
      },
      "partyName": "David",
      "partyType": "PERSON",
      "partyInvolvementType": "DEBTOR",
      "personIdentifications": [
        {
          "id": "123456789",
          "type": "ALIEN_REGISTRATION_NUMBER"
        },
        {
          "id": "123456789",
          "type": "ALIEN_REGISTRATION_NUMBER"
        }
      ]
    }
  },
  "appliedFee": [
    {
      "amount": 10.12,
      "currency": "USD",
      "type": "InterchangeFee"
    },
    {
      "amount": 10.12,
      "currency": "USD",
      "type": "InterchangeFee"
    }
  ],
  "payeeAccountReference": {
    "paymentInstructionAccount": {
      "accountId": "12232",
      "numberType": "IBAN",
      "accountSubType": "CURRENT_ACCOUNT",
      "accountType": "LOAN",
      "involvedAccountType": "DEBTOR"
    }
  }
}
'
{
  "chargeBearer": "DEBT",
  "amount": {
    "amountType": "PRINCIPAL",
    "instructedCurrency": "2",
    "transferCurrency": "USD",
    "transferAmount": 100.25,
    "instructedAmount": 10.25
  },
  "payeeReference": {
    "involvedParty": {
      "reference": "Ref-1",
      "address": {
        "country": "US",
        "streetName": "Main Street",
        "townName": "Anytown",
        "countrySubDivision": "CA",
        "postalCode": "12345",
        "buildingNumber": "123",
        "subDepartment": "Institute of Education Sciences",
        "type": "POSTAL",
        "department": "Department of Education",
        "addressLine": "John Smith 123 Main Street, Apt 4B Anytown, CA 12345",
        "primary": true
      },
      "organisationIdentification": {
        "identificationNo": "12345",
        "type": "LEI"
      },
      "partyName": "David",
      "partyType": "PERSON",
      "partyInvolvementType": "DEBTOR",
      "personIdentifications": [
        {
          "id": "123456789",
          "type": "ALIEN_REGISTRATION_NUMBER"
        },
        {
          "id": "123456789",
          "type": "ALIEN_REGISTRATION_NUMBER"
        }
      ]
    }
  },
  "customFields": {
    "key": "{}"
  },
  "payerBankReference": {
    "involvedParty": {
      "reference": "Ref-1",
      "address": {
        "country": "US",
        "streetName": "Main Street",
        "townName": "Anytown",
        "countrySubDivision": "CA",
        "postalCode": "12345",
        "buildingNumber": "123",
        "subDepartment": "Institute of Education Sciences",
        "type": "POSTAL",
        "department": "Department of Education",
        "addressLine": "John Smith 123 Main Street, Apt 4B Anytown, CA 12345",
        "primary": true
      },
      "organisationIdentification": {
        "identificationNo": "12345",
        "type": "LEI"
      },
      "partyName": "David",
      "partyType": "PERSON",
      "partyInvolvementType": "DEBTOR",
      "personIdentifications": [
        {
          "id": "123456789",
          "type": "ALIEN_REGISTRATION_NUMBER"
        },
        {
          "id": "123456789",
          "type": "ALIEN_REGISTRATION_NUMBER"
        }
      ]
    }
  },
  "payerAccountReference": {
    "paymentInstructionAccount": {
      "accountId": "12232",
      "numberType": "IBAN",
      "accountSubType": "CURRENT_ACCOUNT",
      "accountType": "LOAN",
      "involvedAccountType": "DEBTOR"
    }
  },
  "payeeBankReference": {
    "involvedParty": {
      "reference": "Ref-1",
      "address": {
        "country": "US",
        "streetName": "Main Street",
        "townName": "Anytown",
        "countrySubDivision": "CA",
        "postalCode": "12345",
        "buildingNumber": "123",
        "subDepartment": "Institute of Education Sciences",
        "type": "POSTAL",
        "department": "Department of Education",
        "addressLine": "John Smith 123 Main Street, Apt 4B Anytown, CA 12345",
        "primary": true
      },
      "organisationIdentification": {
        "identificationNo": "12345",
        "type": "LEI"
      },
      "partyName": "David",
      "partyType": "PERSON",
      "partyInvolvementType": "DEBTOR",
      "personIdentifications": [
        {
          "id": "123456789",
          "type": "ALIEN_REGISTRATION_NUMBER"
        },
        {
          "id": "123456789",
          "type": "ALIEN_REGISTRATION_NUMBER"
        }
      ]
    }
  },
  "businessFunction": "CCD",
  "dates": [
    {
      "dateTime": "2000-01-23T04:56:07.000Z",
      "dateType": "REQUESTED_EXECUTION_DATE"
    },
    {
      "dateTime": "2000-01-23T04:56:07.000Z",
      "dateType": "REQUESTED_EXECUTION_DATE"
    }
  ],
  "priority": "NORM",
  "usedMechanism": "US_DOMESTIC_WIRE_RET",
  "identification": "123456",
  "payerReference": {
    "involvedParty": {
      "reference": "Ref-1",
      "address": {
        "country": "US",
        "streetName": "Main Street",
        "townName": "Anytown",
        "countrySubDivision": "CA",
        "postalCode": "12345",
        "buildingNumber": "123",
        "subDepartment": "Institute of Education Sciences",
        "type": "POSTAL",
        "department": "Department of Education",
        "addressLine": "John Smith 123 Main Street, Apt 4B Anytown, CA 12345",
        "primary": true
      },
      "organisationIdentification": {
        "identificationNo": "12345",
        "type": "LEI"
      },
      "partyName": "David",
      "partyType": "PERSON",
      "partyInvolvementType": "DEBTOR",
      "personIdentifications": [
        {
          "id": "123456789",
          "type": "ALIEN_REGISTRATION_NUMBER"
        },
        {
          "id": "123456789",
          "type": "ALIEN_REGISTRATION_NUMBER"
        }
      ]
    }
  },
  "appliedFee": [
    {
      "amount": 10.12,
      "currency": "USD",
      "type": "InterchangeFee"
    },
    {
      "amount": 10.12,
      "currency": "USD",
      "type": "InterchangeFee"
    }
  ],
  "payeeAccountReference": {
    "paymentInstructionAccount": {
      "accountId": "12232",
      "numberType": "IBAN",
      "accountSubType": "CURRENT_ACCOUNT",
      "accountType": "LOAN",
      "involvedAccountType": "DEBTOR"
    }
  }
}

Headers

Idempotent-Request-Key
string

Idempotent Request Key.

Timestamp
string<date-time>

Timestamp.

Used-Mechanism
string

Type of the payment.

Body

application/json
identification
string

Unique identifier for the bank code of which the details are retreived.

Example:

"123456"

usedMechanism
string

The payment mechanism the bank decides to use in the transaction to execute a payment instruction.

Example:

"US_DOMESTIC_WIRE_RET"

businessFunction
string

The payment type business function

Example:

"CCD"

chargeBearer
enum<string>

Specifies which party/parties will bear the charges associated with the processing of the payment transaction.

Available options:
DEBT,
CRED,
SHAR,
SLEV
priority
enum<string>
Available options:
NORM,
HIGH
payerReference
Payer reference. · object
Example:
{
"involvedParty": {
"reference": "Ref-1",
"address": {
"country": "US",
"streetName": "Main Street",
"townName": "Anytown",
"countrySubDivision": "CA",
"postalCode": "12345",
"buildingNumber": "123",
"subDepartment": "Institute of Education Sciences",
"type": "POSTAL",
"department": "Department of Education",
"addressLine": "John Smith 123 Main Street, Apt 4B Anytown, CA 12345",
"primary": true
},
"organisationIdentification": {
"identificationNo": "12345",
"type": "LEI"
},
"partyName": "David",
"partyType": "PERSON",
"partyInvolvementType": "DEBTOR",
"personIdentifications": [
{
"id": "123456789",
"type": "ALIEN_REGISTRATION_NUMBER"
},
{
"id": "123456789",
"type": "ALIEN_REGISTRATION_NUMBER"
}
]
}
}
payerBankReference
Payer bank reference. · object
Example:
{
"involvedParty": {
"reference": "Ref-1",
"address": {
"country": "US",
"streetName": "Main Street",
"townName": "Anytown",
"countrySubDivision": "CA",
"postalCode": "12345",
"buildingNumber": "123",
"subDepartment": "Institute of Education Sciences",
"type": "POSTAL",
"department": "Department of Education",
"addressLine": "John Smith 123 Main Street, Apt 4B Anytown, CA 12345",
"primary": true
},
"organisationIdentification": {
"identificationNo": "12345",
"type": "LEI"
},
"partyName": "David",
"partyType": "PERSON",
"partyInvolvementType": "DEBTOR",
"personIdentifications": [
{
"id": "123456789",
"type": "ALIEN_REGISTRATION_NUMBER"
},
{
"id": "123456789",
"type": "ALIEN_REGISTRATION_NUMBER"
}
]
}
}
payerAccountReference
Payer account reference. · object
Example:
{
"paymentInstructionAccount": {
"accountId": "12232",
"numberType": "IBAN",
"accountSubType": "CURRENT_ACCOUNT",
"accountType": "LOAN",
"involvedAccountType": "DEBTOR"
}
}
payeeReference
Payeee reference. · object
Example:
{
"involvedParty": {
"reference": "Ref-1",
"address": {
"country": "US",
"streetName": "Main Street",
"townName": "Anytown",
"countrySubDivision": "CA",
"postalCode": "12345",
"buildingNumber": "123",
"subDepartment": "Institute of Education Sciences",
"type": "POSTAL",
"department": "Department of Education",
"addressLine": "John Smith 123 Main Street, Apt 4B Anytown, CA 12345",
"primary": true
},
"organisationIdentification": {
"identificationNo": "12345",
"type": "LEI"
},
"partyName": "David",
"partyType": "PERSON",
"partyInvolvementType": "DEBTOR",
"personIdentifications": [
{
"id": "123456789",
"type": "ALIEN_REGISTRATION_NUMBER"
},
{
"id": "123456789",
"type": "ALIEN_REGISTRATION_NUMBER"
}
]
}
}
payeeBankReference
Payeee bank reference. · object
Example:
{
"involvedParty": {
"reference": "Ref-1",
"address": {
"country": "US",
"streetName": "Main Street",
"townName": "Anytown",
"countrySubDivision": "CA",
"postalCode": "12345",
"buildingNumber": "123",
"subDepartment": "Institute of Education Sciences",
"type": "POSTAL",
"department": "Department of Education",
"addressLine": "John Smith 123 Main Street, Apt 4B Anytown, CA 12345",
"primary": true
},
"organisationIdentification": {
"identificationNo": "12345",
"type": "LEI"
},
"partyName": "David",
"partyType": "PERSON",
"partyInvolvementType": "DEBTOR",
"personIdentifications": [
{
"id": "123456789",
"type": "ALIEN_REGISTRATION_NUMBER"
},
{
"id": "123456789",
"type": "ALIEN_REGISTRATION_NUMBER"
}
]
}
}
payeeAccountReference
Payee account reference. · object
Example:
{
"paymentInstructionAccount": {
"accountId": "12232",
"numberType": "IBAN",
"accountSubType": "CURRENT_ACCOUNT",
"accountType": "LOAN",
"involvedAccountType": "DEBTOR"
}
}
amount
Amount. · object

The amount in the specified currency.

Example:
{
"amountType": "PRINCIPAL",
"instructedCurrency": "2",
"transferCurrency": "USD",
"transferAmount": 100.25,
"instructedAmount": 10.25
}
appliedFee
Fees applied. · object[]
dates
Transaction date. · object[]
customFields
CustomField · object

Custom fields related to payments.

Response

Created.

identification
string

Unique identifier for the bank code of which the details are retreived.

Example:

"123456"

usedMechanism
string

The payment mechanism the bank decides to use in the transaction to execute a payment instruction.

Example:

"US_DOMESTIC_WIRE_RET"

businessFunction
string

The payment type business function

Example:

"CCD"

chargeBearer
enum<string>

Specifies which party/parties will bear the charges associated with the processing of the payment transaction.

Available options:
DEBT,
CRED,
SHAR,
SLEV
priority
enum<string>
Available options:
NORM,
HIGH
payerReference
Payer reference. · object
Example:
{
"involvedParty": {
"reference": "Ref-1",
"address": {
"country": "US",
"streetName": "Main Street",
"townName": "Anytown",
"countrySubDivision": "CA",
"postalCode": "12345",
"buildingNumber": "123",
"subDepartment": "Institute of Education Sciences",
"type": "POSTAL",
"department": "Department of Education",
"addressLine": "John Smith 123 Main Street, Apt 4B Anytown, CA 12345",
"primary": true
},
"organisationIdentification": {
"identificationNo": "12345",
"type": "LEI"
},
"partyName": "David",
"partyType": "PERSON",
"partyInvolvementType": "DEBTOR",
"personIdentifications": [
{
"id": "123456789",
"type": "ALIEN_REGISTRATION_NUMBER"
},
{
"id": "123456789",
"type": "ALIEN_REGISTRATION_NUMBER"
}
]
}
}
payerBankReference
Payer bank reference. · object
Example:
{
"involvedParty": {
"reference": "Ref-1",
"address": {
"country": "US",
"streetName": "Main Street",
"townName": "Anytown",
"countrySubDivision": "CA",
"postalCode": "12345",
"buildingNumber": "123",
"subDepartment": "Institute of Education Sciences",
"type": "POSTAL",
"department": "Department of Education",
"addressLine": "John Smith 123 Main Street, Apt 4B Anytown, CA 12345",
"primary": true
},
"organisationIdentification": {
"identificationNo": "12345",
"type": "LEI"
},
"partyName": "David",
"partyType": "PERSON",
"partyInvolvementType": "DEBTOR",
"personIdentifications": [
{
"id": "123456789",
"type": "ALIEN_REGISTRATION_NUMBER"
},
{
"id": "123456789",
"type": "ALIEN_REGISTRATION_NUMBER"
}
]
}
}
payerAccountReference
Payer account reference. · object
Example:
{
"paymentInstructionAccount": {
"accountId": "12232",
"numberType": "IBAN",
"accountSubType": "CURRENT_ACCOUNT",
"accountType": "LOAN",
"involvedAccountType": "DEBTOR"
}
}
payeeReference
Payeee reference. · object
Example:
{
"involvedParty": {
"reference": "Ref-1",
"address": {
"country": "US",
"streetName": "Main Street",
"townName": "Anytown",
"countrySubDivision": "CA",
"postalCode": "12345",
"buildingNumber": "123",
"subDepartment": "Institute of Education Sciences",
"type": "POSTAL",
"department": "Department of Education",
"addressLine": "John Smith 123 Main Street, Apt 4B Anytown, CA 12345",
"primary": true
},
"organisationIdentification": {
"identificationNo": "12345",
"type": "LEI"
},
"partyName": "David",
"partyType": "PERSON",
"partyInvolvementType": "DEBTOR",
"personIdentifications": [
{
"id": "123456789",
"type": "ALIEN_REGISTRATION_NUMBER"
},
{
"id": "123456789",
"type": "ALIEN_REGISTRATION_NUMBER"
}
]
}
}
payeeBankReference
Payeee bank reference. · object
Example:
{
"involvedParty": {
"reference": "Ref-1",
"address": {
"country": "US",
"streetName": "Main Street",
"townName": "Anytown",
"countrySubDivision": "CA",
"postalCode": "12345",
"buildingNumber": "123",
"subDepartment": "Institute of Education Sciences",
"type": "POSTAL",
"department": "Department of Education",
"addressLine": "John Smith 123 Main Street, Apt 4B Anytown, CA 12345",
"primary": true
},
"organisationIdentification": {
"identificationNo": "12345",
"type": "LEI"
},
"partyName": "David",
"partyType": "PERSON",
"partyInvolvementType": "DEBTOR",
"personIdentifications": [
{
"id": "123456789",
"type": "ALIEN_REGISTRATION_NUMBER"
},
{
"id": "123456789",
"type": "ALIEN_REGISTRATION_NUMBER"
}
]
}
}
payeeAccountReference
Payee account reference. · object
Example:
{
"paymentInstructionAccount": {
"accountId": "12232",
"numberType": "IBAN",
"accountSubType": "CURRENT_ACCOUNT",
"accountType": "LOAN",
"involvedAccountType": "DEBTOR"
}
}
amount
Amount. · object

The amount in the specified currency.

Example:
{
"amountType": "PRINCIPAL",
"instructedCurrency": "2",
"transferCurrency": "USD",
"transferAmount": 100.25,
"instructedAmount": 10.25
}
appliedFee
Fees applied. · object[]
dates
Transaction date. · object[]
customFields
CustomField · object

Custom fields related to payments.