CreateCollectionDto
- amountType: numberrequired
What to collect, read according to
amount_type. With the defaultsourcethis is what the customer hands over — local currency for fiat, units of the asset for crypto. Withdestinationit is the USD you want credited. - referenceType: stringrequired
Your own reference, and the handle you will find this by. Required: we never invent one, because a reference we made up is not one you can reconcile against.
This is not an idempotency key — send
Idempotency-Keyto make a retry safe. This says which of your records the money belongs to. - allowType: boolean
_permanent _address Crypto collections. Allow settling to your permanent settlement address when the asset already IS the settlement asset, instead of a temporary quote-bound address.
A permanent address is shared by every payment into your account, so a payment made to one cannot be matched to this collection — no status to track, no webhook. Off by default; turn it on only when you reconcile the payment yourself.
- amountType: "source" or "destination"enum
_type source(default) =amountis what the customer pays.destination=amountis the USD you want credited, and we work backwards through the same rate the collection will use to decide what to charge them.An invoice is written in the amount you want to be paid, so pricing a quote with
destinationand then creating the collection meant converting the figure yourself — against a rate that had moved by the time you sent it. MatchesPOST /v1/payouts. - assetType: string
_id The asset the customer sends, from
GET /v1/collections/assets(crypto). - countryType: string
Corridor country. Required for
bankandmomo; ignored forcrypto, where the asset decides the route. - customerType: string
_id The customer this collection is for.
- customerType: string
_name The paying customer’s name, if you have it. Never required — a bank collection takes the name from the account the money actually arrives from, which is the only one worth trusting.
- methodType: "bank" or "momo" or "crypto"enum
How the customer pays.
bank/momocollect local currency;cryptoaccepts a digital asset. Defaults to the corridor’s fiat default. - networkType: string
Mobile-money network (momo).
- phoneType: string
_number The customer’s mobile-money phone number (momo).
- refundType: string
_to Where to return the customer’s funds if the collection cannot complete. It should be an address they control, which is not necessarily the one they send from. Funds are returned here if the collection can’t be completed (crypto).