B2C Transfer Quick Start
Prerequisites
- Merchant Account: Contact sales for a GoPay merchant account
- API Key Pair: Create an Ed25519 key pair with the
b2cpermission — see Authentication - Funded Wallet: Transfers are debited from your merchant wallet balance
- Server Environment: A backend to securely sign and send API requests
Implementation Steps
- Step 1: Sign the Request
- Step 2: Transfer Request
- Step 3: Handle Response
B2C requests use the same Ed25519 header-based authentication as every GoPay API — only the key permission differs (
b2c).Follow the Authentication guide: hash the exact body bytes, build the v1 canonical string, sign with your private key, and send the X-Public-Key, X-Signature, X-Timestamp, and X-Request-ID headers. Ready-to-use signing helpers for Node.js, Python, and Go are on that page.Next Steps
API Reference
Full request/response contract and validation rules
Code Examples
Complete initiate-transfer calls in Node.js, Python, and Go
