C
C
Cashramp
Search
K
Comment on page

Queries

Countries

countries.gql
query {
availableCountries {
id
name
code
}
}

Market Rate

This query allows you to fetch the market rate for any Cashramp country.
marketRate.gql
query {
marketRate(countryCode: "NG") {
depositRate
withdrawalRate
}
}
This market rate should not be considered as the final rate. The final rate is provided when a user is assigned to an agent and proceeds to initiate a payment.

Banks

countries.gql
query {
banks(countryCode: "NG") {
id
name
code
}
}

Payment Method Types

p2pPaymentMethodTypes.gql
query {
p2pPaymentMethodTypes(country: "") {
id
identifier
label
fields {
label
identifier
required
}
}
}

Payment Request

getPaymentRequest.gql
query {
merchantPaymentRequest(reference: "test_ref_1") {
id
paymentType
hostedLink
amount
currency
reference
status
}
}

Your Account

account.gql
query {
account {
id
accountBalance
depositAddress
}
}