Comment on page
Queries
countries.gql
query {
availableCountries {
id
name
code
}
}
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.
countries.gql
query {
banks(countryCode: "NG") {
id
name
code
}
}
p2pPaymentMethodTypes.gql
query {
p2pPaymentMethodTypes(country: "") {
id
identifier
label
fields {
label
identifier
required
}
}
}
getPaymentRequest.gql
query {
merchantPaymentRequest(reference: "test_ref_1") {
id
paymentType
hostedLink
amount
currency
reference
status
}
}
account.gql
query {
account {
id
accountBalance
depositAddress
}
}
Last modified 2mo ago