# Bitwage Partner API - [Bitwage Partner API](https://developer.bitwage.com/index.md): Integrate Bitwage payroll and payment processing into your application. - [Quickstart](https://developer.bitwage.com/quickstart.md): Get started with the Bitwage Partner API in minutes. - [Authentication](https://developer.bitwage.com/guides/authentication.md): Authenticate with the Bitwage Partner API using API keys or OAuth 2.0. - [Terminology](https://developer.bitwage.com/guides/terminology.md): Key concepts and account types in the Bitwage platform. - [Integration lifecycle](https://developer.bitwage.com/guides/partner-integration-lifecycle.md): The endpoints you call, in order, to onboard companies, add recipients, and pay them. - [Errors](https://developer.bitwage.com/guides/errors.md): Error response format, error codes, and how to handle and retry failures in the Partner API. - [Private label](https://developer.bitwage.com/guides/private-label.md): Integrate the Bitwage Individual product into your application without the Bitwage UI. - [Webhooks](https://developer.bitwage.com/guides/webhooks.md): Receive real-time notifications when payrolls, payments, and verifications change status. - [Idempotency](https://developer.bitwage.com/guides/idempotency.md): Prevent duplicate operations with the Idempotency-Key header. - [Request authorization code](https://developer.bitwage.com/api-reference/authorization/request-authorization-code.md): OAuth 2.0 authorization code step. Called after a user grants access in the Bitwage client. Returns a redirect URI containing the authorization code. - [Exchange authorization code for access token](https://developer.bitwage.com/api-reference/authorization/exchange-authorization-code-for-access-token.md): Exchange the authorization code received from `/authorize` for an access token. The access token is used in subsequent API requests. - [Create user](https://developer.bitwage.com/api-reference/users/create-user.md): Create a new user on behalf of a partner. Currently only `worker` product type is supported. - [Update user](https://developer.bitwage.com/api-reference/users/update-user.md): Update an existing user's profile data. All fields except `user_id` are optional (partial update). - [Get user details](https://developer.bitwage.com/api-reference/users/get-user-details.md): Retrieve profile details for a Bitwage user. - [Initiate user KYC](https://developer.bitwage.com/api-reference/users/initiate-user-kyc.md): Initiate KYC verification for a user through the identity verification provider. - [Upload user document](https://developer.bitwage.com/api-reference/user-documents/upload-user-document.md): Upload a KYC document or update tax ID for a user. The request shape depends on the `doc_type`: - For `tax_id`: provide `tax_id` and `tax_id_type` fields. - For image documents: provide `category`, `issuing_country`, and `base64_image`. - [List user documents](https://developer.bitwage.com/api-reference/user-documents/list-user-documents.md): List all documents uploaded for a user, including tax ID if available. - [Get required document types](https://developer.bitwage.com/api-reference/user-documents/get-required-document-types.md): Get the required KYC document types based on the user's country and payer currency. - [Create payer](https://developer.bitwage.com/api-reference/user-payers/create-payer.md): Create an external payer (employer or client) for a user. Required fields vary based on `company_type`. `payroll_invoice_currency` must be `EUR`. - [Update payer](https://developer.bitwage.com/api-reference/user-payers/update-payer.md): Update an existing external payer for a user. - [Delete payer](https://developer.bitwage.com/api-reference/user-payers/delete-payer.md): Soft-delete an external payer for a user. - [Get payer details](https://developer.bitwage.com/api-reference/user-payers/get-payer-details.md): Get details for a specific external payer associated with a user. - [List payers](https://developer.bitwage.com/api-reference/user-payers/list-payers.md): List all external payers for a user. - [Get distribution fields](https://developer.bitwage.com/api-reference/user-distributions/get-distribution-fields.md): Get the required fields for creating a fiat distribution based on the user's country and currency. - [Create distribution](https://developer.bitwage.com/api-reference/user-distributions/create-distribution.md): Create a new payment distribution destination for a user. - [Delete distribution](https://developer.bitwage.com/api-reference/user-distributions/delete-distribution.md): Delete a user's distribution. The distribution's allocation must be 0 before deletion. - [Update distribution allocations](https://developer.bitwage.com/api-reference/user-distributions/update-distribution-allocations.md): Update allocation percentages across a user's distributions. Total allocation must equal exactly 100. Maximum 3 distributions. Distributions not included in the request will have their allocation set to 0. - [Get distribution details](https://developer.bitwage.com/api-reference/user-distributions/get-distribution-details.md): Get details of a specific distribution for a user. - [List distributions](https://developer.bitwage.com/api-reference/user-distributions/list-distributions.md): List all distributions for a user. - [Get funding account details](https://developer.bitwage.com/api-reference/user-funding/get-funding-account-details.md): Get bank account details for a user's funding account based on payer currency. - [Create funding account](https://developer.bitwage.com/api-reference/user-funding/create-funding-account.md): Create a funding (virtual bank) account for a user. Supported for EUR payers only. The user must be KYC approved and have at least one distribution. - [Create company](https://developer.bitwage.com/api-reference/companies/create-company.md): Create a new company via the Partner API. Supports idempotency. - [Get company details](https://developer.bitwage.com/api-reference/companies/get-company-details.md): Get company profile details. - [Create UBO admin](https://developer.bitwage.com/api-reference/companies/create-ubo-admin.md): Create a UBO (Ultimate Beneficial Owner) admin for a partner-created company. - [Submit UBO KYC](https://developer.bitwage.com/api-reference/companies/submit-ubo-kyc.md): Submit the UBO admin's KYC verification for a partner-created company. - [Upload company documents](https://developer.bitwage.com/api-reference/companies/upload-company-documents.md): Upload documents for UBO admin KYC or company KYB verification. The `target_type` field determines the document destination and required fields. - [Get KYB status](https://developer.bitwage.com/api-reference/companies/get-kyb-status.md): Get the company's KYB verification status and any outstanding requirements. - [Submit company KYB](https://developer.bitwage.com/api-reference/companies/submit-company-kyb.md): Submit a partner company KYB profile to the verification provider. - [List company workers](https://developer.bitwage.com/api-reference/company-workers/list-company-workers.md): Get a paginated list of company workers. - [Invite workers](https://developer.bitwage.com/api-reference/company-workers/invite-workers.md): Send invitations to workers to join the company. - [Resend worker invitation](https://developer.bitwage.com/api-reference/company-workers/resend-worker-invitation.md): Resend an invitation to a company worker. Maximum 3 resends allowed. - [List worker invitations](https://developer.bitwage.com/api-reference/company-workers/list-worker-invitations.md): Get all pending worker invitations for a company. - [List company recipients](https://developer.bitwage.com/api-reference/company-recipients/list-company-recipients.md): Get company recipients (workers and vendors) with filtering and pagination. - [Create recipient](https://developer.bitwage.com/api-reference/company-recipients/create-recipient.md): Create and link a no-login company recipient: a contractor, an employee, or a vendor. Provide `worker` for `contractor` or `employee`, or `vendor` for `vendor`. The recipient is created under your partner account, which is how their payment webhooks are routed to you. Supports idempotency. - [Create recipient distribution](https://developer.bitwage.com/api-reference/company-recipients/create-recipient-distribution.md): Create a distribution (payment destination) for a company recipient. - [Delete recipient distribution](https://developer.bitwage.com/api-reference/company-recipients/delete-recipient-distribution.md): Delete a distribution for a company recipient. The allocation must be 0 before deletion. - [Set recipient distribution allocations](https://developer.bitwage.com/api-reference/company-recipients/set-recipient-distribution-allocations.md): Set allocation percentages for a company recipient's distributions. Total must equal 100. Maximum 3 distributions. - [Create payroll](https://developer.bitwage.com/api-reference/company-payroll/create-payroll.md): Create a payroll to pay company workers or vendors. This call creates the payroll and returns its `payroll_id`, fees, and, for crypto funding, a funding quote. It is the only moment a payroll is "created": Bitwage does not send a webhook for creation. - [Get estimated payroll fees](https://developer.bitwage.com/api-reference/company-payroll/get-estimated-payroll-fees.md): Estimate fees for a payroll before you create it. When the funding is a balance account, a `quote` is returned. Pass its `id` as `quote_id` to [Create payroll](/api-reference/company-payroll/create-payroll) to lock the rate and fees. - [List payrolls](https://developer.bitwage.com/api-reference/company-payroll/list-payrolls.md): List a company's worker payrolls, newest first. Filter by `external_id` to find a payroll without storing the Bitwage `payroll_id`. Vendor payrolls and balance-account withdrawals are not included. Requires the `payroll.read` permission group. - [Get payroll](https://developer.bitwage.com/api-reference/company-payroll/get-payroll.md): Get a worker payroll and the status of each payment in it. `status` is the same value as `company.payroll_status`. Each item in `payments` is the same object as `payment` on `user.payment_status_update`, so you can reconcile a missed delivery. Vendor payrolls and balance-account withdrawals are not… - [Refresh payroll quotes](https://developer.bitwage.com/api-reference/company-payroll/refresh-payroll-quotes.md): Refresh expired crypto funding quotes for a payroll. - [Create vendor payroll quotes](https://developer.bitwage.com/api-reference/company-payroll/create-vendor-payroll-quotes.md): Create FX quotes for a vendor payroll funded from a company wallet. This endpoint supports API key authentication only. - [Create vendor payroll document upload](https://developer.bitwage.com/api-reference/company-payroll/create-vendor-payroll-document-upload.md): Create a presigned upload session for a vendor payment invoice. Upload the document to the returned `upload_url`, then pass the returned `invoice_upload_id` on the matching vendor payment when creating the vendor payroll. This endpoint supports API key authentication only. - [Create vendor payroll](https://developer.bitwage.com/api-reference/company-payroll/create-vendor-payroll.md): Create a vendor payroll from previously created vendor quote IDs. An `invoice_upload_id` is required for each vendor payment whose quoted USD subtotal is greater than or equal to 15000. This endpoint supports API key authentication only. - [Create merchant claim](https://developer.bitwage.com/api-reference/merchant/create-merchant-claim.md): Create a merchant claim and a claim-scoped crypto quote for BTC checkout. - [Refresh merchant claim quote](https://developer.bitwage.com/api-reference/merchant/refresh-merchant-claim-quote.md): Refresh an expired quote for an existing merchant claim. - [Get merchant claim status](https://developer.bitwage.com/api-reference/merchant/get-merchant-claim-status.md): Get the current BTC checkout status for a merchant claim. - [Request wallet](https://developer.bitwage.com/api-reference/wallets/request-wallet.md): Request a wallet for a partner-provisioned company. This endpoint supports API key authentication only. - [List wallets](https://developer.bitwage.com/api-reference/wallets/list-wallets.md): List active wallets that can be used to fund payrolls for a partner-provisioned company. Use the returned `id` as the `funding_method` for vendor quote and payroll creation. - [List wallet transactions](https://developer.bitwage.com/api-reference/wallets/list-wallet-transactions.md): List transactions for a wallet by wallet ID. The partner must have access to the company that owns the wallet. - [Payroll status](https://developer.bitwage.com/api-reference/webhooks/payroll-status.md): Sent every time a payroll changes status, starting with `created`. It is not a one-time creation event. Statuses can repeat or go back when an action is reversed. Use `GET /api/company/{company_id}/payrolls/{payroll_id}` to reconcile. - [Payment status update](https://developer.bitwage.com/api-reference/webhooks/payment-status-update.md): Sent when a payment changes status. Two things trigger it, so you can receive the same `status` more than once for a payment: - [User kyc status update](https://developer.bitwage.com/api-reference/webhooks/user-kyc-status-update.md): Sent when a user's KYC verification status changes. - [Company kyc status update](https://developer.bitwage.com/api-reference/webhooks/company-kyc-status-update.md): Sent when a company's verification status changes. - [Claim detection](https://developer.bitwage.com/api-reference/webhooks/claim-detection.md): Sent when funds for a merchant claim are detected. - [Balance account event](https://developer.bitwage.com/api-reference/webhooks/balance-account-event.md): Sent for balance account activity. `event` is one of `wallet.request`, `wallet.deposit`, `wallet.lightning_deposit`, or `wallet.crypto_withdrawal`. ## OpenAPI Specs - [openapi](/api-reference/openapi.yaml) ## Optional - [Dashboard](https://app.bitwage.com) - [Website](https://www.bitwage.com) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.