Onboard Represented Business
Register a headless business you invoice on behalf of. All local profile fields, the TIN selector, and NRS QR material are optional. For a new or pending intent, nrsCredentials is required; a completed replay with the same normalized profile and idempotency key may omit it. When tin is omitted, the authenticated NRS entity must contain exactly one active business. When tin is supplied, it must select exactly one active business.
The NRS password is transient: it terminates at Gateway and is never logged, persisted, echoed, or forwarded to Spend. Gateway derives NRS identity and ownership values. The following fields are rejected if supplied: existingBusinessId, businessId, parentBusinessId, entityId, entityReference, firsBusinessId, nrsBusinessId, businessName, and irnTemplate.
Authorization
apiKey The API key generated for your business in Duplo Dashboard.
In: header
Header Parameters
Stable key identifying one logical command. Gateway management keys contain 8–128 letters, digits, dots, underscores, colons, or hyphens. For onboarding, the key binds the normalized optional profile; a completed replay may omit NRS credentials and QR material.
^[A-Za-z0-9._:-]+$8 <= length <= 128Request 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
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/sub-businesses" \ -H "x-idempotency-key: command-acme-retail-0001" \ -H "Content-Type: application/json" \ -d '{ "nrsCredentials": { "email": "nrs-owner@acme.example", "password": "replace-at-runtime" } }'{
"onboardingIntentId": "33333333-3333-4333-8333-333333333333",
"gatewaySubBusinessId": "44444444-4444-4444-8444-444444444444",
"status": "completed",
"replayed": true,
"cryptoVersion": 0
}{
"onboardingIntentId": "33333333-3333-4333-8333-333333333333",
"gatewaySubBusinessId": "44444444-4444-4444-8444-444444444444",
"status": "completed",
"replayed": false,
"cryptoVersion": 0
}{
"message": "existingBusinessId is server-resolved and must not be supplied",
"error": "Bad Request",
"statusCode": 400
}{
"message": "Missing required 'x-api-key' header",
"error": "Unauthorized",
"statusCode": 401
}{
"message": "string",
"error": "string",
"statusCode": 0
}{
"message": "string",
"error": "string",
"statusCode": 0
}{
"message": "string",
"error": "string",
"statusCode": 0
}{
"message": "string",
"error": "string",
"statusCode": 0
}{
"message": "string",
"error": "string",
"statusCode": 0
}{
"message": "string",
"error": "string",
"statusCode": 0
}{
"message": "string",
"error": "string",
"statusCode": 0
}{
"message": "string",
"error": "string",
"statusCode": 0
}How is this guide?
Last updated on