Accounts Receivable Integration Guide
Generate re-usable deposit addresses for Merchants and their Third Party Payors
zerohash B.V. (EU entity)The following steps should be followed if you're onboarding a Customer to zerohash B.V. (the EU entity). For EU API calls, use base URL: https://api.zerohash.eu
Stablecoins only for Third Party Payor Accounts Receivable DepositsNon-stablecoin deposits received from Third Party Payors will trigger a fund failure event for Platforms onboarded to zerohash B.V.
Overview
Platforms can use POST /fund/rfq to facilitate two kinds of deposits:
- Account funding (me-to-me): the Merchant funds its own account with a re-usable address for deposits they send themselves.
- Third Party Payor deposits: the merchant's customers, called Third Party Payors, pay what they owe the merchant, for example to settle an invoice. One re-usable deposit address per Third Party Payor.
zerohash name matches each deposit's Travel Rule information against the expected Sender linked to the deposit address. Matched deposits are auto-converted and credited to the Merchant's available balance.
Key Concepts
| Term | Definition |
|---|---|
| Merchant | An onboarded Non-natural Person (NNP) on your platform that receives funds. The merchant is a zerohash customer and the account owner. |
| Third Party Payor | A business or individual that sends funds to a merchant, for example to settle an invoice. It is a separate legal entity from the merchant and is not a zerohash customer. |
| Expected Sender | Used throughout this guide to reference which Third Party Payor or Merchant is associated with a deposit address |
Setup
In this guide, the Platform is setup to use the zerohash europe B.V. Onboarding API (Reliance) hosted by api.zerohash.eu, along with the zerohash europe B.V.

Flow
The following example illustrates a Platform configuration where incoming stablecoin deposits are name matched to the Expected Sender, then automatically converted to USD and subsequently swept to the Platform’s master ledger account.
Webhook configuration
Talk to your zerohash representative to have your Platform configured for the following webhooks:
Onboarding via API (Reliance)
The Platform will use an external, non-zerohash KYC provider to perform proper verification of the Customer. After a successful verification, pass the results to zerohash via API.
Submit Merchant
Non-natural person
To submit the Merchant as a zerohash customer, use the POST /participants/entity/new endpoint.
Example request:
{
"request_id": "b2c3d4e5-6789-01bc-defg-234567890bcd",
"platform_code": "PLAT01",
"entity_name": "Entity B",
"legal_name": "Entity B B.V.",
"contact_number": "31201234567",
"website": "https://entityb.eu",
"date_established": "2018-03-10",
"entity_type": "llc",
"address_one": "Herengracht 100",
"address_two": "",
"city": "Amsterdam",
"postal_code": "1015 BS",
"jurisdiction_code": "NL",
"tax_id": "NL861821195B01",
"id_issuing_authority": "Netherlands",
"risk_rating": "low",
"sanction_screening": "pass",
"sanction_screening_timestamp": 1603378501286,
"signed_timestamp": 1603378501286,
"submitter_email": "[email protected]",
"submitter_first_name": "Anna",
"submitter_last_name": "de Vries",
"submitter_title": "Compliance Officer",
"id_number_type": "legal_entity_identifier",
"id_number": "724500XVX2LKTAJ2ML85",
"chamber_of_commerce_number": "34123456",
"reason_for_business_relationship": "Provision of digital asset custody and settlement services to entity clients",
"expected_annual_volume": "over_500k",
"activity_locations": ["NL", "DE", "FR"],
"entity_source_of_funds": "operating_revenues",
"entity_source_of_funds_description": "Revenue from proprietary trading algorithms",
"no_persons_with_effective_control_declaration": false,
"declaration_no_foreseeable_ownership_changes": true,
"board_members": [
{
"first_name": "Johan",
"last_name": "Bakker",
"email": "[email protected]",
"address_one": "Herengracht 100",
"city": "Amsterdam",
"postal_code": "1015 BS",
"jurisdiction_code": "NL",
"citizenship_code": "NL",
"date_of_birth": "1975-04-22",
"place_of_birth": "Rotterdam, Netherlands",
"place_of_birth_country_code": "NL",
"id_number_type": "passport",
"id_number": "NL1234567",
"id_issuing_authority": "Netherlands",
"sanction_screening": "pass",
"sanction_screening_timestamp": 1603378501286
}
],
"control_persons": [
{
"name": "Johan Bakker",
"first_name": "Johan",
"last_name": "Bakker",
"email": "[email protected]",
"address_one": "Herengracht 100",
"city": "Amsterdam",
"postal_code": "1015 BS",
"jurisdiction_code": "NL",
"citizenship_code": "NL",
"country_of_birth": "NL",
"place_of_birth_country_code": "NL",
"date_of_birth": "1975-04-22",
"id_number_type": "passport",
"id_number": "NL1234567",
"id_issuing_authority": "Netherlands",
"role": "Managing Director",
"ownership_percentage": 0,
"sanction_screening": "pass",
"sanction_screening_timestamp": 1603378501286,
"control_person": 1,
"kyc": "pass",
"kyc_timestamp": 1603378501286
}
],
"beneficial_owners": [
{
"name": "Maria Jansen",
"first_name": "Maria",
"middle_name": "Elisabeth",
"last_name": "Jansen",
"email": "[email protected]",
"phone_number": "31612345678",
"address_one": "Keizersgracht 200",
"city": "Amsterdam",
"postal_code": "1016 DW",
"jurisdiction_code": "NL",
"country_of_birth": "NL",
"place_of_birth_country_code": "NL",
"citizenship_code": "NL",
"date_of_birth": "1980-11-02",
"tax_id": "123456789",
"id_number_type": "legal_entity_identifier",
"id_number": "123456789",
"id_issuing_authority": "Netherlands",
"ownership_percentage": 30,
"beneficial_owner": 1,
"sanction_screening": "pass",
"sanction_screening_timestamp": 1603378501286,
"kyc": "pass",
"kyc_timestamp": 1603378501286
}
],
"signed_agreements": [
{
"type": "zheu_user_agreement_rfq",
"region": "eu",
"signed_timestamp": 1603378501286
}
]
}zerohash will respond with a participant_code that uniquely identifies the customer. See more detail on EU participant creation here.
If you fail to indicate that the End Customer has agreed to the zheu_user_agreement_rfq terms, in the signed_agreements object shown above, /fund API calls will fail.
There may be situations where the Platform is restricted from submitting Customers who reside in Prohibited Jurisdictions. The Platform will receive an error that looks like:
{
"errors": [
"The submitting platform is not allowed to operate in the participant's resident state",
"participant is not in an allowed jurisdiction"
]
}The preferred approach is for the Platform to not allow customers to onboard on their side (through a feature flag, for example). However, if a request with a Customer in a blocked jurisdiction does get submitted to zerohash via API, the Platform should fail gracefully and display a descriptive error message on-screen.
See more detail on permitted jurisdictions here.
Idempotency
You can make your requests idempotent by using the request_id field. If a subsequent call is made with a previously used request_id, then the request would fail with an error code 400, error message “requestID already used with different participant data”.
Submit Third Party Payor
Non-natural person
To submit a business as a Third Party Payor, use the POST /participants/entity/new endpoint with onboarding_profile set to third_party_payor.
| Field | Required | Description |
|---|---|---|
onboarding_profile | Yes | Must be third_party_payor |
merchant_participant_code | Yes | Participant code of the merchant (NNP) the payor is paying |
legal_name | Yes | Registered legal business name |
dba_name | Yes | Trading or DBA name |
address_one | Yes | Legal address, line 1 |
address_two | No | Legal address, line 2 |
city | Yes | City |
postal_code | Yes | Postal code |
country | Yes | Country of the legal address |
email | Yes | Business email |
contact_number | No | Business phone number |
legal_entity_identifier or company_registration_number or tax_id | Yes, one of | LEI or Company Registration Number or TIN |
incorporation_address.jurisdiction_code | Yes | ISO 3166-2 jurisdiction of incorporation, used to validate the jurisdiction |
date_established | Yes | Date of incorporation |
merchant_category_code | Yes | Payor's MCC |
sanction_screening | No | Sanction screening result. Approved platforms only, see below |
sanction_screening_timestamp | No | Time the platform ran the screening. Required if sanction_screening is sent |
Example Request:
{
"onboarding_profile": "third_party_payor",
"merchant_participant_code": "MERCH1",
"legal_name": "Acme Supplies B.V.",
"dba_name": "Acme Supplies",
"address_one": "1 Example Street",
"city": "Amsterdam",
"postal_code": "1011AB",
"country": "Netherlands",
"email": "[email protected]",
"legal_entity_identifier": "5493001KJTIIGC8Y1R12",
"company_registration_number": "12345678",
"incorporation_address": { "jurisdiction_code": "NL-NH" },
"date_established": "2015-04-01",
"merchant_category_code": "5045",
"request_id": "8f14e45f-ceea-4672-a0a2-5f1c3e2b9d10"
}Natural persons
To submit an individual, use the POST /participants/customers/new endpoint with onboarding_profile set to third_party_payor.
| Field | Required | Description |
|---|---|---|
onboarding_profile | Yes | Must be third_party_payor |
partial | Yes | Must be true (only relevant when onboarding a natural person) |
merchant_participant_code | Yes | Participant code of the merchant (NNP) the payor is paying |
first_name | Yes | Legal first name of the payor |
last_name | Yes | Legal last name of the payor |
dba_name | Yes | Trading or DBA name (applicable only if natural person is acting as a business) |
address_one | Yes | Legal address, line 1 |
address_two | No | Legal address, line 2 |
city | Yes | City |
postal_code | Yes | Postal code |
country | Yes | Country of the legal address |
email | Yes | Email, used for fund recovery scenarios |
phone_number | No | Phone number |
tax_id | Yes | TIN, The national ID of the individual, e.g. a social security number |
id_number | Yes | The ID number for the individual |
id_number_type | Yes | Form of ID associated with id_number |
citizenship_code | Yes | Individual's citizenship code |
date_of_birth | Yes | Date of birth |
merchant_category_code | Yes | Payor's MCC (applicable only if natural person is acting as a business) |
sanction_screening | No | Sanction screening result. Approved platforms only, see below |
sanction_screening_timestamp | No | Time the platform ran the screening. Required if sanction_screening is sent |
Example Request:
{
"onboarding_profile": "third_party_payor",
"partial": "true",
"merchant_participant_code": "MERCH1",
"first_name": "Jane",
"last_name": "Doe",
"dba_name": "Jane Doe Consulting",
"email": "[email protected]",
"address_one": "1 Example Street",
"city": "Amsterdam",
"country": "Netherlands",
"postal_code": "1011AB",
"citizenship_code": "NL",
"date_of_birth": "1985-01-01",
"id_number_type": "passport",
"id_number": "X0000000",
"tax_id": "000000000",
"merchant_category_code": "5045",
"request_id": "3c59dc04-8b2e-4f1a-9d6e-2a7b5c4e1f22"
}For either payor type, if a required field is missing, the request fails and the response names the missing fields. The payor is not added to the allow list for that merchant. Fix the request and resubmit.
Sanction Screening
By default, zerohash runs its sanction screening controls on every Third Party Payor submitted. Approved platforms can screen payors themselves and pass the result in sanction_screening and sanction_screening_timestampfor real-time approval of the Third Party Payor. Otherwise, Third Party Payor will be in pending state until sanction screening has been completed by zerohash. Ask your zerohash representative about approval.
Whitelist a self-custody sending wallet
If the Merchant or Third Party Payor is paying from a self-custody wallet, whitelist the sending address with the POST /travel-rule/submit endpoint before they send funds. Deposits from Exchanges send Travel Rule information through the Travel Rule network, so no whitelisting is needed.
{
"address": "0xABC123",
"participant_code": "MERCH1",
"address_belongs_to": "third_party", //can also set to existing zh_participant
"address_owner_type": "business",
"business_pii": {
"legal_entity_name": "Business XYZ",
"legal_entity_identifier": "123456789", //optional, only send when available
"legal_entity_address": "1 Example St, Dublin"
},
"wallet_type": "self_custody",
"deposit_id": "123456789" //optional, only send when referencing a specific deposit
}Find more information on Travel Rule here.
Create a deposit address for a Third Party Payor
EUR quoted currencyFor zerohash B.V. (EU), you can quote in USD or EUR. The examples on this page use USD. To quote in EUR, set the quoted currency to EUR in your request. EUR pairs are available for a growing set of assets. Visit Supported Instruments (RFQ) to see which assets can be quoted in EUR.
Each Third Party Payor must use a deposit address that is unique to them for you-to-me Accounts Receivable deposits. To create a re-usable deposit address for a Third Party Payor, use the POST /fund/rfq endpoint and specify the Expected Sender for the address using account_label.
Example Request:
{
"participant_code":"MERCH1",
"fund_asset":"USDC.ETH",
"account_label":"PAYOR1",
"client_fund_id":"abc123", //always optional
"quoted_asset": "USD", //defaults to USD, EUR also supported
}Notes:
- See
client_fund_idrelease notes on behavior here. - See POST /fund/rfq API reference for possible responses.
- Use
quoted_currencyto specify quoted currency (EUR vs USD)
Third Party Payor deposits stablecoins
Merchants can use the deposit_address returned by POST /fund/rfq to facilitate an Accounts Receivable payment from the Expected Sender. The address doesn't expire, so the Merchant can re-use it on every invoice to the Third Party Payor linked to that address. Any amount within the standard minimum and maximum thresholds is accepted. All deposits made to this address will be auto-converted to USD and transferred to your account on our ledger.
Deposit outcomes and webhooks
Platforms should be listening to the following webhooks for Accounts Receivable:
When a deposit reaches a Merchant's address, zerohash name matches its Travel Rule information against the Expected Sender, as specified in the account_label. The Travel Rule information comes either from the Travel Rule network or from a whitelisted self-custody wallet.
| Condition | Outcome | Webhook |
|---|---|---|
| Travel Rule information matches the Expected Sender | Deposit is converted and credited to available. | Account Funding webhook with status_reason_code = DEPOSIT_PROCESSED and account_label referencing the Third Party Payor's participant code |
| Travel Rule information does not match the Expected Sender | Funds are held and not credited | Account Funding webhook with Deposit/Withdraw webhook with |
| No Travel Rule information received | Standard Travel Rule collateral flow: a 48-hour remediation window.
Find more information on Travel Rule information remediation here. | Account Funding webhook with Deposit/Withdraw webhook with |
| Travel Rule information matches the Expected Sender, Fund Failure Scenario (ex. deposit below minimum, received asset not enabled) | Funds are not converted and are credited to recovery_quurantine for the Merchant. The Merchant can return funds to the Expected Sender from the zerohash europe branded secondary portal, or Platforms can initiate returns themselves via API. | Account Funding webhook with status_reason_code varying depending on failure reasonDeposit/Withdraw webhook with state = completed |
Create a deposit address for the Merchant
EUR quoted currencyFor zerohash B.V. (EU), you can quote in USD or EUR. The examples on this page use USD. To quote in EUR, set the quoted currency to EUR in your request. EUR pairs are available for a growing set of assets. Visit Supported Instruments (RFQ) to see which assets can be quoted in EUR.
Merchants must also use a deposit address that is unique to them for me-to-me Account Funding deposits. To create a re-usable deposit address for a Merchant, use the POST /fund/rfq endpoint. No account_label needs to be specified for Merchant deposit addresses, and funds will be automatically ledgered to account_label = general.
Example Request:
{
"participant_code":"MERCH1",
"fund_asset":"USDC.ETH",
"client_fund_id":"abc123",
"quoted_asset": "USD", //defaults to USD, EUR also supported
}Notes:
- See
client_fund_idrelease notes on behavior here. - See POST /fund/rfq API reference for possible responses.
- Use
quoted_currencyto specify quoted currency (EUR vs USD)
Merchant deposits crypto or stablecoins
Merchants can use the deposit_address returned by POST /fund/rfq to facilitate an Account Funding (me-to-me) deposit. The addresses don't expire, so the Merchant can re-use their unique deposit address. Any amount within the standard minimum and maximum thresholds is accepted. All deposits made to this address will be auto-converted to USD and transferred to your account on our ledger.
Deposit outcomes and webhooks
Platforms should be listening to the following webhooks for Accounts Receivable:
When a deposit reaches a Merchant's address, if the account_label is not specified as an Expected Sender, then zerohash name matches its Travel Rule information against the Merchant. The Travel Rule information comes either from the Travel Rule network or from a whitelisted self-custody wallet.
| Condition | Outcome | Webhook |
|---|---|---|
| Travel Rule information matches the Merchant | Deposit is converted and credited to available. | Account Funding webhook with status_reason_code = DEPOSIT_PROCESSED and account_label = general |
| Travel Rule information does not match the Merchant | Funds are held and not credited | Account Funding webhook with Deposit/Withdraw webhook with |
| No Travel Rule information received | Standard Travel Rule collateral flow: a 48-hour remediation window.
Find more information on Travel Rule information remediation here. | Account Funding webhook with Deposit/Withdraw webhook with |
| Travel Rule information matches the Merchant, Fund Failure Scenario (ex. deposit below minimum, received asset not enabled) | Funds are not converted and are credited torecovery_quarantine. The Merchant can recover funds from the zerohash europe branded secondary portal. | Account Funding webhook with status_reason_code varying depending on failure reasonDeposit/Withdraw webhook with state = completed |
Invoice Auditing & Additional Diligence Scenarios
zerohash audits invoice-based business-to-business transactions every month, after they settle. The audit looks for misuse of the product to exchange controlled or restricted goods and services, including those subject to export or import restrictions, in cross-border trade. When a transaction is selected, the Platform must provide the invoice and, for some triggers, additional diligence information within 15 calendar days. For some Third Party Payors, additional diligence information is always requested automatically as soon as zerohash receives a deposit from them, regardless of sampling.
Reach out to your zerohash representative to learn more about Invoice Auditing and Additional Diligence Scenarios.
Email receipts
If email notifications are on for your Platform, zerohash sends the Merchant an email receipt with the details of the deposit received, including the amount, asset type, sender, and status. The email names the Third Party Payor by legal business name. Receipts go only to the Merchant, never to a Third Party Payor.
Query transactions
You can retroactively query the GET /fund/transactions endpoint to view details of prior deposit events. View the code recipe for additional assistance.
Reconciliation - query the movements endpoint
The platform can query GET /movements in order to view all related ledger movements to a deposit event.
Deposit returns
IMPORTANT: You cannot rely on the deposit’s source address as the return destination. Blockchain transactions are not inherently bidirectional, and returning funds to the sender address may result in loss of funds or failed deliveries.Some Platforms may choose to pair their zerohash integration with their own transaction monitoring tools. In situations where zerohash accepts a deposit, but the Platform’s monitoring logic flags and rejects it, the Platform may opt to return the deposit by using the POST /withdrawal/requests endpoint.
The required flow is to always request and confirm a return address directly from the customer before initiating the return.
Please speak to a zerohash sales engineer for guidance if interested in this flow.
Settlement
zerohash will, one time per day, send a fiat settlement wire to the Platform where the amount represents the sum of all converted deposits from the prior trading session. Here is the settlement schedule:
| Session | Start | End | Expected Settlement Time* |
|---|---|---|---|
| Monday | Monday 9:00a EST | Tuesday 8:59:59a EST | Tuesday EOD |
| Tuesday | Tuesday 9:00a EST | Wednesday 8:59:59a EST | Wednesday EOD |
| Wednesday | Wednesday 9:00a EST | Thursday 8:59:59a EST | Thursday EOD |
| Thursday | Thursday 9:00a EST | Friday 8:59:59a EST | Friday EOD |
| Friday | Friday 9:00a EST | Monday 8:59:59a EST | Monday EOD |
During US holidays, Platforms should expect their settlements to arrive by EOD on the next business day. For example, for the August 30th 2024 session, the settlement will arrive by Tuesday EOD (because Monday was Labor Day)
Manual settlement initiation
Platforms can manually initiate settlements outside of the settlement schedule using POST /withdrawals/requests endpoint. Example request:
{
"asset": "USD",
"participant_code": "PLAT01",
"amount": "50000",
"account": {
"type": "INTERNATIONAL_FIAT",
"name": "Primary (1234)",
"account_number": "1231234",
"swift_code": "BMOUUS44",
"beneficiary_name": "John Doe",
"bank_name": "BMO Harris",
"intermediary_bank_account_number": "1231234",
"intermediary_bank_name": "Intermediary Bank Name"
},
"account_label": "general"
}Tracking the settlement amount
The recommended way to track the impending settlement amount is to query the GET /accounts/account_id endpoint. In order to retrieve the correct account_id to use in that call, use the following query parameters when hitting the GET /accounts endpoint:
participant_code: [your platform code]account_group: [your platform code]account_label: generalaccount_type: availableasset: [fiat currency code, typically "USD"]
Use the account_id in the response to query associated accounts. Example response:
{
"message": [
{
"asset": "USD"
"account_owner": "PLAT01",
"account_type": "available",
"account_group": "PLAT01",
"account_label": "general",
"balance": "25000",
"account_id": "af063ca6-836f-4677-8ebf-edbe1d049938",
"last_update": 1727214271011
}
]
}Retroactively querying settlements in the past
Platform settlements are technically a withdrawal. In order to query settlements from the past, use the GET /withdrawals/requests endpoint. The response will show all withdrawals made from the Platform's account, or one of your Customer's (Customer withdrawals are extremely rare and reserved for edge case Account Funding failures only).
In order to filter for withdrawals made from the Platform account only, query GET /withdrawals/requests using the participant_code query parameter, where the value is the Platform's platform code:
Example GET /withdrawals/requests?participant_code=PLAT01 response:
{
"message": [
{
"id": "152b8276-0585-45ec-bf62-85e134b3ff43",
"withdrawal_account_id": 346030,
"participant_code": "PLAT01",
"account_group": "PLAT01",
"account_label": null,
"requestor_participant_code": "PLAT01",
"asset": "USD",
"requested_amount": "25000",
"settled_amount": "25000",
"gas_price": null,
"status": "SETTLED",
"on_chain_status": "",
"client_withdrawal_request_id": null,
"requested_timestamp": 1727921516403,
"transaction_id": "HND48J83HGR55LLP",
"input_data": null,
"fee_amount": "",
"quoted_fee_amount": null,
"quoted_fee_notional": null,
"trade_id": null,
"quoted_fee_asset": null,
"withdrawal_fee": "",
"parent_link_id": null,
"parent_link_id_source": null
}
]
}
zerohash LLC (US entity)The following steps should be followed if you're onboarding a Custopmer to zerohash LLC (the US entity)
Overview
Platforms can use POST /fund/rfq to facilitate two kinds of deposits:
- Account funding (me-to-me): the Merchant funds its own account with a re-usable address for deposits they send themselves.
- Third Party Payor deposits: the merchant's customers, called Third Party Payors, pay what they owe the merchant, for example to settle an invoice. One re-usable deposit address per Third Party Payor.
Deposits are auto-converted to fiat and credited to the Merchant's available balance.
Key Concepts
| Term | Definition |
|---|---|
| Merchant | An onboarded Non-natural Person (NNP) on your platform that receives funds. The merchant is a zerohash customer and the account owner. |
| Third Party Payor | A business or individual that sends funds to a merchant, for example to settle an invoice. It is a separate legal entity from the merchant and is not a zerohash customer. |
| Expected Sender | Used throughout this guide to reference which Third Party Payor or Merchant is associated with a deposit address |
Setup
In this guide, the Platform is setup to use the Onboarding API (Reliance) plus the Account Funding API.

Flow
The following example illustrates a Platform configuration where incoming stablecoin deposits are validated, then automatically converted to USD and subsequently swept to the Platform’s master ledger account.
Webhook configuration
Talk to your zerohash representative to have your Platform configured for the following webhooks:
Onboarding via API (Reliance)
The Platform will use an external, non-zerohash KYC provider to perform proper verification of the Customer. After a successful verification, pass the results to zerohash via API.
Submit Merchant
Non-natural person
To submit a full non-natural person customer, use the POST /participants/entity/new endpoint. Example request:
Example request:
{
"request_id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"platform_code": "PLAT01",
"entity_name": "Entity A",
"legal_name": "Entity A",
"contact_number": "15553765432",
"website": "https://entitya.com",
"date_established": "2020-01-15",
"entity_type": "llc",
"address_one": "1 Main St.",
"address_two": "Suite 1000",
"city": "Chicago",
"postal_code": "12345",
"jurisdiction_code": "US-IL",
"tax_id": "883987654",
"id_issuing_authority": "United States",
"risk_rating": "low",
"sanction_screening": "pass",
"sanction_screening_timestamp": 1603378501286,
"signed_timestamp": 1603378501286,
"submitter_email": "[email protected]",
"control_persons": [
{
"name": "Jane Smith",
"first_name": "Jane",
"last_name": "Smith",
"email": "[email protected]",
"address_one": "1 Main St.",
"city": "Chicago",
"postal_code": "12345",
"jurisdiction_code": "US-IL",
"citizenship_code": "US",
"date_of_birth": "1985-06-15",
"tax_id": "123456789",
"id_number_type": "ssn",
"id_number": "123456789",
"id_issuing_authority": "United States",
"sanction_screening": "pass",
"sanction_screening_timestamp": 1603378501286,
"control_person": 1,
"kyc": "pass",
"kyc_timestamp": 1603378501286
}
],
"beneficial_owners": [
{
"name": "Jane Smith",
"first_name": "Jane",
"last_name": "Smith",
"email": "[email protected]",
"address_one": "1 Main St.",
"city": "Chicago",
"postal_code": "12345",
"jurisdiction_code": "US-IL",
"citizenship_code": "US",
"date_of_birth": "1985-06-15",
"tax_id": "123456789",
"sanction_screening": "pass",
"sanction_screening_timestamp": 1603378501286,
"beneficial_owner": 25,
"kyc": "pass",
"kyc_timestamp": 1603378501286
}
],
"signed_agreements": [
{
"type": "account_funding_general",
"region": "us",
"signed_timestamp": 1603378501286
}
]
}zerohash will respond with a participant_code that uniquely identifies the customer. See more detail on EU participant creation here.
If you fail to indicate that the End Customer has agreed to the appropriate terms, in the signed_agreements object shown above, /fund API calls will fail.
There may be situations where the Platform is restricted from submitting Customers who reside in Prohibited Jurisdictions. The Platform will receive an error that looks like:
{
"errors": [
"The submitting platform is not allowed to operate in the participant's resident state",
"participant is not in an allowed jurisdiction"
]
}The preferred approach is for the Platform to not allow customers to onboard on their side (through a feature flag, for example). However, if a request with a Customer in a blocked jurisdiction does get submitted to zerohash via API, the Platform should fail gracefully and display a descriptive error message on-screen.
See more detail on permitted jurisdictions here.
Idempotency
You can make your requests idempotent by using the request_id field. If a subsequent call is made with a previously used request_id, then the request would fail with an error code 400, error message “requestID already used with different participant data”.
Submit Third Party Payor
Non-natural person
To submit a business as a Third Party Payor, use the POST /participants/entity/new endpoint with onboarding_profile set to third_party_payor.
| Field | Required | Description |
|---|---|---|
onboarding_profile | Yes | Must be third_party_payor |
merchant_participant_code | Yes | Participant code of the merchant (NNP) the payor is paying |
legal_name | Yes | Registered legal business name |
address_one | Yes | Legal address, line 1 |
address_two | No | Legal address, line 2 |
city | Yes | City |
postal_code | Yes | Postal code |
jurisdiction_code | Yes | The ISO 3166-2 subdivision code that the customer resides in |
email | Yes | Business email |
contact_number | No | Business phone number |
tax_id | Yes, one of | Tax identifier of the business (e.g. EIN in United States) |
id_issuing_authority | Yes | ISO-3166-1_A2 country code that issued the tax identifier (e.g. “US”) |
id_number | Yes | The identification number of the entity (e.g. LEI, VAT number, chamber of commerce number). |
merchant_category_code | Yes | Payor's MCC |
sanction_screening | No | Sanction screening result. Approved platforms only, see below |
sanction_screening_timestamp | No | Time the platform ran the screening. Required if sanction_screening is sent |
Example Request:
{
"onboarding_profile": "third_party_payor",
"merchant_participant_code": "MERCH1",
"legal_name": "Legal Name",
"contact_number": "+1234567890",
"address_one": "123 Main St.",
"city": "Chicago",
"postal_code": "12345",
"jurisdiction_code": "US-IL",
"tax_id": "000-00-0000",
"id_issuing_authority": "US",
"address_two": "Suite 1000",
"email": "[email protected]",
"id_number": "549300TRWGQX5XMHYZ82",
"merchant_category_code": "5045",
}Natural persons
To submit an individual, use the POST /participants/customers/new endpoint with onboarding_profile set to third_party_payor.
| Field | Required | Description |
|---|---|---|
onboarding_profile | Yes | Must be third_party_payor |
partial | Yes | Must be true (only relevant when onboarding a natural person) |
merchant_participant_code | Yes | Participant code of the merchant (NNP) the payor is paying |
first_name | Yes | Legal first name of the payor |
last_name | Yes | Legal last name of the payor |
address_one | Yes | Legal address, line 1 |
address_two | No | Legal address, line 2 |
city | Yes | City |
postal_code | Yes | Postal code |
jurisdiction_code | Yes | The ISO 3166-2 subdivision code that the customer resides in |
email | Yes | Email, used for fund recovery scenarios |
phone_number | No | Phone number |
id_number | Yes | The ID number for the individual |
id_number_type | Yes | Form of ID associated with id_number |
citizenship_code | Yes | Individual's citizenship code |
date_of_birth | Yes | Date of birth |
merchant_category_code | Yes | Payor's MCC (applicable only if natural person is acting as a business) |
sanction_screening | No | Sanction screening result. Approved platforms only, see below |
sanction_screening_timestamp | No | Time the platform ran the screening. Required if sanction_screening is sent |
Example Request:
{
"onboarding_profile": "third_party_payor",
"partial": "true",
"merchant_participant_code": "MERCH1",
"first_name": "Lucas",
"last_name": "Martinez",
"email": "[email protected]",
"address_one": "Calle San Martín 305",
"address_two": "305",
"city": "Buenos Aires",
"zip": "C1000",
"jurisdiction_code": "AR-X",
"citizenship_code": "AR",
"date_of_birth": "1985-09-02",
"id_number_type": "non_us_passport",
"id_number": "A12345678",
}For either payor type, if a required field is missing, the request fails and the response names the missing fields. The payor is not added to the allow list for that merchant. Fix the request and resubmit.
Sanction Screening
By default, zerohash runs its sanction screening controls on every Third Party Payor submitted. Approved platforms can screen payors themselves and pass the result in sanction_screening and sanction_screening_timestampfor real-time approval of the Third Party Payor. Otherwise, Third Party Payor will be in pending state until sanction screening has been completed by zerohash. Ask your zerohash representative about approval.
Create a deposit address for a Third Party Payor
Each Third Party Payor must use a deposit address that is unique to them for you-to-me Accounts Receivable deposits. To create a re-usable deposit address for a Third Party Payor, use the POST /fund/rfq endpoint and specify the Expected Sender for the address using account_label.
Example Request:
{
"participant_code":"MERCH1",
"fund_asset":"USDC.ETH",
"account_label":"PAYOR1",
"client_fund_id":"abc123", //always optional
"quoted_asset": "USD", //defaults to USD
}Notes:
- See
client_fund_idrelease notes on behavior here. - See POST /fund/rfq API reference for possible responses.
- Use
quoted_currencyto specify quoted currency
Third Party Payor deposits stablecoins
Merchants can use the deposit_address returned by POST /fund/rfq to facilitate an Accounts Receivable payment from the Expected Sender. The address doesn't expire, so the Merchant can re-use it on every invoice to the Third Party Payor linked to that address. Any amount within the standard minimum and maximum thresholds is accepted. All deposits made to this address will be auto-converted to USD and transferred to your account on our ledger.
Deposit outcomes and webhooks
Platforms should be listening to the following webhooks for Accounts Receivable:
| Scenario | Outcome | Account Funding Webhook |
|---|---|---|
| Deposit received; Fund Event has completed successfully. | Funds immediately converted to fiat and credited | Account Funding webhook with status_reason_code = DEPOSIT_PROCESSED and account_label referencing the Third Party Payor's participant codeDeposit/Withdraw webhook with state = completed |
| Large deposit received; Pending settlement. Stablecoin deposits over $500k* can be subject to longer processing times to complete conversion to fiat. | Funds temporarily held while processing is completed | Account Funding webhook with Deposit/Withdraw webhook with |
| Deposit received; Above maximum configured amount OR below minimum configured amount | Funds are not converted and are credited to the Merchant's participant account. The Merchant can return funds to the Third Party Payor sender from the zerohash branded secondary portal. | Account Funding webhook with status_reason_code = AMOUNT_ABOVE_MAXIMUM OR status_reason_code = AMOUNT_BELOW_MINIMUMDeposit/Withdraw webhook with state = completed |
| Deposit received; Asset not supported | Funds are not converted and are credited to the Merchant's participant account. The Merchant can return funds to the Third Party Payor sender from the zerohash branded secondary portal. | Account Funding webhook with status_reason_code = ASSET_NOT_SUPPORTEDDeposit/Withdraw webhook with state = completed |
| Deposit received; Stablecoin depegged | Funds are not converted and are credited to the Merchant's participant account. The Merchant can return funds to the Third Party Payor sender from the zerohash branded secondary portal. | Account Funding webhook with status_reason_code = ASSET_DEPEGGEDDeposit/Withdraw webhook with state = completed |
| Deposit received; Platform not enabled OR Merchant not approved OR Third Party Payor not approved | Funds are held and not credited | Account Funding webhook with status_reason_code = PLATFORM_NOT_ENABLED OR status_reason_code = QUARANTINED_DEPOSITDeposit/Withdraw webhook with state = quarantined |
Create a deposit address for the Merchant
Merchants must also use a deposit address that is unique to them for me-to-me Account Funding deposits. To create a re-usable deposit address for a Merchant, use the POST /fund/rfq endpoint. No account_label needs to be specified for Merchant deposit addresses, and funds will be automatically ledgered to account_label = general.
Example Request:
{
"participant_code":"MERCH1",
"fund_asset":"USDC.ETH",
"client_fund_id":"abc123",
"quoted_asset": "USD", //defaults to USD
}Notes:
- See
client_fund_idrelease notes on behavior here. - See POST /fund/rfq API reference for possible responses.
- Use
quoted_currencyto specify quoted currency
Merchant deposits crypto or stablecoins
Merchants can use the deposit_address returned by POST /fund/rfq to facilitate an Account Funding (me-to-me) deposit. The addresses don't expire, so the Merchant can re-use their unique deposit address. Any amount within the standard minimum and maximum thresholds is accepted. All deposits made to this address will be auto-converted to USD and transferred to your account on our ledger.
Deposit outcomes and webhooks
Platforms should be listening to the following webhooks for Accounts Receivable:
| Scenario | Outcome | Account Funding Webhook |
|---|---|---|
| Deposit received; Fund Event has completed successfully. | Funds immediately converted to fiat and credited | Account Funding webhook with status_reason_code = DEPOSIT_PROCESSED and account_label = generalDeposit/Withdraw webhook with state = completed |
| Large deposit received; Pending settlement. Stablecoin deposits over $500k* can be subject to longer processing times to complete conversion to fiat. | Funds temporarily held while processing is completed | Account Funding webhook with Deposit/Withdraw webhook with |
| Deposit received; Above maximum configured amount OR below minimum configured amount | Funds are not converted and are credited to the Merchant's participant account. The Merchant can recover funds from the zerohash branded secondary portal. | Account Funding webhook with status_reason_code = AMOUNT_ABOVE_MAXIMUM OR status_reason_code = AMOUNT_BELOW_MINIMUMDeposit/Withdraw webhook with state = completed |
| Deposit received; Asset not supported | Funds are not converted and are credited to the Merchant's participant account. The Merchant can recover funds from the zerohash branded secondary portal. | Account Funding webhook with status_reason_code = ASSET_NOT_SUPPORTEDDeposit/Withdraw webhook with state = completed |
| Deposit received; Stablecoin depegged | Funds are not converted and are credited to the Merchant's participant account. The Merchant can recover funds from the zerohash branded secondary portal. | Account Funding webhook with status_reason_code = ASSET_DEPEGGEDDeposit/Withdraw webhook with state = completed |
| Deposit received; Platform not enabled OR Merchant not approved | Funds are held and not credited | Account Funding webhook with status_reason_code = PLATFORM_NOT_ENABLED OR status_reason_code = QUARANTINED_DEPOSITDeposit/Withdraw webhook with state = quarantined |
Invoice Auditing & Additional Diligence Scenarios
zerohash audits invoice-based business-to-business transactions every month, after they settle. The audit looks for misuse of the product to exchange controlled or restricted goods and services, including those subject to export or import restrictions, in cross-border trade. When a transaction is selected, the Platform must provide the invoice and, for some triggers, additional diligence information within 15 calendar days. For some Third Party Payors, additional diligence information is always requested automatically as soon as zerohash receives a deposit from them, regardless of sampling.
Reach out to your zerohash representative to learn more about Invoice Auditing and Additional Diligence Scenarios.
Email receipts
If email notifications are on for your Platform, zerohash sends the Merchant an email receipt with the details of the deposit received, including the amount, asset type, sender, and status. The email names the Third Party Payor by legal business name. Receipts go only to the Merchant, never to a Third Party Payor.
Query transactions
You can retroactively query the GET /fund/transactions endpoint to view details of prior deposit events. View the code recipe for additional assistance.
Reconciliation - query the movements endpoint
The platform can query GET /movements in order to view all related ledger movements to a deposit event.
Deposit returns
IMPORTANT: You cannot rely on the deposit’s source address as the return destination. Blockchain transactions are not inherently bidirectional, and returning funds to the sender address may result in loss of funds or failed deliveries.Some Platforms may choose to pair their zerohash integration with their own transaction monitoring tools. In situations where zerohash accepts a deposit, but the Platform’s monitoring logic flags and rejects it, the Platform may opt to return the deposit by using the POST /withdrawal/requests endpoint.
The required flow is to always request and confirm a return address directly from the customer before initiating the return.
Please speak to a zerohash sales engineer for guidance if interested in this flow.
Settlement
zerohash will, one time per day, send a fiat settlement wire to the Platform where the amount represents the sum of all converted deposits from the prior trading session. Here is the settlement schedule:
| Session | Start | End | Expected Settlement Time* |
|---|---|---|---|
| Monday | Monday 9:00a EST | Tuesday 8:59:59a EST | Tuesday EOD |
| Tuesday | Tuesday 9:00a EST | Wednesday 8:59:59a EST | Wednesday EOD |
| Wednesday | Wednesday 9:00a EST | Thursday 8:59:59a EST | Thursday EOD |
| Thursday | Thursday 9:00a EST | Friday 8:59:59a EST | Friday EOD |
| Friday | Friday 9:00a EST | Monday 8:59:59a EST | Monday EOD |
During US holidays, Platforms should expect their settlements to arrive by EOD on the next business day. For example, for the August 30th 2024 session, the settlement will arrive by Tuesday EOD (because Monday was Labor Day)
Manual settlement initiation
Platforms can manually initiate settlements outside of the settlement schedule using POST /withdrawals/requests endpoint. Example request:
{
"asset": "USD",
"participant_code": "PLAT01",
"amount": "50000",
"account": {
"type": "INTERNATIONAL_FIAT",
"name": "Primary (1234)",
"account_number": "1231234",
"swift_code": "BMOUUS44",
"beneficiary_name": "John Doe",
"bank_name": "BMO Harris",
"intermediary_bank_account_number": "1231234",
"intermediary_bank_name": "Intermediary Bank Name"
},
"account_label": "general"
}Tracking the settlement amount
The recommended way to track the impending settlement amount is to query the GET /accounts/account_id endpoint. In order to retrieve the correct account_id to use in that call, use the following query parameters when hitting the GET /accounts endpoint:
participant_code: [your platform code]account_group: [your platform code]account_label: generalaccount_type: availableasset: [fiat currency code, typically "USD"]
Use the account_id in the response to query associated accounts. Example response:
{
"message": [
{
"asset": "USD"
"account_owner": "PLAT01",
"account_type": "available",
"account_group": "PLAT01",
"account_label": "general",
"balance": "25000",
"account_id": "af063ca6-836f-4677-8ebf-edbe1d049938",
"last_update": 1727214271011
}
]
}Retroactively querying settlements in the past
Platform settlements are technically a withdrawal. In order to query settlements from the past, use the GET /withdrawals/requests endpoint. The response will show all withdrawals made from the Platform's account, or one of your Customer's (Customer withdrawals are extremely rare and reserved for edge case Account Funding failures only).
In order to filter for withdrawals made from the Platform account only, query GET /withdrawals/requests using the participant_code query parameter, where the value is the Platform's platform code:
Example GET /withdrawals/requests?participant_code=PLAT01 response:
{
"message": [
{
"id": "152b8276-0585-45ec-bf62-85e134b3ff43",
"withdrawal_account_id": 346030,
"participant_code": "PLAT01",
"account_group": "PLAT01",
"account_label": null,
"requestor_participant_code": "PLAT01",
"asset": "USD",
"requested_amount": "25000",
"settled_amount": "25000",
"gas_price": null,
"status": "SETTLED",
"on_chain_status": "",
"client_withdrawal_request_id": null,
"requested_timestamp": 1727921516403,
"transaction_id": "HND48J83HGR55LLP",
"input_data": null,
"fee_amount": "",
"quoted_fee_amount": null,
"quoted_fee_notional": null,
"trade_id": null,
"quoted_fee_asset": null,
"withdrawal_fee": "",
"parent_link_id": null,
"parent_link_id_source": null
}
]
}Updated 6 days ago