API referencePublic API · operationsReferralsGenerate (or read) a referral code — idempotentGenerate (or read) a referral code — idempotent POST /api/referral/public Idempotent on (shop, customerId). If a code already exists for the customer, returns it without modification. Request Responses200Existing or newly-created referral code