diff --git a/packages/documentation/package.json b/packages/documentation/package.json index e3cfbed54f..4b83dcad06 100644 --- a/packages/documentation/package.json +++ b/packages/documentation/package.json @@ -5,7 +5,7 @@ "scripts": { "start": "astro dev", "build:docs": "astro build", - "build:docs:graphql": "spectaql config-auth.yml && spectaql config-backend.yml", + "build:docs:graphql": "spectaql ./spectaql/config-auth.yml && spectaql ./spectaql/config-auth-es.yml && spectaql ./spectaql/config-backend.yml && spectaql ./spectaql/config-backend-es.yml", "preview": "astro preview", "astro": "astro", "format": "prettier --write '**/*.{js,mjs,ts,tsx,json,md,mdx,astro}' && eslint --max-warnings=0 --fix .", diff --git a/packages/documentation/spectaql/config-auth-es.yml b/packages/documentation/spectaql/config-auth-es.yml new file mode 100644 index 0000000000..bf1eb4663b --- /dev/null +++ b/packages/documentation/spectaql/config-auth-es.yml @@ -0,0 +1,31 @@ +spectaql: + oneFile: true + targetDir: ./src/pages/es/apis/graphql/auth + logoFile: ./public/img/logo.png + embedLogo: true + faviconUrl: /favicon.svg + displayAllServers: true + +introspection: + removeTrailingPeriodFromDescriptions: false + schemaFile: '../auth/src/graphql/schema.graphql' + queryNameStrategy: capitalizeFirst + fieldExpansionDepth: 2 + + spectaqlDirective: + enable: true + +extensions: + graphqlScalarExamples: true + +info: + title: Auth Admin API + description: The Auth Admin API allows you to get information about a grant, such as its status, state, related payment details, and the wallet address of the grantee’s account. The API also allows you to revoke grants. + x-introItems: + - title: Back to documentation + url: /es/overview/overview + x-hidePoweredBy: true + +servers: + - url: https://staging.example.com/graphql + description: Staging diff --git a/packages/documentation/config-auth.yml b/packages/documentation/spectaql/config-auth.yml similarity index 100% rename from packages/documentation/config-auth.yml rename to packages/documentation/spectaql/config-auth.yml diff --git a/packages/documentation/spectaql/config-backend-es.yml b/packages/documentation/spectaql/config-backend-es.yml new file mode 100644 index 0000000000..bf3970bc8e --- /dev/null +++ b/packages/documentation/spectaql/config-backend-es.yml @@ -0,0 +1,31 @@ +spectaql: + oneFile: true + targetDir: ./src/pages/es/apis/graphql/backend + logoFile: ./public/img/logo.png + embedLogo: true + faviconUrl: /favicon.svg + displayAllServers: true + +introspection: + removeTrailingPeriodFromDescriptions: false + schemaFile: '../backend/src/graphql/schema.graphql' + queryNameStrategy: capitalizeFirst + fieldExpansionDepth: 2 + + spectaqlDirective: + enable: true + +extensions: + graphqlScalarExamples: true + +info: + title: Backend Admin API + description: The Backend Admin API provides you with comprehensive capabilities to manage your Rafiki instance. Core functionality includes managing peering relationships, assets, wallet addresses and their public keys, as well as liquidity management through deposits and withdrawals. Another important aspect of the Backend Admin API is to manage Open Payments resources like payments and quotes. + x-introItems: + - title: Back to documentation + url: /es/overview/overview + x-hidePoweredBy: true + +servers: + - url: https://staging.example.com/graphql + description: Staging diff --git a/packages/documentation/config-backend.yml b/packages/documentation/spectaql/config-backend.yml similarity index 100% rename from packages/documentation/config-backend.yml rename to packages/documentation/spectaql/config-backend.yml diff --git a/packages/documentation/src/pages/apis/graphql/auth/index.html b/packages/documentation/src/pages/apis/graphql/auth/index.html index b1e3723fcd..63dd3c61e6 100644 --- a/packages/documentation/src/pages/apis/graphql/auth/index.html +++ b/packages/documentation/src/pages/apis/graphql/auth/index.html @@ -845,6 +845,8 @@
  • SortOrder
  • String
  • +
  • Subject
  • +
  • SubjectItem
  • UInt64
  • UInt8
  • @@ -957,6 +959,11 @@
    Query
    } createdAt } + subject { + sub_ids { + ...SubjectItemFragment + } + } state finalizationReason createdAt @@ -969,7 +976,7 @@
    Query
    class="example-section example-section-is-code operation-variables-example" >
    Variables
    -
    {"id": "4"}
    +                  
    {"id": 4}
     
    Response "id": "4", "client": "xyz789", "access": [Access], + "subject": Subject, "state": "PROCESSING", "finalizationReason": "ISSUED", "createdAt": "xyz789", - "tenantId": 4 + "tenantId": "4" } } } @@ -1191,13 +1199,13 @@
    Query
    >
    Variables
    {
    -  "after": "xyz789",
    -  "before": "xyz789",
    +  "after": "abc123",
    +  "before": "abc123",
       "first": 987,
    -  "last": 987,
    +  "last": 123,
       "filter": GrantFilter,
       "sortOrder": "ASC",
    -  "tenantId": 4
    +  "tenantId": "4"
     }
     
    @@ -1302,7 +1310,7 @@
    Variables
    class="example-section example-section-is-code operation-response-example" >
    Response
    -
    {"data": {"revokeGrant": {"id": "4"}}}
    +                  
    {"data": {"revokeGrant": {"id": 4}}}
     
    @@ -1424,12 +1432,12 @@
    Fields
    Example
    {
    -  "id": "4",
    -  "identifier": "abc123",
    +  "id": 4,
    +  "identifier": "xyz789",
       "type": "abc123",
    -  "actions": ["xyz789"],
    +  "actions": ["abc123"],
       "limits": LimitData,
    -  "createdAt": "xyz789"
    +  "createdAt": "abc123"
     }
     
    @@ -1615,7 +1623,7 @@
    Fields
    Example
    -
    {"in": ["xyz789"]}
    +                  
    {"in": ["abc123"]}
     
    @@ -1675,6 +1683,20 @@
    Fields
    Details of the access provided by the grant. + + + subject + - + Subject + + Details of the subject provided by the grant. + state @@ -1741,13 +1763,14 @@
    Fields
    Example
    {
    -  "id": "4",
    -  "client": "abc123",
    +  "id": 4,
    +  "client": "xyz789",
       "access": [Access],
    +  "subject": Subject,
       "state": "PROCESSING",
       "finalizationReason": "ISSUED",
    -  "createdAt": "xyz789",
    -  "tenantId": "4"
    +  "createdAt": "abc123",
    +  "tenantId": 4
     }
     
    @@ -2218,10 +2241,10 @@
    Fields
    Example
    {
    -  "receiver": "xyz789",
    +  "receiver": "abc123",
       "debitAmount": PaymentAmount,
       "receiveAmount": PaymentAmount,
    -  "interval": "xyz789"
    +  "interval": "abc123"
     }
     
    @@ -2302,6 +2325,15 @@
    Possible Types

    + + +

    + SubjectItem +

    + + @@ -2414,8 +2446,8 @@
    Example
    {
       "endCursor": "xyz789",
       "hasNextPage": false,
    -  "hasPreviousPage": false,
    -  "startCursor": "abc123"
    +  "hasPreviousPage": true,
    +  "startCursor": "xyz789"
     }
     
    @@ -2552,7 +2584,7 @@
    Fields
    Example
    -
    {"grantId": "abc123"}
    +                  
    {"grantId": "xyz789"}
     
    @@ -2595,7 +2627,7 @@
    Fields
    Example
    -
    {"id": "4"}
    +                  
    {"id": 4}
     
    @@ -2672,6 +2704,142 @@
    Description
    Example
    "abc123"
    +
    +
    + + + +
    +
    + Types +
    +

    Subject

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + sub_ids + - + [SubjectItem!]! +
    +
    +
    +
    +
    +
    Example
    +
    {"sub_ids": [SubjectItem]}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    SubjectItem

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + id - + ID! + Unique identifier of the subject object.
    + subId + - + String! + Wallet address of the subject's account.
    + subIdFormat + - + String! + Format of the subject identifier
    + createdAt + - + String! + The date and time when the subject was created.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": "4",
    +  "subId": "xyz789",
    +  "subIdFormat": "xyz789",
    +  "createdAt": "abc123"
    +}
     
    diff --git a/packages/documentation/src/pages/apis/graphql/backend/index.html b/packages/documentation/src/pages/apis/graphql/backend/index.html index 35b628dbf3..ebb5aa69c7 100644 --- a/packages/documentation/src/pages/apis/graphql/backend/index.html +++ b/packages/documentation/src/pages/apis/graphql/backend/index.html @@ -799,6 +799,9 @@ >CancelOutgoingPaymentInput +
  • + CardDetailsInput +
  • +
  • + CardPaymentFailureReason +
  • +
  • + CompleteReceiverInput +
  • +
  • + CompleteReceiverResponse +
  • CreateAssetInput
  • @@ -1209,6 +1233,11 @@ >IncomingPaymentEdge +
  • + IncomingPaymentFilter +
  • IncomingPaymentResponseQuery class="example-section example-section-is-code operation-variables-example" >
    Variables
    -
    {"id": "abc123", "limit": 987}
    +                  
    {"id": "abc123", "limit": 123}
     
  • Query } } createdAt - tenantId + tenant { + id + email + apiSecret + idpConsentUrl + idpSecret + publicName + createdAt + deletedAt + settings { + ...TenantSettingFragment + } + } } }
    @@ -1700,7 +1741,7 @@
    Response
    "data": { "asset": { "id": 4, - "code": "abc123", + "code": "xyz789", "scale": UInt8, "liquidity": UInt64, "withdrawalThreshold": UInt64, @@ -1709,7 +1750,7 @@
    Response
    "sendingFee": Fee, "fees": FeesConnection, "createdAt": "xyz789", - "tenantId": "4" + "tenant": Tenant } } } @@ -1835,7 +1876,19 @@
    Query
    } } createdAt - tenantId + tenant { + id + email + apiSecret + idpConsentUrl + idpSecret + publicName + createdAt + deletedAt + settings { + ...TenantSettingFragment + } + } } }
    @@ -1845,7 +1898,7 @@
    Query
    >
    Variables
    {
    -  "code": "abc123",
    +  "code": "xyz789",
       "scale": UInt8
     }
     
    @@ -1857,8 +1910,8 @@
    Response
    {
       "data": {
         "assetByCodeAndScale": {
    -      "id": 4,
    -      "code": "xyz789",
    +      "id": "4",
    +      "code": "abc123",
           "scale": UInt8,
           "liquidity": UInt64,
           "withdrawalThreshold": UInt64,
    @@ -1867,7 +1920,7 @@ 
    Response
    "sendingFee": Fee, "fees": FeesConnection, "createdAt": "abc123", - "tenantId": 4 + "tenant": Tenant } } } @@ -2059,10 +2112,10 @@
    Query
    >
    Variables
    {
    -  "after": "xyz789",
    +  "after": "abc123",
       "before": "xyz789",
    -  "first": 123,
    -  "last": 123,
    +  "first": 987,
    +  "last": 987,
       "sortOrder": "ASC",
       "tenantId": "xyz789"
     }
    @@ -2149,6 +2202,7 @@ 
    Query
    query IncomingPayment($id: String!) {
       incomingPayment(id: $id) {
         id
    +    url
         walletAddressId
         client
         liquidity
    @@ -2166,7 +2220,20 @@ 
    Query
    }
    metadata createdAt - tenantId + senderWalletAddress + tenant { + id + email + apiSecret + idpConsentUrl + idpSecret + publicName + createdAt + deletedAt + settings { + ...TenantSettingFragment + } + } }
    }
    @@ -2175,7 +2242,245 @@
    Query
    class="example-section example-section-is-code operation-variables-example" >
    Variables
    -
    {"id": "xyz789"}
    +                  
    {"id": "abc123"}
    +
    + +
    +
    Response
    +
    {
    +  "data": {
    +    "incomingPayment": {
    +      "id": 4,
    +      "url": "xyz789",
    +      "walletAddressId": "4",
    +      "client": "xyz789",
    +      "liquidity": UInt64,
    +      "state": "PENDING",
    +      "expiresAt": "abc123",
    +      "incomingAmount": Amount,
    +      "receivedAmount": Amount,
    +      "metadata": {},
    +      "createdAt": "abc123",
    +      "senderWalletAddress": "xyz789",
    +      "tenant": Tenant
    +    }
    +  }
    +}
    +
    +
    + + + +
    +
    + Queries +
    +

    + incomingPayments +

    +
    +
    +
    +
    Description
    +

    Fetch a paginated list of incoming payments.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns an + IncomingPaymentConnection! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameDescription
    + after + - + String + + Forward pagination: Cursor (incoming payment ID) to + start retrieving incoming payments after this point. +
    + before + - + String + + Backward pagination: Cursor (outgoing payment ID) to + start retrieving incoming payments before this point. +
    + first + - + Int + + Forward pagination: Limit the result to the first + n incoming payments after the + after cursor. +
    + last - + Int + + Backward pagination: Limit the result to the last + n incoming payments before the + before cursor. +
    + sortOrder + - + SortOrder + + Specify the sort order of incoming payments based on + their creation date, either ascending or descending. +
    + filter + - + IncomingPaymentFilter + + Filter incoming payments based on specific criteria + such as initiation reason. +
    + tenantId + - + String + + Unique identifier of the tenant associated with the + incoming payment. Optional, if not provided, the + tenantId will be obtained from the signature. +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    query IncomingPayments(
    +  $after: String,
    +  $before: String,
    +  $first: Int,
    +  $last: Int,
    +  $sortOrder: SortOrder,
    +  $filter: IncomingPaymentFilter,
    +  $tenantId: String
    +) {
    +  incomingPayments(
    +    after: $after,
    +    before: $before,
    +    first: $first,
    +    last: $last,
    +    sortOrder: $sortOrder,
    +    filter: $filter,
    +    tenantId: $tenantId
    +  ) {
    +    pageInfo {
    +      endCursor
    +      hasNextPage
    +      hasPreviousPage
    +      startCursor
    +    }
    +    edges {
    +      node {
    +        ...IncomingPaymentFragment
    +      }
    +      cursor
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {
    +  "after": "abc123",
    +  "before": "xyz789",
    +  "first": 123,
    +  "last": 987,
    +  "sortOrder": "ASC",
    +  "filter": IncomingPaymentFilter,
    +  "tenantId": "xyz789"
    +}
     
    Variables
    Response
    {
       "data": {
    -    "incomingPayment": {
    -      "id": "4",
    -      "walletAddressId": "4",
    -      "client": "abc123",
    -      "liquidity": UInt64,
    -      "state": "PENDING",
    -      "expiresAt": "xyz789",
    -      "incomingAmount": Amount,
    -      "receivedAmount": Amount,
    -      "metadata": {},
    -      "createdAt": "xyz789",
    -      "tenantId": "abc123"
    +    "incomingPayments": {
    +      "pageInfo": PageInfo,
    +      "edges": [IncomingPaymentEdge]
         }
       }
     }
    @@ -2308,7 +2604,19 @@ 
    Query
    } createdAt grantId - tenantId + tenant { + id + email + apiSecret + idpConsentUrl + idpSecret + publicName + createdAt + deletedAt + settings { + ...TenantSettingFragment + } + } } }
    @@ -2317,7 +2625,7 @@
    Query
    class="example-section example-section-is-code operation-variables-example" >
    Variables
    -
    {"id": "xyz789"}
    +                  
    {"id": "abc123"}
     
    Response "data": { "outgoingPayment": { "id": 4, - "walletAddressId": "4", + "walletAddressId": 4, "client": "xyz789", "liquidity": UInt64, "state": "FUNDING", - "error": "xyz789", - "stateAttempts": 987, + "error": "abc123", + "stateAttempts": 123, "debitAmount": Amount, "receiveAmount": Amount, "receiver": "xyz789", @@ -2342,7 +2650,7 @@
    Response
    "sentAmount": Amount, "createdAt": "abc123", "grantId": "xyz789", - "tenantId": "abc123" + "tenant": Tenant } } } @@ -2554,12 +2862,12 @@
    Query
    Variables
    {
       "after": "abc123",
    -  "before": "abc123",
    +  "before": "xyz789",
       "first": 987,
       "last": 987,
       "sortOrder": "ASC",
       "filter": OutgoingPaymentFilter,
    -  "tenantId": "abc123"
    +  "tenantId": "xyz789"
     }
     
    @@ -2783,13 +3091,13 @@
    Query
    >
    Variables
    {
    -  "after": "abc123",
    -  "before": "abc123",
    +  "after": "xyz789",
    +  "before": "xyz789",
       "first": 123,
       "last": 123,
       "sortOrder": "ASC",
       "filter": PaymentFilter,
    -  "tenantId": "abc123"
    +  "tenantId": "xyz789"
     }
     
    @@ -2894,14 +3202,29 @@
    Query
    ...FeesConnectionFragment } createdAt - tenantId + tenant { + ...TenantFragment + } } staticIlpAddress name liquidityThreshold liquidity createdAt - tenantId + routes + tenant { + id + email + apiSecret + idpConsentUrl + idpSecret + publicName + createdAt + deletedAt + settings { + ...TenantSettingFragment + } + } } }
    @@ -2910,7 +3233,7 @@
    Query
    class="example-section example-section-is-code operation-variables-example" >
    Variables
    -
    {"id": "abc123"}
    +                  
    {"id": "xyz789"}
     
    Response "http": Http, "asset": Asset, "staticIlpAddress": "abc123", - "name": "xyz789", + "name": "abc123", "liquidityThreshold": UInt64, "liquidity": UInt64, - "createdAt": "abc123", - "tenantId": 4 + "createdAt": "xyz789", + "routes": ["xyz789"], + "tenant": Tenant } } } @@ -3048,14 +3372,29 @@
    Query
    ...FeesConnectionFragment } createdAt - tenantId + tenant { + ...TenantFragment + } } staticIlpAddress name liquidityThreshold liquidity createdAt - tenantId + routes + tenant { + id + email + apiSecret + idpConsentUrl + idpSecret + publicName + createdAt + deletedAt + settings { + ...TenantSettingFragment + } + } } }
    @@ -3077,16 +3416,17 @@
    Response
    {
       "data": {
         "peerByAddressAndAsset": {
    -      "id": "4",
    +      "id": 4,
           "maxPacketAmount": UInt64,
           "http": Http,
           "asset": Asset,
           "staticIlpAddress": "abc123",
    -      "name": "xyz789",
    +      "name": "abc123",
           "liquidityThreshold": UInt64,
           "liquidity": UInt64,
           "createdAt": "abc123",
    -      "tenantId": 4
    +      "routes": ["abc123"],
    +      "tenant": Tenant
         }
       }
     }
    @@ -3275,10 +3615,10 @@ 
    Query
    >
    Variables
    {
    -  "after": "xyz789",
    +  "after": "abc123",
       "before": "abc123",
       "first": 123,
    -  "last": 987,
    +  "last": 123,
       "sortOrder": "ASC",
       "tenantId": 4
     }
    @@ -3386,7 +3726,7 @@ 
    Query
    class="example-section example-section-is-code operation-variables-example" >
    Variables
    -
    {"id": "xyz789"}
    +                  
    {"id": "abc123"}
     
    Response
    {
       "data": {
         "quote": {
    -      "id": "4",
    -      "tenantId": "4",
    +      "id": 4,
    +      "tenantId": 4,
           "walletAddressId": "4",
           "receiver": "xyz789",
           "debitAmount": Amount,
           "receiveAmount": Amount,
    -      "createdAt": "abc123",
    -      "expiresAt": "abc123",
    -      "estimatedExchangeRate": 123.45
    +      "createdAt": "xyz789",
    +      "expiresAt": "xyz789",
    +      "estimatedExchangeRate": 987.65
         }
       }
     }
    @@ -3505,7 +3845,7 @@ 
    Query
    class="example-section example-section-is-code operation-variables-example" >
    Variables
    -
    {"id": "xyz789"}
    +                  
    {"id": "abc123"}
     
    Response "receiver": { "id": "xyz789", "walletAddressUrl": "xyz789", - "completed": true, + "completed": false, "incomingAmount": Amount, "receivedAmount": Amount, - "expiresAt": "abc123", + "expiresAt": "xyz789", "metadata": {}, - "createdAt": "abc123" + "createdAt": "xyz789" } } } @@ -3623,10 +3963,10 @@
    Response
    "data": { "tenant": { "id": "4", - "email": "abc123", - "apiSecret": "xyz789", + "email": "xyz789", + "apiSecret": "abc123", "idpConsentUrl": "abc123", - "idpSecret": "xyz789", + "idpSecret": "abc123", "publicName": "abc123", "createdAt": "xyz789", "deletedAt": "abc123", @@ -3807,8 +4147,8 @@
    Variables
    {
       "after": "xyz789",
       "before": "abc123",
    -  "first": 123,
    -  "last": 123,
    +  "first": 987,
    +  "last": 987,
       "sortOrder": "ASC"
     }
     
    @@ -3911,7 +4251,9 @@
    Query
    ...FeesConnectionFragment } createdAt - tenantId + tenant { + ...TenantFragment + } } liquidity address @@ -3955,7 +4297,19 @@
    Query
    value visibleInOpenPayments } - tenantId + tenant { + id + email + apiSecret + idpConsentUrl + idpSecret + publicName + createdAt + deletedAt + settings { + ...TenantSettingFragment + } + } } }
    @@ -3964,7 +4318,7 @@
    Query
    class="example-section example-section-is-code operation-variables-example" >
    Variables
    -
    {"id": "abc123"}
    +                  
    {"id": "xyz789"}
     
    Response
    {
       "data": {
         "walletAddress": {
    -      "id": 4,
    +      "id": "4",
           "asset": Asset,
           "liquidity": UInt64,
    -      "address": "abc123",
    -      "publicName": "xyz789",
    +      "address": "xyz789",
    +      "publicName": "abc123",
           "incomingPayments": IncomingPaymentConnection,
           "quotes": QuoteConnection,
           "outgoingPayments": OutgoingPaymentConnection,
    @@ -3986,7 +4340,7 @@ 
    Response
    "status": "INACTIVE", "walletAddressKeys": WalletAddressKeyConnection, "additionalProperties": [AdditionalProperty], - "tenantId": "abc123" + "tenant": Tenant } } } @@ -4076,7 +4430,9 @@
    Query
    ...FeesConnectionFragment } createdAt - tenantId + tenant { + ...TenantFragment + } } liquidity address @@ -4120,7 +4476,19 @@
    Query
    value visibleInOpenPayments } - tenantId + tenant { + id + email + apiSecret + idpConsentUrl + idpSecret + publicName + createdAt + deletedAt + settings { + ...TenantSettingFragment + } + } } }
    @@ -4147,11 +4515,11 @@
    Response
    "incomingPayments": IncomingPaymentConnection, "quotes": QuoteConnection, "outgoingPayments": OutgoingPaymentConnection, - "createdAt": "xyz789", + "createdAt": "abc123", "status": "INACTIVE", "walletAddressKeys": WalletAddressKeyConnection, "additionalProperties": [AdditionalProperty], - "tenantId": "abc123" + "tenant": Tenant } } } @@ -4345,10 +4713,10 @@
    Variables
    {
       "after": "abc123",
       "before": "abc123",
    -  "first": 123,
    -  "last": 123,
    +  "first": 987,
    +  "last": 987,
       "sortOrder": "ASC",
    -  "tenantId": "xyz789"
    +  "tenantId": "abc123"
     }
     
    @@ -4569,7 +4937,7 @@
    Query
    Variables
    {
       "after": "abc123",
    -  "before": "xyz789",
    +  "before": "abc123",
       "first": 123,
       "last": 123,
       "sortOrder": "ASC",
    @@ -4730,6 +5098,7 @@ 
    Query
    approveIncomingPayment(input: $input) { payment { id + url walletAddressId client liquidity @@ -4743,7 +5112,10 @@
    Query
    }
    metadata createdAt - tenantId + senderWalletAddress + tenant { + ...TenantFragment + } }
    } } @@ -4839,6 +5211,7 @@
    Query
    cancelIncomingPayment(input: $input) { payment { id + url walletAddressId client liquidity @@ -4852,7 +5225,10 @@
    Query
    }
    metadata createdAt - tenantId + senderWalletAddress + tenant { + ...TenantFragment + } }
    } } @@ -4962,12 +5338,121 @@
    Query
    quote { ...QuoteFragment } - sentAmount { + sentAmount { + ...AmountFragment + } + createdAt + grantId + tenant { + ...TenantFragment + } + } + } +} +
    + +
    +
    Variables
    +
    {"input": CancelOutgoingPaymentInput}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "cancelOutgoingPayment": {"payment": OutgoingPayment}
    +  }
    +}
    +
    +
    + + + +
    +
    + Mutations +
    +

    + completeReceiver +

    +
    +
    +
    +
    Description
    +

    + Complete an internal or external Open Payments incoming + payment. The receiver has a wallet address on either this or + another Open Payments resource server. +

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + CompleteReceiverResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + CompleteReceiverInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation CompleteReceiver($input: CompleteReceiverInput!) {
    +  completeReceiver(input: $input) {
    +    receiver {
    +      id
    +      walletAddressUrl
    +      completed
    +      incomingAmount {
    +        ...AmountFragment
    +      }
    +      receivedAmount {
             ...AmountFragment
           }
    +      expiresAt
    +      metadata
           createdAt
    -      grantId
    -      tenantId
         }
       }
     }
    @@ -4977,18 +5462,14 @@ 
    Query
    class="example-section example-section-is-code operation-variables-example" >
    Variables
    -
    {"input": CancelOutgoingPaymentInput}
    +                  
    {"input": CompleteReceiverInput}
     
    Response
    -
    {
    -  "data": {
    -    "cancelOutgoingPayment": {"payment": OutgoingPayment}
    -  }
    -}
    +                  
    {"data": {"completeReceiver": {"receiver": Receiver}}}
     
    @@ -5075,7 +5556,9 @@
    Query
    ...FeesConnectionFragment } createdAt - tenantId + tenant { + ...TenantFragment + } } } } @@ -5181,7 +5664,7 @@
    Variables
    class="example-section example-section-is-code operation-response-example" >
    Response
    -
    {"data": {"createAssetLiquidityWithdrawal": {"success": false}}}
    +                  
    {"data": {"createAssetLiquidityWithdrawal": {"success": true}}}
     
    @@ -5256,6 +5739,7 @@
    Query
    createIncomingPayment(input: $input) { payment { id + url walletAddressId client liquidity @@ -5269,7 +5753,10 @@
    Query
    }
    metadata createdAt - tenantId + senderWalletAddress + tenant { + ...TenantFragment + } }
    } } @@ -5464,7 +5951,10 @@
    Query
    liquidityThreshold liquidity createdAt - tenantId + routes + tenant { + ...TenantFragment + } } } } @@ -5575,7 +6065,9 @@
    Query
    } createdAt grantId - tenantId + tenant { + ...TenantFragment + } } } } @@ -5696,7 +6188,9 @@
    Query
    } createdAt grantId - tenantId + tenant { + ...TenantFragment + } } } } @@ -5892,7 +6386,10 @@
    Query
    liquidityThreshold liquidity createdAt - tenantId + routes + tenant { + ...TenantFragment + } } } } @@ -6479,7 +6976,9 @@
    Query
    additionalProperties { ...AdditionalPropertyFragment } - tenantId + tenant { + ...TenantFragment + } } } } @@ -6797,7 +7296,9 @@
    Query
    ...FeesConnectionFragment } createdAt - tenantId + tenant { + ...TenantFragment + } } } } @@ -6978,7 +7479,7 @@
    Query
    class="example-section example-section-is-code operation-variables-example" >
    Variables
    -
    {"id": "abc123"}
    +                  
    {"id": "xyz789"}
     
    Variables class="example-section example-section-is-code operation-response-example" >
    Response
    -
    {"data": {"depositAssetLiquidity": {"success": false}}}
    +                  
    {"data": {"depositAssetLiquidity": {"success": true}}}
     
    @@ -7430,7 +7931,7 @@
    Variables
    class="example-section example-section-is-code operation-response-example" >
    Response
    -
    {"data": {"postLiquidityWithdrawal": {"success": false}}}
    +                  
    {"data": {"postLiquidityWithdrawal": {"success": true}}}
     
    @@ -7809,7 +8310,9 @@
    Query
    ...FeesConnectionFragment } createdAt - tenantId + tenant { + ...TenantFragment + } } } } @@ -7898,6 +8401,7 @@
    Query
    updateIncomingPayment(input: $input) { payment { id + url walletAddressId client liquidity @@ -7911,7 +8415,10 @@
    Query
    }
    metadata createdAt - tenantId + senderWalletAddress + tenant { + ...TenantFragment + } }
    } } @@ -8016,7 +8523,10 @@
    Query
    liquidityThreshold liquidity createdAt - tenantId + routes + tenant { + ...TenantFragment + } } } } @@ -8226,7 +8736,9 @@
    Query
    additionalProperties { ...AdditionalPropertyFragment } - tenantId + tenant { + ...TenantFragment + } } } } @@ -8438,7 +8950,7 @@
    Variables
    class="example-section example-section-is-code operation-response-example" >
    Response
    -
    {"data": {"withdrawEventLiquidity": {"success": false}}}
    +                  
    {"data": {"withdrawEventLiquidity": {"success": true}}}
     
    @@ -8598,12 +9110,12 @@
    Fields
    Example
    {
       "id": 4,
    -  "debitAccountId": 4,
    -  "creditAccountId": "4",
    +  "debitAccountId": "4",
    +  "creditAccountId": 4,
       "amount": UInt64,
       "transferType": "DEPOSIT",
       "ledger": UInt8,
    -  "createdAt": "abc123",
    +  "createdAt": "xyz789",
       "state": "PENDING",
       "expiresAt": "xyz789"
     }
    @@ -8745,8 +9257,8 @@ 
    Fields
    Example
    {
       "key": "abc123",
    -  "value": "abc123",
    -  "visibleInOpenPayments": true
    +  "value": "xyz789",
    +  "visibleInOpenPayments": false
     }
     
    @@ -8823,8 +9335,8 @@
    Fields
    Example
    {
       "key": "xyz789",
    -  "value": "xyz789",
    -  "visibleInOpenPayments": true
    +  "value": "abc123",
    +  "visibleInOpenPayments": false
     }
     
    @@ -9089,7 +9601,7 @@
    Fields
    Example
    -
    {"id": "4"}
    +                  
    {"id": 4}
     
    @@ -9409,15 +9921,15 @@
    - tenantId + tenant - ID!Tenant - + The tenant that the asset belongs to. @@ -9428,7 +9940,7 @@
    Example
    {
       "id": 4,
    -  "code": "abc123",
    +  "code": "xyz789",
       "scale": UInt8,
       "liquidity": UInt64,
       "withdrawalThreshold": UInt64,
    @@ -9436,8 +9948,8 @@ 
    Example
    "receivingFee": Fee, "sendingFee": Fee, "fees": FeesConnection, - "createdAt": "xyz789", - "tenantId": "4" + "createdAt": "abc123", + "tenant": Tenant }
    @@ -9497,7 +10009,7 @@
    Fields
    Example
    {
       "node": Asset,
    -  "cursor": "xyz789"
    +  "cursor": "abc123"
     }
     
    @@ -9724,29 +10236,229 @@
    Possible Types
    -

    - IncomingPayment -

    +

    + IncomingPayment +

    + + + + +

    + OutgoingPayment +

    + + + + +

    + Payment +

    + + + + + + +
    +
    +
    Example
    +
    {
    +  "id": "4",
    +  "walletAddressId": "4",
    +  "metadata": {},
    +  "createdAt": "abc123",
    +  "client": "abc123"
    +}
    +
    +
    +
    + +
    +
    +
    + Types +
    +

    Boolean

    +
    +
    +
    +
    Description
    +

    + The Boolean scalar type represents + true or false. +

    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    CancelIncomingPaymentInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Input FieldDescription
    + id - + ID! + + Unique identifier of the incoming payment to be + canceled. Note: incoming payment must be PENDING. +
    +
    +
    +
    +
    +
    Example
    +
    {"id": 4}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    CancelIncomingPaymentResponse

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + payment + - + IncomingPayment + The incoming payment that was canceled.
    +
    +
    +
    +
    +
    Example
    +
    {"payment": IncomingPayment}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    CancelOutgoingPaymentInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + @@ -9758,10 +10470,8 @@
    Possible Types
    Example
    {
       "id": 4,
    -  "walletAddressId": "4",
    -  "metadata": {},
    -  "createdAt": "xyz789",
    -  "client": "xyz789"
    +  "reason": "abc123",
    +  "cardPaymentFailureReason": "invalid_signature"
     }
     
    @@ -9769,65 +10479,114 @@
    Example
    -

    Boolean

    +

    CardDetailsInput

    -
    -
    Description
    -

    - The Boolean scalar type represents - true or false. -

    +
    +
    Fields
    +
    Input FieldDescription
    + id - + ID! + + Unique identifier of the outgoing payment to cancel.
    -

    - OutgoingPayment -

    + reason + - + String +
    + Reason why this outgoing payment has been canceled. + This value will be publicly visible in the metadata + field if this outgoing payment is requested through + Open Payments.
    -

    - Payment -

    + cardPaymentFailureReason + - + CardPaymentFailureReason +
    + If card flow, optional machine-readable failure reason
    + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + data - + JSONObject! +
    + requestId + - + String! +
    + initiatedAt + - + String! +
    Example
    -
    true
    +                  
    {
    +  "data": {},
    +  "requestId": "xyz789",
    +  "initiatedAt": "xyz789"
    +}
     
    -

    CancelIncomingPaymentInput

    +

    CardPaymentFailureReason

    -
    Fields
    +
    Values
    - + + + + +
    Input FieldEnum Value Description
    - id - - ID! +

    invalid_signature

    - Unique identifier of the incoming payment to be - canceled. Note: incoming payment must be PENDING. +

    invalid_request

    @@ -9836,21 +10595,21 @@
    Fields
    Example
    -
    {"id": "4"}
    +                  
    "invalid_signature"
     
    -

    CancelIncomingPaymentResponse

    +

    CompleteReceiverInput

    @@ -9858,24 +10617,24 @@
    Fields
    - + - - +
    Field NameInput Field Description
    + paymentincomingPaymentUrl - IncomingPaymentString! The incoming payment that was canceled.URL of the incoming payment to be completed.
    @@ -9884,21 +10643,21 @@
    Fields
    Example
    -
    {"payment": IncomingPayment}
    +                  
    {"incomingPaymentUrl": "abc123"}
     
    -

    CancelOutgoingPaymentInput

    +

    CompleteReceiverResponse

    @@ -9906,38 +10665,24 @@
    Fields
    - + - - - - - - +
    Input FieldField Name Description
    - id - - ID! + receiver - - Unique identifier of the outgoing payment to cancel. -
    - reason - StringReceiver - Reason why this outgoing payment has been canceled. - This value will be publicly visible in the metadata - field if this outgoing payment is requested through - Open Payments. - The receiver object returned in the response.
    @@ -9946,7 +10691,7 @@
    Fields
    Example
    -
    {"id": 4, "reason": "abc123"}
    +                  
    {"receiver": Receiver}
     
    @@ -10087,12 +10832,12 @@
    Fields
    Example
    {
    -  "code": "xyz789",
    +  "code": "abc123",
       "scale": UInt8,
       "withdrawalThreshold": UInt64,
       "liquidityThreshold": UInt64,
    -  "idempotencyKey": "abc123",
    -  "tenantId": "4"
    +  "idempotencyKey": "xyz789",
    +  "tenantId": 4
     }
     
    @@ -10209,7 +10954,7 @@
    Fields
    Example
    {
    -  "assetId": "xyz789",
    +  "assetId": "abc123",
       "amount": UInt64,
       "id": "abc123",
       "idempotencyKey": "xyz789",
    @@ -10329,6 +11074,40 @@ 
    Fields
    >. + + + isCardPayment + - + Boolean + + + Whether or not the incoming payment is being created + for a card payment. + + + + + senderWalletAddress + - + String + + + The sender's wallet address URL. Applicable only to + card payments. + +
    @@ -10337,11 +11116,13 @@
    Fields
    Example
    {
    -  "walletAddressId": "abc123",
    -  "expiresAt": "xyz789",
    +  "walletAddressId": "xyz789",
    +  "expiresAt": "abc123",
       "metadata": {},
       "incomingAmount": AmountInput,
    -  "idempotencyKey": "xyz789"
    +  "idempotencyKey": "abc123",
    +  "isCardPayment": true,
    +  "senderWalletAddress": "xyz789"
     }
     
    @@ -10588,9 +11369,9 @@
    Fields
    Example
    {
       "maxPacketAmount": UInt64,
    -  "assetId": "abc123",
    +  "assetId": "xyz789",
       "peerUrl": "abc123",
    -  "name": "abc123",
    +  "name": "xyz789",
       "liquidityThreshold": UInt64,
       "liquidityToDeposit": UInt64,
       "idempotencyKey": "xyz789"
    @@ -10756,6 +11537,23 @@ 
    Fields
    >. + + + cardDetails + - + CardDetailsInput + + + Used for the card service to provide the card expiry + and signature + +
    @@ -10765,10 +11563,11 @@
    Fields
    Example
    {
       "walletAddressId": "xyz789",
    -  "incomingPayment": "abc123",
    +  "incomingPayment": "xyz789",
       "debitAmount": AmountInput,
       "metadata": {},
    -  "idempotencyKey": "xyz789"
    +  "idempotencyKey": "abc123",
    +  "cardDetails": CardDetailsInput
     }
     
    @@ -10876,7 +11675,7 @@
    Fields
    Example
    {
    -  "walletAddressId": "abc123",
    +  "walletAddressId": "xyz789",
       "quoteId": "xyz789",
       "metadata": {},
       "idempotencyKey": "xyz789"
    @@ -10973,7 +11772,7 @@ 
    Fields
    Example
    {
    -  "outgoingPaymentId": "abc123",
    +  "outgoingPaymentId": "xyz789",
       "idempotencyKey": "xyz789",
       "timeoutSeconds": UInt64
     }
    @@ -11124,6 +11923,18 @@ 
    Fields
    >. + + + routes + - + [String!] + + Routes for the peer. +
    @@ -11134,12 +11945,13 @@
    Example
    {
       "maxPacketAmount": UInt64,
       "http": HttpInput,
    -  "assetId": "abc123",
    -  "staticIlpAddress": "abc123",
    +  "assetId": "xyz789",
    +  "staticIlpAddress": "xyz789",
       "name": "xyz789",
       "liquidityThreshold": UInt64,
       "initialLiquidity": UInt64,
    -  "idempotencyKey": "abc123"
    +  "idempotencyKey": "abc123",
    +  "routes": ["xyz789"]
     }
     
    @@ -11254,9 +12066,9 @@
    Fields
    Example
    {
    -  "peerId": "abc123",
    +  "peerId": "xyz789",
       "amount": UInt64,
    -  "id": "abc123",
    +  "id": "xyz789",
       "idempotencyKey": "xyz789",
       "timeoutSeconds": UInt64
     }
    @@ -11419,11 +12231,11 @@ 
    Fields
    Example
    {
    -  "walletAddressId": "abc123",
    +  "walletAddressId": "xyz789",
       "debitAmount": AmountInput,
       "receiveAmount": AmountInput,
       "receiver": "abc123",
    -  "idempotencyKey": "xyz789"
    +  "idempotencyKey": "abc123"
     }
     
    @@ -11546,10 +12358,10 @@
    Fields
    Example
    {
       "walletAddressUrl": "xyz789",
    -  "expiresAt": "xyz789",
    +  "expiresAt": "abc123",
       "incomingAmount": AmountInput,
       "metadata": {},
    -  "idempotencyKey": "xyz789"
    +  "idempotencyKey": "abc123"
     }
     
    @@ -11736,7 +12548,7 @@
    Fields
    Example
    {
    -  "id": 4,
    +  "id": "4",
       "email": "abc123",
       "apiSecret": "abc123",
       "idpConsentUrl": "abc123",
    @@ -11979,11 +12791,11 @@ 
    Fields
    Example
    {
    -  "tenantId": 4,
    -  "assetId": "xyz789",
    +  "tenantId": "4",
    +  "assetId": "abc123",
       "address": "xyz789",
    -  "publicName": "xyz789",
    -  "idempotencyKey": "abc123",
    +  "publicName": "abc123",
    +  "idempotencyKey": "xyz789",
       "additionalProperties": [AdditionalPropertyInput]
     }
     
    @@ -12071,7 +12883,7 @@
    Example
    {
       "walletAddressId": "xyz789",
       "jwk": JwkInput,
    -  "idempotencyKey": "xyz789"
    +  "idempotencyKey": "abc123"
     }
     
    @@ -12278,7 +13090,7 @@
    Example
    {
       "walletAddressId": "xyz789",
       "id": "abc123",
    -  "idempotencyKey": "xyz789",
    +  "idempotencyKey": "abc123",
       "timeoutSeconds": UInt64
     }
     
    @@ -12386,10 +13198,7 @@
    Fields
    Example
    -
    {
    -  "id": "4",
    -  "idempotencyKey": "xyz789"
    -}
    +                  
    {"id": 4, "idempotencyKey": "xyz789"}
     
    @@ -12499,10 +13308,7 @@
    Fields
    Example
    -
    {
    -  "id": "4",
    -  "idempotencyKey": "xyz789"
    -}
    +                  
    {"id": 4, "idempotencyKey": "abc123"}
     
    @@ -12600,7 +13406,7 @@
    Fields
    Example
    -
    {"success": true}
    +                  
    {"success": false}
     
    @@ -12699,7 +13505,7 @@
    Example
    "assetId": "xyz789", "amount": UInt64, "id": "xyz789", - "idempotencyKey": "xyz789" + "idempotencyKey": "abc123" }
    @@ -12774,7 +13580,7 @@
    Fields
    Example
    {
       "eventId": "abc123",
    -  "idempotencyKey": "xyz789"
    +  "idempotencyKey": "abc123"
     }
     
    @@ -13066,10 +13872,10 @@
    Fields
    Example
    {
       "id": 4,
    -  "assetId": "4",
    +  "assetId": 4,
       "type": "SENDING",
       "fixed": UInt64,
    -  "basisPoints": 987,
    +  "basisPoints": 123,
       "createdAt": "abc123"
     }
     
    @@ -13136,7 +13942,7 @@
    Fields
    Example
    -
    {"fixed": UInt64, "basisPoints": 123}
    +                  
    {"fixed": UInt64, "basisPoints": 987}
     
    @@ -13342,11 +14148,23 @@
    Fields
    in - [String!]![String!] + + Array of strings to include. + + + + notIn + - + [String!] - Array of strings to filter by. + Array of strings to exclude. @@ -13355,7 +14173,10 @@
    Fields
    Example
    -
    {"in": ["abc123"]}
    +                  
    {
    +  "in": ["xyz789"],
    +  "notIn": ["abc123"]
    +}
     
    @@ -13485,7 +14306,7 @@
    Fields
    Example
    -
    {"authTokens": ["abc123"]}
    +                  
    {"authTokens": ["xyz789"]}
     
    @@ -13616,8 +14437,8 @@
    Fields
    Example
    {
    -  "authToken": "xyz789",
    -  "endpoint": "abc123"
    +  "authToken": "abc123",
    +  "endpoint": "xyz789"
     }
     
    @@ -13684,8 +14505,8 @@
    Fields
    Example
    {
    -  "authToken": "abc123",
    -  "endpoint": "abc123"
    +  "authToken": "xyz789",
    +  "endpoint": "xyz789"
     }
     
    @@ -13719,7 +14540,7 @@
    Description
    Example
    -
    "4"
    +                  
    4
     
    @@ -13755,6 +14576,17 @@
    Fields
    Unique identifier of the incoming payment. + + + url - + String! + + The URL of the incoming payment. + Fields tenantIdsenderWalletAddress - Fields > - The tenant UUID associated with the incoming payment. - If not provided, it will be obtained from the - signature. + The sender's wallet address URL. Applicable only to + card payments. + + + + + tenant + - + Tenant + + + The tenant associated with the incoming payment. If + not provided, it will be obtained from the signature. @@ -13926,17 +14772,19 @@
    Fields
    Example
    {
    -  "id": 4,
    +  "id": "4",
    +  "url": "abc123",
       "walletAddressId": "4",
    -  "client": "abc123",
    +  "client": "xyz789",
       "liquidity": UInt64,
       "state": "PENDING",
       "expiresAt": "xyz789",
       "incomingAmount": Amount,
       "receivedAmount": Amount,
       "metadata": {},
    -  "createdAt": "xyz789",
    -  "tenantId": "abc123"
    +  "createdAt": "abc123",
    +  "senderWalletAddress": "abc123",
    +  "tenant": Tenant
     }
     
    @@ -14068,6 +14916,57 @@
    Example
    "node": IncomingPayment, "cursor": "xyz789" } +
    + + + + +
    +
    + Types +
    +

    IncomingPaymentFilter

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Input FieldDescription
    + initiatedBy + - + FilterString + + Filter for incoming payments based on the initiation + reason. +
    +
    +
    +
    +
    +
    Example
    +
    {"initiatedBy": FilterString}
     
    @@ -14348,8 +15247,8 @@
    Fields
    Example
    {
    -  "kid": "xyz789",
    -  "x": "abc123",
    +  "kid": "abc123",
    +  "x": "xyz789",
       "alg": "EdDSA",
       "kty": "OKP",
       "crv": "Ed25519"
    @@ -14547,7 +15446,7 @@ 
    Fields
    Example
    -
    {"success": true}
    +                  
    {"success": false}
     
    @@ -14957,17 +15856,15 @@
    Fields
    - tenantId + tenant - StringTenant - Tenant ID of the outgoing payment. + Tenant of the outgoing payment. @@ -14977,13 +15874,13 @@
    Fields
    Example
    {
    -  "id": "4",
    +  "id": 4,
       "walletAddressId": "4",
       "client": "abc123",
       "liquidity": UInt64,
       "state": "FUNDING",
       "error": "abc123",
    -  "stateAttempts": 987,
    +  "stateAttempts": 123,
       "debitAmount": Amount,
       "receiveAmount": Amount,
       "receiver": "xyz789",
    @@ -14992,7 +15889,7 @@ 
    Example
    "sentAmount": Amount, "createdAt": "xyz789", "grantId": "abc123", - "tenantId": "abc123" + "tenant": Tenant }
    @@ -15432,10 +16329,10 @@
    Fields
    Example
    {
    -  "endCursor": "xyz789",
    -  "hasNextPage": false,
    +  "endCursor": "abc123",
    +  "hasNextPage": true,
       "hasPreviousPage": false,
    -  "startCursor": "xyz789"
    +  "startCursor": "abc123"
     }
     
    @@ -15577,6 +16474,18 @@
    Fields
    The date and time that the payment was created. + + + tenant + - + Tenant + + The tenant associated with the payment. +
    @@ -15587,12 +16496,13 @@
    Example
    {
       "id": 4,
       "type": "INCOMING",
    -  "walletAddressId": 4,
    -  "client": "xyz789",
    -  "state": "xyz789",
    +  "walletAddressId": "4",
    +  "client": "abc123",
    +  "state": "abc123",
       "liquidity": UInt64,
       "metadata": {},
    -  "createdAt": "xyz789"
    +  "createdAt": "xyz789",
    +  "tenant": Tenant
     }
     
    @@ -15974,12 +16884,24 @@
    Fields
    - tenantIdroutes + - + [String!]! + + Routes for the peer. + + + + tenant - ID!Tenant @@ -16004,7 +16926,8 @@
    Example
    "liquidityThreshold": UInt64, "liquidity": UInt64, "createdAt": "abc123", - "tenantId": 4 + "routes": ["abc123"], + "tenant": Tenant }
    @@ -16203,7 +17126,7 @@
    Fields
    Example
    {
    -  "withdrawalId": "xyz789",
    +  "withdrawalId": "abc123",
       "idempotencyKey": "xyz789"
     }
     
    @@ -16364,14 +17287,14 @@
    Fields
    Example
    {
       "id": 4,
    -  "tenantId": "4",
    -  "walletAddressId": 4,
    -  "receiver": "abc123",
    +  "tenantId": 4,
    +  "walletAddressId": "4",
    +  "receiver": "xyz789",
       "debitAmount": Amount,
       "receiveAmount": Amount,
    -  "createdAt": "abc123",
    +  "createdAt": "xyz789",
       "expiresAt": "xyz789",
    -  "estimatedExchangeRate": 123.45
    +  "estimatedExchangeRate": 987.65
     }
     
    @@ -16713,14 +17636,14 @@
    Fields
    Example
    {
    -  "id": "abc123",
    -  "walletAddressUrl": "xyz789",
    +  "id": "xyz789",
    +  "walletAddressUrl": "abc123",
       "completed": false,
       "incomingAmount": Amount,
       "receivedAmount": Amount,
    -  "expiresAt": "abc123",
    +  "expiresAt": "xyz789",
       "metadata": {},
    -  "createdAt": "abc123"
    +  "createdAt": "xyz789"
     }
     
    @@ -16790,7 +17713,7 @@
    Fields
    Example
    {
    -  "id": "abc123",
    +  "id": "xyz789",
       "idempotencyKey": "abc123"
     }
     
    @@ -16934,7 +17857,7 @@
    Fields
    Example
    {
    -  "assetId": "4",
    +  "assetId": 4,
       "type": "SENDING",
       "fee": FeeDetails,
       "idempotencyKey": "abc123"
    @@ -17221,14 +18144,14 @@ 
    Fields
    Example
    {
    -  "id": "4",
    -  "email": "abc123",
    -  "apiSecret": "xyz789",
    +  "id": 4,
    +  "email": "xyz789",
    +  "apiSecret": "abc123",
       "idpConsentUrl": "xyz789",
    -  "idpSecret": "abc123",
    -  "publicName": "xyz789",
    -  "createdAt": "xyz789",
    -  "deletedAt": "abc123",
    +  "idpSecret": "xyz789",
    +  "publicName": "abc123",
    +  "createdAt": "abc123",
    +  "deletedAt": "xyz789",
       "settings": [TenantSetting]
     }
     
    @@ -17395,7 +18318,7 @@
    Fields
    Example
    {
       "key": "EXCHANGE_RATES_URL",
    -  "value": "xyz789"
    +  "value": "abc123"
     }
     
    @@ -17455,7 +18378,7 @@
    Fields
    Example
    {
       "key": "EXCHANGE_RATES_URL",
    -  "value": "xyz789"
    +  "value": "abc123"
     }
     
    @@ -17763,7 +18686,7 @@
    Fields
    Example
    -
    {"limit": 123, "idempotencyKey": "xyz789"}
    +                  
    {"limit": 987, "idempotencyKey": "abc123"}
     
    @@ -17811,7 +18734,7 @@
    Fields
    Example
    -
    {"count": 123}
    +                  
    {"count": 987}
     
    @@ -17973,7 +18896,7 @@
    Example
    "id": "xyz789", "withdrawalThreshold": UInt64, "liquidityThreshold": UInt64, - "idempotencyKey": "xyz789" + "idempotencyKey": "abc123" }
    @@ -18036,7 +18959,7 @@
    Fields
    Example
    -
    {"id": "4", "metadata": {}}
    +                  
    {"id": 4, "metadata": {}}
     
    @@ -18164,6 +19087,18 @@
    Fields
    >. + + + routes + - + [String!] + + New routes for the peer. + @@ -18175,10 +19110,11 @@
    Example
    "id": "abc123", "maxPacketAmount": UInt64, "http": HttpInput, - "staticIlpAddress": "abc123", + "staticIlpAddress": "xyz789", "name": "abc123", "liquidityThreshold": UInt64, - "idempotencyKey": "xyz789" + "idempotencyKey": "abc123", + "routes": ["abc123"] }
    @@ -18344,11 +19280,11 @@
    Fields
    Example
    {
    -  "id": 4,
    -  "email": "xyz789",
    -  "apiSecret": "xyz789",
    -  "idpConsentUrl": "xyz789",
    -  "idpSecret": "abc123",
    +  "id": "4",
    +  "email": "abc123",
    +  "apiSecret": "abc123",
    +  "idpConsentUrl": "abc123",
    +  "idpSecret": "xyz789",
       "publicName": "xyz789"
     }
     
    @@ -18467,7 +19403,7 @@
    Fields
    Example
    {
    -  "id": "4",
    +  "id": 4,
       "publicName": "abc123",
       "status": "INACTIVE",
       "idempotencyKey": "abc123",
    @@ -18595,7 +19531,7 @@ 
    Fields
    Example
    {
       "withdrawalId": "xyz789",
    -  "idempotencyKey": "xyz789"
    +  "idempotencyKey": "abc123"
     }
     
    @@ -18804,6 +19740,23 @@
    or descending.

    +
    +
    + filter + - + IncomingPaymentFilter +
    +

    + Filter incoming payments based on specific + criteria such as initiation reason. +

    +
    @@ -19196,17 +20149,15 @@
    - tenantId + tenant - StringTenant - Tenant ID of the wallet address. + Tenant of the wallet address. @@ -19219,8 +20170,8 @@
    Example
    "id": 4, "asset": Asset, "liquidity": UInt64, - "address": "abc123", - "publicName": "xyz789", + "address": "xyz789", + "publicName": "abc123", "incomingPayments": IncomingPaymentConnection, "quotes": QuoteConnection, "outgoingPayments": OutgoingPaymentConnection, @@ -19228,7 +20179,7 @@
    Example
    "status": "INACTIVE", "walletAddressKeys": WalletAddressKeyConnection, "additionalProperties": [AdditionalProperty], - "tenantId": "abc123" + "tenant": Tenant }
    @@ -19290,7 +20241,7 @@
    Fields
    Example
    {
       "node": WalletAddress,
    -  "cursor": "abc123"
    +  "cursor": "xyz789"
     }
     
    @@ -19399,8 +20350,8 @@
    Example
    "id": 4, "walletAddressId": 4, "jwk": Jwk, - "revoked": false, - "createdAt": "abc123" + "revoked": true, + "createdAt": "xyz789" }
    @@ -19810,12 +20761,12 @@
    Fields
    - tenantId + tenant - ID!Tenant Tenant of the webhook event. @@ -19867,8 +20818,8 @@
    Fields
    Example
    {
       "id": 4,
    -  "tenantId": "4",
    -  "type": "xyz789",
    +  "tenant": Tenant,
    +  "type": "abc123",
       "data": {},
       "createdAt": "xyz789"
     }
    @@ -20043,7 +20994,7 @@ 
    Fields
    Example
    {
       "node": WebhookEvent,
    -  "cursor": "abc123"
    +  "cursor": "xyz789"
     }
     
    @@ -20103,7 +21054,7 @@
    Fields
    Example
    -
    {"id": "abc123", "isOperator": true}
    +                  
    {"id": "xyz789", "isOperator": false}
     
    @@ -20176,7 +21127,7 @@
    Fields
    Example
    {
    -  "eventId": "xyz789",
    +  "eventId": "abc123",
       "idempotencyKey": "xyz789"
     }
     
    diff --git a/packages/documentation/src/pages/es/apis/graphql/auth/index.html b/packages/documentation/src/pages/es/apis/graphql/auth/index.html new file mode 100644 index 0000000000..2f81da0b24 --- /dev/null +++ b/packages/documentation/src/pages/es/apis/graphql/auth/index.html @@ -0,0 +1,2914 @@ + + + + + + + Auth Admin API + + + + +
    + +
    +
    + +
    +
    +

    Auth Admin API

    +
    +
    +
    +

    + The Auth Admin API allows you to get information about a + grant, such as its status, state, related payment details, and + the wallet address of the grantee’s account. The API also + allows you to revoke grants. +

    +
    +
    +
    +
    API Endpoints
    +
    # Staging:
    +https://staging.example.com/graphql
    +
    +
    +
    +
    +
    +

    + Queries +

    +
    +

    + grant +

    +
    +
    +
    +
    Description
    +

    Fetch a specific grant by its ID.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + Grant! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + id - + ID! + Unique identifier of the grant.
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    query Grant($id: ID!) {
    +  grant(id: $id) {
    +    id
    +    client
    +    access {
    +      id
    +      identifier
    +      type
    +      actions
    +      limits {
    +        ...LimitDataFragment
    +      }
    +      createdAt
    +    }
    +    subject {
    +      sub_ids {
    +        ...SubjectItemFragment
    +      }
    +    }
    +    state
    +    finalizationReason
    +    createdAt
    +    tenantId
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"id": "4"}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "grant": {
    +      "id": "4",
    +      "client": "xyz789",
    +      "access": [Access],
    +      "subject": Subject,
    +      "state": "PROCESSING",
    +      "finalizationReason": "ISSUED",
    +      "createdAt": "xyz789",
    +      "tenantId": 4
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Queries +
    +

    + grants +

    +
    +
    +
    +
    Description
    +

    Fetch a paginated list of grants.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + GrantsConnection! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameDescription
    + after + - + String + + Forward pagination: Cursor (grant ID) to start + retrieving grants after this point. +
    + before + - + String + + Backward pagination: Cursor (grant ID) to start + retrieving grants before this point. +
    + first + - + Int + + Forward pagination: Limit the result to the first + n grants after the + after cursor. +
    + last - + Int + + Backward pagination: Limit the result to the last + n grants before the + before cursor. +
    + filter + - + GrantFilter + + Filter grants based on specified criteria such as ID, + state, or finalization reason. +
    + sortOrder + - + SortOrder + + Specify the sort order of grants based on their + creation date, either ascending or descending. +
    + tenantId + - + ID + + Filter grants by a specific tenant. This can only be + performed by the operator. +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    query Grants(
    +  $after: String,
    +  $before: String,
    +  $first: Int,
    +  $last: Int,
    +  $filter: GrantFilter,
    +  $sortOrder: SortOrder,
    +  $tenantId: ID
    +) {
    +  grants(
    +    after: $after,
    +    before: $before,
    +    first: $first,
    +    last: $last,
    +    filter: $filter,
    +    sortOrder: $sortOrder,
    +    tenantId: $tenantId
    +  ) {
    +    pageInfo {
    +      endCursor
    +      hasNextPage
    +      hasPreviousPage
    +      startCursor
    +    }
    +    edges {
    +      node {
    +        ...GrantFragment
    +      }
    +      cursor
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {
    +  "after": "abc123",
    +  "before": "xyz789",
    +  "first": 987,
    +  "last": 987,
    +  "filter": GrantFilter,
    +  "sortOrder": "ASC",
    +  "tenantId": "4"
    +}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "grants": {
    +      "pageInfo": PageInfo,
    +      "edges": [GrantEdge]
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +

    + Mutations +

    +
    +

    + revokeGrant +

    +
    +
    +
    +
    Description
    +

    Revoke an existing grant.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + RevokeGrantMutationResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + RevokeGrantInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation RevokeGrant($input: RevokeGrantInput!) {
    +  revokeGrant(input: $input) {
    +    id
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": RevokeGrantInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"revokeGrant": {"id": "4"}}}
    +
    +
    +
    +
    +
    +

    + Types +

    +
    +

    Access

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + id - + ID! + Unique identifier of the access object.
    + identifier + - + String + + Wallet address of the sub-resource (incoming payment, + outgoing payment, or quote). +
    + type - + String! + + Type of access (incoming payment, outgoing payment, or + quote). +
    + actions + - + [String]! + Actions allowed with this access.
    + limits + - + LimitData + + Limits for an outgoing payment associated with this + access. +
    + createdAt + - + String! + The date and time when the access was created.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": 4,
    +  "identifier": "xyz789",
    +  "type": "xyz789",
    +  "actions": ["xyz789"],
    +  "limits": LimitData,
    +  "createdAt": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    Boolean

    +
    +
    +
    +
    Description
    +

    + The Boolean scalar type represents + true or false. +

    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    FilterFinalizationReason

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + in - + [GrantFinalization!] + + List of finalization reasons to include in the filter. +
    + notIn + - + [GrantFinalization!] + + List of finalization reasons to exclude in the filter. +
    +
    +
    +
    +
    +
    Example
    +
    {"in": ["ISSUED"], "notIn": ["ISSUED"]}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    FilterGrantState

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + in - + [GrantState!] + List of states to include in the filter.
    + notIn + - + [GrantState!] + List of states to exclude in the filter.
    +
    +
    +
    +
    +
    Example
    +
    {"in": ["PROCESSING"], "notIn": ["PROCESSING"]}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    FilterString

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Input FieldDescription
    + in - + [String!] + Array of strings to filter by.
    +
    +
    +
    +
    +
    Example
    +
    {"in": ["xyz789"]}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    Grant

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + id - + ID! + Unique identifier of the grant.
    + client + - + String! + Wallet address of the grantee's account.
    + access + - + [Access!]! + Details of the access provided by the grant.
    + subject + - + Subject + Details of the subject provided by the grant.
    + state + - + GrantState! + Current state of the grant.
    + finalizationReason + - + GrantFinalization + + Specific outcome of a finalized grant, indicating + whether the grant was issued, revoked, or rejected. +
    + createdAt + - + String! + The date and time when the grant was created.
    + tenantId + - + ID! + + Unique identifier of the tenant associated with the + grant. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": 4,
    +  "client": "xyz789",
    +  "access": [Access],
    +  "subject": Subject,
    +  "state": "PROCESSING",
    +  "finalizationReason": "ISSUED",
    +  "createdAt": "xyz789",
    +  "tenantId": "4"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    GrantEdge

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + node - + Grant! + A grant node in the list.
    + cursor + - + String! + A cursor for paginating through the grants.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "node": Grant,
    +  "cursor": "abc123"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    GrantFilter

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + identifier + - + FilterString + Filter grants by their unique identifier.
    + state + - + FilterGrantState + Filter grants by their state.
    + finalizationReason + - + FilterFinalizationReason + Filter grants by their finalization reason.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "identifier": FilterString,
    +  "state": FilterGrantState,
    +  "finalizationReason": FilterFinalizationReason
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    GrantFinalization

    +
    +
    +
    +
    Values
    + + + + + + + + + + + + + + + + + + + + + +
    Enum ValueDescription
    +

    ISSUED

    +
    The grant was issued successfully.
    +

    REVOKED

    +
    The grant was revoked.
    +

    REJECTED

    +
    The grant request was rejected.
    +
    +
    +
    +
    +
    Example
    +
    "ISSUED"
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    GrantState

    +
    +
    +
    +
    Values
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Enum ValueDescription
    +

    PROCESSING

    +
    The grant request is processing.
    +

    PENDING

    +
    The grant request is awaiting interaction.
    +

    APPROVED

    +
    The grant request has been approved.
    +

    FINALIZED

    +
    + The grant request has been finalized, and no more + access tokens or interactions can be made. +
    +
    +
    +
    +
    +
    Example
    +
    "PROCESSING"
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    GrantsConnection

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + pageInfo + - + PageInfo! + Information to aid in pagination.
    + edges + - + [GrantEdge!]! + + A list of edges representing grants and cursors for + pagination. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "pageInfo": PageInfo,
    +  "edges": [GrantEdge]
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    ID

    +
    +
    +
    +
    Description
    +

    + The ID scalar type represents a unique + identifier, often used to refetch an object or as key for a + cache. The ID type appears in a JSON response as a String; + however, it is not intended to be human-readable. When + expected as an input type, any string (such as + "4") or integer (such as + 4) input value will be accepted as an ID. +

    +
    +
    +
    +
    +
    Example
    +
    "4"
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    Int

    +
    +
    +
    +
    Description
    +

    + The Int scalar type represents non-fractional + signed whole numeric values. Int can represent values + between -(2^31) and 2^31 - 1. +

    +
    +
    +
    +
    +
    Example
    +
    987
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    LimitData

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + receiver + - + String + Wallet address URL of the receiver.
    + debitAmount + - + PaymentAmount + Amount to debit.
    + receiveAmount + - + PaymentAmount + Amount to receive.
    + interval + - + String + Interval between payments.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "receiver": "xyz789",
    +  "debitAmount": PaymentAmount,
    +  "receiveAmount": PaymentAmount,
    +  "interval": "abc123"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    Model

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + id - + ID! + Unique identifier for the model.
    + createdAt + - + String! + The date and time when the model was created.
    +
    +
    +
    Possible Types
    + + + + + + + + + + + + + + + + + +
    Model Types
    +

    + Grant +

    +
    +

    + Access +

    +
    +

    + SubjectItem +

    +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": "4",
    +  "createdAt": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    PageInfo

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + endCursor + - + String + + The cursor used to fetch the next page when paginating + forward. +
    + hasNextPage + - + Boolean! + + Indicates if there are more pages when paginating + forward. +
    + hasPreviousPage + - + Boolean! + + Indicates if there are more pages when paginating + backward. +
    + startCursor + - + String + + The cursor used to fetch the next page when paginating + backward. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "endCursor": "xyz789",
    +  "hasNextPage": true,
    +  "hasPreviousPage": true,
    +  "startCursor": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    PaymentAmount

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + value + - + UInt64! + The value of the payment amount.
    + assetCode + - + String! + + Should be an ISO 4217 currency code whenever possible, + e.g. USD. For more information, refer to + assets. +
    + assetScale + - + UInt8! + + Difference in orders of magnitude between the standard + unit of an asset and a corresponding fractional unit. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "value": UInt64,
    +  "assetCode": "abc123",
    +  "assetScale": UInt8
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    RevokeGrantInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Input FieldDescription
    + grantId + - + String! + Unique identifier of the grant to revoke.
    +
    +
    +
    +
    +
    Example
    +
    {"grantId": "abc123"}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    RevokeGrantMutationResponse

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + id - + ID! + Unique identifier of the revoked grant.
    +
    +
    +
    +
    +
    Example
    +
    {"id": "4"}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    SortOrder

    +
    +
    +
    +
    Values
    + + + + + + + + + + + + + + + + + +
    Enum ValueDescription
    +

    ASC

    +
    Sort the results in ascending order.
    +

    DESC

    +
    Sort the results in descending order.
    +
    +
    +
    +
    +
    Example
    +
    "ASC"
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    String

    +
    +
    +
    +
    Description
    +

    + The String scalar type represents textual data, + represented as UTF-8 character sequences. The String type is + most often used by GraphQL to represent free-form + human-readable text. +

    +
    +
    +
    +
    +
    Example
    +
    "abc123"
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    Subject

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + sub_ids + - + [SubjectItem!]! +
    +
    +
    +
    +
    +
    Example
    +
    {"sub_ids": [SubjectItem]}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    SubjectItem

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + id - + ID! + Unique identifier of the subject object.
    + subId + - + String! + Wallet address of the subject's account.
    + subIdFormat + - + String! + Format of the subject identifier
    + createdAt + - + String! + The date and time when the subject was created.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": 4,
    +  "subId": "xyz789",
    +  "subIdFormat": "xyz789",
    +  "createdAt": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    UInt64

    +
    +
    +
    +
    Description
    +

    + The UInt64 scalar type represents unsigned + 64-bit whole numeric values. It is capable of handling + values that are larger than the JavaScript + Number type limit (greater than 2^53). +

    +
    +
    +
    +
    +
    Example
    +
    UInt64
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    UInt8

    +
    +
    +
    +
    Description
    +

    + The UInt8 scalar type represents unsigned 8-bit + whole numeric values, ranging from 0 to 255. +

    +
    +
    +
    +
    +
    Example
    +
    UInt8
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + + diff --git a/packages/documentation/src/pages/es/apis/graphql/backend/index.html b/packages/documentation/src/pages/es/apis/graphql/backend/index.html new file mode 100644 index 0000000000..c3ccf1849b --- /dev/null +++ b/packages/documentation/src/pages/es/apis/graphql/backend/index.html @@ -0,0 +1,21149 @@ + + + + + + + Backend Admin API + + + + +
    + +
    +
    + +
    +
    +

    Backend Admin API

    +
    +
    +
    +

    + The Backend Admin API provides you with comprehensive + capabilities to manage your Rafiki instance. Core + functionality includes managing peering relationships, assets, + wallet addresses and their public keys, as well as liquidity + management through deposits and withdrawals. Another important + aspect of the Backend Admin API is to manage Open Payments + resources like payments and quotes. +

    +
    +
    +
    +
    API Endpoints
    +
    # Staging:
    +https://staging.example.com/graphql
    +
    +
    +
    +
    +
    +

    + Queries +

    +
    +

    + accountingTransfers +

    +
    +
    +
    +
    Description
    +

    + Fetch a paginated list of accounting transfers for a given + account. +

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns an + AccountingTransferConnection! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + + + + + +
    NameDescription
    + id - + String! + Unique identifier of the account.
    + limit + - + Int + + Limit the number of results returned. If no limit is + provided, the default limit is 20. +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    query AccountingTransfers(
    +  $id: String!,
    +  $limit: Int
    +) {
    +  accountingTransfers(
    +    id: $id,
    +    limit: $limit
    +  ) {
    +    debits {
    +      id
    +      debitAccountId
    +      creditAccountId
    +      amount
    +      transferType
    +      ledger
    +      createdAt
    +      state
    +      expiresAt
    +    }
    +    credits {
    +      id
    +      debitAccountId
    +      creditAccountId
    +      amount
    +      transferType
    +      ledger
    +      createdAt
    +      state
    +      expiresAt
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"id": "abc123", "limit": 123}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "accountingTransfers": {
    +      "debits": [AccountingTransfer],
    +      "credits": [AccountingTransfer]
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Queries +
    +

    + asset +

    +
    +
    +
    +
    Description
    +

    Fetch an asset by its ID.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns an + Asset +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + id - + String! + Unique identifier of the asset.
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    query Asset($id: String!) {
    +  asset(id: $id) {
    +    id
    +    code
    +    scale
    +    liquidity
    +    withdrawalThreshold
    +    liquidityThreshold
    +    receivingFee {
    +      id
    +      assetId
    +      type
    +      fixed
    +      basisPoints
    +      createdAt
    +    }
    +    sendingFee {
    +      id
    +      assetId
    +      type
    +      fixed
    +      basisPoints
    +      createdAt
    +    }
    +    fees {
    +      pageInfo {
    +        ...PageInfoFragment
    +      }
    +      edges {
    +        ...FeeEdgeFragment
    +      }
    +    }
    +    createdAt
    +    tenant {
    +      id
    +      email
    +      apiSecret
    +      idpConsentUrl
    +      idpSecret
    +      publicName
    +      createdAt
    +      deletedAt
    +      settings {
    +        ...TenantSettingFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"id": "abc123"}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "asset": {
    +      "id": 4,
    +      "code": "abc123",
    +      "scale": UInt8,
    +      "liquidity": UInt64,
    +      "withdrawalThreshold": UInt64,
    +      "liquidityThreshold": UInt64,
    +      "receivingFee": Fee,
    +      "sendingFee": Fee,
    +      "fees": FeesConnection,
    +      "createdAt": "abc123",
    +      "tenant": Tenant
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Queries +
    +

    + assetByCodeAndScale +

    +
    +
    +
    +
    Description
    +

    + Get an asset based on its currency code and scale if it + exists. +

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns an + Asset +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + + + + + +
    NameDescription
    + code - + String! + ISO 4217 currency code.
    + scale + - + UInt8! + + Difference in order of magnitude between the standard + unit of an asset and its corresponding fractional + unit. +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    query AssetByCodeAndScale(
    +  $code: String!,
    +  $scale: UInt8!
    +) {
    +  assetByCodeAndScale(
    +    code: $code,
    +    scale: $scale
    +  ) {
    +    id
    +    code
    +    scale
    +    liquidity
    +    withdrawalThreshold
    +    liquidityThreshold
    +    receivingFee {
    +      id
    +      assetId
    +      type
    +      fixed
    +      basisPoints
    +      createdAt
    +    }
    +    sendingFee {
    +      id
    +      assetId
    +      type
    +      fixed
    +      basisPoints
    +      createdAt
    +    }
    +    fees {
    +      pageInfo {
    +        ...PageInfoFragment
    +      }
    +      edges {
    +        ...FeeEdgeFragment
    +      }
    +    }
    +    createdAt
    +    tenant {
    +      id
    +      email
    +      apiSecret
    +      idpConsentUrl
    +      idpSecret
    +      publicName
    +      createdAt
    +      deletedAt
    +      settings {
    +        ...TenantSettingFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {
    +  "code": "abc123",
    +  "scale": UInt8
    +}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "assetByCodeAndScale": {
    +      "id": 4,
    +      "code": "xyz789",
    +      "scale": UInt8,
    +      "liquidity": UInt64,
    +      "withdrawalThreshold": UInt64,
    +      "liquidityThreshold": UInt64,
    +      "receivingFee": Fee,
    +      "sendingFee": Fee,
    +      "fees": FeesConnection,
    +      "createdAt": "xyz789",
    +      "tenant": Tenant
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Queries +
    +

    + assets +

    +
    +
    +
    +
    Description
    +

    Fetch a paginated list of assets.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns an + AssetsConnection! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameDescription
    + after + - + String + + Forward pagination: Cursor (asset ID) to start + retrieving assets after this point. +
    + before + - + String + + Backward pagination: Cursor (asset ID) to start + retrieving assets before this point. +
    + first + - + Int + + Forward pagination: Limit the result to the first + n assets after the + after cursor. +
    + last - + Int + + Backward pagination: Limit the result to the last + n assets before the + before cursor. +
    + sortOrder + - + SortOrder + + Specify the sort order of assets based on their + creation data, either ascending or descending. +
    + tenantId + - + String + + Unique identifier of the tenant associated with the + wallet address. Optional, if not provided, the + tenantId will be obtained from the signature. +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    query Assets(
    +  $after: String,
    +  $before: String,
    +  $first: Int,
    +  $last: Int,
    +  $sortOrder: SortOrder,
    +  $tenantId: String
    +) {
    +  assets(
    +    after: $after,
    +    before: $before,
    +    first: $first,
    +    last: $last,
    +    sortOrder: $sortOrder,
    +    tenantId: $tenantId
    +  ) {
    +    pageInfo {
    +      endCursor
    +      hasNextPage
    +      hasPreviousPage
    +      startCursor
    +    }
    +    edges {
    +      node {
    +        ...AssetFragment
    +      }
    +      cursor
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {
    +  "after": "abc123",
    +  "before": "abc123",
    +  "first": 987,
    +  "last": 987,
    +  "sortOrder": "ASC",
    +  "tenantId": "abc123"
    +}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "assets": {
    +      "pageInfo": PageInfo,
    +      "edges": [AssetEdge]
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Queries +
    +

    + incomingPayment +

    +
    +
    +
    +
    Description
    +

    Fetch an Open Payments incoming payment by its ID.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns an + IncomingPayment +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + id - + String! + Unique identifier of the incoming payment.
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    query IncomingPayment($id: String!) {
    +  incomingPayment(id: $id) {
    +    id
    +    url
    +    walletAddressId
    +    client
    +    liquidity
    +    state
    +    expiresAt
    +    incomingAmount {
    +      value
    +      assetCode
    +      assetScale
    +    }
    +    receivedAmount {
    +      value
    +      assetCode
    +      assetScale
    +    }
    +    metadata
    +    createdAt
    +    senderWalletAddress
    +    tenant {
    +      id
    +      email
    +      apiSecret
    +      idpConsentUrl
    +      idpSecret
    +      publicName
    +      createdAt
    +      deletedAt
    +      settings {
    +        ...TenantSettingFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"id": "abc123"}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "incomingPayment": {
    +      "id": 4,
    +      "url": "abc123",
    +      "walletAddressId": 4,
    +      "client": "abc123",
    +      "liquidity": UInt64,
    +      "state": "PENDING",
    +      "expiresAt": "xyz789",
    +      "incomingAmount": Amount,
    +      "receivedAmount": Amount,
    +      "metadata": {},
    +      "createdAt": "abc123",
    +      "senderWalletAddress": "xyz789",
    +      "tenant": Tenant
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Queries +
    +

    + incomingPayments +

    +
    +
    +
    +
    Description
    +

    Fetch a paginated list of incoming payments.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns an + IncomingPaymentConnection! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameDescription
    + after + - + String + + Forward pagination: Cursor (incoming payment ID) to + start retrieving incoming payments after this point. +
    + before + - + String + + Backward pagination: Cursor (outgoing payment ID) to + start retrieving incoming payments before this point. +
    + first + - + Int + + Forward pagination: Limit the result to the first + n incoming payments after the + after cursor. +
    + last - + Int + + Backward pagination: Limit the result to the last + n incoming payments before the + before cursor. +
    + sortOrder + - + SortOrder + + Specify the sort order of incoming payments based on + their creation date, either ascending or descending. +
    + filter + - + IncomingPaymentFilter + + Filter incoming payments based on specific criteria + such as initiation reason. +
    + tenantId + - + String + + Unique identifier of the tenant associated with the + incoming payment. Optional, if not provided, the + tenantId will be obtained from the signature. +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    query IncomingPayments(
    +  $after: String,
    +  $before: String,
    +  $first: Int,
    +  $last: Int,
    +  $sortOrder: SortOrder,
    +  $filter: IncomingPaymentFilter,
    +  $tenantId: String
    +) {
    +  incomingPayments(
    +    after: $after,
    +    before: $before,
    +    first: $first,
    +    last: $last,
    +    sortOrder: $sortOrder,
    +    filter: $filter,
    +    tenantId: $tenantId
    +  ) {
    +    pageInfo {
    +      endCursor
    +      hasNextPage
    +      hasPreviousPage
    +      startCursor
    +    }
    +    edges {
    +      node {
    +        ...IncomingPaymentFragment
    +      }
    +      cursor
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {
    +  "after": "xyz789",
    +  "before": "xyz789",
    +  "first": 123,
    +  "last": 123,
    +  "sortOrder": "ASC",
    +  "filter": IncomingPaymentFilter,
    +  "tenantId": "abc123"
    +}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "incomingPayments": {
    +      "pageInfo": PageInfo,
    +      "edges": [IncomingPaymentEdge]
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Queries +
    +

    + outgoingPayment +

    +
    +
    +
    +
    Description
    +

    Fetch an Open Payments outgoing payment by its ID.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns an + OutgoingPayment +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + id - + String! + Unique identifier of the outgoing payment.
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    query OutgoingPayment($id: String!) {
    +  outgoingPayment(id: $id) {
    +    id
    +    walletAddressId
    +    client
    +    liquidity
    +    state
    +    error
    +    stateAttempts
    +    debitAmount {
    +      value
    +      assetCode
    +      assetScale
    +    }
    +    receiveAmount {
    +      value
    +      assetCode
    +      assetScale
    +    }
    +    receiver
    +    metadata
    +    quote {
    +      id
    +      tenantId
    +      walletAddressId
    +      receiver
    +      debitAmount {
    +        ...AmountFragment
    +      }
    +      receiveAmount {
    +        ...AmountFragment
    +      }
    +      createdAt
    +      expiresAt
    +      estimatedExchangeRate
    +    }
    +    sentAmount {
    +      value
    +      assetCode
    +      assetScale
    +    }
    +    createdAt
    +    grantId
    +    tenant {
    +      id
    +      email
    +      apiSecret
    +      idpConsentUrl
    +      idpSecret
    +      publicName
    +      createdAt
    +      deletedAt
    +      settings {
    +        ...TenantSettingFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"id": "xyz789"}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "outgoingPayment": {
    +      "id": "4",
    +      "walletAddressId": 4,
    +      "client": "xyz789",
    +      "liquidity": UInt64,
    +      "state": "FUNDING",
    +      "error": "abc123",
    +      "stateAttempts": 987,
    +      "debitAmount": Amount,
    +      "receiveAmount": Amount,
    +      "receiver": "xyz789",
    +      "metadata": {},
    +      "quote": Quote,
    +      "sentAmount": Amount,
    +      "createdAt": "abc123",
    +      "grantId": "xyz789",
    +      "tenant": Tenant
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Queries +
    +

    + outgoingPayments +

    +
    +
    +
    +
    Description
    +

    + Fetch a paginated list of outgoing payments by receiver. +

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns an + OutgoingPaymentConnection! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameDescription
    + after + - + String + + Forward pagination: Cursor (outgoing payment ID) to + start retrieving outgoing payments after this point. +
    + before + - + String + + Backward pagination: Cursor (outgoing payment ID) to + start retrieving outgoing payments before this point. +
    + first + - + Int + + Forward pagination: Limit the result to the first + n outgoing payments after the + after cursor. +
    + last - + Int + + Backward pagination: Limit the result to the last + n outgoing payments before the + before cursor. +
    + sortOrder + - + SortOrder + + Specify the sort order of outgoing payments based on + their creation date, either ascending or descending. +
    + filter + - + OutgoingPaymentFilter + + Filter outgoing payments based on specific criteria + such as receiver, wallet address ID, or state. +
    + tenantId + - + String + + Unique identifier of the tenant associated with the + wallet address. Optional, if not provided, the + tenantId will be obtained from the signature. +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    query OutgoingPayments(
    +  $after: String,
    +  $before: String,
    +  $first: Int,
    +  $last: Int,
    +  $sortOrder: SortOrder,
    +  $filter: OutgoingPaymentFilter,
    +  $tenantId: String
    +) {
    +  outgoingPayments(
    +    after: $after,
    +    before: $before,
    +    first: $first,
    +    last: $last,
    +    sortOrder: $sortOrder,
    +    filter: $filter,
    +    tenantId: $tenantId
    +  ) {
    +    pageInfo {
    +      endCursor
    +      hasNextPage
    +      hasPreviousPage
    +      startCursor
    +    }
    +    edges {
    +      node {
    +        ...OutgoingPaymentFragment
    +      }
    +      cursor
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {
    +  "after": "xyz789",
    +  "before": "xyz789",
    +  "first": 987,
    +  "last": 123,
    +  "sortOrder": "ASC",
    +  "filter": OutgoingPaymentFilter,
    +  "tenantId": "abc123"
    +}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "outgoingPayments": {
    +      "pageInfo": PageInfo,
    +      "edges": [OutgoingPaymentEdge]
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Queries +
    +

    + payments +

    +
    +
    +
    +
    Description
    +

    + Fetch a paginated list of combined payments, including + incoming and outgoing payments. +

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + PaymentConnection! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameDescription
    + after + - + String + + Forward pagination: Cursor (payment ID) to start + retrieving payments after this point. +
    + before + - + String + + Backward pagination: Cursor (payment ID) to start + retrieving payments before this point. +
    + first + - + Int + + Forward pagination: Limit the result to the first + n payments after the + after cursor. +
    + last - + Int + + Backward pagination: Limit the result to the last + n payments before the + before cursor. +
    + sortOrder + - + SortOrder + + Specify the sort order of payments based on their + creation date, either ascending or descending. +
    + filter + - + PaymentFilter + + Filter payment events based on specific criteria such + as payment type or wallet address ID. +
    + tenantId + - + String + + Unique identifier of the tenant associated with the + wallet address. Optional, if not provided, the + tenantId will be obtained from the signature. +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    query Payments(
    +  $after: String,
    +  $before: String,
    +  $first: Int,
    +  $last: Int,
    +  $sortOrder: SortOrder,
    +  $filter: PaymentFilter,
    +  $tenantId: String
    +) {
    +  payments(
    +    after: $after,
    +    before: $before,
    +    first: $first,
    +    last: $last,
    +    sortOrder: $sortOrder,
    +    filter: $filter,
    +    tenantId: $tenantId
    +  ) {
    +    pageInfo {
    +      endCursor
    +      hasNextPage
    +      hasPreviousPage
    +      startCursor
    +    }
    +    edges {
    +      node {
    +        ...PaymentFragment
    +      }
    +      cursor
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {
    +  "after": "abc123",
    +  "before": "abc123",
    +  "first": 123,
    +  "last": 987,
    +  "sortOrder": "ASC",
    +  "filter": PaymentFilter,
    +  "tenantId": "xyz789"
    +}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "payments": {
    +      "pageInfo": PageInfo,
    +      "edges": [PaymentEdge]
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Queries +
    +

    + peer +

    +
    +
    +
    +
    Description
    +

    Fetch a peer by its ID.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a Peer +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + id - + String! + Unique identifier of the peer.
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    query Peer($id: String!) {
    +  peer(id: $id) {
    +    id
    +    maxPacketAmount
    +    http {
    +      outgoing {
    +        ...HttpOutgoingFragment
    +      }
    +    }
    +    asset {
    +      id
    +      code
    +      scale
    +      liquidity
    +      withdrawalThreshold
    +      liquidityThreshold
    +      receivingFee {
    +        ...FeeFragment
    +      }
    +      sendingFee {
    +        ...FeeFragment
    +      }
    +      fees {
    +        ...FeesConnectionFragment
    +      }
    +      createdAt
    +      tenant {
    +        ...TenantFragment
    +      }
    +    }
    +    staticIlpAddress
    +    name
    +    liquidityThreshold
    +    liquidity
    +    createdAt
    +    routes
    +    tenant {
    +      id
    +      email
    +      apiSecret
    +      idpConsentUrl
    +      idpSecret
    +      publicName
    +      createdAt
    +      deletedAt
    +      settings {
    +        ...TenantSettingFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"id": "xyz789"}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "peer": {
    +      "id": 4,
    +      "maxPacketAmount": UInt64,
    +      "http": Http,
    +      "asset": Asset,
    +      "staticIlpAddress": "xyz789",
    +      "name": "xyz789",
    +      "liquidityThreshold": UInt64,
    +      "liquidity": UInt64,
    +      "createdAt": "abc123",
    +      "routes": ["xyz789"],
    +      "tenant": Tenant
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Queries +
    +

    + peerByAddressAndAsset +

    +
    +
    +
    +
    Description
    +

    + Get a peer based on its ILP address and asset ID if it + exists. +

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a Peer +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + + + + + +
    NameDescription
    + staticIlpAddress + - + String! + ILP address of the peer.
    + assetId + - + String! + Asset ID of peering relationship.
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    query PeerByAddressAndAsset(
    +  $staticIlpAddress: String!,
    +  $assetId: String!
    +) {
    +  peerByAddressAndAsset(
    +    staticIlpAddress: $staticIlpAddress,
    +    assetId: $assetId
    +  ) {
    +    id
    +    maxPacketAmount
    +    http {
    +      outgoing {
    +        ...HttpOutgoingFragment
    +      }
    +    }
    +    asset {
    +      id
    +      code
    +      scale
    +      liquidity
    +      withdrawalThreshold
    +      liquidityThreshold
    +      receivingFee {
    +        ...FeeFragment
    +      }
    +      sendingFee {
    +        ...FeeFragment
    +      }
    +      fees {
    +        ...FeesConnectionFragment
    +      }
    +      createdAt
    +      tenant {
    +        ...TenantFragment
    +      }
    +    }
    +    staticIlpAddress
    +    name
    +    liquidityThreshold
    +    liquidity
    +    createdAt
    +    routes
    +    tenant {
    +      id
    +      email
    +      apiSecret
    +      idpConsentUrl
    +      idpSecret
    +      publicName
    +      createdAt
    +      deletedAt
    +      settings {
    +        ...TenantSettingFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {
    +  "staticIlpAddress": "abc123",
    +  "assetId": "abc123"
    +}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "peerByAddressAndAsset": {
    +      "id": 4,
    +      "maxPacketAmount": UInt64,
    +      "http": Http,
    +      "asset": Asset,
    +      "staticIlpAddress": "xyz789",
    +      "name": "xyz789",
    +      "liquidityThreshold": UInt64,
    +      "liquidity": UInt64,
    +      "createdAt": "xyz789",
    +      "routes": ["xyz789"],
    +      "tenant": Tenant
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Queries +
    +

    + peers +

    +
    +
    +
    +
    Description
    +

    Fetch a paginated list of peers.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + PeersConnection! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameDescription
    + after + - + String + + Forward pagination: Cursor (peer ID) to start + retrieving peers after this point. +
    + before + - + String + + Backward pagination: Cursor (peer ID) to start + retrieving peers before this point. +
    + first + - + Int + + Forward pagination: Limit the result to the first + n peers after the + after cursor. +
    + last - + Int + + Backward pagination: Limit the result to the last + n peers before the + before cursor. +
    + sortOrder + - + SortOrder + + Specify the sort order of peers based on their + creation date, either ascending or descending. +
    + tenantId + - + ID + + Unique identifier of the tenant associated with the + peer. +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    query Peers(
    +  $after: String,
    +  $before: String,
    +  $first: Int,
    +  $last: Int,
    +  $sortOrder: SortOrder,
    +  $tenantId: ID
    +) {
    +  peers(
    +    after: $after,
    +    before: $before,
    +    first: $first,
    +    last: $last,
    +    sortOrder: $sortOrder,
    +    tenantId: $tenantId
    +  ) {
    +    pageInfo {
    +      endCursor
    +      hasNextPage
    +      hasPreviousPage
    +      startCursor
    +    }
    +    edges {
    +      node {
    +        ...PeerFragment
    +      }
    +      cursor
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {
    +  "after": "abc123",
    +  "before": "abc123",
    +  "first": 987,
    +  "last": 987,
    +  "sortOrder": "ASC",
    +  "tenantId": "4"
    +}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "peers": {
    +      "pageInfo": PageInfo,
    +      "edges": [PeerEdge]
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Queries +
    +

    + quote +

    +
    +
    +
    +
    Description
    +

    Fetch an Open Payments quote by its ID.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a Quote +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + id - + String! + Unique identifier of the quote.
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    query Quote($id: String!) {
    +  quote(id: $id) {
    +    id
    +    tenantId
    +    walletAddressId
    +    receiver
    +    debitAmount {
    +      value
    +      assetCode
    +      assetScale
    +    }
    +    receiveAmount {
    +      value
    +      assetCode
    +      assetScale
    +    }
    +    createdAt
    +    expiresAt
    +    estimatedExchangeRate
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"id": "xyz789"}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "quote": {
    +      "id": "4",
    +      "tenantId": 4,
    +      "walletAddressId": 4,
    +      "receiver": "abc123",
    +      "debitAmount": Amount,
    +      "receiveAmount": Amount,
    +      "createdAt": "abc123",
    +      "expiresAt": "abc123",
    +      "estimatedExchangeRate": 987.65
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Queries +
    +

    + receiver +

    +
    +
    +
    +
    Description
    +

    + Retrieve an Open Payments incoming payment by receiver ID. + The receiver's wallet address can be hosted on this + server or a remote Open Payments resource server. +

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + Receiver +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + id - + String! + + Unique identifier of the receiver (incoming payment + URL). +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    query Receiver($id: String!) {
    +  receiver(id: $id) {
    +    id
    +    walletAddressUrl
    +    completed
    +    incomingAmount {
    +      value
    +      assetCode
    +      assetScale
    +    }
    +    receivedAmount {
    +      value
    +      assetCode
    +      assetScale
    +    }
    +    expiresAt
    +    metadata
    +    createdAt
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"id": "abc123"}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "receiver": {
    +      "id": "abc123",
    +      "walletAddressUrl": "abc123",
    +      "completed": true,
    +      "incomingAmount": Amount,
    +      "receivedAmount": Amount,
    +      "expiresAt": "abc123",
    +      "metadata": {},
    +      "createdAt": "xyz789"
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Queries +
    +

    + tenant +

    +
    +
    +
    +
    Description
    +

    Retrieve a tenant of the instance.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + Tenant! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + id - + String! + Unique identifier of the tenant.
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    query Tenant($id: String!) {
    +  tenant(id: $id) {
    +    id
    +    email
    +    apiSecret
    +    idpConsentUrl
    +    idpSecret
    +    publicName
    +    createdAt
    +    deletedAt
    +    settings {
    +      key
    +      value
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"id": "xyz789"}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "tenant": {
    +      "id": 4,
    +      "email": "xyz789",
    +      "apiSecret": "abc123",
    +      "idpConsentUrl": "abc123",
    +      "idpSecret": "abc123",
    +      "publicName": "abc123",
    +      "createdAt": "abc123",
    +      "deletedAt": "xyz789",
    +      "settings": [TenantSetting]
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Queries +
    +

    + tenants +

    +
    +
    +
    +
    Description
    +

    + As an operator, fetch a paginated list of tenants on the + instance. +

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + TenantsConnection! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameDescription
    + after + - + String + + Forward pagination: Cursor (tenant ID) to start + retrieving tenants after this point. +
    + before + - + String + + Backward pagination: Cursor (tenant ID) to start + retrieving tenants before this point. +
    + first + - + Int + + Forward pagination: Limit the result to the first + n tenants after the + after cursor. +
    + last - + Int + + Backward pagination: Limit the result to the last + n tenants before the + before cursor. +
    + sortOrder + - + SortOrder + + Specify the sort order of tenants based on their + creation date, either ascending or descending. +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    query Tenants(
    +  $after: String,
    +  $before: String,
    +  $first: Int,
    +  $last: Int,
    +  $sortOrder: SortOrder
    +) {
    +  tenants(
    +    after: $after,
    +    before: $before,
    +    first: $first,
    +    last: $last,
    +    sortOrder: $sortOrder
    +  ) {
    +    pageInfo {
    +      endCursor
    +      hasNextPage
    +      hasPreviousPage
    +      startCursor
    +    }
    +    edges {
    +      node {
    +        ...TenantFragment
    +      }
    +      cursor
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {
    +  "after": "xyz789",
    +  "before": "abc123",
    +  "first": 123,
    +  "last": 987,
    +  "sortOrder": "ASC"
    +}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "tenants": {
    +      "pageInfo": PageInfo,
    +      "edges": [TenantEdge]
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Queries +
    +

    + walletAddress +

    +
    +
    +
    +
    Description
    +

    Fetch a wallet address by its ID.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + WalletAddress +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + id - + String! + Unique identifier of the wallet address.
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    query WalletAddress($id: String!) {
    +  walletAddress(id: $id) {
    +    id
    +    asset {
    +      id
    +      code
    +      scale
    +      liquidity
    +      withdrawalThreshold
    +      liquidityThreshold
    +      receivingFee {
    +        ...FeeFragment
    +      }
    +      sendingFee {
    +        ...FeeFragment
    +      }
    +      fees {
    +        ...FeesConnectionFragment
    +      }
    +      createdAt
    +      tenant {
    +        ...TenantFragment
    +      }
    +    }
    +    liquidity
    +    address
    +    publicName
    +    incomingPayments {
    +      pageInfo {
    +        ...PageInfoFragment
    +      }
    +      edges {
    +        ...IncomingPaymentEdgeFragment
    +      }
    +    }
    +    quotes {
    +      pageInfo {
    +        ...PageInfoFragment
    +      }
    +      edges {
    +        ...QuoteEdgeFragment
    +      }
    +    }
    +    outgoingPayments {
    +      pageInfo {
    +        ...PageInfoFragment
    +      }
    +      edges {
    +        ...OutgoingPaymentEdgeFragment
    +      }
    +    }
    +    createdAt
    +    status
    +    walletAddressKeys {
    +      pageInfo {
    +        ...PageInfoFragment
    +      }
    +      edges {
    +        ...WalletAddressKeyEdgeFragment
    +      }
    +    }
    +    additionalProperties {
    +      key
    +      value
    +      visibleInOpenPayments
    +    }
    +    tenant {
    +      id
    +      email
    +      apiSecret
    +      idpConsentUrl
    +      idpSecret
    +      publicName
    +      createdAt
    +      deletedAt
    +      settings {
    +        ...TenantSettingFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"id": "xyz789"}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "walletAddress": {
    +      "id": 4,
    +      "asset": Asset,
    +      "liquidity": UInt64,
    +      "address": "abc123",
    +      "publicName": "abc123",
    +      "incomingPayments": IncomingPaymentConnection,
    +      "quotes": QuoteConnection,
    +      "outgoingPayments": OutgoingPaymentConnection,
    +      "createdAt": "abc123",
    +      "status": "INACTIVE",
    +      "walletAddressKeys": WalletAddressKeyConnection,
    +      "additionalProperties": [AdditionalProperty],
    +      "tenant": Tenant
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Queries +
    +

    + walletAddressByUrl +

    +
    +
    +
    +
    Description
    +

    Get a wallet address by its url if it exists

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + WalletAddress +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + url - + String! + Wallet Address URL.
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    query WalletAddressByUrl($url: String!) {
    +  walletAddressByUrl(url: $url) {
    +    id
    +    asset {
    +      id
    +      code
    +      scale
    +      liquidity
    +      withdrawalThreshold
    +      liquidityThreshold
    +      receivingFee {
    +        ...FeeFragment
    +      }
    +      sendingFee {
    +        ...FeeFragment
    +      }
    +      fees {
    +        ...FeesConnectionFragment
    +      }
    +      createdAt
    +      tenant {
    +        ...TenantFragment
    +      }
    +    }
    +    liquidity
    +    address
    +    publicName
    +    incomingPayments {
    +      pageInfo {
    +        ...PageInfoFragment
    +      }
    +      edges {
    +        ...IncomingPaymentEdgeFragment
    +      }
    +    }
    +    quotes {
    +      pageInfo {
    +        ...PageInfoFragment
    +      }
    +      edges {
    +        ...QuoteEdgeFragment
    +      }
    +    }
    +    outgoingPayments {
    +      pageInfo {
    +        ...PageInfoFragment
    +      }
    +      edges {
    +        ...OutgoingPaymentEdgeFragment
    +      }
    +    }
    +    createdAt
    +    status
    +    walletAddressKeys {
    +      pageInfo {
    +        ...PageInfoFragment
    +      }
    +      edges {
    +        ...WalletAddressKeyEdgeFragment
    +      }
    +    }
    +    additionalProperties {
    +      key
    +      value
    +      visibleInOpenPayments
    +    }
    +    tenant {
    +      id
    +      email
    +      apiSecret
    +      idpConsentUrl
    +      idpSecret
    +      publicName
    +      createdAt
    +      deletedAt
    +      settings {
    +        ...TenantSettingFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"url": "abc123"}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "walletAddressByUrl": {
    +      "id": "4",
    +      "asset": Asset,
    +      "liquidity": UInt64,
    +      "address": "xyz789",
    +      "publicName": "xyz789",
    +      "incomingPayments": IncomingPaymentConnection,
    +      "quotes": QuoteConnection,
    +      "outgoingPayments": OutgoingPaymentConnection,
    +      "createdAt": "xyz789",
    +      "status": "INACTIVE",
    +      "walletAddressKeys": WalletAddressKeyConnection,
    +      "additionalProperties": [AdditionalProperty],
    +      "tenant": Tenant
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Queries +
    +

    + walletAddresses +

    +
    +
    +
    +
    Description
    +

    Fetch a paginated list of wallet addresses.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + WalletAddressesConnection! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameDescription
    + after + - + String + + Forward pagination: Cursor (wallet address ID) to + start retrieving wallet addresses after this point. +
    + before + - + String + + Backward pagination: Cursor (wallet address ID) to + start retrieving wallet addresses before this point. +
    + first + - + Int + + Forward pagination: Limit the result to the first + n wallet addresses after the + after cursor. +
    + last - + Int + + Backward pagination: Limit the result to the last + n wallet addresses before the + before cursor. +
    + sortOrder + - + SortOrder + + Specify the sort order of wallet addresses based on + their creation date, either ascending or descending. +
    + tenantId + - + String + + Unique identifier of the tenant associated with the + wallet address. Optional, if not provided, the + tenantId will be obtained from the signature. +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    query WalletAddresses(
    +  $after: String,
    +  $before: String,
    +  $first: Int,
    +  $last: Int,
    +  $sortOrder: SortOrder,
    +  $tenantId: String
    +) {
    +  walletAddresses(
    +    after: $after,
    +    before: $before,
    +    first: $first,
    +    last: $last,
    +    sortOrder: $sortOrder,
    +    tenantId: $tenantId
    +  ) {
    +    pageInfo {
    +      endCursor
    +      hasNextPage
    +      hasPreviousPage
    +      startCursor
    +    }
    +    edges {
    +      node {
    +        ...WalletAddressFragment
    +      }
    +      cursor
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {
    +  "after": "abc123",
    +  "before": "xyz789",
    +  "first": 987,
    +  "last": 987,
    +  "sortOrder": "ASC",
    +  "tenantId": "xyz789"
    +}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "walletAddresses": {
    +      "pageInfo": PageInfo,
    +      "edges": [WalletAddressEdge]
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Queries +
    +

    + webhookEvents +

    +
    +
    +
    +
    Description
    +

    Fetch a paginated list of webhook events.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + WebhookEventsConnection! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameDescription
    + after + - + String + + Forward pagination: Cursor (webhook event ID) to start + retrieving webhook events after this point. +
    + before + - + String + + Backward pagination: Cursor (webhook event ID) to + start retrieving webhook events before this point. +
    + first + - + Int + + Forward pagination: Limit the result to the first + n webhook events after the + after cursor. +
    + last - + Int + + Backward pagination: Limit the result to the last + n webhook events before the + before cursor. +
    + sortOrder + - + SortOrder + + Specify the sort order of webhook events based on + their creation date, either ascending or descending. +
    + filter + - + WebhookEventFilter + + Filter webhook events based on specific criteria. +
    + tenantId + - + String + + Unique identifier of the tenant associated with the + wallet address. Optional, if not provided, the + tenantId will be obtained from the signature. +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    query WebhookEvents(
    +  $after: String,
    +  $before: String,
    +  $first: Int,
    +  $last: Int,
    +  $sortOrder: SortOrder,
    +  $filter: WebhookEventFilter,
    +  $tenantId: String
    +) {
    +  webhookEvents(
    +    after: $after,
    +    before: $before,
    +    first: $first,
    +    last: $last,
    +    sortOrder: $sortOrder,
    +    filter: $filter,
    +    tenantId: $tenantId
    +  ) {
    +    pageInfo {
    +      endCursor
    +      hasNextPage
    +      hasPreviousPage
    +      startCursor
    +    }
    +    edges {
    +      node {
    +        ...WebhookEventFragment
    +      }
    +      cursor
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {
    +  "after": "xyz789",
    +  "before": "xyz789",
    +  "first": 987,
    +  "last": 987,
    +  "sortOrder": "ASC",
    +  "filter": WebhookEventFilter,
    +  "tenantId": "xyz789"
    +}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "webhookEvents": {
    +      "pageInfo": PageInfo,
    +      "edges": [WebhookEventsEdge]
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Queries +
    +

    + whoami +

    +
    +
    +
    +
    Description
    +

    Determine if the requester has operator permissions

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + WhoamiResponse! +

    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    query Whoami {
    +  whoami {
    +    id
    +    isOperator
    +  }
    +}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "whoami": {
    +      "id": "xyz789",
    +      "isOperator": false
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +

    + Mutations +

    +
    +

    + approveIncomingPayment +

    +
    +
    +
    +
    Description
    +

    + Approves the incoming payment if the incoming payment is in + the PENDING state +

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns an + ApproveIncomingPaymentResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + ApproveIncomingPaymentInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation ApproveIncomingPayment($input: ApproveIncomingPaymentInput!) {
    +  approveIncomingPayment(input: $input) {
    +    payment {
    +      id
    +      url
    +      walletAddressId
    +      client
    +      liquidity
    +      state
    +      expiresAt
    +      incomingAmount {
    +        ...AmountFragment
    +      }
    +      receivedAmount {
    +        ...AmountFragment
    +      }
    +      metadata
    +      createdAt
    +      senderWalletAddress
    +      tenant {
    +        ...TenantFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": ApproveIncomingPaymentInput}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "approveIncomingPayment": {"payment": IncomingPayment}
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + cancelIncomingPayment +

    +
    +
    +
    +
    Description
    +

    + Cancel the incoming payment if the incoming payment is in + the PENDING state +

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + CancelIncomingPaymentResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + CancelIncomingPaymentInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation CancelIncomingPayment($input: CancelIncomingPaymentInput!) {
    +  cancelIncomingPayment(input: $input) {
    +    payment {
    +      id
    +      url
    +      walletAddressId
    +      client
    +      liquidity
    +      state
    +      expiresAt
    +      incomingAmount {
    +        ...AmountFragment
    +      }
    +      receivedAmount {
    +        ...AmountFragment
    +      }
    +      metadata
    +      createdAt
    +      senderWalletAddress
    +      tenant {
    +        ...TenantFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": CancelIncomingPaymentInput}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "cancelIncomingPayment": {"payment": IncomingPayment}
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + cancelOutgoingPayment +

    +
    +
    +
    +
    Description
    +

    Cancel an outgoing payment.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns an + OutgoingPaymentResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + CancelOutgoingPaymentInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation CancelOutgoingPayment($input: CancelOutgoingPaymentInput!) {
    +  cancelOutgoingPayment(input: $input) {
    +    payment {
    +      id
    +      walletAddressId
    +      client
    +      liquidity
    +      state
    +      error
    +      stateAttempts
    +      debitAmount {
    +        ...AmountFragment
    +      }
    +      receiveAmount {
    +        ...AmountFragment
    +      }
    +      receiver
    +      metadata
    +      quote {
    +        ...QuoteFragment
    +      }
    +      sentAmount {
    +        ...AmountFragment
    +      }
    +      createdAt
    +      grantId
    +      tenant {
    +        ...TenantFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": CancelOutgoingPaymentInput}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "cancelOutgoingPayment": {"payment": OutgoingPayment}
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + completeReceiver +

    +
    +
    +
    +
    Description
    +

    + Complete an internal or external Open Payments incoming + payment. The receiver has a wallet address on either this or + another Open Payments resource server. +

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + CompleteReceiverResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + CompleteReceiverInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation CompleteReceiver($input: CompleteReceiverInput!) {
    +  completeReceiver(input: $input) {
    +    receiver {
    +      id
    +      walletAddressUrl
    +      completed
    +      incomingAmount {
    +        ...AmountFragment
    +      }
    +      receivedAmount {
    +        ...AmountFragment
    +      }
    +      expiresAt
    +      metadata
    +      createdAt
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": CompleteReceiverInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"completeReceiver": {"receiver": Receiver}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + createAsset +

    +
    +
    +
    +
    Description
    +

    Create a new asset.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns an + AssetMutationResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + CreateAssetInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation CreateAsset($input: CreateAssetInput!) {
    +  createAsset(input: $input) {
    +    asset {
    +      id
    +      code
    +      scale
    +      liquidity
    +      withdrawalThreshold
    +      liquidityThreshold
    +      receivingFee {
    +        ...FeeFragment
    +      }
    +      sendingFee {
    +        ...FeeFragment
    +      }
    +      fees {
    +        ...FeesConnectionFragment
    +      }
    +      createdAt
    +      tenant {
    +        ...TenantFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": CreateAssetInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"createAsset": {"asset": Asset}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + createAssetLiquidityWithdrawal +

    +
    +
    +
    +
    Description
    +

    Withdraw asset liquidity.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + LiquidityMutationResponse +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + CreateAssetLiquidityWithdrawalInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation CreateAssetLiquidityWithdrawal($input: CreateAssetLiquidityWithdrawalInput!) {
    +  createAssetLiquidityWithdrawal(input: $input) {
    +    success
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": CreateAssetLiquidityWithdrawalInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"createAssetLiquidityWithdrawal": {"success": true}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + createIncomingPayment +

    +
    +
    +
    +
    Description
    +

    + Create an internal Open Payments incoming payment. The + receiver has a wallet address on this Rafiki instance. +

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns an + IncomingPaymentResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + CreateIncomingPaymentInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation CreateIncomingPayment($input: CreateIncomingPaymentInput!) {
    +  createIncomingPayment(input: $input) {
    +    payment {
    +      id
    +      url
    +      walletAddressId
    +      client
    +      liquidity
    +      state
    +      expiresAt
    +      incomingAmount {
    +        ...AmountFragment
    +      }
    +      receivedAmount {
    +        ...AmountFragment
    +      }
    +      metadata
    +      createdAt
    +      senderWalletAddress
    +      tenant {
    +        ...TenantFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": CreateIncomingPaymentInput}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "createIncomingPayment": {"payment": IncomingPayment}
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + createIncomingPaymentWithdrawal +

    +
    +
    +
    +
    Description
    +

    Withdraw incoming payment liquidity.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + LiquidityMutationResponse +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + CreateIncomingPaymentWithdrawalInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation CreateIncomingPaymentWithdrawal($input: CreateIncomingPaymentWithdrawalInput!) {
    +  createIncomingPaymentWithdrawal(input: $input) {
    +    success
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": CreateIncomingPaymentWithdrawalInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"createIncomingPaymentWithdrawal": {"success": false}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + createOrUpdatePeerByUrl +

    +
    +
    +
    +
    Description
    +

    Create or update a peer using a URL.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + CreateOrUpdatePeerByUrlMutationResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + CreateOrUpdatePeerByUrlInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation CreateOrUpdatePeerByUrl($input: CreateOrUpdatePeerByUrlInput!) {
    +  createOrUpdatePeerByUrl(input: $input) {
    +    peer {
    +      id
    +      maxPacketAmount
    +      http {
    +        ...HttpFragment
    +      }
    +      asset {
    +        ...AssetFragment
    +      }
    +      staticIlpAddress
    +      name
    +      liquidityThreshold
    +      liquidity
    +      createdAt
    +      routes
    +      tenant {
    +        ...TenantFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": CreateOrUpdatePeerByUrlInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"createOrUpdatePeerByUrl": {"peer": Peer}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + createOutgoingPayment +

    +
    +
    +
    +
    Description
    +

    Create an Open Payments outgoing payment.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns an + OutgoingPaymentResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + CreateOutgoingPaymentInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation CreateOutgoingPayment($input: CreateOutgoingPaymentInput!) {
    +  createOutgoingPayment(input: $input) {
    +    payment {
    +      id
    +      walletAddressId
    +      client
    +      liquidity
    +      state
    +      error
    +      stateAttempts
    +      debitAmount {
    +        ...AmountFragment
    +      }
    +      receiveAmount {
    +        ...AmountFragment
    +      }
    +      receiver
    +      metadata
    +      quote {
    +        ...QuoteFragment
    +      }
    +      sentAmount {
    +        ...AmountFragment
    +      }
    +      createdAt
    +      grantId
    +      tenant {
    +        ...TenantFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": CreateOutgoingPaymentInput}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "createOutgoingPayment": {"payment": OutgoingPayment}
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + createOutgoingPaymentFromIncomingPayment +

    +
    +
    +
    +
    Description
    +

    + Create an Open Payments outgoing payment from an incoming + payment. +

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns an + OutgoingPaymentResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + CreateOutgoingPaymentFromIncomingPaymentInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation CreateOutgoingPaymentFromIncomingPayment($input: CreateOutgoingPaymentFromIncomingPaymentInput!) {
    +  createOutgoingPaymentFromIncomingPayment(input: $input) {
    +    payment {
    +      id
    +      walletAddressId
    +      client
    +      liquidity
    +      state
    +      error
    +      stateAttempts
    +      debitAmount {
    +        ...AmountFragment
    +      }
    +      receiveAmount {
    +        ...AmountFragment
    +      }
    +      receiver
    +      metadata
    +      quote {
    +        ...QuoteFragment
    +      }
    +      sentAmount {
    +        ...AmountFragment
    +      }
    +      createdAt
    +      grantId
    +      tenant {
    +        ...TenantFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": CreateOutgoingPaymentFromIncomingPaymentInput}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "createOutgoingPaymentFromIncomingPayment": {
    +      "payment": OutgoingPayment
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + createOutgoingPaymentWithdrawal +

    +
    +
    +
    +
    Description
    +

    Withdraw outgoing payment liquidity.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + LiquidityMutationResponse +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + CreateOutgoingPaymentWithdrawalInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation CreateOutgoingPaymentWithdrawal($input: CreateOutgoingPaymentWithdrawalInput!) {
    +  createOutgoingPaymentWithdrawal(input: $input) {
    +    success
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": CreateOutgoingPaymentWithdrawalInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"createOutgoingPaymentWithdrawal": {"success": true}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + createPeer +

    +
    +
    +
    +
    Description
    +

    Create a new peer.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + CreatePeerMutationResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + CreatePeerInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation CreatePeer($input: CreatePeerInput!) {
    +  createPeer(input: $input) {
    +    peer {
    +      id
    +      maxPacketAmount
    +      http {
    +        ...HttpFragment
    +      }
    +      asset {
    +        ...AssetFragment
    +      }
    +      staticIlpAddress
    +      name
    +      liquidityThreshold
    +      liquidity
    +      createdAt
    +      routes
    +      tenant {
    +        ...TenantFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": CreatePeerInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"createPeer": {"peer": Peer}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + createPeerLiquidityWithdrawal +

    +
    +
    +
    +
    Description
    +

    Withdraw peer liquidity.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + LiquidityMutationResponse +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + CreatePeerLiquidityWithdrawalInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation CreatePeerLiquidityWithdrawal($input: CreatePeerLiquidityWithdrawalInput!) {
    +  createPeerLiquidityWithdrawal(input: $input) {
    +    success
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": CreatePeerLiquidityWithdrawalInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"createPeerLiquidityWithdrawal": {"success": false}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + createQuote +

    +
    +
    +
    +
    Description
    +

    Create an Open Payments quote.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + QuoteResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + CreateQuoteInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation CreateQuote($input: CreateQuoteInput!) {
    +  createQuote(input: $input) {
    +    quote {
    +      id
    +      tenantId
    +      walletAddressId
    +      receiver
    +      debitAmount {
    +        ...AmountFragment
    +      }
    +      receiveAmount {
    +        ...AmountFragment
    +      }
    +      createdAt
    +      expiresAt
    +      estimatedExchangeRate
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": CreateQuoteInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"createQuote": {"quote": Quote}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + createReceiver +

    +
    +
    +
    +
    Description
    +

    + Create an internal or external Open Payments incoming + payment. The receiver has a wallet address on either this or + another Open Payments resource server. +

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + CreateReceiverResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + CreateReceiverInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation CreateReceiver($input: CreateReceiverInput!) {
    +  createReceiver(input: $input) {
    +    receiver {
    +      id
    +      walletAddressUrl
    +      completed
    +      incomingAmount {
    +        ...AmountFragment
    +      }
    +      receivedAmount {
    +        ...AmountFragment
    +      }
    +      expiresAt
    +      metadata
    +      createdAt
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": CreateReceiverInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"createReceiver": {"receiver": Receiver}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + createTenant +

    +
    +
    +
    +
    Description
    +

    As an operator, create a tenant.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + TenantMutationResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + CreateTenantInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation CreateTenant($input: CreateTenantInput!) {
    +  createTenant(input: $input) {
    +    tenant {
    +      id
    +      email
    +      apiSecret
    +      idpConsentUrl
    +      idpSecret
    +      publicName
    +      createdAt
    +      deletedAt
    +      settings {
    +        ...TenantSettingFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": CreateTenantInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"createTenant": {"tenant": Tenant}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + createTenantSettings +

    +
    +
    +
    +
    Response
    +

    + Returns a + CreateTenantSettingsMutationResponse +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + CreateTenantSettingsInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation CreateTenantSettings($input: CreateTenantSettingsInput!) {
    +  createTenantSettings(input: $input) {
    +    settings {
    +      key
    +      value
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": CreateTenantSettingsInput}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "createTenantSettings": {"settings": [TenantSetting]}
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + createWalletAddress +

    +
    +
    +
    +
    Description
    +

    Create a new wallet address.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + CreateWalletAddressMutationResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + CreateWalletAddressInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation CreateWalletAddress($input: CreateWalletAddressInput!) {
    +  createWalletAddress(input: $input) {
    +    walletAddress {
    +      id
    +      asset {
    +        ...AssetFragment
    +      }
    +      liquidity
    +      address
    +      publicName
    +      incomingPayments {
    +        ...IncomingPaymentConnectionFragment
    +      }
    +      quotes {
    +        ...QuoteConnectionFragment
    +      }
    +      outgoingPayments {
    +        ...OutgoingPaymentConnectionFragment
    +      }
    +      createdAt
    +      status
    +      walletAddressKeys {
    +        ...WalletAddressKeyConnectionFragment
    +      }
    +      additionalProperties {
    +        ...AdditionalPropertyFragment
    +      }
    +      tenant {
    +        ...TenantFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": CreateWalletAddressInput}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "createWalletAddress": {
    +      "walletAddress": WalletAddress
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + createWalletAddressKey +

    +
    +
    +
    +
    Description
    +

    + Add a public key to a wallet address that is used to verify + Open Payments requests. +

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + CreateWalletAddressKeyMutationResponse +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + CreateWalletAddressKeyInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation CreateWalletAddressKey($input: CreateWalletAddressKeyInput!) {
    +  createWalletAddressKey(input: $input) {
    +    walletAddressKey {
    +      id
    +      walletAddressId
    +      jwk {
    +        ...JwkFragment
    +      }
    +      revoked
    +      createdAt
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": CreateWalletAddressKeyInput}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "createWalletAddressKey": {
    +      "walletAddressKey": WalletAddressKey
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + createWalletAddressWithdrawal +

    +
    +
    +
    +
    Description
    +

    + Withdraw liquidity from a wallet address received via Web + Monetization. +

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + WalletAddressWithdrawalMutationResponse +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + CreateWalletAddressWithdrawalInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation CreateWalletAddressWithdrawal($input: CreateWalletAddressWithdrawalInput!) {
    +  createWalletAddressWithdrawal(input: $input) {
    +    withdrawal {
    +      id
    +      amount
    +      walletAddress {
    +        ...WalletAddressFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": CreateWalletAddressWithdrawalInput}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "createWalletAddressWithdrawal": {
    +      "withdrawal": WalletAddressWithdrawal
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + deleteAsset +

    +
    +
    +
    +
    Description
    +

    Delete an asset.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + DeleteAssetMutationResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + DeleteAssetInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation DeleteAsset($input: DeleteAssetInput!) {
    +  deleteAsset(input: $input) {
    +    asset {
    +      id
    +      code
    +      scale
    +      liquidity
    +      withdrawalThreshold
    +      liquidityThreshold
    +      receivingFee {
    +        ...FeeFragment
    +      }
    +      sendingFee {
    +        ...FeeFragment
    +      }
    +      fees {
    +        ...FeesConnectionFragment
    +      }
    +      createdAt
    +      tenant {
    +        ...TenantFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": DeleteAssetInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"deleteAsset": {"asset": Asset}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + deletePeer +

    +
    +
    +
    +
    Description
    +

    Delete a peer.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + DeletePeerMutationResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + DeletePeerInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation DeletePeer($input: DeletePeerInput!) {
    +  deletePeer(input: $input) {
    +    success
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": DeletePeerInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"deletePeer": {"success": true}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + deleteTenant +

    +
    +
    +
    +
    Description
    +

    Delete a tenant.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + DeleteTenantMutationResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + id - + String! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation DeleteTenant($id: String!) {
    +  deleteTenant(id: $id) {
    +    success
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"id": "abc123"}
    +
    +
    +
    +
    Response
    +
    {"data": {"deleteTenant": {"success": true}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + depositAssetLiquidity +

    +
    +
    +
    +
    Description
    +

    Deposit asset liquidity.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + LiquidityMutationResponse +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + DepositAssetLiquidityInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation DepositAssetLiquidity($input: DepositAssetLiquidityInput!) {
    +  depositAssetLiquidity(input: $input) {
    +    success
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": DepositAssetLiquidityInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"depositAssetLiquidity": {"success": false}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + depositEventLiquidity +

    +
    +
    +
    +
    + Use depositOutgoingPaymentLiquidity +
    +
    +
    +
    +
    +
    +
    +
    Description
    +

    Deposit webhook event liquidity (deprecated).

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + LiquidityMutationResponse +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + DepositEventLiquidityInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation DepositEventLiquidity($input: DepositEventLiquidityInput!) {
    +  depositEventLiquidity(input: $input) {
    +    success
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": DepositEventLiquidityInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"depositEventLiquidity": {"success": false}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + depositOutgoingPaymentLiquidity +

    +
    +
    +
    +
    Description
    +

    Deposit outgoing payment liquidity.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + LiquidityMutationResponse +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + DepositOutgoingPaymentLiquidityInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation DepositOutgoingPaymentLiquidity($input: DepositOutgoingPaymentLiquidityInput!) {
    +  depositOutgoingPaymentLiquidity(input: $input) {
    +    success
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": DepositOutgoingPaymentLiquidityInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"depositOutgoingPaymentLiquidity": {"success": true}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + depositPeerLiquidity +

    +
    +
    +
    +
    Description
    +

    Deposit peer liquidity.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + LiquidityMutationResponse +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + DepositPeerLiquidityInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation DepositPeerLiquidity($input: DepositPeerLiquidityInput!) {
    +  depositPeerLiquidity(input: $input) {
    +    success
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": DepositPeerLiquidityInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"depositPeerLiquidity": {"success": true}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + postLiquidityWithdrawal +

    +
    +
    +
    +
    Description
    +

    + Post liquidity withdrawal. Withdrawals are two-phase commits + and are committed via this mutation. +

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + LiquidityMutationResponse +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + PostLiquidityWithdrawalInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation PostLiquidityWithdrawal($input: PostLiquidityWithdrawalInput!) {
    +  postLiquidityWithdrawal(input: $input) {
    +    success
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": PostLiquidityWithdrawalInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"postLiquidityWithdrawal": {"success": true}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + revokeWalletAddressKey +

    +
    +
    +
    +
    Description
    +

    + Revoke a public key associated with a wallet address. Open + Payment requests using this key for request signatures will + be denied going forward. +

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + RevokeWalletAddressKeyMutationResponse +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + RevokeWalletAddressKeyInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation RevokeWalletAddressKey($input: RevokeWalletAddressKeyInput!) {
    +  revokeWalletAddressKey(input: $input) {
    +    walletAddressKey {
    +      id
    +      walletAddressId
    +      jwk {
    +        ...JwkFragment
    +      }
    +      revoked
    +      createdAt
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": RevokeWalletAddressKeyInput}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "revokeWalletAddressKey": {
    +      "walletAddressKey": WalletAddressKey
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + setFee +

    +
    +
    +
    +
    Description
    +

    Set the fee structure on an asset.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + SetFeeResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + SetFeeInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation SetFee($input: SetFeeInput!) {
    +  setFee(input: $input) {
    +    fee {
    +      id
    +      assetId
    +      type
    +      fixed
    +      basisPoints
    +      createdAt
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": SetFeeInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"setFee": {"fee": Fee}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + triggerWalletAddressEvents +

    +
    +
    +
    +
    Description
    +

    + If automatic withdrawal of funds received via Web + Monetization by the wallet address are disabled, this + mutation can be used to trigger up to + n withdrawal events. +

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + TriggerWalletAddressEventsMutationResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + TriggerWalletAddressEventsInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation TriggerWalletAddressEvents($input: TriggerWalletAddressEventsInput!) {
    +  triggerWalletAddressEvents(input: $input) {
    +    count
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": TriggerWalletAddressEventsInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"triggerWalletAddressEvents": {"count": 123}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + updateAsset +

    +
    +
    +
    +
    Description
    +

    Update an existing asset.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns an + AssetMutationResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + UpdateAssetInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation UpdateAsset($input: UpdateAssetInput!) {
    +  updateAsset(input: $input) {
    +    asset {
    +      id
    +      code
    +      scale
    +      liquidity
    +      withdrawalThreshold
    +      liquidityThreshold
    +      receivingFee {
    +        ...FeeFragment
    +      }
    +      sendingFee {
    +        ...FeeFragment
    +      }
    +      fees {
    +        ...FeesConnectionFragment
    +      }
    +      createdAt
    +      tenant {
    +        ...TenantFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": UpdateAssetInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"updateAsset": {"asset": Asset}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + updateIncomingPayment +

    +
    +
    +
    +
    Description
    +

    Update an existing incoming payment.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns an + IncomingPaymentResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + UpdateIncomingPaymentInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation UpdateIncomingPayment($input: UpdateIncomingPaymentInput!) {
    +  updateIncomingPayment(input: $input) {
    +    payment {
    +      id
    +      url
    +      walletAddressId
    +      client
    +      liquidity
    +      state
    +      expiresAt
    +      incomingAmount {
    +        ...AmountFragment
    +      }
    +      receivedAmount {
    +        ...AmountFragment
    +      }
    +      metadata
    +      createdAt
    +      senderWalletAddress
    +      tenant {
    +        ...TenantFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": UpdateIncomingPaymentInput}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "updateIncomingPayment": {"payment": IncomingPayment}
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + updatePeer +

    +
    +
    +
    +
    Description
    +

    Update an existing peer.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns an + UpdatePeerMutationResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + UpdatePeerInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation UpdatePeer($input: UpdatePeerInput!) {
    +  updatePeer(input: $input) {
    +    peer {
    +      id
    +      maxPacketAmount
    +      http {
    +        ...HttpFragment
    +      }
    +      asset {
    +        ...AssetFragment
    +      }
    +      staticIlpAddress
    +      name
    +      liquidityThreshold
    +      liquidity
    +      createdAt
    +      routes
    +      tenant {
    +        ...TenantFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": UpdatePeerInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"updatePeer": {"peer": Peer}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + updateTenant +

    +
    +
    +
    +
    Description
    +

    Update a tenant.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + TenantMutationResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + UpdateTenantInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation UpdateTenant($input: UpdateTenantInput!) {
    +  updateTenant(input: $input) {
    +    tenant {
    +      id
    +      email
    +      apiSecret
    +      idpConsentUrl
    +      idpSecret
    +      publicName
    +      createdAt
    +      deletedAt
    +      settings {
    +        ...TenantSettingFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": UpdateTenantInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"updateTenant": {"tenant": Tenant}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + updateWalletAddress +

    +
    +
    +
    +
    Description
    +

    Update an existing wallet address.

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns an + UpdateWalletAddressMutationResponse! +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + UpdateWalletAddressInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation UpdateWalletAddress($input: UpdateWalletAddressInput!) {
    +  updateWalletAddress(input: $input) {
    +    walletAddress {
    +      id
    +      asset {
    +        ...AssetFragment
    +      }
    +      liquidity
    +      address
    +      publicName
    +      incomingPayments {
    +        ...IncomingPaymentConnectionFragment
    +      }
    +      quotes {
    +        ...QuoteConnectionFragment
    +      }
    +      outgoingPayments {
    +        ...OutgoingPaymentConnectionFragment
    +      }
    +      createdAt
    +      status
    +      walletAddressKeys {
    +        ...WalletAddressKeyConnectionFragment
    +      }
    +      additionalProperties {
    +        ...AdditionalPropertyFragment
    +      }
    +      tenant {
    +        ...TenantFragment
    +      }
    +    }
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": UpdateWalletAddressInput}
    +
    +
    +
    +
    Response
    +
    {
    +  "data": {
    +    "updateWalletAddress": {
    +      "walletAddress": WalletAddress
    +    }
    +  }
    +}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + voidLiquidityWithdrawal +

    +
    +
    +
    +
    Description
    +

    + Void liquidity withdrawal. Withdrawals are two-phase commits + and are rolled back via this mutation. +

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + LiquidityMutationResponse +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + VoidLiquidityWithdrawalInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation VoidLiquidityWithdrawal($input: VoidLiquidityWithdrawalInput!) {
    +  voidLiquidityWithdrawal(input: $input) {
    +    success
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": VoidLiquidityWithdrawalInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"voidLiquidityWithdrawal": {"success": false}}}
    +
    +
    +
    +
    +
    +
    +
    + Mutations +
    +

    + withdrawEventLiquidity +

    +
    +
    +
    +
    + Use + createOutgoingPaymentWithdrawal, + createIncomingPaymentWithdrawal, or + createWalletAddressWithdrawal +
    +
    +
    +
    +
    +
    +
    +
    Description
    +

    Withdraw webhook event liquidity (deprecated).

    +
    +
    +
    +
    +
    +
    +
    Response
    +

    + Returns a + LiquidityMutationResponse +

    +
    +
    +
    Arguments
    + + + + + + + + + + + + + +
    NameDescription
    + input + - + WithdrawEventLiquidityInput! +
    +
    +
    +
    +

    Example

    +
    +
    Query
    +
    mutation WithdrawEventLiquidity($input: WithdrawEventLiquidityInput!) {
    +  withdrawEventLiquidity(input: $input) {
    +    success
    +  }
    +}
    +
    +
    +
    +
    Variables
    +
    {"input": WithdrawEventLiquidityInput}
    +
    +
    +
    +
    Response
    +
    {"data": {"withdrawEventLiquidity": {"success": true}}}
    +
    +
    +
    +
    +
    +

    + Types +

    +
    +

    AccountingTransfer

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + id - + ID! + Unique identifier for the accounting transfer.
    + debitAccountId + - + ID! + Unique identifier for the debit account.
    + creditAccountId + - + ID! + Unique identifier for the credit account.
    + amount + - + UInt64! + Amount sent (fixed send).
    + transferType + - + TransferType! + Type of the accounting transfer.
    + ledger + - + UInt8! + + Identifier that partitions the sets of accounts that + can transact with each other. +
    + createdAt + - + String! + + The date and time that the accounting transfer was + created. +
    + state + - + TransferState! + The state of the accounting transfer.
    + expiresAt + - + String + + The date and time that the accounting transfer will + expire. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": 4,
    +  "debitAccountId": 4,
    +  "creditAccountId": 4,
    +  "amount": UInt64,
    +  "transferType": "DEPOSIT",
    +  "ledger": UInt8,
    +  "createdAt": "xyz789",
    +  "state": "PENDING",
    +  "expiresAt": "abc123"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    AccountingTransferConnection

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + debits + - + [AccountingTransfer!]! +
    + credits + - + [AccountingTransfer!]! +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "debits": [AccountingTransfer],
    +  "credits": [AccountingTransfer]
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    AdditionalProperty

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + key - + String! + Key for the additional property.
    + value + - + String! + Value for the additional property.
    + visibleInOpenPayments + - + Boolean! + + Indicates whether the property is visible in Open + Payments wallet address requests. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "key": "xyz789",
    +  "value": "abc123",
    +  "visibleInOpenPayments": false
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    AdditionalPropertyInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + key - + String! + Key for the additional property.
    + value + - + String! + Value for the additional property.
    + visibleInOpenPayments + - + Boolean! + + Indicates whether the property is visible in Open + Payments wallet address requests. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "key": "abc123",
    +  "value": "abc123",
    +  "visibleInOpenPayments": true
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    Alg

    +
    +
    +
    +
    Values
    + + + + + + + + + + + + + +
    Enum ValueDescription
    +

    EdDSA

    +
    EdDSA cryptographic algorithm.
    +
    +
    +
    +
    +
    Example
    +
    "EdDSA"
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    Amount

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + value + - + UInt64! + Numerical value.
    + assetCode + - + String! + + Should be an ISO 4217 currency code whenever possible, + e.g. USD. For more information, refer to + assets. +
    + assetScale + - + UInt8! + + Difference in order of magnitude between the standard + unit of an asset and its corresponding fractional + unit. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "value": UInt64,
    +  "assetCode": "xyz789",
    +  "assetScale": UInt8
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    AmountInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + value + - + UInt64! + Numerical value.
    + assetCode + - + String! + + Should be an ISO 4217 currency code whenever possible, + e.g. USD. For more information, refer to + assets. +
    + assetScale + - + UInt8! + + Difference in order of magnitude between the standard + unit of an asset and its corresponding fractional + unit. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "value": UInt64,
    +  "assetCode": "xyz789",
    +  "assetScale": UInt8
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    ApproveIncomingPaymentInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Input FieldDescription
    + id - + ID! + + Unique identifier of the incoming payment to be + approved. Note: incoming payment must be PENDING. +
    +
    +
    +
    +
    +
    Example
    +
    {"id": "4"}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    ApproveIncomingPaymentResponse

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + payment + - + IncomingPayment + The incoming payment that was approved.
    +
    +
    +
    +
    +
    Example
    +
    {"payment": IncomingPayment}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    Asset

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + id - + ID! + Unique identifier of the asset.
    + code - + String! + + Should be an ISO 4217 currency code whenever possible, + e.g. USD. For more information, refer to + assets. +
    + scale + - + UInt8! + + Difference in order of magnitude between the standard + unit of an asset and its corresponding fractional + unit. +
    + liquidity + - + UInt64 + Available liquidity
    + withdrawalThreshold + - + UInt64 + + Minimum amount of liquidity that can be withdrawn from + the asset. +
    + liquidityThreshold + - + UInt64 + + A webhook event will notify the Account Servicing + Entity if liquidity falls below this value. +
    + receivingFee + - + Fee + The receiving fee structure for the asset.
    + sendingFee + - + Fee + The sending fee structure for the asset.
    + fees - + FeesConnection + + Fetches a paginated list of fees associated with this + asset. +
    +
    +
    Arguments
    +
    +
    +
    + after + - + String +
    +

    + Forward pagination: Cursor (fee ID) to start + retrieving fees after this point. +

    +
    +
    +
    + before + - + String +
    +

    + Backward pagination: Cursor (fee ID) to start + retrieving fees before this point. +

    +
    +
    +
    + first + - + Int +
    +

    + Forward pagination: Limit the result to the + first n fees after the + after cursor. +

    +
    +
    +
    + last + - + Int +
    +

    + Backward pagination: Limit the result to the + last n fees before the + before cursor. +

    +
    +
    +
    + sortOrder + - + SortOrder +
    +

    + Specify the sort order of fees based on their + creation data, either ascending or descending. +

    +
    +
    +
    +
    + createdAt + - + String! + The date and time when the asset was created.
    + tenant + - + Tenant + The tenant that the asset belongs to.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": 4,
    +  "code": "xyz789",
    +  "scale": UInt8,
    +  "liquidity": UInt64,
    +  "withdrawalThreshold": UInt64,
    +  "liquidityThreshold": UInt64,
    +  "receivingFee": Fee,
    +  "sendingFee": Fee,
    +  "fees": FeesConnection,
    +  "createdAt": "xyz789",
    +  "tenant": Tenant
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    AssetEdge

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + node - + Asset! + An asset node in the list.
    + cursor + - + String! + A cursor for paginating through the assets.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "node": Asset,
    +  "cursor": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    AssetMutationResponse

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + asset + - + Asset + The asset affected by the mutation.
    +
    +
    +
    +
    +
    Example
    +
    {"asset": Asset}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    AssetsConnection

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + pageInfo + - + PageInfo! + Information to aid in pagination.
    + edges + - + [AssetEdge!]! + + A list of edges representing assets and cursors for + pagination. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "pageInfo": PageInfo,
    +  "edges": [AssetEdge]
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    BasePayment

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + id - + ID! + Unique identifier for the payment.
    + walletAddressId + - + ID! + + Unique identifier of the wallet address under which + the payment was created. +
    + metadata + - + JSONObject + + Additional metadata associated with the payment. +
    + createdAt + - + String! + The date and time that the payment was created.
    + client + - + String + + Information about the wallet address of the Open + Payments client that created the payment. +
    +
    +
    +
    Possible Types
    + + + + + + + + + + + + + + + + + +
    BasePayment Types
    +

    + IncomingPayment +

    +
    +

    + OutgoingPayment +

    +
    +

    + Payment +

    +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": "4",
    +  "walletAddressId": "4",
    +  "metadata": {},
    +  "createdAt": "abc123",
    +  "client": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    Boolean

    +
    +
    +
    +
    Description
    +

    + The Boolean scalar type represents + true or false. +

    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    CancelIncomingPaymentInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Input FieldDescription
    + id - + ID! + + Unique identifier of the incoming payment to be + canceled. Note: incoming payment must be PENDING. +
    +
    +
    +
    +
    +
    Example
    +
    {"id": "4"}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    CancelIncomingPaymentResponse

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + payment + - + IncomingPayment + The incoming payment that was canceled.
    +
    +
    +
    +
    +
    Example
    +
    {"payment": IncomingPayment}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    CancelOutgoingPaymentInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + id - + ID! + + Unique identifier of the outgoing payment to cancel. +
    + reason + - + String + + Reason why this outgoing payment has been canceled. + This value will be publicly visible in the metadata + field if this outgoing payment is requested through + Open Payments. +
    + cardPaymentFailureReason + - + CardPaymentFailureReason + + If card flow, optional machine-readable failure reason +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": 4,
    +  "reason": "abc123",
    +  "cardPaymentFailureReason": "invalid_signature"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    CardDetailsInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + data - + JSONObject! +
    + requestId + - + String! +
    + initiatedAt + - + String! +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "data": {},
    +  "requestId": "abc123",
    +  "initiatedAt": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    CardPaymentFailureReason

    +
    +
    +
    +
    Values
    + + + + + + + + + + + + + + + + + +
    Enum ValueDescription
    +

    invalid_signature

    +
    +

    invalid_request

    +
    +
    +
    +
    +
    +
    Example
    +
    "invalid_signature"
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    CompleteReceiverInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Input FieldDescription
    + incomingPaymentUrl + - + String! + URL of the incoming payment to be completed.
    +
    +
    +
    +
    +
    Example
    +
    {"incomingPaymentUrl": "abc123"}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    CompleteReceiverResponse

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + receiver + - + Receiver + The receiver object returned in the response.
    +
    +
    +
    +
    +
    Example
    +
    {"receiver": Receiver}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    CreateAssetInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + code - + String! + + Should be an ISO 4217 currency code whenever possible, + e.g. USD. For more information, refer to + assets. +
    + scale + - + UInt8! + + Difference in order of magnitude between the standard + unit of an asset and its corresponding fractional + unit. +
    + withdrawalThreshold + - + UInt64 + + Minimum amount of liquidity that can be withdrawn from + the asset. +
    + liquidityThreshold + - + UInt64 + + A webhook event will notify the Account Servicing + Entity if liquidity falls below this value. +
    + idempotencyKey + - + String + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    + tenantId + - + ID + + Unique identifier of the tenant associated with the + asset. This cannot be changed. Optional, if not + provided, the tenantId will be obtained from the + signature. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "code": "xyz789",
    +  "scale": UInt8,
    +  "withdrawalThreshold": UInt64,
    +  "liquidityThreshold": UInt64,
    +  "idempotencyKey": "abc123",
    +  "tenantId": "4"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    + CreateAssetLiquidityWithdrawalInput +

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + assetId + - + String! + + Unique identifier of the asset to create the + withdrawal for. +
    + amount + - + UInt64! + Amount of liquidity to withdraw.
    + id - + String! + Unique identifier of the withdrawal.
    + idempotencyKey + - + String! + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    + timeoutSeconds + - + UInt64! + + Interval in seconds after a pending transfer's created + at which it may be posted or voided. Zero denotes a no + timeout single-phase posted transfer. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "assetId": "xyz789",
    +  "amount": UInt64,
    +  "id": "xyz789",
    +  "idempotencyKey": "abc123",
    +  "timeoutSeconds": UInt64
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    CreateIncomingPaymentInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + walletAddressId + - + String! + + Unique identifier of the wallet address under which + the incoming payment will be created. +
    + expiresAt + - + String + + Date and time that the incoming payment will expire. +
    + metadata + - + JSONObject + + Additional metadata associated with the incoming + payment. +
    + incomingAmount + - + AmountInput + + Maximum amount to be received for this incoming + payment. +
    + idempotencyKey + - + String + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    + isCardPayment + - + Boolean + + Whether or not the incoming payment is being created + for a card payment. +
    + senderWalletAddress + - + String + + The sender's wallet address URL. Applicable only to + card payments. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "walletAddressId": "abc123",
    +  "expiresAt": "abc123",
    +  "metadata": {},
    +  "incomingAmount": AmountInput,
    +  "idempotencyKey": "xyz789",
    +  "isCardPayment": true,
    +  "senderWalletAddress": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    + CreateIncomingPaymentWithdrawalInput +

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + incomingPaymentId + - + String! + + Unique identifier of the incoming payment to withdraw + liquidity from. +
    + idempotencyKey + - + String! + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    + timeoutSeconds + - + UInt64! + + Interval in seconds after a pending transfer's created + at which it may be posted or voided. Zero denotes a no + timeout single-phase posted transfer. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "incomingPaymentId": "abc123",
    +  "idempotencyKey": "xyz789",
    +  "timeoutSeconds": UInt64
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    CreateOrUpdatePeerByUrlInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + maxPacketAmount + - + UInt64 + Maximum packet amount that the peer accepts.
    + assetId + - + String! + + Unique identifier of the asset associated with the + peering relationship. +
    + peerUrl + - + String! + + Peer's URL address, where auto-peering requests are + accepted. +
    + name - + String + + Internal name for the peer, used to override + auto-peering default names. +
    + liquidityThreshold + - + UInt64 + + A webhook event will notify the Account Servicing + Entity if peer liquidity falls below this value. +
    + liquidityToDeposit + - + UInt64 + Amount of liquidity to deposit for the peer.
    + idempotencyKey + - + String + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "maxPacketAmount": UInt64,
    +  "assetId": "xyz789",
    +  "peerUrl": "xyz789",
    +  "name": "abc123",
    +  "liquidityThreshold": UInt64,
    +  "liquidityToDeposit": UInt64,
    +  "idempotencyKey": "abc123"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    + CreateOrUpdatePeerByUrlMutationResponse +

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + peer - + Peer + The peer created or updated based on a URL.
    +
    +
    +
    +
    +
    Example
    +
    {"peer": Peer}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    + CreateOutgoingPaymentFromIncomingPaymentInput +

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + walletAddressId + - + String! + + Unique identifier of the wallet address under which + the outgoing payment will be created. +
    + incomingPayment + - + String! + + Incoming payment URL to create the outgoing payment + from. +
    + debitAmount + - + AmountInput + Amount to send (fixed send).
    + metadata + - + JSONObject + + Additional metadata associated with the outgoing + payment. +
    + idempotencyKey + - + String + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    + cardDetails + - + CardDetailsInput + + Used for the card service to provide the card expiry + and signature +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "walletAddressId": "xyz789",
    +  "incomingPayment": "xyz789",
    +  "debitAmount": AmountInput,
    +  "metadata": {},
    +  "idempotencyKey": "xyz789",
    +  "cardDetails": CardDetailsInput
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    CreateOutgoingPaymentInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + walletAddressId + - + String! + + Unique identifier of the wallet address under which + the outgoing payment will be created. +
    + quoteId + - + String! + + Unique identifier of the corresponding quote for that + outgoing payment. +
    + metadata + - + JSONObject + + Additional metadata associated with the outgoing + payment. +
    + idempotencyKey + - + String + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "walletAddressId": "xyz789",
    +  "quoteId": "abc123",
    +  "metadata": {},
    +  "idempotencyKey": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    + CreateOutgoingPaymentWithdrawalInput +

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + outgoingPaymentId + - + String! + + Unique identifier of the outgoing payment to withdraw + liquidity from. +
    + idempotencyKey + - + String! + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    + timeoutSeconds + - + UInt64! + + Interval in seconds after a pending transfer's created + at which it may be posted or voided. Zero denotes a no + timeout single-phase posted transfer. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "outgoingPaymentId": "abc123",
    +  "idempotencyKey": "xyz789",
    +  "timeoutSeconds": UInt64
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    CreatePeerInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + maxPacketAmount + - + UInt64 + Maximum packet amount that the peer accepts.
    + http - + HttpInput! + Peering connection details.
    + assetId + - + String! + + Unique identifier of the asset associated with the + peering relationship. +
    + staticIlpAddress + - + String! + ILP address of the peer.
    + name - + String + Internal name of the peer.
    + liquidityThreshold + - + UInt64 + + A webhook event will notify the Account Servicing + Entity if peer liquidity falls below this value. +
    + initialLiquidity + - + UInt64 + + Initial amount of liquidity to deposit for the peer. +
    + idempotencyKey + - + String + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    + routes + - + [String!] + Routes for the peer.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "maxPacketAmount": UInt64,
    +  "http": HttpInput,
    +  "assetId": "abc123",
    +  "staticIlpAddress": "xyz789",
    +  "name": "xyz789",
    +  "liquidityThreshold": UInt64,
    +  "initialLiquidity": UInt64,
    +  "idempotencyKey": "abc123",
    +  "routes": ["xyz789"]
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    + CreatePeerLiquidityWithdrawalInput +

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + peerId + - + String! + + Unique identifier of the peer to create the withdrawal + for. +
    + amount + - + UInt64! + Amount of liquidity to withdraw.
    + id - + String! + Unique identifier of the withdrawal.
    + idempotencyKey + - + String! + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    + timeoutSeconds + - + UInt64! + + Interval in seconds after a pending transfer's created + at which it may be posted or voided. Zero denotes a no + timeout single-phase posted transfer. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "peerId": "abc123",
    +  "amount": UInt64,
    +  "id": "abc123",
    +  "idempotencyKey": "xyz789",
    +  "timeoutSeconds": UInt64
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    CreatePeerMutationResponse

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + peer - + Peer + The peer created by the mutation.
    +
    +
    +
    +
    +
    Example
    +
    {"peer": Peer}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    CreateQuoteInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + walletAddressId + - + String! + + Unique identifier of the wallet address under which + the quote will be created. +
    + debitAmount + - + AmountInput + Amount to send (fixed send).
    + receiveAmount + - + AmountInput + Amount to receive (fixed receive).
    + receiver + - + String! + Wallet address URL of the receiver.
    + idempotencyKey + - + String + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "walletAddressId": "xyz789",
    +  "debitAmount": AmountInput,
    +  "receiveAmount": AmountInput,
    +  "receiver": "abc123",
    +  "idempotencyKey": "abc123"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    CreateReceiverInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + walletAddressUrl + - + String! + Receiving wallet address URL.
    + expiresAt + - + String + + Date and time that the incoming payment expires for + the receiver. +
    + incomingAmount + - + AmountInput + + Maximum amount to be received for this incoming + payment. +
    + metadata + - + JSONObject + + Additional metadata associated with the incoming + payment. +
    + idempotencyKey + - + String + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "walletAddressUrl": "xyz789",
    +  "expiresAt": "abc123",
    +  "incomingAmount": AmountInput,
    +  "metadata": {},
    +  "idempotencyKey": "abc123"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    CreateReceiverResponse

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + receiver + - + Receiver + The receiver object returned in the response.
    +
    +
    +
    +
    +
    Example
    +
    {"receiver": Receiver}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    CreateTenantInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + id - + ID + + Unique identifier of the tenant. Must be compliant + with uuid v4. Will be generated automatically if not + provided. +
    + email + - + String + Contact email of the tenant owner.
    + apiSecret + - + String! + + Secret used to secure requests made for this tenant. +
    + idpConsentUrl + - + String + + URL of the tenant's identity provider's consent + screen. +
    + idpSecret + - + String + + Secret used to secure requests from the tenant's + identity provider. +
    + publicName + - + String + Public name for the tenant.
    + settings + - + [TenantSettingInput!] + Initial settings for tenant.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": 4,
    +  "email": "xyz789",
    +  "apiSecret": "xyz789",
    +  "idpConsentUrl": "xyz789",
    +  "idpSecret": "xyz789",
    +  "publicName": "xyz789",
    +  "settings": [TenantSettingInput]
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    CreateTenantSettingsInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Input FieldDescription
    + settings + - + [TenantSettingInput!]! + List of a settings for a tenant.
    +
    +
    +
    +
    +
    Example
    +
    {"settings": [TenantSettingInput]}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    + CreateTenantSettingsMutationResponse +

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + settings + - + [TenantSetting!]! + New tenant settings.
    +
    +
    +
    +
    +
    Example
    +
    {"settings": [TenantSetting]}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    CreateWalletAddressInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + tenantId + - + ID + + Unique identifier of the tenant associated with the + wallet address. This cannot be changed. Optional, if + not provided, the tenantId will be obtained from the + signature. +
    + assetId + - + String! + + Unique identifier of the asset associated with the + wallet address. This cannot be changed. +
    + address + - + String! + Wallet address. This cannot be changed.
    + publicName + - + String + + Public name associated with the wallet address. This + is visible to anyone with the wallet address URL. +
    + idempotencyKey + - + String + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    + additionalProperties + - + [AdditionalPropertyInput!] + + Additional properties associated with the wallet + address. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "tenantId": "4",
    +  "assetId": "abc123",
    +  "address": "xyz789",
    +  "publicName": "xyz789",
    +  "idempotencyKey": "xyz789",
    +  "additionalProperties": [AdditionalPropertyInput]
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    CreateWalletAddressKeyInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + walletAddressId + - + String! + + Unique identifier of the wallet address to associate + with the key. +
    + jwk - + JwkInput! + Public key in JSON Web Key (JWK) format.
    + idempotencyKey + - + String + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "walletAddressId": "abc123",
    +  "jwk": JwkInput,
    +  "idempotencyKey": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    + CreateWalletAddressKeyMutationResponse +

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + walletAddressKey + - + WalletAddressKey + The wallet address key that was created.
    +
    +
    +
    +
    +
    Example
    +
    {"walletAddressKey": WalletAddressKey}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    + CreateWalletAddressMutationResponse +

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + walletAddress + - + WalletAddress + The newly created wallet address.
    +
    +
    +
    +
    +
    Example
    +
    {"walletAddress": WalletAddress}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    + CreateWalletAddressWithdrawalInput +

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + walletAddressId + - + String! + + Unique identifier of the Open Payments wallet address + to create the withdrawal for. +
    + id - + String! + Unique identifier of the withdrawal.
    + idempotencyKey + - + String! + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    + timeoutSeconds + - + UInt64! + + Interval in seconds after a pending transfer's created + at which it may be posted or voided. Zero denotes a no + timeout single-phase posted transfer. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "walletAddressId": "abc123",
    +  "id": "abc123",
    +  "idempotencyKey": "abc123",
    +  "timeoutSeconds": UInt64
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    Crv

    +
    +
    +
    +
    Values
    + + + + + + + + + + + + + +
    Enum ValueDescription
    +

    Ed25519

    +
    + Elliptic curve Ed25519, used in EdDSA. +
    +
    +
    +
    +
    +
    Example
    +
    "Ed25519"
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    DeleteAssetInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + id - + ID! + Unique identifier of the asset to delete.
    + idempotencyKey + - + String + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    +
    +
    +
    +
    +
    Example
    +
    {"id": 4, "idempotencyKey": "abc123"}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    DeleteAssetMutationResponse

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + asset + - + Asset + The asset that was deleted.
    +
    +
    +
    +
    +
    Example
    +
    {"asset": Asset}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    DeletePeerInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + id - + ID! + Unique identifier of the peer to be deleted.
    + idempotencyKey + - + String + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": "4",
    +  "idempotencyKey": "abc123"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    DeletePeerMutationResponse

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + success + - + Boolean! + + Indicates whether the peer deletion was successful. +
    +
    +
    +
    +
    +
    Example
    +
    {"success": false}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    DeleteTenantMutationResponse

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + success + - + Boolean! +
    +
    +
    +
    +
    +
    Example
    +
    {"success": true}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    DepositAssetLiquidityInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + assetId + - + String! + + Unique identifier of the asset to deposit liquidity + into. +
    + amount + - + UInt64! + Amount of liquidity to deposit.
    + id - + String! + Unique identifier of the liquidity transfer.
    + idempotencyKey + - + String! + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "assetId": "xyz789",
    +  "amount": UInt64,
    +  "id": "abc123",
    +  "idempotencyKey": "abc123"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    DepositEventLiquidityInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + eventId + - + String! + + Unique identifier of the event to deposit liquidity + into. +
    + idempotencyKey + - + String! + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "eventId": "xyz789",
    +  "idempotencyKey": "abc123"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    + DepositOutgoingPaymentLiquidityInput +

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + outgoingPaymentId + - + String! + + Unique identifier of the outgoing payment to deposit + liquidity into. +
    + idempotencyKey + - + String! + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "outgoingPaymentId": "abc123",
    +  "idempotencyKey": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    DepositPeerLiquidityInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + peerId + - + String! + + Unique identifier of the peer to deposit liquidity + into. +
    + amount + - + UInt64! + Amount of liquidity to deposit.
    + id - + String! + Unique identifier of the liquidity transfer.
    + idempotencyKey + - + String! + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "peerId": "abc123",
    +  "amount": UInt64,
    +  "id": "xyz789",
    +  "idempotencyKey": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    Fee

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + id - + ID! + Unique identifier of the fee.
    + assetId + - + ID! + + Unique identifier of the asset associated with the + fee. +
    + type - + FeeType! + Type of fee, either sending or receiving.
    + fixed + - + UInt64! + Amount of the flat, fixed fee to charge.
    + basisPoints + - + Int! + + Basis points fee is a variable fee charged based on + the total amount. Should be between 0 and 10000 + (inclusive). 1 basis point = 0.01%, 100 basis points = + 1%, 10000 basis points = 100%. +
    + createdAt + - + String! + The date and time that this fee was created.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": 4,
    +  "assetId": 4,
    +  "type": "SENDING",
    +  "fixed": UInt64,
    +  "basisPoints": 987,
    +  "createdAt": "abc123"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    FeeDetails

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + fixed + - + UInt64! + Amount of the flat, fixed fee to charge.
    + basisPoints + - + Int! + + Basis points fee is a variable fee charged based on + the total amount. Should be between 0 and 10000 + (inclusive). 1 basis point = 0.01%, 100 basis points = + 1%, 10000 basis points = 100%. +
    +
    +
    +
    +
    +
    Example
    +
    {"fixed": UInt64, "basisPoints": 123}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    FeeEdge

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + node - + Fee! + A fee node in the list.
    + cursor + - + String! + A cursor for paginating through the fees.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "node": Fee,
    +  "cursor": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    FeeType

    +
    +
    +
    +
    Values
    + + + + + + + + + + + + + + + + + +
    Enum ValueDescription
    +

    SENDING

    +
    The sender is responsible for paying the fees.
    +

    RECEIVING

    +
    + The receiver is responsible for paying the fees. +
    +
    +
    +
    +
    +
    Example
    +
    "SENDING"
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    FeesConnection

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + pageInfo + - + PageInfo! + Pagination information for fees.
    + edges + - + [FeeEdge!]! + + A list of fee edges, containing fee nodes and cursors + for pagination. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "pageInfo": PageInfo,
    +  "edges": [FeeEdge]
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    FilterString

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + in - + [String!] + Array of strings to include.
    + notIn + - + [String!] + Array of strings to exclude.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "in": ["xyz789"],
    +  "notIn": ["abc123"]
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    Float

    +
    +
    +
    +
    Description
    +

    + The Float scalar type represents signed + double-precision fractional values as specified by + IEEE 754. +

    +
    +
    +
    +
    +
    Example
    +
    987.65
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    Http

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + outgoing + - + HttpOutgoing! + Details of the outgoing connection for peering.
    +
    +
    +
    +
    +
    Example
    +
    {"outgoing": HttpOutgoing}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    HttpIncomingInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Input FieldDescription
    + authTokens + - + [String!]! + + Array of authorization tokens accepted by this Rafiki + instance. +
    +
    +
    +
    +
    +
    Example
    +
    {"authTokens": ["abc123"]}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    HttpInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + incoming + - + HttpIncomingInput + Incoming connection details.
    + outgoing + - + HttpOutgoingInput! + Outgoing connection details.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "incoming": HttpIncomingInput,
    +  "outgoing": HttpOutgoingInput
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    HttpOutgoing

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + authToken + - + String! + + Authorization token to be presented to the peer's + Rafiki instance. +
    + endpoint + - + String! + Connection endpoint of the peer.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "authToken": "xyz789",
    +  "endpoint": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    HttpOutgoingInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + authToken + - + String! + + Authorization token to present at the peer's Rafiki + instance. +
    + endpoint + - + String! + Connection endpoint of the peer.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "authToken": "xyz789",
    +  "endpoint": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    ID

    +
    +
    +
    +
    Description
    +

    + The ID scalar type represents a unique + identifier, often used to refetch an object or as key for a + cache. The ID type appears in a JSON response as a String; + however, it is not intended to be human-readable. When + expected as an input type, any string (such as + "4") or integer (such as + 4) input value will be accepted as an ID. +

    +
    +
    +
    +
    +
    Example
    +
    4
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    IncomingPayment

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + id - + ID! + Unique identifier of the incoming payment.
    + url - + String! + The URL of the incoming payment.
    + walletAddressId + - + ID! + + Unique identifier of the wallet address under which + the incoming payment was created. +
    + client + - + String + + Information about the wallet address of the Open + Payments client that created the incoming payment. +
    + liquidity + - + UInt64 + + Current amount of liquidity available for this + incoming payment. +
    + state + - + IncomingPaymentState! + State of the incoming payment.
    + expiresAt + - + String! + + Date and time that the incoming payment will expire. + After this time, the incoming payment will not accept + further payments made to it. +
    + incomingAmount + - + Amount + + The maximum amount that should be paid into the wallet + address under this incoming payment. +
    + receivedAmount + - + Amount! + + The total amount that has been paid into the wallet + address under this incoming payment. +
    + metadata + - + JSONObject + + Additional metadata associated with the incoming + payment. +
    + createdAt + - + String! + + The date and time that the incoming payment was + created. +
    + senderWalletAddress + - + String + + The sender's wallet address URL. Applicable only to + card payments. +
    + tenant + - + Tenant + + The tenant associated with the incoming payment. If + not provided, it will be obtained from the signature. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": 4,
    +  "url": "abc123",
    +  "walletAddressId": 4,
    +  "client": "xyz789",
    +  "liquidity": UInt64,
    +  "state": "PENDING",
    +  "expiresAt": "xyz789",
    +  "incomingAmount": Amount,
    +  "receivedAmount": Amount,
    +  "metadata": {},
    +  "createdAt": "abc123",
    +  "senderWalletAddress": "xyz789",
    +  "tenant": Tenant
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    IncomingPaymentConnection

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + pageInfo + - + PageInfo! + + Pagination information for the incoming payments. +
    + edges + - + [IncomingPaymentEdge!]! + + A list of incoming payment edges, containing incoming + payment nodes and cursors for pagination. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "pageInfo": PageInfo,
    +  "edges": [IncomingPaymentEdge]
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    IncomingPaymentEdge

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + node - + IncomingPayment! + An incoming payment node in the list.
    + cursor + - + String! + + A cursor for paginating through the incoming payments. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "node": IncomingPayment,
    +  "cursor": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    IncomingPaymentFilter

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Input FieldDescription
    + initiatedBy + - + FilterString + + Filter for incoming payments based on the initiation + reason. +
    +
    +
    +
    +
    +
    Example
    +
    {"initiatedBy": FilterString}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    IncomingPaymentResponse

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + payment + - + IncomingPayment + + The incoming payment object returned in the response. +
    +
    +
    +
    +
    +
    Example
    +
    {"payment": IncomingPayment}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    IncomingPaymentState

    +
    +
    +
    +
    Values
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Enum ValueDescription
    +

    PENDING

    +
    + The payment is pending when it is initially created + and has not started processing. +
    +

    PROCESSING

    +
    + The payment is being processed after funds have + started clearing into the account. +
    +

    COMPLETED

    +
    + The payment is completed automatically once the + expected incomingAmount is received or + manually via an API call. +
    +

    EXPIRED

    +
    + The payment has expired before completion, and no + further funds will be accepted. +
    +
    +
    +
    +
    +
    Example
    +
    "PENDING"
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    Int

    +
    +
    +
    +
    Description
    +

    + The Int scalar type represents non-fractional + signed whole numeric values. Int can represent values + between -(2^31) and 2^31 - 1. +

    +
    +
    +
    +
    +
    Example
    +
    987
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    JSONObject

    +
    +
    +
    +
    Description
    +

    + The JSONObject scalar type represents JSON + objects as specified by the + ECMA-404 + standard. +

    +
    +
    +
    +
    +
    Example
    +
    {}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    Jwk

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + kid - + String! + Unique identifier for the key.
    + x - + String! + Base64 url-encoded public key.
    + alg - + Alg! + + Cryptographic algorithm used with the key. The only + allowed value is EdDSA. +
    + kty - + Kty! + + Key type. The only allowed value is OKP. +
    + crv - + Crv! + + Cryptographic curve that the key pair is derived from. + The only allowed value is Ed25519. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "kid": "abc123",
    +  "x": "abc123",
    +  "alg": "EdDSA",
    +  "kty": "OKP",
    +  "crv": "Ed25519"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    JwkInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + kid - + String! + Unique identifier for the key.
    + x - + String! + Base64 url-encoded public key.
    + alg - + Alg! + + Cryptographic algorithm used with the key. The only + allowed value is EdDSA. +
    + kty - + Kty! + + Key type. The only allowed value is OKP. +
    + crv - + Crv! + + Cryptographic curve that the key pair is derived from. + The only allowed value is Ed25519. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "kid": "abc123",
    +  "x": "abc123",
    +  "alg": "EdDSA",
    +  "kty": "OKP",
    +  "crv": "Ed25519"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    Kty

    +
    +
    +
    +
    Values
    + + + + + + + + + + + + + +
    Enum ValueDescription
    +

    OKP

    +
    Octet Key Pair (OKP) key type.
    +
    +
    +
    +
    +
    Example
    +
    "OKP"
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    LiquidityMutationResponse

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + success + - + Boolean! + + Indicates whether the liquidity operation was + successful. +
    +
    +
    +
    +
    +
    Example
    +
    {"success": false}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    Model

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + id - + ID! + Unique identifier for the entity.
    + createdAt + - + String! + The date and time that the entity was created.
    +
    +
    +
    Possible Types
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Model Types
    +

    + Asset +

    +
    +

    + Peer +

    +
    +

    + WalletAddress +

    +
    +

    + IncomingPayment +

    +
    +

    + OutgoingPayment +

    +
    +

    + Payment +

    +
    +

    + AccountingTransfer +

    +
    +

    + WalletAddressKey +

    +
    +

    + WebhookEvent +

    +
    +

    + Fee +

    +
    +

    + Tenant +

    +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": "4",
    +  "createdAt": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    OutgoingPayment

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + id - + ID! + Unique identifier of the outgoing payment.
    + walletAddressId + - + ID! + + Unique identifier of the wallet address under which + the outgoing payment was created. +
    + client + - + String + + Information about the wallet address of the Open + Payments client that created the outgoing payment. +
    + liquidity + - + UInt64 + + Current amount of liquidity available for this + outgoing payment. +
    + state + - + OutgoingPaymentState! + State of the outgoing payment.
    + error + - + String + + Any error encountered during the payment process. +
    + stateAttempts + - + Int! + + Number of attempts made to send an outgoing payment. +
    + debitAmount + - + Amount! + Amount to send (fixed send).
    + receiveAmount + - + Amount! + Amount to receive (fixed receive).
    + receiver + - + String! + Wallet address URL of the receiver.
    + metadata + - + JSONObject + + Additional metadata associated with the outgoing + payment. +
    + quote + - + Quote + Corresponding quote for the outgoing payment.
    + sentAmount + - + Amount! + Amount already sent.
    + createdAt + - + String! + + The date and time that the outgoing payment was + created. +
    + grantId + - + String + + Unique identifier of the grant under which the + outgoing payment was created. +
    + tenant + - + Tenant + Tenant of the outgoing payment.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": 4,
    +  "walletAddressId": 4,
    +  "client": "xyz789",
    +  "liquidity": UInt64,
    +  "state": "FUNDING",
    +  "error": "xyz789",
    +  "stateAttempts": 987,
    +  "debitAmount": Amount,
    +  "receiveAmount": Amount,
    +  "receiver": "abc123",
    +  "metadata": {},
    +  "quote": Quote,
    +  "sentAmount": Amount,
    +  "createdAt": "abc123",
    +  "grantId": "abc123",
    +  "tenant": Tenant
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    OutgoingPaymentConnection

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + pageInfo + - + PageInfo! + + Pagination information for the outgoing payments. +
    + edges + - + [OutgoingPaymentEdge!]! + + A list of outgoing payment edges, containing outgoing + payment nodes and cursors for pagination. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "pageInfo": PageInfo,
    +  "edges": [OutgoingPaymentEdge]
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    OutgoingPaymentEdge

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + node - + OutgoingPayment! + An outgoing payment node in the list.
    + cursor + - + String! + + A cursor for paginating through the outgoing payments. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "node": OutgoingPayment,
    +  "cursor": "abc123"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    OutgoingPaymentFilter

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + receiver + - + FilterString + + Filter for outgoing payments based on the receiver's + details. +
    + walletAddressId + - + FilterString + + Filter for outgoing payments based on the wallet + address ID. +
    + state + - + FilterString + + Filter for outgoing payments based on their state. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "receiver": FilterString,
    +  "walletAddressId": FilterString,
    +  "state": FilterString
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    OutgoingPaymentResponse

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + payment + - + OutgoingPayment + + The outgoing payment object returned in the response. +
    +
    +
    +
    +
    +
    Example
    +
    {"payment": OutgoingPayment}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    OutgoingPaymentState

    +
    +
    +
    +
    Values
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Enum ValueDescription
    +

    FUNDING

    +
    + The payment is reserving funds and will transition to + SENDING once funds are secured. +
    +

    SENDING

    +
    + The payment is in progress and will transition to + COMPLETED upon success. +
    +

    COMPLETED

    +
    The payment has been successfully completed.
    +

    FAILED

    +
    The payment has failed.
    +

    CANCELLED

    +
    The payment has been canceled.
    +
    +
    +
    +
    +
    Example
    +
    "FUNDING"
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    PageInfo

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + endCursor + - + String + + The cursor used to fetch the next page when paginating + forwards. +
    + hasNextPage + - + Boolean! + + Indicates if there are more pages when paginating + forwards. +
    + hasPreviousPage + - + Boolean! + + Indicates if there are more pages when paginating + backwards. +
    + startCursor + - + String + + The cursor used to fetch the next page when paginating + backwards. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "endCursor": "xyz789",
    +  "hasNextPage": true,
    +  "hasPreviousPage": true,
    +  "startCursor": "abc123"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    Payment

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + id - + ID! + Unique identifier of the payment.
    + type - + PaymentType! + Type of payment, either incoming or outgoing.
    + walletAddressId + - + ID! + + Unique identifier of the wallet address under which + the payment was created. +
    + client + - + String + + Information about the wallet address of the Open + Payments client that created the payment. +
    + state + - + String! + + State of the payment, either + IncomingPaymentState or + OutgoingPaymentState according to payment + type +
    + liquidity + - + UInt64 + + Current amount of liquidity available for this + payment. +
    + metadata + - + JSONObject + + Additional metadata associated with the payment. +
    + createdAt + - + String! + The date and time that the payment was created.
    + tenant + - + Tenant + The tenant associated with the payment.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": "4",
    +  "type": "INCOMING",
    +  "walletAddressId": 4,
    +  "client": "xyz789",
    +  "state": "abc123",
    +  "liquidity": UInt64,
    +  "metadata": {},
    +  "createdAt": "abc123",
    +  "tenant": Tenant
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    PaymentConnection

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + pageInfo + - + PageInfo! + Pagination information for the payments.
    + edges + - + [PaymentEdge!]! + + A list of payment edges, containing payment nodes and + cursors for pagination. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "pageInfo": PageInfo,
    +  "edges": [PaymentEdge]
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    PaymentEdge

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + node - + Payment! + A payment node in the list.
    + cursor + - + String! + A cursor for paginating through the payments.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "node": Payment,
    +  "cursor": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    PaymentFilter

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + type - + FilterString + Filter for payments based on their type.
    + walletAddressId + - + FilterString + + Filter for payments based on the wallet address ID. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "type": FilterString,
    +  "walletAddressId": FilterString
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    PaymentType

    +
    +
    +
    +
    Values
    + + + + + + + + + + + + + + + + + +
    Enum ValueDescription
    +

    INCOMING

    +
    Represents an incoming payment.
    +

    OUTGOING

    +
    Represents an outgoing payment.
    +
    +
    +
    +
    +
    Example
    +
    "INCOMING"
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    Peer

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + id - + ID! + Unique identifier of the peer.
    + maxPacketAmount + - + UInt64 + Maximum packet amount that the peer accepts.
    + http - + Http! + Peering connection details.
    + asset + - + Asset! + Asset of peering relationship.
    + staticIlpAddress + - + String! + ILP address of the peer.
    + name - + String + Public name for the peer.
    + liquidityThreshold + - + UInt64 + + A webhook event will notify the Account Servicing + Entity if liquidity falls below this value. +
    + liquidity + - + UInt64 + Current amount of peer liquidity available.
    + createdAt + - + String! + The date and time when the peer was created.
    + routes + - + [String!]! + Routes for the peer.
    + tenant + - + Tenant + + Unique identifier of the tenant associated with the + peer. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": "4",
    +  "maxPacketAmount": UInt64,
    +  "http": Http,
    +  "asset": Asset,
    +  "staticIlpAddress": "abc123",
    +  "name": "xyz789",
    +  "liquidityThreshold": UInt64,
    +  "liquidity": UInt64,
    +  "createdAt": "abc123",
    +  "routes": ["abc123"],
    +  "tenant": Tenant
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    PeerEdge

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + node - + Peer! + A peer node in the list.
    + cursor + - + String! + A cursor for paginating through the peers.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "node": Peer,
    +  "cursor": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    PeersConnection

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + pageInfo + - + PageInfo! + Information to aid in pagination.
    + edges + - + [PeerEdge!]! + + A list of edges representing peers and cursors for + pagination. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "pageInfo": PageInfo,
    +  "edges": [PeerEdge]
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    PostLiquidityWithdrawalInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + withdrawalId + - + String! + + Unique identifier of the liquidity withdrawal to post. +
    + idempotencyKey + - + String! + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "withdrawalId": "xyz789",
    +  "idempotencyKey": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    Quote

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + id - + ID! + Unique identifier of the quote.
    + tenantId + - + ID! + + Unique identifier of the tenant under which the quote + was created. +
    + walletAddressId + - + ID! + + Unique identifier of the wallet address under which + the quote was created. +
    + receiver + - + String! + Wallet address URL of the receiver.
    + debitAmount + - + Amount! + Amount to send (fixed send).
    + receiveAmount + - + Amount! + Amount to receive (fixed receive).
    + createdAt + - + String! + The date and time that the quote was created.
    + expiresAt + - + String! + The date and time that the quote will expire.
    + estimatedExchangeRate + - + Float + Estimated exchange rate for this quote.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": "4",
    +  "tenantId": "4",
    +  "walletAddressId": 4,
    +  "receiver": "xyz789",
    +  "debitAmount": Amount,
    +  "receiveAmount": Amount,
    +  "createdAt": "abc123",
    +  "expiresAt": "abc123",
    +  "estimatedExchangeRate": 987.65
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    QuoteConnection

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + pageInfo + - + PageInfo! + Pagination information for quotes.
    + edges + - + [QuoteEdge!]! + + A list of quote edges, containing quote nodes and + cursors for pagination. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "pageInfo": PageInfo,
    +  "edges": [QuoteEdge]
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    QuoteEdge

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + node - + Quote! + A quote node in the list.
    + cursor + - + String! + A cursor for paginating through the quotes.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "node": Quote,
    +  "cursor": "abc123"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    QuoteResponse

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + quote + - + Quote + The quote object returned in the response.
    +
    +
    +
    +
    +
    Example
    +
    {"quote": Quote}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    Receiver

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + id - + String! + + Unique identifier of the receiver (incoming payment + URL). +
    + walletAddressUrl + - + String! + + Wallet address URL under which the incoming payment + was created. +
    + completed + - + Boolean! + + Indicates whether the incoming payment has completed + receiving funds. +
    + incomingAmount + - + Amount + + The maximum amount that should be paid into the wallet + address under this incoming payment. +
    + receivedAmount + - + Amount! + + The total amount that has been paid into the wallet + address under this incoming payment. +
    + expiresAt + - + String + + Date and time that the incoming payment will expire. + After this time, the incoming payment will not accept + further payments made to it. +
    + metadata + - + JSONObject + + Additional metadata associated with the incoming + payment. +
    + createdAt + - + String! + + The date and time that the incoming payment was + created. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": "xyz789",
    +  "walletAddressUrl": "abc123",
    +  "completed": true,
    +  "incomingAmount": Amount,
    +  "receivedAmount": Amount,
    +  "expiresAt": "xyz789",
    +  "metadata": {},
    +  "createdAt": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    RevokeWalletAddressKeyInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + id - + String! + + Internal unique identifier of the key to revoke. +
    + idempotencyKey + - + String + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": "xyz789",
    +  "idempotencyKey": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    + RevokeWalletAddressKeyMutationResponse +

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + walletAddressKey + - + WalletAddressKey + The wallet address key that was revoked.
    +
    +
    +
    +
    +
    Example
    +
    {"walletAddressKey": WalletAddressKey}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    SetFeeInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + assetId + - + ID! + + Unique identifier of the asset id to add the fees to. +
    + type - + FeeType! + Type of fee, either sending or receiving.
    + fee - + FeeDetails! + Fee values
    + idempotencyKey + - + String + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "assetId": 4,
    +  "type": "SENDING",
    +  "fee": FeeDetails,
    +  "idempotencyKey": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    SetFeeResponse

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + fee - + Fee + The fee that was set.
    +
    +
    +
    +
    +
    Example
    +
    {"fee": Fee}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    SortOrder

    +
    +
    +
    +
    Values
    + + + + + + + + + + + + + + + + + +
    Enum ValueDescription
    +

    ASC

    +
    Sort the results in ascending order.
    +

    DESC

    +
    Sort the results in descending order.
    +
    +
    +
    +
    +
    Example
    +
    "ASC"
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    String

    +
    +
    +
    +
    Description
    +

    + The String scalar type represents textual data, + represented as UTF-8 character sequences. The String type is + most often used by GraphQL to represent free-form + human-readable text. +

    +
    +
    +
    +
    +
    Example
    +
    "abc123"
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    Tenant

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + id - + ID! + Unique identifier of the tenant.
    + email + - + String + Contact email of the tenant owner.
    + apiSecret + - + String! + + Secret used to secure requests made for this tenant. +
    + idpConsentUrl + - + String + + URL of the tenant's identity provider's consent + screen. +
    + idpSecret + - + String + + Secret used to secure requests from the tenant's + identity provider. +
    + publicName + - + String + Public name for the tenant.
    + createdAt + - + String! + The date and time that this tenant was created.
    + deletedAt + - + String + The date and time that this tenant was deleted.
    + settings + - + [TenantSetting!]! + List of settings for the tenant.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": "4",
    +  "email": "abc123",
    +  "apiSecret": "abc123",
    +  "idpConsentUrl": "xyz789",
    +  "idpSecret": "abc123",
    +  "publicName": "abc123",
    +  "createdAt": "xyz789",
    +  "deletedAt": "xyz789",
    +  "settings": [TenantSetting]
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    TenantEdge

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + node - + Tenant! + A tenant node in the list.
    + cursor + - + String! + A cursor for paginating through the tenants.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "node": Tenant,
    +  "cursor": "abc123"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    TenantMutationResponse

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + tenant + - + Tenant! +
    +
    +
    +
    +
    +
    Example
    +
    {"tenant": Tenant}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    TenantSetting

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + key - + TenantSettingKey! + Key for this setting.
    + value + - + String! + Value of a setting for this key.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "key": "EXCHANGE_RATES_URL",
    +  "value": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    TenantSettingInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + key - + TenantSettingKey! + Key for this setting.
    + value + - + String! + Value of a setting for this key.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "key": "EXCHANGE_RATES_URL",
    +  "value": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    TenantSettingKey

    +
    +
    +
    +
    Values
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Enum ValueDescription
    +

    EXCHANGE_RATES_URL

    +
    +

    WEBHOOK_URL

    +
    +

    WEBHOOK_TIMEOUT

    +
    +

    WEBHOOK_MAX_RETRY

    +
    +

    WALLET_ADDRESS_URL

    +
    +

    ILP_ADDRESS

    +
    +
    +
    +
    +
    +
    Example
    +
    "EXCHANGE_RATES_URL"
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    TenantsConnection

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + pageInfo + - + PageInfo! + Information to aid in pagination.
    + edges + - + [TenantEdge!]! + + A list of edges representing tenants and cursors for + pagination. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "pageInfo": PageInfo,
    +  "edges": [TenantEdge]
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    TransferState

    +
    +
    +
    +
    Values
    + + + + + + + + + + + + + + + + + + + + + +
    Enum ValueDescription
    +

    PENDING

    +
    The accounting transfer is pending
    +

    POSTED

    +
    The accounting transfer is posted
    +

    VOIDED

    +
    The accounting transfer is voided
    +
    +
    +
    +
    +
    Example
    +
    "PENDING"
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    TransferType

    +
    +
    +
    +
    Values
    + + + + + + + + + + + + + + + + + + + + + +
    Enum ValueDescription
    +

    DEPOSIT

    +
    Represents a deposit transfer.
    +

    WITHDRAWAL

    +
    Represents a withdrawal transfer.
    +

    TRANSFER

    +
    Represents a generic transfer within Rafiki.
    +
    +
    +
    +
    +
    Example
    +
    "DEPOSIT"
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    TriggerWalletAddressEventsInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + limit + - + Int! + Maximum number of events being triggered (n).
    + idempotencyKey + - + String + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    +
    +
    +
    +
    +
    Example
    +
    {"limit": 123, "idempotencyKey": "abc123"}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    + TriggerWalletAddressEventsMutationResponse +

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + count + - + Int + The number of events that were triggered.
    +
    +
    +
    +
    +
    Example
    +
    {"count": 987}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    UInt64

    +
    +
    +
    +
    Description
    +

    + The UInt64 scalar type represents unsigned + 64-bit whole numeric values. It is capable of handling + values that are larger than the JavaScript + Number type limit (greater than 2^53). +

    +
    +
    +
    +
    +
    Example
    +
    UInt64
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    UInt8

    +
    +
    +
    +
    Description
    +

    + The UInt8 scalar type represents unsigned 8-bit + whole numeric values, ranging from 0 to 255. +

    +
    +
    +
    +
    +
    Example
    +
    UInt8
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    UpdateAssetInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + id - + String! + Unique identifier of the asset to update.
    + withdrawalThreshold + - + UInt64 + + New minimum amount of liquidity that can be withdrawn + from the asset. +
    + liquidityThreshold + - + UInt64 + + A webhook event will notify the Account Servicing + Entity if liquidity falls below this new value. +
    + idempotencyKey + - + String + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": "xyz789",
    +  "withdrawalThreshold": UInt64,
    +  "liquidityThreshold": UInt64,
    +  "idempotencyKey": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    UpdateIncomingPaymentInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + id - + ID! + + Unique identifier of the incoming payment to update. +
    + metadata + - + JSONObject! + + The new metadata object to save for the incoming + payment. It will overwrite any existing metadata. +
    +
    +
    +
    +
    +
    Example
    +
    {"id": "4", "metadata": {}}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    UpdatePeerInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + id - + String! + Unique identifier of the peer to update.
    + maxPacketAmount + - + UInt64 + + New maximum packet amount that the peer accepts. +
    + http - + HttpInput + New peering connection details.
    + staticIlpAddress + - + String + New ILP address for the peer.
    + name - + String + New public name for the peer.
    + liquidityThreshold + - + UInt64 + + A webhook event will notify the Account Servicing + Entity if peer liquidity falls below this new value. +
    + idempotencyKey + - + String + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    + routes + - + [String!] + New routes for the peer.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": "xyz789",
    +  "maxPacketAmount": UInt64,
    +  "http": HttpInput,
    +  "staticIlpAddress": "xyz789",
    +  "name": "xyz789",
    +  "liquidityThreshold": UInt64,
    +  "idempotencyKey": "xyz789",
    +  "routes": ["abc123"]
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    UpdatePeerMutationResponse

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + peer - + Peer + The peer that was updated.
    +
    +
    +
    +
    +
    Example
    +
    {"peer": Peer}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    UpdateTenantInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + id - + ID! + Unique identifier of the tenant.
    + email + - + String + Contact email of the tenant owner.
    + apiSecret + - + String + + Secret used to secure requests made for this tenant. +
    + idpConsentUrl + - + String + + URL of the tenant's identity provider's consent + screen. +
    + idpSecret + - + String + + Secret used to secure requests from the tenant's + identity provider. +
    + publicName + - + String + Public name for the tenant.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": "4",
    +  "email": "abc123",
    +  "apiSecret": "xyz789",
    +  "idpConsentUrl": "abc123",
    +  "idpSecret": "xyz789",
    +  "publicName": "abc123"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    UpdateWalletAddressInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + id - + ID! + + Unique identifier of the wallet address to update. + This cannot be changed. +
    + publicName + - + String + + New public name for the wallet address. This is + visible to anyone with the wallet address URL. +
    + status + - + WalletAddressStatus + + New status to set the wallet address to, either active + or inactive. +
    + idempotencyKey + - + String + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    + additionalProperties + - + [AdditionalPropertyInput!] + + Additional properties associated with this wallet + address. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": "4",
    +  "publicName": "xyz789",
    +  "status": "INACTIVE",
    +  "idempotencyKey": "xyz789",
    +  "additionalProperties": [AdditionalPropertyInput]
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    + UpdateWalletAddressMutationResponse +

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + walletAddress + - + WalletAddress + The updated wallet address.
    +
    +
    +
    +
    +
    Example
    +
    {"walletAddress": WalletAddress}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    VoidLiquidityWithdrawalInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + withdrawalId + - + String! + + Unique identifier of the liquidity withdrawal to void. +
    + idempotencyKey + - + String! + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "withdrawalId": "abc123",
    +  "idempotencyKey": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    WalletAddress

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + id - + ID! + Unique identifier of the wallet address.
    + asset + - + Asset! + Asset of the wallet address.
    + liquidity + - + UInt64 + + Current amount of liquidity available for this wallet + address. +
    + address + - + String! + Wallet Address.
    + publicName + - + String + + Public name associated with the wallet address. This + is visible to anyone with the wallet address URL. +
    + incomingPayments + - + IncomingPaymentConnection + + List of incoming payments received by this wallet + address +
    +
    +
    Arguments
    +
    +
    +
    + after + - + String +
    +

    + Forward pagination: Cursor (incoming payment + ID) to start retrieving incoming payments + after this point. +

    +
    +
    +
    + before + - + String +
    +

    + Backward pagination: Cursor (incoming payment + ID) to start retrieving incoming payments + before this point. +

    +
    +
    +
    + first + - + Int +
    +

    + Forward pagination: Limit the result to the + first n incoming payments + after the after cursor. +

    +
    +
    +
    + last + - + Int +
    +

    + Backward pagination: Limit the result to the + last n incoming payments + before the before cursor. +

    +
    +
    +
    + sortOrder + - + SortOrder +
    +

    + Specify the sort order of incoming payments + based on their creation date, either ascending + or descending. +

    +
    +
    +
    + filter + - + IncomingPaymentFilter +
    +

    + Filter incoming payments based on specific + criteria such as initiation reason. +

    +
    +
    +
    +
    + quotes + - + QuoteConnection + List of quotes created at this wallet address
    +
    +
    Arguments
    +
    +
    +
    + after + - + String +
    +

    + Forward pagination: Cursor (quote ID) to start + retrieving quotes after this point. +

    +
    +
    +
    + before + - + String +
    +

    + Backward pagination: Cursor (quote ID) to + start retrieving quotes before this point. +

    +
    +
    +
    + first + - + Int +
    +

    + Forward pagination: Limit the result to the + first n quotes after the + after cursor. +

    +
    +
    +
    + last + - + Int +
    +

    + Backward pagination: Limit the result to the + last n quotes before the + before cursor. +

    +
    +
    +
    + sortOrder + - + SortOrder +
    +

    + Specify the sort order of quotes based on + their creation data, either ascending or + descending. +

    +
    +
    +
    +
    + outgoingPayments + - + OutgoingPaymentConnection + + List of outgoing payments sent from this wallet + address +
    +
    +
    Arguments
    +
    +
    +
    + after + - + String +
    +

    + Forward pagination: Cursor (outgoing payment + ID) to start retrieving outgoing payments + after this point. +

    +
    +
    +
    + before + - + String +
    +

    + Backward pagination: Cursor (outgoing payment + ID) to start retrieving outgoing payments + before this point. +

    +
    +
    +
    + first + - + Int +
    +

    + Forward pagination: Limit the result to the + first n outgoing payments + after the after cursor. +

    +
    +
    +
    + last + - + Int +
    +

    + Backward pagination: Limit the result to the + last n outgoing payments + before the before cursor. +

    +
    +
    +
    + sortOrder + - + SortOrder +
    +

    + Specify the sort order of outgoing payments + based on their creation date, either ascending + or descending. +

    +
    +
    +
    +
    + createdAt + - + String! + + The date and time when the wallet address was created. +
    + status + - + WalletAddressStatus! + + The current status of the wallet, either active or + inactive. +
    + walletAddressKeys + - + WalletAddressKeyConnection + + List of keys associated with this wallet address +
    +
    +
    Arguments
    +
    +
    +
    + after + - + String +
    +

    + Forward pagination: Cursor (wallet address key + ID) to start retrieving keys after this point. +

    +
    +
    +
    + before + - + String +
    +

    + Backward pagination: Cursor (wallet address + key ID) to start retrieving keys before this + point. +

    +
    +
    +
    + first + - + Int +
    +

    + Forward pagination: Limit the result to the + first n keys after the + after cursor. +

    +
    +
    +
    + last + - + Int +
    +

    + Backward pagination: Limit the result to the + last n keys before the + before cursor. +

    +
    +
    +
    + sortOrder + - + SortOrder +
    +

    + Specify the sort order of keys based on their + creation data, either ascending or descending. +

    +
    +
    +
    +
    + additionalProperties + - + [AdditionalProperty] + + Additional properties associated with the wallet + address. +
    + tenant + - + Tenant + Tenant of the wallet address.
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": "4",
    +  "asset": Asset,
    +  "liquidity": UInt64,
    +  "address": "xyz789",
    +  "publicName": "abc123",
    +  "incomingPayments": IncomingPaymentConnection,
    +  "quotes": QuoteConnection,
    +  "outgoingPayments": OutgoingPaymentConnection,
    +  "createdAt": "xyz789",
    +  "status": "INACTIVE",
    +  "walletAddressKeys": WalletAddressKeyConnection,
    +  "additionalProperties": [AdditionalProperty],
    +  "tenant": Tenant
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    WalletAddressEdge

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + node - + WalletAddress! + A wallet address node in the list.
    + cursor + - + String! + + A cursor for paginating through the wallet addresses. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "node": WalletAddress,
    +  "cursor": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    WalletAddressKey

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + id - + ID! + + Unique internal identifier for the wallet address key. +
    + walletAddressId + - + ID! + + Unique identifier of the wallet address to associate + with the key. +
    + jwk - + Jwk! + + The public key object in JSON Web Key (JWK) format. +
    + revoked + - + Boolean! + Indicator of whether the key has been revoked.
    + createdAt + - + String! + + The date and time that this wallet address key was + created. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": "4",
    +  "walletAddressId": "4",
    +  "jwk": Jwk,
    +  "revoked": false,
    +  "createdAt": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    WalletAddressKeyConnection

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + pageInfo + - + PageInfo! + Pagination information for wallet address keys.
    + edges + - + [WalletAddressKeyEdge!]! + + A list of wallet address key edges, containing wallet + address key nodes and cursors for pagination. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "pageInfo": PageInfo,
    +  "edges": [WalletAddressKeyEdge]
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    WalletAddressKeyEdge

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + node - + WalletAddressKey! + A wallet address key node in the list.
    + cursor + - + String! + + A cursor for paginating through the wallet address + keys. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "node": WalletAddressKey,
    +  "cursor": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    WalletAddressStatus

    +
    +
    +
    +
    Values
    + + + + + + + + + + + + + + + + + +
    Enum ValueDescription
    +

    INACTIVE

    +
    The status after deactivating a wallet address.
    +

    ACTIVE

    +
    The default status of a wallet address.
    +
    +
    +
    +
    +
    Example
    +
    "INACTIVE"
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    WalletAddressWithdrawal

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + id - + ID! + Unique identifier for the withdrawal.
    + amount + - + UInt64! + Amount to be withdrawn.
    + walletAddress + - + WalletAddress! + + Details about the wallet address from which the + withdrawal is made. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": "4",
    +  "amount": UInt64,
    +  "walletAddress": WalletAddress
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    + WalletAddressWithdrawalMutationResponse +

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Field NameDescription
    + withdrawal + - + WalletAddressWithdrawal + + The wallet address withdrawal that was processed. +
    +
    +
    +
    +
    +
    Example
    +
    {"withdrawal": WalletAddressWithdrawal}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    WalletAddressesConnection

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + pageInfo + - + PageInfo! + + Pagination information for the wallet addresses. +
    + edges + - + [WalletAddressEdge!]! + + A list of wallet address edges, containing wallet + address nodes and cursors for pagination. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "pageInfo": PageInfo,
    +  "edges": [WalletAddressEdge]
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    WebhookEvent

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + id - + ID! + Unique identifier of the webhook event.
    + tenant + - + Tenant + Tenant of the webhook event.
    + type - + String! + Type of webhook event.
    + data - + JSONObject! + Stringified JSON data for the webhook event.
    + createdAt + - + String! + + The date and time when the webhook event was created. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "id": 4,
    +  "tenant": Tenant,
    +  "type": "xyz789",
    +  "data": {},
    +  "createdAt": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    WebhookEventFilter

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + +
    Input FieldDescription
    + type - + FilterString + Filter for webhook events based on their type.
    +
    +
    +
    +
    +
    Example
    +
    {"type": FilterString}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    WebhookEventsConnection

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + pageInfo + - + PageInfo! + Pagination information for webhook events.
    + edges + - + [WebhookEventsEdge!]! + + A list of webhook event edges, containing event nodes + and cursors for pagination. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "pageInfo": PageInfo,
    +  "edges": [WebhookEventsEdge]
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    WebhookEventsEdge

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + node - + WebhookEvent! + A webhook event node in the list.
    + cursor + - + String! + + A cursor for paginating through the webhook events. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "node": WebhookEvent,
    +  "cursor": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    WhoamiResponse

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Field NameDescription
    + id - + String! +
    + isOperator + - + Boolean! +
    +
    +
    +
    +
    +
    Example
    +
    {"id": "abc123", "isOperator": false}
    +
    +
    +
    +
    +
    +
    +
    + Types +
    +

    WithdrawEventLiquidityInput

    +
    +
    +
    +
    Fields
    + + + + + + + + + + + + + + + + + +
    Input FieldDescription
    + eventId + - + String! + + Unique identifier of the event to withdraw liquidity + from. +
    + idempotencyKey + - + String! + + Unique key to ensure duplicate or retried requests are + processed only once. For more information, refer to + idempotency. +
    +
    +
    +
    +
    +
    Example
    +
    {
    +  "eventId": "abc123",
    +  "idempotencyKey": "xyz789"
    +}
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +