KYC fields on POST /orders/
POST /orders/ accepts a series of optional fields with personal data about the end customer. Sending them is useful for billing, logistics, and to personalize the payment experience.
Customer details and payment access
Section titled “Customer details and payment access”full_name (full name, up to 48 characters) and country (country of residence, a two-letter ISO 3166-1 code such as MX) are optional when creating an order, even when you send input_currency.
If either detail is missing, the API responds successfully with web_url and the remaining payment information, but omits address, payment_uri, and tag_memo. Missing payer details do not cause HTTP 400. The integrator must display the gateway link, or a QR encoding that link, so the customer can complete their details and continue payment.
With both valid payer details and a cryptocurrency, the API can provide blockchain data for direct payment. Choose the UI based on payment_uri, not on the presence of currency, amount, status, or expiry. Do not construct a blockchain address or crypto QR from other fields.
Customer personal fields
Section titled “Customer personal fields”| Field | Type | Max | Description |
|---|---|---|---|
full_name | string | 48 | Full name; needed to receive blockchain data. |
email_client | 128 | Email address. | |
phone_number | string | 15 | Mobile phone. |
nif | string | 12 | Personal ID (DNI, RFC, CURP, etc.). |
home_address | string | 256 | Full address. |
address_number | string | 56 | Street / building number. |
address_additional | string | 64 | Additional info (floor, door). |
city | string | 28 | City. |
province | string | 28 | Province / state. |
zip_code | string | 12 | ZIP code. |
country | string | 2 | Country of residence, ISO 3166-1 alpha-2 (for example MX, ES). |
The fields are optional for order creation. To receive direct blockchain payment data, provide both full_name and country.
Best practices
Section titled “Best practices”- Do not send sensitive data you do not need. If you only care about the email to send the receipt, do not pass the address.
- Validate on your side before sending: B4bit Pay applies only basic length and format validations.
- Do not log these fields in plain text — they are PII. If you need traceability, log only a hash.