Code Examples
This section provides implementation examples in multiple programming languages for integrating with B1Link's vendor number assignment endpoint.
Available Examples
Common Implementation Pattern
All implementations follow this pattern:
- Create request payload - Build JSON with
IdandErpVendorNumber - Serialize to compact JSON - No whitespace, proper property order
- Generate signature - HMAC-SHA256 with API key, Base64 encode
- Send HTTP PUT request - Include signature in
X-B1LINK-Signatureheader - Handle response - Check for 204 status code
Key Requirements
- ✅ Compact JSON format (no whitespace)
- ✅ Property order:
Idfirst, thenErpVendorNumber - ✅ UTF-8 encoding
- ✅ HMAC-SHA256 signature
- ✅ Base64 encoding of signature
- ✅ HTTPS only
Next Steps
Choose your preferred language and follow the implementation example.