diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 28548a3..b0e7446 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,7 +25,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '18' + node-version: '20' cache: 'npm' - name: Install dependencies diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml index 573cf5a..326c008 100644 --- a/.github/workflows/update-docs.yml +++ b/.github/workflows/update-docs.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: '16' + node-version: '20' cache: 'npm' - name: Install dependencies @@ -49,5 +49,5 @@ jobs: git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git add schema.graphql public/ - git commit -m "Update API documentation based on schema changes [skip ci]" + git commit -m "Update API documentation based on schema changes" git push \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index f9bbcb7..c10c227 100644 --- a/docs/index.html +++ b/docs/index.html @@ -36,12 +36,19 @@
{
"data": {
"accountDefaultWallet": {
- "id": 4,
+ "id": "4",
"lnurlp": Lnurl,
"walletCurrency": "BTC"
}
}
}
+
+
+
+
+
+ bridgeExternalAccounts
+ Returns [BridgeExternalAccount]
+
query BridgeExternalAccounts {
+ bridgeExternalAccounts {
+ accountNumberLast4
+ bankName
+ id
+ isDefault
+ status
+ }
+}
+
+ {
+ "data": {
+ "bridgeExternalAccounts": [
+ {
+ "accountNumberLast4": "abc123",
+ "bankName": "abc123",
+ "id": "4",
+ "isDefault": false,
+ "status": "xyz789"
+ }
+ ]
+ }
+}
+
+ bridgeKycStatus
+ Returns a String
+
query BridgeKycStatus {
+ bridgeKycStatus
+}
+
+ {"data": {"bridgeKycStatus": "abc123"}}
+
+ bridgeVirtualAccount
+ Returns a BridgeVirtualAccount
+
query BridgeVirtualAccount {
+ bridgeVirtualAccount {
+ accountNumber
+ accountNumberLast4
+ bankName
+ id
+ kycLink
+ message
+ pending
+ routingNumber
+ tosLink
+ }
+}
+
+ {
+ "data": {
+ "bridgeVirtualAccount": {
+ "accountNumber": "xyz789",
+ "accountNumberLast4": "abc123",
+ "bankName": "xyz789",
+ "id": "4",
+ "kycLink": "xyz789",
+ "message": "abc123",
+ "pending": true,
+ "routingNumber": "abc123",
+ "tosLink": "xyz789"
+ }
+ }
+}
+
+ bridgeWithdrawalRequest
+ Returns a BridgeWithdrawal
+
| Name | +Description | +
|---|---|
+ id - ID!
+ |
+ + | +
query BridgeWithdrawalRequest($id: ID!) {
+ bridgeWithdrawalRequest(id: $id) {
+ amount
+ bridgeDeveloperFee
+ bridgeExchangeFee
+ bridgeTransferId
+ createdAt
+ currency
+ estimatedBridgeFee
+ estimatedBridgeFeePercent
+ estimatedCustomerFee
+ estimatedGasBuffer
+ externalAccountId
+ failureReason
+ finalAmount
+ flashFee
+ flashFeeIsEstimate
+ flashFeeNotice
+ flashFeePercent
+ id
+ status
+ subtotalAmount
+ }
+}
+
+ {"id": "4"}
+
+ {
+ "data": {
+ "bridgeWithdrawalRequest": {
+ "amount": "xyz789",
+ "bridgeDeveloperFee": "xyz789",
+ "bridgeExchangeFee": "abc123",
+ "bridgeTransferId": "abc123",
+ "createdAt": "xyz789",
+ "currency": "abc123",
+ "estimatedBridgeFee": "xyz789",
+ "estimatedBridgeFeePercent": "xyz789",
+ "estimatedCustomerFee": "xyz789",
+ "estimatedGasBuffer": "abc123",
+ "externalAccountId": "abc123",
+ "failureReason": "abc123",
+ "finalAmount": "abc123",
+ "flashFee": "xyz789",
+ "flashFeeIsEstimate": false,
+ "flashFeeNotice": "xyz789",
+ "flashFeePercent": "xyz789",
+ "id": 4,
+ "status": "abc123",
+ "subtotalAmount": "abc123"
+ }
+ }
+}
+
+ bridgeWithdrawals
+ Returns [BridgeWithdrawal]
+
query BridgeWithdrawals {
+ bridgeWithdrawals {
+ amount
+ bridgeDeveloperFee
+ bridgeExchangeFee
+ bridgeTransferId
+ createdAt
+ currency
+ estimatedBridgeFee
+ estimatedBridgeFeePercent
+ estimatedCustomerFee
+ estimatedGasBuffer
+ externalAccountId
+ failureReason
+ finalAmount
+ flashFee
+ flashFeeIsEstimate
+ flashFeeNotice
+ flashFeePercent
+ id
+ status
+ subtotalAmount
+ }
+}
+
+ {
+ "data": {
+ "bridgeWithdrawals": [
+ {
+ "amount": "xyz789",
+ "bridgeDeveloperFee": "abc123",
+ "bridgeExchangeFee": "abc123",
+ "bridgeTransferId": "abc123",
+ "createdAt": "xyz789",
+ "currency": "xyz789",
+ "estimatedBridgeFee": "xyz789",
+ "estimatedBridgeFeePercent": "abc123",
+ "estimatedCustomerFee": "xyz789",
+ "estimatedGasBuffer": "abc123",
+ "externalAccountId": "xyz789",
+ "failureReason": "xyz789",
+ "finalAmount": "abc123",
+ "flashFee": "abc123",
+ "flashFeeIsEstimate": true,
+ "flashFeeNotice": "xyz789",
+ "flashFeePercent": "abc123",
+ "id": 4,
+ "status": "xyz789",
+ "subtotalAmount": "xyz789"
+ }
+ ]
+ }
+}
cashWalletCutover
+ Returns a CashWalletCutover!
+
query CashWalletCutover {
+ cashWalletCutover {
+ completedAt
+ cutoverVersion
+ pauseReason
+ pausedAt
+ runId
+ scheduledAt
+ startedAt
+ state
+ updatedAt
+ updatedBy
+ }
+}
+
+ {
+ "data": {
+ "cashWalletCutover": {
+ "completedAt": 1592577642,
+ "cutoverVersion": 987,
+ "pauseReason": "xyz789",
+ "pausedAt": 1592577642,
+ "runId": "abc123",
+ "scheduledAt": 1592577642,
+ "startedAt": 1592577642,
+ "state": "COMPLETE",
+ "updatedAt": 1592577642,
+ "updatedBy": "xyz789"
+ }
+ }
+}
query Globals {
globals {
+ bridgeEnabled
buildInformation {
commitHash
helmRevision
}
+ cashoutEnabled
feesInformation {
deposit {
...DepositFeesInformationFragment
@@ -743,6 +1198,7 @@ Query
id
supportedAuthChannels
}
+ topupEnabled
}
}
@@ -752,7 +1208,9 @@ {
"data": {
"globals": {
+ "bridgeEnabled": true,
"buildInformation": BuildInformation,
+ "cashoutEnabled": false,
"feesInformation": FeesInformation,
"lightningAddressDomain": "abc123",
"lightningAddressDomainAliases": [
@@ -760,7 +1218,8 @@ Response
],
"network": "mainnet",
"nodesIds": ["xyz789"],
- "supportedCountries": [Country]
+ "supportedCountries": [Country],
+ "topupEnabled": true
}
}
}
@@ -831,7 +1290,7 @@ Response
"data": {
"isFlashNpub": {
"errors": [Error],
- "isFlashNpub": false
+ "isFlashNpub": true
}
}
}
@@ -840,54 +1299,117 @@ Response
lnInvoicePaymentStatus
+ latestAccountUpgradeRequest
| Name | -Description | -
|---|---|
- input - LnInvoicePaymentStatusInput!
- |
- - | -
query LnInvoicePaymentStatus($input: LnInvoicePaymentStatusInput!) {
- lnInvoicePaymentStatus(input: $input) {
+ query LatestAccountUpgradeRequest {
+ latestAccountUpgradeRequest {
errors {
code
message
path
}
- status
- }
+ upgradeRequest {
+ address {
+ ...AddressFragment
+ }
+ bankAccount {
+ ...BankAccountFragment
+ }
+ currentLevel
+ email
+ fullName
+ idDocument
+ name
+ phoneNumber
+ requestedLevel
+ status
+ terminalsRequested
+ username
+ }
+ }
+}
+
+ {
+ "data": {
+ "latestAccountUpgradeRequest": {
+ "errors": [Error],
+ "upgradeRequest": AccountUpgradeRequest
+ }
+ }
+}
+
+ lnInvoicePaymentStatus
+ Returns a LnInvoicePaymentStatusPayload!
+
| Name | +Description | +
|---|---|
+ input - LnInvoicePaymentStatusInput!
+ |
+ + | +
query LnInvoicePaymentStatus($input: LnInvoicePaymentStatusInput!) {
+ lnInvoicePaymentStatus(input: $input) {
+ errors {
+ code
+ message
+ path
+ }
+ status
+ }
}
query Me {
me {
+ bankAccounts {
+ accountName
+ accountNumber
+ accountType
+ bankBranch
+ bankName
+ currency
+ id
+ isDefault
+ }
contactByUsername {
alias
id
@@ -1001,6 +1533,7 @@ Response
{
"data": {
"me": {
+ "bankAccounts": [BankAccount],
"contactByUsername": UserContact,
"contacts": [UserContact],
"createdAt": 1592577642,
@@ -1055,9 +1588,9 @@ Response
"data": {
"mobileVersions": [
{
- "currentSupported": 987,
- "minSupported": 987,
- "platform": "xyz789"
+ "currentSupported": 123,
+ "minSupported": 123,
+ "platform": "abc123"
}
]
}
@@ -1261,7 +1794,7 @@ Arguments
- amount - CentAmount!
+ amount - FractionalCentAmount!
@@ -1289,7 +1822,7 @@ Example
Query
query OnChainUsdTxFee(
$address: OnChainAddress!,
- $amount: CentAmount!,
+ $amount: FractionalCentAmount!,
$speed: PayoutSpeed,
$walletId: WalletId!
) {
@@ -1308,7 +1841,7 @@ Query
Variables
{
"address": OnChainAddress,
- "amount": CentAmount,
+ "amount": FractionalCentAmount,
"speed": "FAST",
"walletId": WalletId
}
@@ -1316,7 +1849,11 @@ Variables
Response
- {"data": {"onChainUsdTxFee": {"amount": CentAmount}}}
+ {
+ "data": {
+ "onChainUsdTxFee": {"amount": FractionalCentAmount}
+ }
+}
@@ -1413,7 +1950,7 @@ Response
{
"data": {
"onChainUsdTxFeeAsBtcDenominated": {
- "amount": CentAmount
+ "amount": FractionalCentAmount
}
}
}
@@ -1556,6 +2093,131 @@ Response
}
}
}
+
+
+
+
+
+
+
+ Queries
+
+
+ supportedBanks
+
+
+
+
+ Response
+ Returns [Bank!]!
+
+
+
+
+ Example
+
+ Query
+ query SupportedBanks {
+ supportedBanks {
+ name
+ }
+}
+
+
+
+ Response
+ {
+ "data": {
+ "supportedBanks": [{"name": "xyz789"}]
+ }
+}
+
+
+
+
+
+
+
+ Queries
+
+
+ transactionDetails
+
+
+
+
+ Response
+ Returns a TransactionDetailsPayload!
+
+
+
+ Arguments
+
+
+
+ Name
+ Description
+
+
+
+
+
+ input - TransactionDetailsInput!
+
+
+
+
+
+
+
+
+
+ Example
+
+ Query
+ query TransactionDetails($input: TransactionDetailsInput!) {
+ transactionDetails(input: $input) {
+ errors {
+ message
+ }
+ transactionDetails {
+ accountId
+ address
+ amount
+ confirmations
+ createdAt
+ currency
+ fee
+ id
+ invoice
+ memo
+ paymentHash
+ paymentPreimage
+ status
+ txid
+ type
+ updatedAt
+ vout
+ }
+ }
+}
+
+
+
+ Variables
+ {"input": TransactionDetailsInput}
+
+
+
+ Response
+ {
+ "data": {
+ "transactionDetails": {
+ "errors": [TransactionDetailsError],
+ "transactionDetails": TransactionDetails
+ }
+ }
+}
@@ -2311,18 +2973,67 @@ Response
-
+
- callbackEndpointAdd
+ bridgeAddExternalAccount
+
+
+ Example
+
+ Query
+ mutation BridgeAddExternalAccount {
+ bridgeAddExternalAccount {
+ errors {
+ code
+ message
+ path
+ }
+ externalAccount {
+ expiresAt
+ linkUrl
+ }
+ }
+}
+
+
+
+ Response
+ {
+ "data": {
+ "bridgeAddExternalAccount": {
+ "errors": [Error],
+ "externalAccount": BridgeExternalAccountLink
+ }
+ }
+}
+
+
+
+
+
+
+
+ Mutations
+
+
+ bridgeCancelWithdrawalRequest
+
+
+
+
+ Response
+ Returns a BridgeCancelWithdrawalRequestPayload!
@@ -2337,7 +3048,7 @@ Arguments
- input - CallbackEndpointAddInput!
+ input - BridgeCancelWithdrawalRequestInput!
@@ -2350,30 +3061,51 @@ Arguments
Example
Query
- mutation CallbackEndpointAdd($input: CallbackEndpointAddInput!) {
- callbackEndpointAdd(input: $input) {
+ mutation BridgeCancelWithdrawalRequest($input: BridgeCancelWithdrawalRequestInput!) {
+ bridgeCancelWithdrawalRequest(input: $input) {
errors {
code
message
path
}
- id
+ withdrawal {
+ amount
+ bridgeDeveloperFee
+ bridgeExchangeFee
+ bridgeTransferId
+ createdAt
+ currency
+ estimatedBridgeFee
+ estimatedBridgeFeePercent
+ estimatedCustomerFee
+ estimatedGasBuffer
+ externalAccountId
+ failureReason
+ finalAmount
+ flashFee
+ flashFeeIsEstimate
+ flashFeeNotice
+ flashFeePercent
+ id
+ status
+ subtotalAmount
+ }
}
}
Variables
- {"input": CallbackEndpointAddInput}
+ {"input": BridgeCancelWithdrawalRequestInput}
Response
{
"data": {
- "callbackEndpointAdd": {
+ "bridgeCancelWithdrawalRequest": {
"errors": [Error],
- "id": EndpointId
+ "withdrawal": BridgeWithdrawal
}
}
}
@@ -2382,18 +3114,18 @@ Response
-
+
- callbackEndpointDelete
+ bridgeCreateExternalAccount
@@ -2408,7 +3140,7 @@ Arguments
- input - CallbackEndpointDeleteInput!
+ input - BridgeCreateExternalAccountInput!
@@ -2421,30 +3153,36 @@ Arguments
Example
Query
- mutation CallbackEndpointDelete($input: CallbackEndpointDeleteInput!) {
- callbackEndpointDelete(input: $input) {
+ mutation BridgeCreateExternalAccount($input: BridgeCreateExternalAccountInput!) {
+ bridgeCreateExternalAccount(input: $input) {
errors {
code
message
path
}
- success
+ externalAccount {
+ accountNumberLast4
+ bankName
+ id
+ isDefault
+ status
+ }
}
}
Variables
- {"input": CallbackEndpointDeleteInput}
+ {"input": BridgeCreateExternalAccountInput}
Response
{
"data": {
- "callbackEndpointDelete": {
+ "bridgeCreateExternalAccount": {
"errors": [Error],
- "success": false
+ "externalAccount": BridgeExternalAccount
}
}
}
@@ -2453,18 +3191,18 @@ Response
-
+
- captchaCreateChallenge
+ bridgeCreateVirtualAccount
@@ -2472,18 +3210,23 @@ Response
Example
Query
- mutation CaptchaCreateChallenge {
- captchaCreateChallenge {
+ mutation BridgeCreateVirtualAccount {
+ bridgeCreateVirtualAccount {
errors {
code
message
path
}
- result {
- challengeCode
- failbackMode
+ virtualAccount {
+ accountNumber
+ accountNumberLast4
+ bankName
id
- newCaptcha
+ kycLink
+ message
+ pending
+ routingNumber
+ tosLink
}
}
}
@@ -2493,9 +3236,9 @@ Query
Response
{
"data": {
- "captchaCreateChallenge": {
+ "bridgeCreateVirtualAccount": {
"errors": [Error],
- "result": CaptchaCreateChallengeResult
+ "virtualAccount": BridgeVirtualAccount
}
}
}
@@ -2504,18 +3247,18 @@ Response
-
+
- captchaRequestAuthCode
+ bridgeDeleteExternalAccount
@@ -2530,7 +3273,7 @@ Arguments
- input - CaptchaRequestAuthCodeInput!
+ input - BridgeDeleteExternalAccountInput!
@@ -2543,30 +3286,36 @@ Arguments
Example
Query
- mutation CaptchaRequestAuthCode($input: CaptchaRequestAuthCodeInput!) {
- captchaRequestAuthCode(input: $input) {
+ mutation BridgeDeleteExternalAccount($input: BridgeDeleteExternalAccountInput!) {
+ bridgeDeleteExternalAccount(input: $input) {
errors {
code
message
path
}
- success
+ externalAccount {
+ accountNumberLast4
+ bankName
+ id
+ isDefault
+ status
+ }
}
}
Variables
- {"input": CaptchaRequestAuthCodeInput}
+ {"input": BridgeDeleteExternalAccountInput}
Response
{
"data": {
- "captchaRequestAuthCode": {
+ "bridgeDeleteExternalAccount": {
"errors": [Error],
- "success": false
+ "externalAccount": BridgeExternalAccount
}
}
}
@@ -2575,18 +3324,18 @@ Response
-
+
- deviceNotificationTokenCreate
+ bridgeInitiateKyc
@@ -2601,7 +3350,7 @@ Arguments
- input - DeviceNotificationTokenCreateInput!
+ input - BridgeInitiateKycInput!
@@ -2614,30 +3363,33 @@ Arguments
Example
Query
- mutation DeviceNotificationTokenCreate($input: DeviceNotificationTokenCreateInput!) {
- deviceNotificationTokenCreate(input: $input) {
+ mutation BridgeInitiateKyc($input: BridgeInitiateKycInput!) {
+ bridgeInitiateKyc(input: $input) {
errors {
code
message
path
}
- success
+ kycLink {
+ kycLink
+ tosLink
+ }
}
}
Variables
- {"input": DeviceNotificationTokenCreateInput}
+ {"input": BridgeInitiateKycInput}
Response
{
"data": {
- "deviceNotificationTokenCreate": {
+ "bridgeInitiateKyc": {
"errors": [Error],
- "success": true
+ "kycLink": BridgeKycLink
}
}
}
@@ -2646,18 +3398,18 @@ Response
-
+
- feedbackSubmit
+ bridgeInitiateWithdrawal
@@ -2672,7 +3424,7 @@ Arguments
- input - FeedbackSubmitInput!
+ input - BridgeInitiateWithdrawalInput!
@@ -2685,28 +3437,52 @@ Arguments
Example
Query
- mutation FeedbackSubmit($input: FeedbackSubmitInput!) {
- feedbackSubmit(input: $input) {
+ mutation BridgeInitiateWithdrawal($input: BridgeInitiateWithdrawalInput!) {
+ bridgeInitiateWithdrawal(input: $input) {
errors {
code
message
path
}
- success
+ withdrawal {
+ amount
+ bridgeDeveloperFee
+ bridgeExchangeFee
+ bridgeTransferId
+ createdAt
+ currency
+ estimatedBridgeFee
+ estimatedBridgeFeePercent
+ estimatedCustomerFee
+ estimatedGasBuffer
+ externalAccountId
+ failureReason
+ finalAmount
+ flashFee
+ flashFeeIsEstimate
+ flashFeeNotice
+ flashFeePercent
+ id
+ status
+ subtotalAmount
+ }
}
}
Variables
- {"input": FeedbackSubmitInput}
+ {"input": BridgeInitiateWithdrawalInput}
Response
{
"data": {
- "feedbackSubmit": {"errors": [Error], "success": true}
+ "bridgeInitiateWithdrawal": {
+ "errors": [Error],
+ "withdrawal": BridgeWithdrawal
+ }
}
}
@@ -2714,26 +3490,18 @@ Response
-
+
- intraLedgerPaymentSend
+ bridgeRequestWithdrawal
-
-
-
- Description
- Actions a payment which is internal to the ledger e.g. it does not use onchain/lightning. Returns payment status (success, failed, pending, already_paid).
-
-
-
@@ -2748,7 +3516,7 @@ Arguments
- input - IntraLedgerPaymentSendInput!
+ input - BridgeRequestWithdrawalInput!
@@ -2761,30 +3529,51 @@ Arguments
Example
Query
- mutation IntraLedgerPaymentSend($input: IntraLedgerPaymentSendInput!) {
- intraLedgerPaymentSend(input: $input) {
+ mutation BridgeRequestWithdrawal($input: BridgeRequestWithdrawalInput!) {
+ bridgeRequestWithdrawal(input: $input) {
errors {
code
message
path
}
- status
+ withdrawal {
+ amount
+ bridgeDeveloperFee
+ bridgeExchangeFee
+ bridgeTransferId
+ createdAt
+ currency
+ estimatedBridgeFee
+ estimatedBridgeFeePercent
+ estimatedCustomerFee
+ estimatedGasBuffer
+ externalAccountId
+ failureReason
+ finalAmount
+ flashFee
+ flashFeeIsEstimate
+ flashFeeNotice
+ flashFeePercent
+ id
+ status
+ subtotalAmount
+ }
}
}
Variables
- {"input": IntraLedgerPaymentSendInput}
+ {"input": BridgeRequestWithdrawalInput}
Response
{
"data": {
- "intraLedgerPaymentSend": {
+ "bridgeRequestWithdrawal": {
"errors": [Error],
- "status": "ALREADY_PAID"
+ "withdrawal": BridgeWithdrawal
}
}
}
@@ -2793,27 +3582,18 @@ Response
-
+
- intraLedgerUsdPaymentSend
+ bridgeSetDefaultExternalAccount
-
-
-
- Description
- Galoy: Actions a payment which is internal to the ledger e.g. it does not use onchain/lightning. Returns payment status (success, failed, pending, already_paid).
- Flash: We do not currently have an internal ledger. Consequently, intraledger payments have been updated to call Ibex instead.
-
-
-
@@ -2828,7 +3608,7 @@ Arguments
- input - IntraLedgerUsdPaymentSendInput!
+ input - BridgeSetDefaultExternalAccountInput!
@@ -2841,30 +3621,36 @@ Arguments
Example
Query
- mutation IntraLedgerUsdPaymentSend($input: IntraLedgerUsdPaymentSendInput!) {
- intraLedgerUsdPaymentSend(input: $input) {
+ mutation BridgeSetDefaultExternalAccount($input: BridgeSetDefaultExternalAccountInput!) {
+ bridgeSetDefaultExternalAccount(input: $input) {
errors {
code
message
path
}
- status
+ externalAccount {
+ accountNumberLast4
+ bankName
+ id
+ isDefault
+ status
+ }
}
}
Variables
- {"input": IntraLedgerUsdPaymentSendInput}
+ {"input": BridgeSetDefaultExternalAccountInput}
Response
{
"data": {
- "intraLedgerUsdPaymentSend": {
+ "bridgeSetDefaultExternalAccount": {
"errors": [Error],
- "status": "ALREADY_PAID"
+ "externalAccount": BridgeExternalAccount
}
}
}
@@ -2873,26 +3659,18 @@ Response
-
+
- lnInvoiceCreate
+ businessAccountUpgradeRequest
-
-
-
- Description
- Returns a lightning invoice for an associated wallet. When invoice is paid the value will be credited to a BTC wallet. Expires after 'expiresIn' or 24 hours.
-
-
-
@@ -2907,7 +3685,7 @@ Arguments
- input - LnInvoiceCreateInput!
+ input - BusinessAccountUpgradeRequestInput!
@@ -2920,35 +3698,32 @@ Arguments
Example
Query
- mutation LnInvoiceCreate($input: LnInvoiceCreateInput!) {
- lnInvoiceCreate(input: $input) {
+ mutation BusinessAccountUpgradeRequest($input: BusinessAccountUpgradeRequestInput!) {
+ businessAccountUpgradeRequest(input: $input) {
errors {
code
message
path
}
- invoice {
- paymentHash
- paymentRequest
- paymentSecret
- satoshis
- }
+ id
+ status
}
}
Variables
- {"input": LnInvoiceCreateInput}
+ {"input": BusinessAccountUpgradeRequestInput}
Response
{
"data": {
- "lnInvoiceCreate": {
+ "businessAccountUpgradeRequest": {
"errors": [Error],
- "invoice": LnInvoice
+ "id": "abc123",
+ "status": "abc123"
}
}
}
@@ -2957,26 +3732,18 @@ Response
-
+
- lnInvoiceCreateOnBehalfOfRecipient
+ callbackEndpointAdd
-
-
-
- Description
- Returns a lightning invoice for an associated wallet. When invoice is paid the value will be credited to a BTC wallet. Expires after 'expiresIn' or 24 hours.
-
-
-
@@ -2991,7 +3758,7 @@ Arguments
- input - LnInvoiceCreateOnBehalfOfRecipientInput!
+ input - CallbackEndpointAddInput!
@@ -3004,35 +3771,30 @@ Arguments
Example
Query
- mutation LnInvoiceCreateOnBehalfOfRecipient($input: LnInvoiceCreateOnBehalfOfRecipientInput!) {
- lnInvoiceCreateOnBehalfOfRecipient(input: $input) {
+ mutation CallbackEndpointAdd($input: CallbackEndpointAddInput!) {
+ callbackEndpointAdd(input: $input) {
errors {
code
message
path
}
- invoice {
- paymentHash
- paymentRequest
- paymentSecret
- satoshis
- }
+ id
}
}
Variables
- {"input": LnInvoiceCreateOnBehalfOfRecipientInput}
+ {"input": CallbackEndpointAddInput}
Response
{
"data": {
- "lnInvoiceCreateOnBehalfOfRecipient": {
+ "callbackEndpointAdd": {
"errors": [Error],
- "invoice": LnInvoice
+ "id": EndpointId
}
}
}
@@ -3041,18 +3803,18 @@ Response
-
+
- lnInvoiceFeeProbe
+ callbackEndpointDelete
@@ -3067,7 +3829,7 @@ Arguments
- input - LnInvoiceFeeProbeInput!
+ input - CallbackEndpointDeleteInput!
@@ -3080,30 +3842,30 @@ Arguments
Example
Query
- mutation LnInvoiceFeeProbe($input: LnInvoiceFeeProbeInput!) {
- lnInvoiceFeeProbe(input: $input) {
- amount
+ mutation CallbackEndpointDelete($input: CallbackEndpointDeleteInput!) {
+ callbackEndpointDelete(input: $input) {
errors {
code
message
path
}
+ success
}
}
Variables
- {"input": LnInvoiceFeeProbeInput}
+ {"input": CallbackEndpointDeleteInput}
Response
{
"data": {
- "lnInvoiceFeeProbe": {
- "amount": SatAmount,
- "errors": [Error]
+ "callbackEndpointDelete": {
+ "errors": [Error],
+ "success": false
}
}
}
@@ -3112,77 +3874,49 @@ Response
-
+
- lnInvoicePaymentSend
+ captchaCreateChallenge
-
-
-
- Description
- Pay a lightning invoice using a balance from a wallet which is owned by the account of the current user. Provided wallet can be USD or BTC and must have sufficient balance to cover amount in lightning invoice. Returns payment status (success, failed, pending, already_paid).
-
-
-
-
- Arguments
-
-
-
- Name
- Description
-
-
-
-
-
- input - LnInvoicePaymentInput!
-
-
-
-
-
-
-
Example
Query
- mutation LnInvoicePaymentSend($input: LnInvoicePaymentInput!) {
- lnInvoicePaymentSend(input: $input) {
+ mutation CaptchaCreateChallenge {
+ captchaCreateChallenge {
errors {
code
message
path
}
- status
+ result {
+ challengeCode
+ failbackMode
+ id
+ newCaptcha
+ }
}
}
-
-
-
- Variables
- {"input": LnInvoicePaymentInput}
Response
{
"data": {
- "lnInvoicePaymentSend": {
+ "captchaCreateChallenge": {
"errors": [Error],
- "status": "ALREADY_PAID"
+ "result": CaptchaCreateChallengeResult
}
}
}
@@ -3191,26 +3925,18 @@ Response
-
+
- lnNoAmountInvoiceCreate
+ captchaRequestAuthCode
-
-
-
- Description
- Returns a lightning invoice for an associated wallet. Can be used to receive any supported currency value (currently USD or BTC). Expires after 'expiresIn' or 24 hours for BTC invoices or 5 minutes for USD invoices.
-
-
-
@@ -3225,7 +3951,7 @@ Arguments
- input - LnNoAmountInvoiceCreateInput!
+ input - CaptchaRequestAuthCodeInput!
@@ -3238,34 +3964,30 @@ Arguments
Example
Query
- mutation LnNoAmountInvoiceCreate($input: LnNoAmountInvoiceCreateInput!) {
- lnNoAmountInvoiceCreate(input: $input) {
+ mutation CaptchaRequestAuthCode($input: CaptchaRequestAuthCodeInput!) {
+ captchaRequestAuthCode(input: $input) {
errors {
code
message
path
}
- invoice {
- paymentHash
- paymentRequest
- paymentSecret
- }
+ success
}
}
Variables
- {"input": LnNoAmountInvoiceCreateInput}
+ {"input": CaptchaRequestAuthCodeInput}
Response
{
"data": {
- "lnNoAmountInvoiceCreate": {
+ "captchaRequestAuthCode": {
"errors": [Error],
- "invoice": LnNoAmountInvoice
+ "success": true
}
}
}
@@ -3274,26 +3996,18 @@ Response
-
+
- lnNoAmountInvoiceCreateOnBehalfOfRecipient
+ deviceNotificationTokenCreate
-
-
-
- Description
- Returns a lightning invoice for an associated wallet. Can be used to receive any supported currency value (currently USD or BTC). Expires after 'expiresIn' or 24 hours for BTC invoices or 5 minutes for USD invoices.
-
-
-
@@ -3308,7 +4022,7 @@ Arguments
- input - LnNoAmountInvoiceCreateOnBehalfOfRecipientInput!
+ input - DeviceNotificationTokenCreateInput!
@@ -3321,34 +4035,30 @@ Arguments
Example
Query
- mutation LnNoAmountInvoiceCreateOnBehalfOfRecipient($input: LnNoAmountInvoiceCreateOnBehalfOfRecipientInput!) {
- lnNoAmountInvoiceCreateOnBehalfOfRecipient(input: $input) {
+ mutation DeviceNotificationTokenCreate($input: DeviceNotificationTokenCreateInput!) {
+ deviceNotificationTokenCreate(input: $input) {
errors {
code
message
path
}
- invoice {
- paymentHash
- paymentRequest
- paymentSecret
- }
+ success
}
}
Variables
- {"input": LnNoAmountInvoiceCreateOnBehalfOfRecipientInput}
+ {"input": DeviceNotificationTokenCreateInput}
Response
{
"data": {
- "lnNoAmountInvoiceCreateOnBehalfOfRecipient": {
+ "deviceNotificationTokenCreate": {
"errors": [Error],
- "invoice": LnNoAmountInvoice
+ "success": false
}
}
}
@@ -3357,18 +4067,18 @@ Response
-
+
- lnNoAmountInvoiceFeeProbe
+ feedbackSubmit
@@ -3383,7 +4093,7 @@ Arguments
- input - LnNoAmountInvoiceFeeProbeInput!
+ input - FeedbackSubmitInput!
@@ -3396,30 +4106,30 @@ Arguments
Example
Query
- mutation LnNoAmountInvoiceFeeProbe($input: LnNoAmountInvoiceFeeProbeInput!) {
- lnNoAmountInvoiceFeeProbe(input: $input) {
- amount
+ mutation FeedbackSubmit($input: FeedbackSubmitInput!) {
+ feedbackSubmit(input: $input) {
errors {
code
message
path
}
+ success
}
}
Variables
- {"input": LnNoAmountInvoiceFeeProbeInput}
+ {"input": FeedbackSubmitInput}
Response
{
"data": {
- "lnNoAmountInvoiceFeeProbe": {
- "amount": SatAmount,
- "errors": [Error]
+ "feedbackSubmit": {
+ "errors": [Error],
+ "success": false
}
}
}
@@ -3428,26 +4138,18 @@ Response
-
+
- lnNoAmountInvoicePaymentSend
+ idDocumentUploadUrlGenerate
-
-
-
- Description
- Pay a lightning invoice using a balance from a wallet which is owned by the account of the current user. Provided wallet must be BTC and must have sufficient balance to cover amount specified in mutation request. Returns payment status (success, failed, pending, already_paid).
-
-
-
@@ -3462,7 +4164,7 @@ Arguments
- input - LnNoAmountInvoicePaymentInput!
+ input - IdDocumentUploadUrlGenerateInput!
@@ -3475,30 +4177,32 @@ Arguments
Example
Query
- mutation LnNoAmountInvoicePaymentSend($input: LnNoAmountInvoicePaymentInput!) {
- lnNoAmountInvoicePaymentSend(input: $input) {
+ mutation IdDocumentUploadUrlGenerate($input: IdDocumentUploadUrlGenerateInput!) {
+ idDocumentUploadUrlGenerate(input: $input) {
errors {
code
message
path
}
- status
+ fileKey
+ uploadUrl
}
}
Variables
- {"input": LnNoAmountInvoicePaymentInput}
+ {"input": IdDocumentUploadUrlGenerateInput}
Response
{
"data": {
- "lnNoAmountInvoicePaymentSend": {
+ "idDocumentUploadUrlGenerate": {
"errors": [Error],
- "status": "ALREADY_PAID"
+ "fileKey": "xyz789",
+ "uploadUrl": "xyz789"
}
}
}
@@ -3507,18 +4211,26 @@ Response
-
+
- lnNoAmountUsdInvoiceFeeProbe
+ initiateCashout
+
+
+
+ Description
+ Start the Cashout process; User sends USD to Flash via Ibex and receives USD or JMD to bank account.
+
+
+
@@ -3533,7 +4245,7 @@ Arguments
- input - LnNoAmountUsdInvoiceFeeProbeInput!
+ input - InitiateCashoutInput!
@@ -3546,30 +4258,30 @@ Arguments
Example
Query
- mutation LnNoAmountUsdInvoiceFeeProbe($input: LnNoAmountUsdInvoiceFeeProbeInput!) {
- lnNoAmountUsdInvoiceFeeProbe(input: $input) {
- amount
+ mutation InitiateCashout($input: InitiateCashoutInput!) {
+ initiateCashout(input: $input) {
errors {
code
message
path
}
+ id
}
}
Variables
- {"input": LnNoAmountUsdInvoiceFeeProbeInput}
+ {"input": InitiateCashoutInput}
Response
{
"data": {
- "lnNoAmountUsdInvoiceFeeProbe": {
- "amount": CentAmount,
- "errors": [Error]
+ "initiateCashout": {
+ "errors": [Error],
+ "id": "4"
}
}
}
@@ -3578,18 +4290,18 @@ Response
-
+
- lnNoAmountUsdInvoicePaymentSend
+ intraLedgerPaymentSend
Description
- Pay a lightning invoice using a balance from a wallet which is owned by the account of the current user. Provided wallet must be USD and have sufficient balance to cover amount specified in mutation request. Returns payment status (success, failed, pending, already_paid).
+ Actions a payment which is internal to the ledger e.g. it does not use onchain/lightning. Returns payment status (success, failed, pending, already_paid).
@@ -3612,7 +4324,7 @@ Arguments
- input - LnNoAmountUsdInvoicePaymentInput!
+ input - IntraLedgerPaymentSendInput!
@@ -3625,8 +4337,8 @@ Arguments
Example
Query
- mutation LnNoAmountUsdInvoicePaymentSend($input: LnNoAmountUsdInvoicePaymentInput!) {
- lnNoAmountUsdInvoicePaymentSend(input: $input) {
+ mutation IntraLedgerPaymentSend($input: IntraLedgerPaymentSendInput!) {
+ intraLedgerPaymentSend(input: $input) {
errors {
code
message
@@ -3639,14 +4351,14 @@ Query
Variables
- {"input": LnNoAmountUsdInvoicePaymentInput}
+ {"input": IntraLedgerPaymentSendInput}
Response
{
"data": {
- "lnNoAmountUsdInvoicePaymentSend": {
+ "intraLedgerPaymentSend": {
"errors": [Error],
"status": "ALREADY_PAID"
}
@@ -3657,18 +4369,19 @@ Response
-
+
- lnUsdInvoiceCreate
+ intraLedgerUsdPaymentSend
Description
- Returns a lightning invoice denominated in satoshis for an associated wallet. When invoice is paid the equivalent value at invoice creation will be credited to a USD wallet. Expires after 'expiresIn' or 5 minutes (short expiry time because there is a USD/BTC exchange rate associated with the amount).
+ Galoy: Actions a payment which is internal to the ledger e.g. it does not use onchain/lightning. Returns payment status (success, failed, pending, already_paid).
+ Flash: We do not currently have an internal ledger. Consequently, intraledger payments have been updated to call Ibex instead.
@@ -3676,7 +4389,7 @@ Description
@@ -3691,7 +4404,7 @@ Arguments
- input - LnUsdInvoiceCreateInput!
+ input - IntraLedgerUsdPaymentSendInput!
@@ -3704,35 +4417,30 @@ Arguments
Example
Query
- mutation LnUsdInvoiceCreate($input: LnUsdInvoiceCreateInput!) {
- lnUsdInvoiceCreate(input: $input) {
+ mutation IntraLedgerUsdPaymentSend($input: IntraLedgerUsdPaymentSendInput!) {
+ intraLedgerUsdPaymentSend(input: $input) {
errors {
code
message
path
}
- invoice {
- paymentHash
- paymentRequest
- paymentSecret
- satoshis
- }
+ status
}
}
Variables
- {"input": LnUsdInvoiceCreateInput}
+ {"input": IntraLedgerUsdPaymentSendInput}
Response
{
"data": {
- "lnUsdInvoiceCreate": {
+ "intraLedgerUsdPaymentSend": {
"errors": [Error],
- "invoice": LnInvoice
+ "status": "ALREADY_PAID"
}
}
}
@@ -3741,18 +4449,18 @@ Response
-
+
- lnUsdInvoiceCreateOnBehalfOfRecipient
+ lnInvoiceCreate
Description
- Returns a lightning invoice denominated in satoshis for an associated wallet. When invoice is paid the equivalent value at invoice creation will be credited to a USD wallet. Expires after 'expiresIn' or 5 minutes (short expiry time because there is a USD/BTC exchange rate associated with the amount).
+ Returns a lightning invoice for an associated wallet. When invoice is paid the value will be credited to a BTC wallet. Expires after 'expiresIn' or 24 hours.
@@ -3775,7 +4483,7 @@ Arguments
- input - LnUsdInvoiceCreateOnBehalfOfRecipientInput!
+ input - LnInvoiceCreateInput!
@@ -3788,8 +4496,8 @@ Arguments
Example
Query
- mutation LnUsdInvoiceCreateOnBehalfOfRecipient($input: LnUsdInvoiceCreateOnBehalfOfRecipientInput!) {
- lnUsdInvoiceCreateOnBehalfOfRecipient(input: $input) {
+ mutation LnInvoiceCreate($input: LnInvoiceCreateInput!) {
+ lnInvoiceCreate(input: $input) {
errors {
code
message
@@ -3807,14 +4515,14 @@ Query
Variables
- {"input": LnUsdInvoiceCreateOnBehalfOfRecipientInput}
+ {"input": LnInvoiceCreateInput}
Response
{
"data": {
- "lnUsdInvoiceCreateOnBehalfOfRecipient": {
+ "lnInvoiceCreate": {
"errors": [Error],
"invoice": LnInvoice
}
@@ -3825,18 +4533,26 @@ Response
-
+
- lnUsdInvoiceFeeProbe
+ lnInvoiceCreateOnBehalfOfRecipient
+
+
+
+ Description
+ Returns a lightning invoice for an associated wallet. When invoice is paid the value will be credited to a BTC wallet. Expires after 'expiresIn' or 24 hours.
+
+
+
@@ -3851,7 +4567,7 @@ Arguments
- input - LnUsdInvoiceFeeProbeInput!
+ input - LnInvoiceCreateOnBehalfOfRecipientInput!
@@ -3864,30 +4580,35 @@ Arguments
Example
Query
- mutation LnUsdInvoiceFeeProbe($input: LnUsdInvoiceFeeProbeInput!) {
- lnUsdInvoiceFeeProbe(input: $input) {
- amount
+ mutation LnInvoiceCreateOnBehalfOfRecipient($input: LnInvoiceCreateOnBehalfOfRecipientInput!) {
+ lnInvoiceCreateOnBehalfOfRecipient(input: $input) {
errors {
code
message
path
}
+ invoice {
+ paymentHash
+ paymentRequest
+ paymentSecret
+ satoshis
+ }
}
}
Variables
- {"input": LnUsdInvoiceFeeProbeInput}
+ {"input": LnInvoiceCreateOnBehalfOfRecipientInput}
Response
{
"data": {
- "lnUsdInvoiceFeeProbe": {
- "amount": CentAmount,
- "errors": [Error]
+ "lnInvoiceCreateOnBehalfOfRecipient": {
+ "errors": [Error],
+ "invoice": LnInvoice
}
}
}
@@ -3896,18 +4617,18 @@ Response
-
+
- merchantMapSuggest
+ lnInvoiceFeeProbe
@@ -3922,7 +4643,7 @@ Arguments
- input - MerchantMapSuggestInput!
+ input - LnInvoiceFeeProbeInput!
@@ -3935,39 +4656,30 @@ Arguments
Example
Query
- mutation MerchantMapSuggest($input: MerchantMapSuggestInput!) {
- merchantMapSuggest(input: $input) {
+ mutation LnInvoiceFeeProbe($input: LnInvoiceFeeProbeInput!) {
+ lnInvoiceFeeProbe(input: $input) {
+ amount
errors {
code
message
path
}
- merchant {
- coordinates {
- ...CoordinatesFragment
- }
- createdAt
- id
- title
- username
- validated
- }
}
}
Variables
- {"input": MerchantMapSuggestInput}
+ {"input": LnInvoiceFeeProbeInput}
Response
{
"data": {
- "merchantMapSuggest": {
- "errors": [Error],
- "merchant": Merchant
+ "lnInvoiceFeeProbe": {
+ "amount": SatAmount,
+ "errors": [Error]
}
}
}
@@ -3976,18 +4688,26 @@ Response
-
+
- onChainAddressCreate
+ lnInvoicePaymentSend
+
+
+
+ Description
+ Pay a lightning invoice using a balance from a wallet which is owned by the account of the current user. Provided wallet can be USD or BTC and must have sufficient balance to cover amount in lightning invoice. Returns payment status (success, failed, pending, already_paid).
+
+
+
@@ -4002,7 +4722,7 @@ Arguments
- input - OnChainAddressCreateInput!
+ input - LnInvoicePaymentInput!
@@ -4015,30 +4735,30 @@ Arguments
Example
Query
- mutation OnChainAddressCreate($input: OnChainAddressCreateInput!) {
- onChainAddressCreate(input: $input) {
- address
+ mutation LnInvoicePaymentSend($input: LnInvoicePaymentInput!) {
+ lnInvoicePaymentSend(input: $input) {
errors {
code
message
path
}
+ status
}
}
Variables
- {"input": OnChainAddressCreateInput}
+ {"input": LnInvoicePaymentInput}
Response
{
"data": {
- "onChainAddressCreate": {
- "address": OnChainAddress,
- "errors": [Error]
+ "lnInvoicePaymentSend": {
+ "errors": [Error],
+ "status": "ALREADY_PAID"
}
}
}
@@ -4047,18 +4767,26 @@ Response
-
+
- onChainAddressCurrent
+ lnNoAmountInvoiceCreate
+
+
+
+ Description
+ Returns a lightning invoice for an associated wallet. Can be used to receive any supported currency value (currently USD or BTC). Expires after 'expiresIn' or 24 hours for BTC invoices or 5 minutes for USD invoices.
+
+
+
@@ -4073,7 +4801,7 @@ Arguments
- input - OnChainAddressCurrentInput!
+ input - LnNoAmountInvoiceCreateInput!
@@ -4086,30 +4814,34 @@ Arguments
Example
Query
- mutation OnChainAddressCurrent($input: OnChainAddressCurrentInput!) {
- onChainAddressCurrent(input: $input) {
- address
+ mutation LnNoAmountInvoiceCreate($input: LnNoAmountInvoiceCreateInput!) {
+ lnNoAmountInvoiceCreate(input: $input) {
errors {
code
message
path
}
+ invoice {
+ paymentHash
+ paymentRequest
+ paymentSecret
+ }
}
}
Variables
- {"input": OnChainAddressCurrentInput}
+ {"input": LnNoAmountInvoiceCreateInput}
Response
{
"data": {
- "onChainAddressCurrent": {
- "address": OnChainAddress,
- "errors": [Error]
+ "lnNoAmountInvoiceCreate": {
+ "errors": [Error],
+ "invoice": LnNoAmountInvoice
}
}
}
@@ -4118,18 +4850,26 @@ Response
-
+
- onChainPaymentSend
+ lnNoAmountInvoiceCreateOnBehalfOfRecipient
+
+
+
+ Description
+ Returns a lightning invoice for an associated wallet. Can be used to receive any supported currency value (currently USD or BTC). Expires after 'expiresIn' or 24 hours for BTC invoices or 5 minutes for USD invoices.
+
+
+
@@ -4144,7 +4884,7 @@ Arguments
- input - OnChainPaymentSendInput!
+ input - LnNoAmountInvoiceCreateOnBehalfOfRecipientInput!
@@ -4157,30 +4897,34 @@ Arguments
Example
Query
- mutation OnChainPaymentSend($input: OnChainPaymentSendInput!) {
- onChainPaymentSend(input: $input) {
+ mutation LnNoAmountInvoiceCreateOnBehalfOfRecipient($input: LnNoAmountInvoiceCreateOnBehalfOfRecipientInput!) {
+ lnNoAmountInvoiceCreateOnBehalfOfRecipient(input: $input) {
errors {
code
message
path
}
- status
+ invoice {
+ paymentHash
+ paymentRequest
+ paymentSecret
+ }
}
}
Variables
- {"input": OnChainPaymentSendInput}
+ {"input": LnNoAmountInvoiceCreateOnBehalfOfRecipientInput}
Response
{
"data": {
- "onChainPaymentSend": {
+ "lnNoAmountInvoiceCreateOnBehalfOfRecipient": {
"errors": [Error],
- "status": "ALREADY_PAID"
+ "invoice": LnNoAmountInvoice
}
}
}
@@ -4189,18 +4933,18 @@ Response
-
+
- onChainPaymentSendAll
+ lnNoAmountInvoiceFeeProbe
@@ -4215,7 +4959,7 @@ Arguments
- input - OnChainPaymentSendAllInput!
+ input - LnNoAmountInvoiceFeeProbeInput!
@@ -4228,30 +4972,30 @@ Arguments
Example
Query
- mutation OnChainPaymentSendAll($input: OnChainPaymentSendAllInput!) {
- onChainPaymentSendAll(input: $input) {
+ mutation LnNoAmountInvoiceFeeProbe($input: LnNoAmountInvoiceFeeProbeInput!) {
+ lnNoAmountInvoiceFeeProbe(input: $input) {
+ amount
errors {
code
message
path
}
- status
}
}
Variables
- {"input": OnChainPaymentSendAllInput}
+ {"input": LnNoAmountInvoiceFeeProbeInput}
Response
{
"data": {
- "onChainPaymentSendAll": {
- "errors": [Error],
- "status": "ALREADY_PAID"
+ "lnNoAmountInvoiceFeeProbe": {
+ "amount": SatAmount,
+ "errors": [Error]
}
}
}
@@ -4260,13 +5004,21 @@ Response
-
+
- onChainUsdPaymentSend
+ lnNoAmountInvoicePaymentSend
+
+
+
+ Description
+ Pay a lightning invoice using a balance from a wallet which is owned by the account of the current user. Provided wallet must be BTC and must have sufficient balance to cover amount specified in mutation request. Returns payment status (success, failed, pending, already_paid).
+
+
+
@@ -4286,7 +5038,7 @@ Arguments
- input - OnChainUsdPaymentSendInput!
+ input - LnNoAmountInvoicePaymentInput!
@@ -4299,8 +5051,8 @@ Arguments
Example
Query
- mutation OnChainUsdPaymentSend($input: OnChainUsdPaymentSendInput!) {
- onChainUsdPaymentSend(input: $input) {
+ mutation LnNoAmountInvoicePaymentSend($input: LnNoAmountInvoicePaymentInput!) {
+ lnNoAmountInvoicePaymentSend(input: $input) {
errors {
code
message
@@ -4313,14 +5065,14 @@ Query
Variables
- {"input": OnChainUsdPaymentSendInput}
+ {"input": LnNoAmountInvoicePaymentInput}
Response
{
"data": {
- "onChainUsdPaymentSend": {
+ "lnNoAmountInvoicePaymentSend": {
"errors": [Error],
"status": "ALREADY_PAID"
}
@@ -4331,18 +5083,18 @@ Response
-
+
- onChainUsdPaymentSendAsBtcDenominated
+ lnNoAmountUsdInvoiceFeeProbe
@@ -4357,7 +5109,7 @@ Arguments
- input - OnChainUsdPaymentSendAsBtcDenominatedInput!
+ input - LnNoAmountUsdInvoiceFeeProbeInput!
@@ -4370,30 +5122,32 @@ Arguments
Example
Query
- mutation OnChainUsdPaymentSendAsBtcDenominated($input: OnChainUsdPaymentSendAsBtcDenominatedInput!) {
- onChainUsdPaymentSendAsBtcDenominated(input: $input) {
+ mutation LnNoAmountUsdInvoiceFeeProbe($input: LnNoAmountUsdInvoiceFeeProbeInput!) {
+ lnNoAmountUsdInvoiceFeeProbe(input: $input) {
+ amount
errors {
code
message
path
}
- status
+ invoiceAmount
}
}
Variables
- {"input": OnChainUsdPaymentSendAsBtcDenominatedInput}
+ {"input": LnNoAmountUsdInvoiceFeeProbeInput}
Response
{
"data": {
- "onChainUsdPaymentSendAsBtcDenominated": {
+ "lnNoAmountUsdInvoiceFeeProbe": {
+ "amount": USDCents,
"errors": [Error],
- "status": "ALREADY_PAID"
+ "invoiceAmount": USDCents
}
}
}
@@ -4402,18 +5156,26 @@ Response
-
+
- quizCompleted
+ lnNoAmountUsdInvoicePaymentSend
+
+
+
+ Description
+ Pay a lightning invoice using a balance from a wallet which is owned by the account of the current user. Provided wallet must be USD and have sufficient balance to cover amount specified in mutation request. Returns payment status (success, failed, pending, already_paid).
+
+
+
@@ -4428,7 +5190,7 @@ Arguments
- input - QuizCompletedInput!
+ input - LnNoAmountUsdInvoicePaymentInput!
@@ -4441,34 +5203,30 @@ Arguments
Example
Query
- mutation QuizCompleted($input: QuizCompletedInput!) {
- quizCompleted(input: $input) {
+ mutation LnNoAmountUsdInvoicePaymentSend($input: LnNoAmountUsdInvoicePaymentInput!) {
+ lnNoAmountUsdInvoicePaymentSend(input: $input) {
errors {
code
message
path
}
- quiz {
- amount
- completed
- id
- }
+ status
}
}
Variables
- {"input": QuizCompletedInput}
+ {"input": LnNoAmountUsdInvoicePaymentInput}
Response
{
"data": {
- "quizCompleted": {
+ "lnNoAmountUsdInvoicePaymentSend": {
"errors": [Error],
- "quiz": Quiz
+ "status": "ALREADY_PAID"
}
}
}
@@ -4477,17 +5235,18 @@ Response
-
+
-
- userContactUpdateAlias
+
+ lnUsdInvoiceCreate
-
- will be moved to AccountContact
+
+ Description
+ Returns a lightning invoice denominated in satoshis for an associated wallet. When invoice is paid the equivalent value at invoice creation will be credited to a USD wallet. Expires after 'expiresIn' or 5 minutes (short expiry time because there is a USD/BTC exchange rate associated with the amount).
@@ -4495,7 +5254,7 @@
@@ -4510,7 +5269,7 @@ Arguments
- input - UserContactUpdateAliasInput!
+ input - LnUsdInvoiceCreateInput!
@@ -4523,38 +5282,35 @@ Arguments
Example
Query
- mutation UserContactUpdateAlias($input: UserContactUpdateAliasInput!) {
- userContactUpdateAlias(input: $input) {
- contact {
- alias
- id
- transactions {
- ...TransactionConnectionFragment
- }
- transactionsCount
- username
- }
+ mutation LnUsdInvoiceCreate($input: LnUsdInvoiceCreateInput!) {
+ lnUsdInvoiceCreate(input: $input) {
errors {
code
message
path
}
+ invoice {
+ paymentHash
+ paymentRequest
+ paymentSecret
+ satoshis
+ }
}
}
Variables
- {"input": UserContactUpdateAliasInput}
+ {"input": LnUsdInvoiceCreateInput}
Response
{
"data": {
- "userContactUpdateAlias": {
- "contact": UserContact,
- "errors": [Error]
+ "lnUsdInvoiceCreate": {
+ "errors": [Error],
+ "invoice": LnInvoice
}
}
}
@@ -4563,67 +5319,82 @@ Response
-
+
- userEmailDelete
+ lnUsdInvoiceCreateOnBehalfOfRecipient
+
+
+
+ Description
+ Returns a lightning invoice denominated in satoshis for an associated wallet. When invoice is paid the equivalent value at invoice creation will be credited to a USD wallet. Expires after 'expiresIn' or 5 minutes (short expiry time because there is a USD/BTC exchange rate associated with the amount).
+
+
+
+
+ Arguments
+
+
+
+ Name
+ Description
+
+
+
+
+
+ input - LnUsdInvoiceCreateOnBehalfOfRecipientInput!
+
+
+
+
+
+
+
Example
Query
- mutation UserEmailDelete {
- userEmailDelete {
+ mutation LnUsdInvoiceCreateOnBehalfOfRecipient($input: LnUsdInvoiceCreateOnBehalfOfRecipientInput!) {
+ lnUsdInvoiceCreateOnBehalfOfRecipient(input: $input) {
errors {
code
message
path
}
- me {
- contactByUsername {
- ...UserContactFragment
- }
- contacts {
- ...UserContactFragment
- }
- createdAt
- defaultAccount {
- ...AccountFragment
- }
- email {
- ...EmailFragment
- }
- id
- language
- npub
- phone
- quizQuestions {
- ...UserQuizQuestionFragment
- }
- totpEnabled
- username
+ invoice {
+ paymentHash
+ paymentRequest
+ paymentSecret
+ satoshis
}
}
}
+
+
+
+ Variables
+ {"input": LnUsdInvoiceCreateOnBehalfOfRecipientInput}
Response
{
"data": {
- "userEmailDelete": {
+ "lnUsdInvoiceCreateOnBehalfOfRecipient": {
"errors": [Error],
- "me": User
+ "invoice": LnInvoice
}
}
}
@@ -4632,18 +5403,18 @@ Response
-
+
- userEmailRegistrationInitiate
+ lnUsdInvoiceFeeProbe
@@ -4658,7 +5429,7 @@ Arguments
- input - UserEmailRegistrationInitiateInput!
+ input - LnUsdInvoiceFeeProbeInput!
@@ -4671,55 +5442,32 @@ Arguments
Example
Query
- mutation UserEmailRegistrationInitiate($input: UserEmailRegistrationInitiateInput!) {
- userEmailRegistrationInitiate(input: $input) {
- emailRegistrationId
+ mutation LnUsdInvoiceFeeProbe($input: LnUsdInvoiceFeeProbeInput!) {
+ lnUsdInvoiceFeeProbe(input: $input) {
+ amount
errors {
code
message
path
}
- me {
- contactByUsername {
- ...UserContactFragment
- }
- contacts {
- ...UserContactFragment
- }
- createdAt
- defaultAccount {
- ...AccountFragment
- }
- email {
- ...EmailFragment
- }
- id
- language
- npub
- phone
- quizQuestions {
- ...UserQuizQuestionFragment
- }
- totpEnabled
- username
- }
+ invoiceAmount
}
}
Variables
- {"input": UserEmailRegistrationInitiateInput}
+ {"input": LnUsdInvoiceFeeProbeInput}
Response
{
"data": {
- "userEmailRegistrationInitiate": {
- "emailRegistrationId": EmailRegistrationId,
+ "lnUsdInvoiceFeeProbe": {
+ "amount": USDCents,
"errors": [Error],
- "me": User
+ "invoiceAmount": USDCents
}
}
}
@@ -4728,18 +5476,26 @@ Response
-
+
- userEmailRegistrationValidate
+ lnurlPaymentSend
+
+
+
+ Description
+ Pay a LNURL-pay endpoint using a USD/USDT wallet balance. The wallet amount is converted to whole-satoshi millisatoshis before calling IBEX.
+
+
+
@@ -4754,7 +5510,7 @@ Arguments
- input - UserEmailRegistrationValidateInput!
+ input - LnurlPaymentSendInput!
@@ -4767,53 +5523,30 @@ Arguments
Example
Query
- mutation UserEmailRegistrationValidate($input: UserEmailRegistrationValidateInput!) {
- userEmailRegistrationValidate(input: $input) {
+ mutation LnurlPaymentSend($input: LnurlPaymentSendInput!) {
+ lnurlPaymentSend(input: $input) {
errors {
code
message
path
}
- me {
- contactByUsername {
- ...UserContactFragment
- }
- contacts {
- ...UserContactFragment
- }
- createdAt
- defaultAccount {
- ...AccountFragment
- }
- email {
- ...EmailFragment
- }
- id
- language
- npub
- phone
- quizQuestions {
- ...UserQuizQuestionFragment
- }
- totpEnabled
- username
- }
+ status
}
}
Variables
- {"input": UserEmailRegistrationValidateInput}
+ {"input": LnurlPaymentSendInput}
Response
{
"data": {
- "userEmailRegistrationValidate": {
+ "lnurlPaymentSend": {
"errors": [Error],
- "me": User
+ "status": "ALREADY_PAID"
}
}
}
@@ -4822,18 +5555,18 @@ Response
-
+
- userLogin
+ merchantMapSuggest
@@ -4848,7 +5581,7 @@ Arguments
- input - UserLoginInput!
+ input - MerchantMapSuggestInput!
@@ -4861,32 +5594,39 @@ Arguments
Example
Query
- mutation UserLogin($input: UserLoginInput!) {
- userLogin(input: $input) {
- authToken
+ mutation MerchantMapSuggest($input: MerchantMapSuggestInput!) {
+ merchantMapSuggest(input: $input) {
errors {