Skip to content

Commit ea0e34c

Browse files
authored
Merge pull request #32 from BitGo/update-bitgo-api-docs
Update API reference on BitGo Developer Portal
2 parents a3f8672 + f0319a1 commit ea0e34c

File tree

1 file changed

+162
-0
lines changed

1 file changed

+162
-0
lines changed

api.yaml

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22751,6 +22751,80 @@ paths:
2275122751
application/json:
2275222752
schema:
2275322753
$ref: '#/components/schemas/PlatformError'
22754+
/api/v2/{coin}/wallet/{walletId}/addresses/balances:
22755+
get:
22756+
summary: List addresses sorted by balance
22757+
description: List receive addresses by balance on a wallet
22758+
operationId: v2.wallet.addresses.balances
22759+
tags:
22760+
- Address
22761+
parameters:
22762+
- name: page
22763+
description: page number
22764+
in: query
22765+
schema:
22766+
type: string
22767+
default: '1'
22768+
minimum: 1
22769+
format: number
22770+
- name: limit
22771+
description: Maximum number of results to return
22772+
in: query
22773+
schema:
22774+
type: string
22775+
default: '500'
22776+
minimum: 1
22777+
maximum: 500
22778+
format: number
22779+
- name: sort
22780+
description: Sort order of returned addresses based on balance. (1 for ascending, -1 for descending)
22781+
in: query
22782+
schema:
22783+
type: string
22784+
enum:
22785+
- '1'
22786+
- '-1'
22787+
default: '-1'
22788+
- name: token
22789+
description: Name of the token for which the addresses need to be fetched
22790+
in: query
22791+
schema:
22792+
type: string
22793+
- name: coin
22794+
in: path
22795+
required: true
22796+
schema:
22797+
$ref: '#/components/schemas/CoinString'
22798+
- name: walletId
22799+
in: path
22800+
required: true
22801+
schema:
22802+
$ref: '#/components/schemas/WalletIdString'
22803+
responses:
22804+
'200':
22805+
description: OK
22806+
content:
22807+
application/json:
22808+
schema:
22809+
$ref: '#/components/schemas/AddressWithBalanceQueryResult'
22810+
'202':
22811+
description: Accepted
22812+
content:
22813+
application/json:
22814+
schema:
22815+
$ref: '#/components/schemas/PlatformError'
22816+
'400':
22817+
description: Bad Request
22818+
content:
22819+
application/json:
22820+
schema:
22821+
$ref: '#/components/schemas/PlatformError'
22822+
'403':
22823+
description: Forbidden
22824+
content:
22825+
application/json:
22826+
schema:
22827+
$ref: '#/components/schemas/PlatformError'
2275422828
/api/v2/{coin}/wallet/{walletId}/crossChainUnspents:
2275522829
get:
2275622830
summary: Get Wallet Cross Chain Unspents
@@ -23499,6 +23573,41 @@ paths:
2349923573
application/json:
2350023574
schema:
2350123575
$ref: '#/components/schemas/PlatformError'
23576+
/api/v2/enterprise/{enterpriseId}/points/optOut:
23577+
put:
23578+
summary: Opt out of points system
23579+
operationId: v2.enterprise.points.optOut
23580+
tags:
23581+
- Enterprise
23582+
parameters:
23583+
- name: enterpriseId
23584+
in: path
23585+
required: true
23586+
schema:
23587+
$ref: '#/components/schemas/EnterpriseIdString'
23588+
- name: authorization
23589+
description: The authorization header
23590+
in: header
23591+
schema:
23592+
type: string
23593+
responses:
23594+
'200':
23595+
description: OK
23596+
content:
23597+
application/json:
23598+
schema: {}
23599+
'400':
23600+
description: Bad Request
23601+
content:
23602+
application/json:
23603+
schema:
23604+
$ref: '#/components/schemas/PlatformError'
23605+
'404':
23606+
description: Not Found
23607+
content:
23608+
application/json:
23609+
schema:
23610+
$ref: '#/components/schemas/PlatformError'
2350223611
/api/v2/enterprise/{enterpriseId}/regionalfeatures:
2350323612
get:
2350423613
summary: Get enterprise regional features
@@ -25862,6 +25971,9 @@ paths:
2586225971
enum:
2586325972
- canceled
2586425973
description: For transaction request full, the current state must be "pendingApproval" or "pendingDelivery". For transaction request lite, the current state must be "pendingApproval", "pendingUserCommitment", "pendingUserGShare", "pendingUserRShare", or "pendingUserSignature".
25974+
cancellationReason:
25975+
type: string
25976+
description: The reason for the cancellation
2586525977
required:
2586625978
- state
2586725979
responses:
@@ -26910,6 +27022,7 @@ paths:
2691027022
- Frankfurt DE Trust
2691127023
- BitGo Singapore
2691227024
- BitGo Korea
27025+
- BitGo Mena Fze
2691327026
- BitGo Sister Trust 1
2691427027
responses:
2691527028
'200':
@@ -27013,6 +27126,7 @@ paths:
2701327126
- Frankfurt DE Trust
2701427127
- BitGo Singapore
2701527128
- BitGo Korea
27129+
- BitGo Mena Fze
2701627130
- BitGo Sister Trust 1
2701727131
responses:
2701827132
'200':
@@ -29743,6 +29857,9 @@ components:
2974329857
allOf:
2974429858
- $ref: '#/components/schemas/OAuthProvider'
2974529859
description: Log in Method of the enterprise *
29860+
optOutOfPoints:
29861+
type: boolean
29862+
description: Opt Out of Points System Flag
2974629863
required:
2974729864
- id
2974829865
- name
@@ -29834,6 +29951,7 @@ components:
2983429951
- Frankfurt DE Trust
2983529952
- BitGo Singapore
2983629953
- BitGo Korea
29954+
- BitGo Mena Fze
2983729955
- BitGo Sister Trust 1
2983829956
- BitGo Inc
2983929957
Policy:
@@ -46251,6 +46369,7 @@ components:
4625146369
- Frankfurt DE Trust
4625246370
- BitGo Singapore
4625346371
- BitGo Korea
46372+
- BitGo Mena Fze
4625446373
- BitGo Sister Trust 1
4625546374
- BitGo Inc
4625646375
entries:
@@ -47144,6 +47263,45 @@ components:
4714447263
enum:
4714547264
- cashaddr
4714647265
- base58
47266+
AddressWithBalanceQueryResult:
47267+
title: AddressWithBalanceQueryResult
47268+
type: object
47269+
description: Represents the result of a query for addresses with balances. This structure contains the details of a set of addresses, their associated balances, and pagination information about the query results.
47270+
properties:
47271+
coin:
47272+
allOf:
47273+
- $ref: '#/components/schemas/CoinString'
47274+
description: The coin associated with the address balances
47275+
page:
47276+
type: number
47277+
description: The current page number
47278+
totalAddressCount:
47279+
type: number
47280+
description: Total number of addresses present
47281+
totalPages:
47282+
type: number
47283+
description: Total number of pages available for pagination
47284+
addresses:
47285+
type: array
47286+
items:
47287+
type: object
47288+
properties:
47289+
address:
47290+
type: string
47291+
description: The address itself
47292+
balance:
47293+
allOf:
47294+
- $ref: '#/components/schemas/TrimmedBalance1'
47295+
description: The balance associated with the address
47296+
required:
47297+
- address
47298+
- balance
47299+
description: List of addresses with their balances
47300+
message:
47301+
type: string
47302+
description: Optional message from the response
47303+
required:
47304+
- coin
4714747305
AddressQueryResult:
4714847306
title: AddressQueryResult
4714947307
type: object
@@ -47368,6 +47526,8 @@ components:
4736847526
enum:
4736947527
- distributedCustody
4737047528
- pairedCustodial
47529+
- custodialHot
47530+
- custodialCold
4737147531
WalletFlag1:
4737247532
title: WalletFlag
4737347533
type: string
@@ -47980,6 +48140,7 @@ components:
4798048140
- Frankfurt DE Trust
4798148141
- BitGo Singapore
4798248142
- BitGo Korea
48143+
- BitGo Mena Fze
4798348144
- BitGo Sister Trust 1
4798448145
- BitGo Inc
4798548146
entries:
@@ -48485,6 +48646,7 @@ components:
4848548646
- Frankfurt DE Trust
4848648647
- BitGo Singapore
4848748648
- BitGo Korea
48649+
- BitGo Mena Fze
4848848650
- BitGo Sister Trust 1
4848948651
- BitGo Inc
4849048652
coin:

0 commit comments

Comments
 (0)