Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions api-reference/partner/originations/create-origination.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Submits and stores an immutable envelope for one person. Bipa answers `201` with
`level` is `basic` or `full`. For `full`, also `selfie_file_url` and `document_files` (at most one `front` and one `back`, each with `side` and `file_url`).
</ParamField>
<ParamField body="balances" type="array" required>
The complete portfolio of non-zero positions, or an empty list. Each item contains only `asset`, `network`, and `quantity`. The quantity is a positive integer string in the asset's smallest unit. See [Balances and funding](/originations#balances-and-funding) for supported asset/network pairs, fixed units, and settlement availability. Do not send `contract` or `decimal_scale`.
The complete portfolio of non-zero positions, or an empty list. Each item contains only `asset` and `quantity`. The quantity is a positive integer string in the asset's smallest unit. See [Balances and funding](/originations#balances-and-funding) for supported assets, fixed units, and settlement availability. Do not send `network`, `contract`, or `decimal_scale`.
</ParamField>
<ParamField body="address" type="object">
Optional. `zip_code`, `street`, `number`, `complement` (optional), `district`, `city`, `state`, `country`.
Expand Down Expand Up @@ -97,8 +97,8 @@ Submits and stores an immutable envelope for one person. Bipa answers `201` with
]
},
"balances": [
{ "asset": "BRL", "network": "brl", "quantity": "152030" },
{ "asset": "BTC", "network": "bitcoin", "quantity": "1250000" }
{ "asset": "BRL", "quantity": "152030" },
{ "asset": "BTC", "quantity": "1250000" }
],
"address": {
"zip_code": "30130010",
Expand Down
26 changes: 13 additions & 13 deletions originations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The envelope is immutable. Retrying the same `external_id` with the same normali
| `kyc.level` | `basic` or `full`. |
| `kyc.selfie_file_url` | Required for `full`. A pre-signed HTTPS URL on the host you registered with Bipa. |
| `kyc.document_files` | Required and non-empty for `full`: at most one `front` and one `back`, each `{ "side", "file_url" }`. You do not tell us the document type; Bipa classifies it. |
| `balances` | The person's complete portfolio of non-zero positions, or an empty list. Each item is `{ asset, network, quantity }`, with `quantity` a string of digits in the asset's smallest unit. |
| `balances` | The person's complete portfolio of non-zero positions, or an empty list. Each item is `{ asset, quantity }`, with `quantity` a string of digits in the asset's smallest unit. |
| `address` | Optional. When present every field is required except `complement`. |
| `bureau_blobs` | Optional. One item per `dataset` (`basic_data`, `processes`, `financial_data`, `kyc`), the provider's raw payload, up to 256 KiB each. |

Expand Down Expand Up @@ -86,21 +86,21 @@ Every entry into a pending stage starts a 30-day deadline, and `awaiting_activat

## Balances and funding

Each balance contains only `asset`, `network`, and `quantity`. Bipa defines the units for each asset. Do not send `contract` or `decimal_scale`; these unknown fields return `400 malformed_payload`.
Each balance contains only `asset` and `quantity`. Bipa defines the units for each asset. Do not send `network`, `contract`, or `decimal_scale`; these unknown fields return `400 malformed_payload`.

| Asset | Network | Decimal places |
|---|---|---|
| BRL | `brl` | 2 |
| BTC | `bitcoin` | 8 |
| USDT | `ethereum` | 6 |
| ETH | `ethereum` | 18 |
| SOL | `solana` | 9 |
| USDC | `ethereum` | 6 |
| XRP | `xrp` | 6 |
| Asset | Decimal places |
|---|---|
| BRL | 2 |
| BTC | 8 |
| USDT | 6 |
| ETH | 18 |
| SOL | 9 |
| USDC | 6 |
| XRP | 6 |

`quantity` must be a positive integer string matching `^[1-9][0-9]*$`. For example, `"100000000"` means 1 BTC, and `"1000000"` means 1 USDT or 1 XRP. Do not send a JSON number, a decimal fraction, or a zero position.

Asset symbols and network names are case-sensitive. An unsupported pair or duplicate position returns `422 unsupported_asset`. BNB is not supported. Submit the complete portfolio; do not omit an unsupported position to make the request pass.
Asset symbols are case-sensitive. An unsupported asset or duplicate position returns `422 unsupported_asset`. BNB is not supported. Submit the complete portfolio; do not omit an unsupported position to make the request pass.

<Info>
ETH, SOL, USDC, and XRP are accepted at intake, but their funding and settlement are not yet available. A portfolio containing any of these assets cannot proceed to funding or settlement yet.
Expand Down Expand Up @@ -128,7 +128,7 @@ Poll the `GET` every 5 to 15 seconds during the first minute, then back off to 6
| `409` | `migration_already_active` | This tax id already has a `pending` or `approved` origination. |
| `413` | | Body over 4 MB. |
| `422` | `pj_not_supported` | A CNPJ. |
| `422` | `unsupported_asset` | Unsupported asset or network, or a duplicate position. |
| `422` | `unsupported_asset` | Unsupported asset, or a duplicate position. |
| `422` | `already_originated` | This tax id was already settled. |
| `429` | | Rate limit. Honor `Retry-After`. |
| `500` | `internal` | Internal failure, no sensitive detail. |
Expand Down