Skip to content

Commit b299d05

Browse files
Merge pull request #421 from BitGo/update-bitgo-api-docs
Update API reference on BitGo Developer Portal
2 parents 43b81b0 + 0d9f728 commit b299d05

1 file changed

Lines changed: 82 additions & 2 deletions

File tree

api.yaml

Lines changed: 82 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30897,6 +30897,53 @@ paths:
3089730897
application/json:
3089830898
schema:
3089930899
$ref: '#/components/schemas/V1ErrorResponse'
30900+
/api/v1/external/sandbox/transaction/simulate:
30901+
post:
30902+
tags:
30903+
- Fiat
30904+
summary: Simulate a test deposit
30905+
operationId: fiat-indexer.transaction.simulate
30906+
x-internal: false
30907+
description: Creates a simulated test deposit transaction for a wallet in non-production environments. Requires the calling user to be an owner or member of the wallet's enterprise. Blocked in production.
30908+
parameters:
30909+
- name: user-id
30910+
in: header
30911+
required: true
30912+
description: The authenticated user's ID (set by auth-service).
30913+
schema:
30914+
type: string
30915+
requestBody:
30916+
required: true
30917+
content:
30918+
application/json:
30919+
schema:
30920+
$ref: '#/components/schemas/SimulateTransactionRequest'
30921+
responses:
30922+
'200':
30923+
description: OK
30924+
content:
30925+
text/plain:
30926+
schema:
30927+
type: string
30928+
example: Transaction sim-abc123 created successfully. Please allow a few moments for it to appear in the Go Account. Contact support if there is more than a 5 minute delay.
30929+
'400':
30930+
description: Bad Request – invalid or missing parameters
30931+
content:
30932+
application/json:
30933+
schema:
30934+
$ref: '#/components/schemas/V1ErrorResponse'
30935+
'403':
30936+
description: Forbidden – missing user-id header or user does not have access to the wallet's enterprise
30937+
content:
30938+
application/json:
30939+
schema:
30940+
$ref: '#/components/schemas/V1ErrorResponse'
30941+
'500':
30942+
description: Internal Server Error
30943+
content:
30944+
application/json:
30945+
schema:
30946+
$ref: '#/components/schemas/V1ErrorResponse'
3090030947
/api/v2/bankaccounts:
3090130948
get:
3090230949
x-internal: false
@@ -31011,9 +31058,9 @@ paths:
3101131058
- Bank Accounts
3101231059
summary: Add bank account
3101331060
description: |
31014-
Add a bank account to a BitGo enterprise so you can deposit and withdraw fiat.
31061+
Add a bank account to a BitGo enterprise so you can deposit and withdraw fiat. Required address parameters vary by country. Determine required parameters by calling [Get address format information](/reference/fiataddressinfo).
3101531062

31016-
>**NOTE:** Required address parameters vary by country. Determine required parameters by calling [Get address format information](https://developers.bitgo.com/reference/fiataddressinfo).
31063+
>**CaaS clients:** If you are integrating as a Crypto as a Service (CaaS) client, follow the [Fund Go account integration guide](/docs/crypto-as-a-service-fund-go-accounts#steps) instead of using this endpoint directly.
3101731064
operationId: v2.bankaccount.add
3101831065
parameters: []
3101931066
requestBody:
@@ -76482,6 +76529,39 @@ components:
7648276529
- id
7648376530
required:
7648476531
- webhookNotifications
76532+
SimulateTransactionRequest:
76533+
title: SimulateTransactionRequest
76534+
type: object
76535+
description: Request body for creating a simulated test deposit transaction. Only testnet currencies are accepted. Non-production only.
76536+
properties:
76537+
walletId:
76538+
type: string
76539+
minLength: 1
76540+
description: The Go Account wallet ID to create the deposit for.
76541+
currency:
76542+
type: string
76543+
description: A testnet backing fiat currency (e.g., tfiatusd, tfiateur, tfiatsgd).
76544+
amount:
76545+
type: string
76546+
description: The deposit amount in cents as a string. Defaults to "1000" (i.e., $10.00) if not provided.
76547+
default: '1000'
76548+
type:
76549+
type: string
76550+
description: The transaction type. Defaults to "wire". ACH transactions are created in an incomplete/delayed state with a 1-day clearing window.
76551+
enum:
76552+
- wire
76553+
- ach
76554+
default: wire
76555+
instantCreditEligible:
76556+
type: boolean
76557+
description: Whether the transaction is eligible for instant credit. Only relevant for ACH transactions. When true and type is ach, the platform is notified immediately.
76558+
withdrawHoldReleaseAt:
76559+
type: string
76560+
format: date-time
76561+
description: Optional ISO 8601 datetime for when a withdraw hold should be released.
76562+
required:
76563+
- walletId
76564+
- currency
7648576565
SimulateWalletWebhookRequestBody:
7648676566
oneOf:
7648776567
- title: Transfer

0 commit comments

Comments
 (0)