{"manifestVersion":"1","app":{"name":"billing","version":"0.17.6","status":"live"},"actions":[{"id":"system.billing.sales-catalogue.get.v1","title":"The seller’s catalogue for a product app’s setup screens: products, prices, plans with their items, price lists with their items, discounts, payment methods and late-fee rules, each capped. A display read: unavailable shows the screens as unavailable, never empty.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["orgId","actingUserId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sellerSetUp":{"type":"boolean"},"sellerTerms":{"anyOf":[{"type":"object","properties":{"paymentTermsDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["paymentTermsDays"],"additionalProperties":false},{"type":"null"}]},"products":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"code":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["one_time","recurring"]},"taxCategory":{"type":"string","enum":["standard","zero_rated","exempt"]},"attributes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"status":{"type":"string","enum":["active","archived"]}},"required":["id","code","name","kind","taxCategory","attributes","status"],"additionalProperties":false}},"prices":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"nickname":{"type":"string"},"unitAmountPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"billingInterval":{"anyOf":[{"type":"string","enum":["week","month","year"]},{"type":"null"}]},"intervalCount":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string","enum":["active","archived"]}},"required":["id","productId","nickname","unitAmountPaisa","billingInterval","intervalCount","status"],"additionalProperties":false}},"plans":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"code":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["active","archived"]},"items":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"priceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"timing":{"type":"string","enum":["first_cycle","every_cycle"]}},"required":["priceId","quantity","timing"],"additionalProperties":false}}},"required":["id","code","name","status","items"],"additionalProperties":false}},"priceLists":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"customerGroup":{"type":"string"},"items":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"priceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"unitAmountPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"}},"required":["priceId","unitAmountPaisa"],"additionalProperties":false}}},"required":["id","name","customerGroup","items"],"additionalProperties":false}},"discounts":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"code":{"type":["string","null"]},"name":{"type":"string"},"kind":{"type":"string","enum":["percent","fixed"]},"value":{"type":"string","pattern":"^-?\\d{1,18}$"},"scope":{"type":"string","enum":["invoice","product"]},"productId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"duration":{"type":"string","enum":["once","cycles","forever"]},"cycles":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string","enum":["active","archived"]}},"required":["id","code","name","kind","value","scope","productId","duration","cycles","status"],"additionalProperties":false}},"paymentMethods":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"code":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["cash","bank","cheque","mobile_wallet","other"]},"requiresReference":{"type":"boolean"},"instructions":{"type":"string"},"status":{"type":"string","enum":["active","archived"]}},"required":["id","code","name","kind","requiresReference","instructions","status"],"additionalProperties":false}},"lateFeeRules":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"kind":{"type":"string","enum":["percent","fixed"]},"value":{"type":"string","pattern":"^-?\\d{1,18}$"},"graceDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["active","archived"]}},"required":["id","name","kind","value","graceDays","productId","status"],"additionalProperties":false}}},"required":["sellerSetUp","sellerTerms","products","prices","plans","priceLists","discounts","paymentMethods","lateFeeRules"],"additionalProperties":false}},{"id":"system.billing.sales-catalogue.update.v1","title":"Add one thing to the seller’s catalogue — a product, a price, a plan with its items, a price list for a customer group, a discount, an automatic discount rule, a payment method or a late-fee rule — or archive one. A replay on the same key answers the first reply.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":255},"item":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"product"},"code":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,63}$"},"name":{"type":"string","minLength":1,"maxLength":200},"description":{"default":"","type":"string","maxLength":2000},"productKind":{"type":"string","enum":["one_time","recurring"]},"taxCategory":{"type":"string","enum":["standard","zero_rated","exempt"]},"attributes":{"default":{},"type":"object","propertyNames":{"type":"string","maxLength":64},"additionalProperties":{"type":"string","maxLength":200}}},"required":["kind","code","name","description","productKind","taxCategory","attributes"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"price"},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"nickname":{"default":"","type":"string","maxLength":120},"unitAmountPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"billingInterval":{"anyOf":[{"type":"string","enum":["week","month","year"]},{"type":"null"}]},"intervalCount":{"anyOf":[{"type":"integer","minimum":1,"maximum":36},{"type":"null"}]}},"required":["kind","productId","nickname","unitAmountPaisa","billingInterval","intervalCount"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"plan"},"code":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,63}$"},"name":{"type":"string","minLength":1,"maxLength":200},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"priceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quantity":{"type":"integer","minimum":1,"maximum":10000},"timing":{"type":"string","enum":["first_cycle","every_cycle"]}},"required":["priceId","quantity","timing"],"additionalProperties":false}}},"required":["kind","code","name","items"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"priceList"},"name":{"type":"string","minLength":1,"maxLength":200},"customerGroup":{"type":"string","minLength":1,"maxLength":120},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"priceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"unitAmountPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"}},"required":["priceId","unitAmountPaisa"],"additionalProperties":false}}},"required":["kind","name","customerGroup","items"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"discount"},"code":{"anyOf":[{"type":"string","pattern":"^[A-Z0-9-]{3,32}$"},{"type":"null"}]},"name":{"type":"string","minLength":1,"maxLength":200},"discountKind":{"type":"string","enum":["percent","fixed"]},"value":{"type":"string","pattern":"^-?\\d{1,18}$"},"productId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"duration":{"type":"string","enum":["once","cycles","forever"]},"cycles":{"anyOf":[{"type":"integer","minimum":1,"maximum":120},{"type":"null"}]},"stackable":{"type":"boolean"}},"required":["kind","code","name","discountKind","value","productId","duration","cycles","stackable"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"discountRule"},"discountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerGroup":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"siblingRank":{"anyOf":[{"type":"integer","minimum":2,"maximum":20},{"type":"null"}]},"priority":{"type":"integer","minimum":0,"maximum":1000}},"required":["kind","discountId","customerGroup","siblingRank","priority"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"paymentMethod"},"code":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,31}$"},"name":{"type":"string","minLength":1,"maxLength":80},"methodKind":{"type":"string","enum":["cash","bank","cheque","mobile_wallet","other"]},"requiresReference":{"type":"boolean"},"instructions":{"default":"","type":"string","maxLength":1000}},"required":["kind","code","name","methodKind","requiresReference","instructions"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"lateFeeRule"},"name":{"type":"string","minLength":1,"maxLength":200},"feeKind":{"type":"string","enum":["percent","fixed"]},"value":{"type":"string","pattern":"^-?\\d{1,18}$"},"graceDays":{"type":"integer","minimum":0,"maximum":365},"maxTimes":{"type":"integer","minimum":1,"maximum":24},"repeatEveryDays":{"anyOf":[{"type":"integer","minimum":1,"maximum":365},{"type":"null"}]},"customerGroup":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","name","feeKind","value","graceDays","maxTimes","repeatEveryDays","customerGroup","productId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"rename"},"what":{"type":"string","const":"product"},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":200}},"required":["kind","what","id","name"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"archive"},"what":{"type":"string","enum":["product","price","plan","priceList","discount","paymentMethod","lateFeeRule"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","what","id"],"additionalProperties":false}]}},"required":["orgId","actingUserId","idempotencyKey","item"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false}},{"id":"system.billing.sales-charges.update.v1","title":"Add a one-off charge to a customer (an exam review fee, a fine, transport for a month) — billed on their next invoice. A charge with the caller’s own sourceRef is added once.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":255},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":{"type":"string","minLength":1,"maxLength":200},"quantity":{"type":"integer","minimum":1,"maximum":10000},"unitAmountPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"chargeOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"sourceRef":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]}},"required":["orgId","actingUserId","idempotencyKey","customerId","productId","description","quantity","unitAmountPaisa","chargeOn","sourceRef"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"chargeId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["chargeId"],"additionalProperties":false}},{"id":"system.billing.sales-customer-discounts.list.v1","title":"One page of the discount grants the seller gave its customers — one customer’s (by the caller’s reference), or every grant — newest first, revoked ones only when asked. What a product app lists its waivers from. A display read.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerRef":{"type":"string","minLength":1,"maxLength":128},"includeRevoked":{"default":false,"type":"boolean"},"cursor":{"type":"string","minLength":1,"maxLength":128},"pageSize":{"type":"integer","minimum":1,"maximum":200}},"required":["orgId","actingUserId","includeRevoked"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"grants":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerRef":{"type":["string","null"]},"discountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"discountName":{"type":"string"},"kind":{"type":"string","enum":["percent","fixed"]},"value":{"type":"string","pattern":"^-?\\d{1,18}$"},"scope":{"type":"string","enum":["invoice","product"]},"productId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"startsOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"endsOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"status":{"type":"string","enum":["pending_approval","active","revoked"]},"note":{"type":"string"},"approvedBy":{"type":["string","null"]},"createdBy":{"type":"string"}},"required":["id","customerId","customerRef","discountId","discountName","kind","value","scope","productId","startsOn","endsOn","status","note","approvedBy","createdBy"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["grants","nextCursor"],"additionalProperties":false}},{"id":"system.billing.sales-customer-discounts.update.v1","title":"Grant a customer a discount (a waiver, a scholarship) from a date, optionally to a date, or revoke a grant. A grant applies on every invoice it covers until its cycles run out.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":255},"op":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"grant"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"discountId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"startsOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"endsOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"note":{"default":"","type":"string","maxLength":500}},"required":["kind","customerId","discountId","startsOn","endsOn","note"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"revoke"},"grantId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","grantId"],"additionalProperties":false}]}},"required":["orgId","actingUserId","idempotencyKey","op"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false}},{"id":"system.billing.sales-customers.update.v1","title":"Create or update the seller’s customers by the calling app’s own reference (a school’s student id) — never another app’s: the source app is the caller’s m2m client, not a request field. Groups are what price lists and discount rules match (a class, `sibling-rank:2`).","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":255},"customers":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"externalRef":{"type":"string","minLength":1,"maxLength":128},"personId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"userId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"name":{"type":"string","minLength":1,"maxLength":200},"email":{"anyOf":[{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"address":{"default":"","type":"string","maxLength":500},"groups":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"contacts":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"relation":{"default":"","type":"string","maxLength":60},"userId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["name","relation","userId"],"additionalProperties":false}}},"required":["externalRef","userId","name","email","phone","address","groups"],"additionalProperties":false}}},"required":["orgId","actingUserId","idempotencyKey","customers"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"customers":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"externalRef":{"type":"string"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["externalRef","customerId"],"additionalProperties":false}}},"required":["customers"],"additionalProperties":false}},{"id":"system.billing.sales-invoices.get.v1","title":"One of the seller’s invoices with its lines, the seller and buyer as printed, what is paid, credited and owed, and its payments. Another seller’s id is not_found.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"invoiceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["orgId","actingUserId","invoiceId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":["string","null"]},"status":{"type":"string","enum":["draft","open","paid","void","uncollectible"]},"displayStatus":{"type":"string","enum":["draft","open","paid","void","uncollectible","partially_paid","overdue"]},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"customerRef":{"type":["string","null"]},"issuedOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"dueOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"periodKey":{"type":["string","null"]},"sourceRef":{"type":["string","null"]},"totalPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"paidPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"creditedPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"balancePaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"subtotalPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"discountPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"taxPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"memo":{"type":"string"},"lines":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["item","charge","discount","late_fee"]},"description":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unitAmountPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"amountPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"taxPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"}},"required":["kind","description","quantity","unitAmountPaisa","amountPaisa","taxPaisa"],"additionalProperties":false}}},"required":["id","number","status","displayStatus","customerId","customerName","customerRef","issuedOn","dueOn","periodKey","sourceRef","totalPaisa","paidPaisa","creditedPaisa","balancePaisa","subtotalPaisa","discountPaisa","taxPaisa","memo","lines"],"additionalProperties":false}},{"id":"system.billing.sales-invoices.list.v1","title":"One page of the seller’s invoices, newest first — all of them, one customer’s (by billing’s id or by the caller’s own reference), one status, or the one the caller raised under its own sourceRef — with what each still owes, and its first lines when asked. A customer reference billing has never seen is an empty page. A display read.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerRef":{"type":"string","minLength":1,"maxLength":128},"sourceRef":{"type":"string","minLength":1,"maxLength":128},"status":{"type":"string","enum":["draft","open","paid","void","uncollectible"]},"includeLines":{"default":false,"type":"boolean"},"cursor":{"type":"string","minLength":1,"maxLength":128},"pageSize":{"type":"integer","minimum":1,"maximum":200}},"required":["orgId","actingUserId","includeLines"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"invoices":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":["string","null"]},"status":{"type":"string","enum":["draft","open","paid","void","uncollectible"]},"displayStatus":{"type":"string","enum":["draft","open","paid","void","uncollectible","partially_paid","overdue"]},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"customerRef":{"type":["string","null"]},"issuedOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"dueOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"periodKey":{"type":["string","null"]},"sourceRef":{"type":["string","null"]},"totalPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"paidPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"creditedPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"balancePaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"lines":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["item","charge","discount","late_fee"]},"description":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unitAmountPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"amountPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"taxPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"}},"required":["kind","description","quantity","unitAmountPaisa","amountPaisa","taxPaisa"],"additionalProperties":false}}},"required":["id","number","status","displayStatus","customerId","customerName","customerRef","issuedOn","dueOn","periodKey","sourceRef","totalPaisa","paidPaisa","creditedPaisa","balancePaisa"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["invoices","nextCursor"],"additionalProperties":false}},{"id":"system.billing.sales-invoices.update.v1","title":"Make a manual invoice (lines of the seller’s products, coupons, finalized at once or kept as a draft), finalize a draft, void an unpaid invoice, or issue a credit note against an issued one. A manual invoice under the caller’s own sourceRef is made once: asking again answers the one already made, until it is voided.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":255},"op":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"create"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"lines":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"priceId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"description":{"type":"string","minLength":1,"maxLength":200},"quantity":{"type":"integer","minimum":1,"maximum":10000},"unitAmountPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"}},"required":["productId","priceId","description","quantity","unitAmountPaisa"],"additionalProperties":false}},"coupons":{"default":[],"maxItems":5,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9-]{3,32}$"}},"memo":{"default":"","type":"string","maxLength":1000},"finalize":{"type":"boolean"},"dueOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"sourceRef":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]}},"required":["kind","customerId","on","lines","coupons","memo","finalize","dueOn","sourceRef"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"finalize"},"invoiceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"issuedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"dueOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]}},"required":["kind","invoiceId","issuedOn","dueOn"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"void"},"invoiceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reason":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","invoiceId","reason"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"creditNote"},"invoiceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"amountPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"reason":{"type":"string","minLength":1,"maxLength":500},"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["kind","invoiceId","amountPaisa","reason","on"],"additionalProperties":false}]}},"required":["orgId","actingUserId","idempotencyKey","op"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"invoiceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["draft","open","paid","void","uncollectible"]},"number":{"type":["string","null"]}},"required":["invoiceId","status","number"],"additionalProperties":false}},{"id":"system.billing.sales-payments.list.v1","title":"One page of the payments the seller received, newest first — all of them, one customer’s (by the caller’s reference), or one payment — each with the invoices it paid. A reversed payment says so; its negative reversal row is not listed on its own.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerRef":{"type":"string","minLength":1,"maxLength":128},"paymentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"cursor":{"type":"string","minLength":1,"maxLength":128},"pageSize":{"type":"integer","minimum":1,"maximum":200}},"required":["orgId","actingUserId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"payments":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"receiptNumber":{"type":["string","null"]},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"customerRef":{"type":["string","null"]},"methodId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"methodName":{"type":"string"},"amountPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"status":{"type":"string","enum":["pending_verification","succeeded","rejected","reversed"]},"receivedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"reference":{"type":["string","null"]},"note":{"type":"string"},"allocations":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"invoiceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"invoiceNumber":{"type":["string","null"]},"amountPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"}},"required":["invoiceId","invoiceNumber","amountPaisa"],"additionalProperties":false}}},"required":["id","receiptNumber","customerId","customerName","customerRef","methodId","methodName","amountPaisa","status","receivedOn","reference","note","allocations"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["payments","nextCursor"],"additionalProperties":false}},{"id":"system.billing.sales-payments.update.v1","title":"Record a payment received by one of the seller’s payment methods — allocated oldest invoice first or by hand, any excess kept as the customer’s balance — or reverse one (a bounced cheque), which reopens what it paid.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":255},"op":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"record"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"methodId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"amountPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"receivedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"reference":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"note":{"default":"","type":"string","maxLength":500},"allocations":{"anyOf":[{"maxItems":200,"type":"array","items":{"type":"object","properties":{"invoiceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"amountPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"}},"required":["invoiceId","amountPaisa"],"additionalProperties":false}},{"type":"null"}]}},"required":["kind","customerId","methodId","amountPaisa","receivedOn","reference","note","allocations"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"reverse"},"paymentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reason":{"type":"string","minLength":1,"maxLength":500},"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["kind","paymentId","reason","on"],"additionalProperties":false}]}},"required":["orgId","actingUserId","idempotencyKey","op"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"paymentId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"receiptNumber":{"type":["string","null"]},"allocatedPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"toBalancePaisa":{"type":"string","pattern":"^-?\\d{1,18}$"}},"required":["paymentId","receiptNumber","allocatedPaisa","toBalancePaisa"],"additionalProperties":false}},{"id":"system.billing.sales-reports.get.v1","title":"A seller’s report: AR aging or defaulters as of a date (per customer with the caller’s reference and an overdue-invoice count, in 0 / 1–30 / 31–60 / 61–90 / 90+ day buckets), or collections by payment method — and by day — for a date range.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"report":{"type":"string","enum":["aging","defaulters","collections"]},"asOf":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["orgId","actingUserId","report","asOf"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"aging":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"customerRef":{"type":["string","null"]},"buckets":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","pattern":"^-?\\d{1,18}$"}},"totalPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"overdueInvoices":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["customerId","customerName","customerRef","buckets","totalPaisa","overdueInvoices"],"additionalProperties":false}},"collections":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"methodName":{"type":"string"},"payments":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amountPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"}},"required":["methodName","payments","amountPaisa"],"additionalProperties":false}},"collectionsByDay":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"day":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"payments":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amountPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"}},"required":["day","payments","amountPaisa"],"additionalProperties":false}}},"required":["aging","collections","collectionsByDay"],"additionalProperties":false}},{"id":"system.billing.sales-runs.update.v1","title":"Preview (writes nothing) or run the seller’s billing for a date — recurring instalments or late fees. A run for a day that already ran answers that run; each period is invoiced once.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":255},"op":{"type":"string","enum":["preview","run"]},"kind":{"type":"string","enum":["recurring","late_fee"]},"asOf":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["orgId","actingUserId","idempotencyKey","op","kind","asOf"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"preview":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"periodKey":{"type":"string"},"totalPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"}},"required":["customerId","customerName","periodKey","totalPaisa"],"additionalProperties":false}},"invoicesCreated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"alreadyRan":{"type":"boolean"}},"required":["preview","invoicesCreated","alreadyRan"],"additionalProperties":false}},{"id":"system.billing.sales-setup.update.v1","title":"Set up the org as a seller in billing’s sales engine (human, 2026-10-12: billing owns the money, the product app creates it): its legal and display name, BIN, address, VAT mode and rate, payment terms. Creates the default chart of accounts and a Cash payment method the first time. The seller is always the request’s orgId.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":255},"legalName":{"type":"string","minLength":1,"maxLength":200},"displayName":{"type":"string","minLength":1,"maxLength":200},"bin":{"anyOf":[{"type":"string","pattern":"^\\d{9,13}$"},{"type":"null"}]},"address":{"type":"string","maxLength":500},"taxMode":{"type":"string","enum":["exclusive","inclusive"]},"vatRateBp":{"type":"integer","minimum":0,"maximum":10000},"paymentTermsDays":{"type":"integer","minimum":0,"maximum":365}},"required":["orgId","actingUserId","idempotencyKey","legalName","displayName","bin","address","taxMode","vatRateBp","paymentTermsDays"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sellerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["sellerId"],"additionalProperties":false}},{"id":"system.billing.sales-subscriptions.list.v1","title":"One page of the seller’s subscriptions the caller started — one customer’s (by the caller’s reference), or those whose sourceRef starts with a prefix (a school’s class fees) — live ones only unless asked. What a product app reconciles its own enrolments against.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerRef":{"type":"string","minLength":1,"maxLength":128},"sourceRefPrefix":{"type":"string","minLength":1,"maxLength":64},"includeEnded":{"default":false,"type":"boolean"},"cursor":{"type":"string","minLength":1,"maxLength":128},"pageSize":{"type":"integer","minimum":1,"maximum":200}},"required":["orgId","actingUserId","includeEnded"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"subscriptions":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerRef":{"type":["string","null"]},"planId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"status":{"type":"string","enum":["future","active","paused","non_renewing","cancelled","expired"]},"startsOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"endsOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"billDayOfMonth":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"firstPeriodEndsOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nextBillOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"sourceRef":{"type":["string","null"]},"items":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"priceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"timing":{"type":"string","enum":["first_cycle","every_cycle"]}},"required":["priceId","quantity","timing"],"additionalProperties":false}}},"required":["id","customerId","customerRef","planId","status","startsOn","endsOn","billDayOfMonth","firstPeriodEndsOn","nextBillOn","sourceRef","items"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["subscriptions","nextCursor"],"additionalProperties":false}},{"id":"system.billing.sales-subscriptions.update.v1","title":"Start a subscription — a plan and/or prices, an instalment schedule of so many periods from a date, due so many days after each bill — or cancel one from a date (later instalments are skipped). The billing run invoices each due period once. Starting one whose sourceRef the caller already has live answers that one. A monthly subscription may name the day each period is billed and end its first period early: the first bill then covers only the days from the start, prorated, and the full periods follow on the billing day — so a student who joins mid-month pays half a month and then bills on the 1st like everyone else.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":255},"op":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"create"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"planId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"items":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"priceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"quantity":{"type":"integer","minimum":1,"maximum":10000},"timing":{"type":"string","enum":["first_cycle","every_cycle"]}},"required":["priceId","quantity","timing"],"additionalProperties":false}},"startsOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"endsOn":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"billDayOfMonth":{"default":null,"anyOf":[{"type":"integer","minimum":1,"maximum":28},{"type":"null"}]},"firstPeriodEndsOn":{"default":null,"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"periods":{"type":"integer","minimum":1,"maximum":60},"dueAfterDays":{"type":"integer","minimum":0,"maximum":120},"sourceRef":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]}},"required":["kind","customerId","planId","items","startsOn","endsOn","billDayOfMonth","firstPeriodEndsOn","periods","dueAfterDays","sourceRef"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"cancel"},"subscriptionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["kind","subscriptionId","on"],"additionalProperties":false}]}},"required":["orgId","actingUserId","idempotencyKey","op"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"subscriptionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["subscriptionId"],"additionalProperties":false}},{"id":"system.billing.wallet-holds.create.v1","title":"Hold the price of up to 200 prepaid sends against one org’s wallet in one transaction. All or nothing — insufficient_balance refuses the whole batch. The hold key is (org, caller client id, messageId), so a replay returns the first answer and a replay with a different meter or units is refused.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":255},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"messageId":{"type":"string","minLength":1,"maxLength":128},"meterCode":{"type":"string","pattern":"^[a-z][a-z0-9_.-]{1,62}$"},"units":{"type":"integer","exclusiveMinimum":0,"maximum":1000000}},"required":["messageId","meterCode","units"],"additionalProperties":false}}},"required":["orgId","idempotencyKey","items"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"holds":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"messageId":{"type":"string","minLength":1,"maxLength":128},"holdId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"amountPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"includedUnits":{"type":"string","pattern":"^-?\\d{1,18}$"},"status":{"type":"string","enum":["held","charged","refunded"]},"replayed":{"type":"boolean"}},"required":["messageId","holdId","amountPaisa","includedUnits","status","replayed"],"additionalProperties":false}}},"required":["holds"],"additionalProperties":false}},{"id":"system.billing.wallet-holds.update.v1","title":"Settle one hold — charge moves it to revenue and VAT, refund returns it to the wallet. Settling twice the same way replays; settling the other way is refused.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"messageId":{"type":"string","minLength":1,"maxLength":128},"outcome":{"type":"string","enum":["charge","refund"]}},"required":["orgId","messageId","outcome"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"messageId":{"type":"string","minLength":1,"maxLength":128},"holdId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"amountPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"includedUnits":{"type":"string","pattern":"^-?\\d{1,18}$"},"status":{"type":"string","enum":["held","charged","refunded"]},"replayed":{"type":"boolean"}},"required":["messageId","holdId","amountPaisa","includedUnits","status","replayed"],"additionalProperties":false}},{"id":"system.billing.wallet-quote.get.v1","title":"What up to 200 prepaid sends would cost today, priced by billing’s rate card or the org’s contract with the month’s included units already used. A meter with no prepaid price answers priced: false, so the caller shows that it cannot estimate rather than a made-up number. Also carries the wallet balance the estimate is checked against.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"meterCode":{"type":"string","pattern":"^[a-z][a-z0-9_.-]{1,62}$"},"units":{"type":"integer","exclusiveMinimum":0,"maximum":1000000}},"required":["meterCode","units"],"additionalProperties":false}}},"required":["orgId","items"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"currency":{"type":"string","const":"BDT"},"balancePaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"heldPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"quotes":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"meterCode":{"type":"string","pattern":"^[a-z][a-z0-9_.-]{1,62}$"},"units":{"type":"integer","exclusiveMinimum":0,"maximum":1000000},"priced":{"type":"boolean"},"includedUnits":{"type":"string","pattern":"^-?\\d{1,18}$"},"netPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"vatPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"amountPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"}},"required":["meterCode","units","priced","includedUnits","netPaisa","vatPaisa","amountPaisa"],"additionalProperties":false}}},"required":["orgId","currency","balancePaisa","heldPaisa","quotes"],"additionalProperties":false}},{"id":"system.billing.wallet.get.v1","title":"One org’s prepaid wallet — spendable balance and held amount in BDT paisa. authz because a caller decides whether to send on it; unavailable is a refusal, never a cached balance (D36).","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["orgId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"currency":{"type":"string","const":"BDT"},"balancePaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"heldPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"}},"required":["orgId","currency","balancePaisa","heldPaisa"],"additionalProperties":false}},{"id":"system.billing.wellknown.capabilities.v1","title":"The billing capabilities manifest: metadata, callable actions with schemas, public routes, emitted events, and model field catalogs. Public metadata only — a manifest never carries tenant rows.","route":"/.well-known/capabilities","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"manifestVersion":{"type":"string","const":"1"},"app":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"},"version":{"type":"string","minLength":1},"status":{"type":"string","enum":["live","degraded"]}},"required":["name","version","status"],"additionalProperties":false},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^system\\.[a-z0-9]+(-[a-z0-9]+)*\\.[a-z0-9]+(-[a-z0-9]+)*\\.[a-z0-9]+(-[a-z0-9]+)*\\.v[1-9][0-9]*$"},"title":{"type":"string","minLength":1},"route":{"type":"string","pattern":"^\\/"},"inputSchema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"outputSchema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","title","inputSchema","outputSchema"],"additionalProperties":false}},"functionalities":{"type":"object","properties":{"publicRoutes":{"type":"array","items":{"type":"string","pattern":"^\\/"}},"auth":{"type":"object","properties":{"issuer":{"type":"string","format":"uri"},"authorizationEndpoint":{"type":"string","format":"uri"},"tokenEndpoint":{"type":"string","format":"uri"},"jwksUri":{"type":"string","format":"uri"}},"required":["issuer"],"additionalProperties":false},"webhooks":{"type":"array","items":{"type":"string","minLength":1}}},"required":["publicRoutes","webhooks"],"additionalProperties":false},"events":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z0-9][a-z0-9.-]*[a-z0-9]$"},"title":{"type":"string","minLength":1},"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["name","title","schema"],"additionalProperties":false}},"models":{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"object","properties":{"title":{"type":"string","minLength":1},"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"excluded":{"type":"array","items":{"type":"string","minLength":1}}},"required":["title","schema","excluded"],"additionalProperties":false}}},"required":["manifestVersion","app","actions","functionalities","events"],"additionalProperties":false}}],"functionalities":{"publicRoutes":[],"webhooks":[]},"events":[{"name":"billing.invoice.finalized","title":"billing: invoice finalized","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"invoiceId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"number":{"type":"string","minLength":1},"period":{"type":"string","pattern":"^\\d{4}-\\d{2}$"},"status":{"type":"string","enum":["finalized","paid"]},"subtotalPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"vatPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"totalPaisa":{"type":"string","pattern":"^-?\\d{1,18}$"},"dueOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"issuedAt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["orgId","invoiceId","number","period","status","subtotalPaisa","vatPaisa","totalPaisa","dueOn","issuedAt"],"additionalProperties":false}},{"name":"billing.audit.recorded","title":"billing: audit recorded","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"occurredAt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"orgId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"actorUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}]},"actorKind":{"type":"string","enum":["user","api_key","service","system"]},"action":{"type":"string","minLength":1,"maxLength":160},"targetKind":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"targetId":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"outcome":{"type":"string","enum":["success","failure"]},"ip":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"userAgent":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}]},"requestId":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"metadata":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}},{"type":"null"}]}},"required":["eventId","occurredAt","orgId","actorUserId","actorKind","action","targetKind","targetId","outcome","ip","userAgent","requestId","metadata"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}},{"name":"billing.notification.raised","title":"billing: notification raised","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"idempotencyKey":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","minLength":3,"maxLength":120},"targetApp":{"type":"string","minLength":1,"maxLength":64},"orgId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"actorUserId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"audience":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"users"},"userIds":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["type","userIds"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"orgMembers"},"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["type","orgId"],"additionalProperties":false}]},"title":{"type":"string","minLength":1,"maxLength":200},"body":{"type":"string","maxLength":2000},"href":{"anyOf":[{"type":"string","maxLength":512,"format":"starts_with","pattern":"^\\/.*"},{"type":"null"}]},"data":{"type":"object","propertyNames":{"type":"string","maxLength":64},"additionalProperties":{"anyOf":[{"type":"string","maxLength":512},{"type":"number"},{"type":"boolean"},{"type":"null"}]}},"occurredAt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["idempotencyKey","kind","targetApp","orgId","actorUserId","audience","title","body","href","data","occurredAt"],"additionalProperties":false}}],"models":{"product":{"title":"Billable product fields safe to show to workflow builders","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"code":{"type":"string"},"app":{"type":"string"},"name":{"type":"string"},"mode":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","code","app","name","mode","createdAt"],"additionalProperties":false},"excluded":[]},"meter":{"title":"Usage meter fields safe to show to workflow builders","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"productId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"code":{"type":"string"},"name":{"type":"string"},"unit":{"type":"string"},"aggregation":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","productId","code","name","unit","aggregation","createdAt"],"additionalProperties":false},"excluded":[]}}}