How to match USDT payments to orders
If you accept USDT at one wallet address, every payment looks the same on the blockchain. Matching each transfer to the right order is the hard part of accepting crypto. These are the common approaches and how they hold up.
The matching problem
On a blockchain, a payment is just a transfer of tokens from one address to another. There is no order number attached. If all your customers send USDT to one wallet, you see a list of amounts and sender addresses, and you have to work out which one belongs to which order.
Three approaches
| Approach | How it works | Problem |
|---|---|---|
| One wallet, match by sender | Ask the customer which address they paid from | Manual, error-prone, and exchanges send from shared addresses |
| One wallet, unique amounts | Add small cents to each price so every order has a distinct total | Customers round or lose cents to fees, and two orders can collide as volume grows |
| Unique address per order | Each order gets its own deposit address | Needs address generation, but matching becomes exact |
Why a memo does not work here
Some networks let a sender attach a memo or tag that identifies the order. A BEP-20 transfer on BNB Smart Chain has no memo field. On this network, an address per order is the dependable method.
How OpenBCP does it
- You create an invoice and pass your own order id as
external_id. - OpenBCP generates a unique deposit address for that invoice.
- When a payment to that address confirms, the webhook returns both
invoice_idand yourexternal_id.
{
"invoice_id": 42,
"external_id": "order-123",
"status": "PAID",
"deposit_address": "0x...",
"txid": "0x..."
}
You look up order-123 in your own system and mark it paid. No guessing and no manual checks.
Handling repeats safely
A webhook can be delivered more than once, for example if your server was slow to answer. Key your fulfilment on external_id so a repeat does nothing the second time. See webhooks for the details and signature checks.
If the amount is not exact
With an address per order you know who paid, but the customer may still send a different amount. Those cases are covered in underpaid and overpaid invoices.
Back to the USDT checkout overview.
Frequently asked questions
How do I know which order a USDT payment belongs to?
The most reliable way is to give every order its own deposit address. A payment to that address can only belong to that order.
Can I use one wallet and match by amount?
You can add small unique cents to each amount, but customers round, exchanges deduct fees, and two orders can collide. It breaks down as volume grows.
Does BNB Smart Chain support a memo or tag?
No. A BEP-20 transfer has no memo field, so you cannot tell payers apart by a memo on a shared address.
How does OpenBCP match payments?
Each invoice gets its own address, and the webhook returns both the invoice_id and your own external_id.