{"openapi":"3.0.0","info":{"version":"0.1.1","title":"Account","description":"Consumer Master Service"},"components":{"schemas":{"ConsumerModel":{"description":"PayJustNow Consumer","type":"object","properties":{"id":{"type":"string","description":"Unique ID of this consumer record","example":"221e5539-eec7-47f9-a9af-9a251812030e"},"source_record_module":{"type":"string","example":"legacy","description":"Which module this consumer record originated from"},"source_record_id":{"type":"string","example":"299","description":"The record ID of the consumer record in the originating module"},"first_name":{"type":"string"},"last_name":{"type":"string"},"mobile_number":{"type":"string"},"email":{"type":"string"},"id_number":{"type":"string"},"address_line_1":{"type":"string"},"address_line_2":{"type":"string"},"city":{"type":"string"},"postal_code":{"type":"string"},"province":{"type":"string"},"alt_contact_name":{"type":"string"},"alt_contact_phone_number":{"type":"string"},"net_income":{"multipleOf":1,"example":5000000,"minimum":0,"description":"The net income in cents"},"fas_subcategory":{"type":"number","description":"The FAS subcatagory returned from experian"},"maximum_amount":{"type":"number","description":"BNPL facility in cents"},"concurrent_orders":{"type":"number"},"bank":{"type":"string","description":"issuer bank name of active default card loaded to profile"},"wallet_status":{"type":"string","description":"active where sequence number > 2 or inactive where not created or sequence < 1"},"wallet_balance":{"type":"number","description":"wallet balance in cents"},"user_preferences":{"type":"boolean","description":"email, sms, push notification"},"marketing email enagement":{"type":"string","description":"open rate and click rate of marketing emails"},"profile_age":{"type":"number","description":"Time in months since profile created"},"months since first order":{"type":"number","description":"Time in months since first order"},"months since last order":{"type":"number","description":"Time in months since last order"},"profile_status":{"type":"string","description":"what is the current state of the profile","example":"new - credit_score_verified < 30 days and order_count = 0, active - order_count > 1 in LTM, previously active - where order_count ever >=1 AND order_count = 0 in LTM, dormant credit_score_verified > 30 days and order_count = 0, at_risk - has orders in payment_penalties table > 7 days AND concurrenct_orders = 1, edc - order/s handed over, attrited - deleted_at is NOT NULL AND order_count ever > 0, closed - deleted_at is NOT NULL AND order_count ever = 0"},"login_count_ltv":{"type":"string","description":"count of login events all time LTV"},"login_count_ltm":{"type":"string","description":"count of login events LTM (last twelve months)"},"last seen":{"type":"string","description":"date last seen"},"otb":{"type":"number","description":"calculation of (maximum_amount - sum orders where first_payment_made_at IS NOT NULL AND payment_completed_at is NULL)"},"order_created_count":{"type":"number","description":"count of orders where created_at is NOT NULL"},"order_completed_count":{"type":"number","description":"count of orders where first_payment_made_at is NOT NULL"},"order_refunds_count":{"type":"number","description":"count of orders where refunded_at is NOT NULL"},"order_penalties_count":{"type":"number","description":"count of penalties raised"},"gmv":{"type":"number","description":"sum of GMV from orders not refunded in cents"},"tx_revenue_ltv":{"type":"number","description":"sum of revenue from orders calculated from (GMV*merchant fee) +      (transaction_fee*distinct (order_id) + (order_payment_refunded.amount*merchant fee) in cents as ltv (lifetime value) + late fee"},"merchant_mix count":{"type":"number","description":"count of unique merchant_id on successful orders"},"preferred_merchant_channel":{"multipleOf":3,"example":"instore or online or onmi (if both)","minimum":0},"order_created_count_ltm":{"type":"number","description":"count of orders where created_at is NOT NULL LTM (last twelve months)"},"order_completed_count_ltm":{"type":"number","description":"count of orders where first_payment_made_at is NOT NULL LTM (last twelve months)"},"order_refunds_count_ltm":{"type":"number","description":"count of orders where refunded_at is NOT NULL LTM (last twelve months)"},"order_penalties_count_ltm":{"type":"number","description":"count of penalties raised LTM (last twelve months)"},"gmv_ltm":{"type":"number","description":"sum of GMV from orders not refunded in cents LTM (last twelve months)"},"tx_revenue_ltm":{"type":"number","description":"sum of revenue from orders calculated from (GMV*merchant fee) + (transaction_fee*distinct (order_id) + (order_payment_refunded.amount*merchant fee) in cents LTM (last twelve months)"}}}}},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/MarkMcChlery/0.1.0_ConsumerMaster/0.1.0"}]}