Open a collection
Mints a reference and returns the USD deposit instructions a contributor pays to. expectedAmount is advisory — stored with the collection and never used to refuse anything.
Authorization
partner-key In: header
Header Parameters
Retrying a create with the same key returns the same collection. A different body with the same key is refused IDEMPOTENCY_KEY_REUSED (422). The key is compared with the collection as it stands now: if the collection was edited since, a retry of the original create is refused IDEMPOTENCY_KEY_REUSED. 8 to 64 characters from A-Z, a-z, 0-9, _ and -; anything else is 400 INVALID_IDEMPOTENCY_KEY.
^[A-Za-z0-9_-]{8,64}$Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/collections" \ -H "Content-Type: application/json" \ -d '{ "currency": "USD", "partnerReference": "campaign-2026-09", "payerLabel": "September community appeal" }'{ "id": "a1b2c3d4-0000-4000-8000-000000000001", "reference": "DEMO-7K3Q2M", "status": "open", "currency": "USD", "partnerReference": "campaign-2026-09", "label": "September community appeal", "depositInstructions": { "beneficiaryName": "Sandbox Business", "bankName": "Bank of Nowhere", "routingNumber": "000000000", "accountNumber": "00000000123456", "rails": [ "ach_push", "fednow", "wire" ], "depositMessage": "SBX0DEPOSITMESSAGE" }, "fee": { "percentBps": 100, "flatMinor": 50, "capMinor": 2000, "currency": "USD" }, "expectedAmount": "100.00", "grossAmount": "100.00", "feeAmount": "1.50", "netAmount": "98.50", "createdAt": "2026-09-22T17:38:46.915Z"}Change a customer PATCH
Changes any of displayName, email, phone, externalRef (send null to clear it) and countryOfResidence, and sends customer.updated. countryOfResidence can be corrected only while the customer is pending_kyc, and only to a country we can open accounts in (otherwise 422 CUSTOMER_RESIDENCE_NOT_SUPPORTED). type and legalName are never yours to change: sending either is 422 CUSTOMER_FIELD_KYC_OWNED with details.field naming it. An empty change is 400 NOTHING_TO_UPDATE. A closed customer cannot be changed.
Resend the confirmation code POST
Re-issues the code on the shared escalating resend ladder. Refused while the previous code is still within its cooldown window. The new code goes wherever your account delivers codes NOW, which may differ from where the first code went if OnLink changed the setting since. The response carries webhookDelivery only when the new code was pushed to your webhook.