Endpoint
POST https://api.staging.usesticker.com/v1/partner/organization-setup
Authentication
Bearer token with your Partner API Key Bearer sk_test_your_api_key
Request Body
Organization details including name, contact info, and addresses
Organization’s legal or display name
Primary contact email (must be valid email format)
Primary phone number (E.164 format recommended)
Array of shipping/billing addresses (minimum 1 required)
List of users in the organization (minimum 1 required)
User’s email address (unique identifier)
User role: admin or member (default: member)
Your internal identifier for this organization
OAuth access token (for OAuth-based integrations)
Address Object
Apartment, suite, unit, etc.
State/province code (2-letter abbreviation for US/CA)
Country code (ISO 3166-1 alpha-2)
Whether this is the default shipping address
Request Example
{
"organization" : {
"name" : "Acme Medical Practice" ,
"email" : "admin@acmemedical.com" ,
"phone" : "+1-555-123-4567" ,
"addresses" : [
{
"line1" : "123 Medical Plaza" ,
"line2" : "Suite 200" ,
"city" : "San Francisco" ,
"state" : "CA" ,
"zip" : "94102" ,
"country" : "US" ,
"is_primary" : true
}
]
},
"users" : [
{
"email" : "dr.smith@acmemedical.com" ,
"first_name" : "John" ,
"last_name" : "Smith" ,
"role" : "admin"
}
],
"partner_org_id" : "acme_sf_001"
}
Response
Whether the operation succeeded
Action performed: created or updated
Created organization profile
Sticker’s unique identifier for this organization
profile.organization_name
Organization name
Your internal organization ID
Number of user accounts created
Number of addresses added
Response Examples
201 Created
400 Bad Request
409 Conflict
500 Internal Error
{
"success" : true ,
"action" : "created" ,
"profile" : {
"id" : "550e8400-e29b-41d4-a716-446655440000" ,
"organization_name" : "Acme Medical Practice" ,
"partner_org_id" : "acme_sf_001" ,
"email" : "admin@acmemedical.com" ,
"created_at" : "2024-12-11T10:30:00Z"
},
"users_created" : 1 ,
"addresses_created" : 1
}
Error Codes
Code Description Solution INVALID_REQUESTMalformed request or missing fields Check required fields INVALID_EMAILEmail format is invalid Use valid email format INVALID_ADDRESSAddress validation failed Check state/country codes DUPLICATE_ORGANIZATIONOrg already exists Use existing profile ID UNAUTHORIZEDInvalid API key Verify API key INTERNAL_ERRORServer error Retry with backoff
Notes
Idempotency: If called multiple times with the same partner_org_id, the endpoint will update the existing organization rather than creating a duplicate.
Automatic Auth Users: The endpoint automatically creates Supabase authentication users for each profile member, enabling them to log in to the Sticker application.
Multiple Addresses: Organizations can have multiple shipping addresses. Users can select their preferred address during checkout.