{"info":{"_postman_id":"bcfa74d3-b5f0-4b22-ad90-99ab71c413ef","name":"Loystar Loyalty Offers & Gift Voucher API  for Organizations","description":"<html><head></head><body><img src=\"https://www.loystar.co/wp-content/uploads/2014/09/loystar_logo_150px_gray.png\" alt=\"```Don't%20just%20sell,%20build%20loyalty```\">\n\n<p>The Loystar loyalty, rewards and Gift voucher service enables discerning organizations and business who seek to incentivise repeat patronage in their business. This documentation outline the various endpoints available for the various functions.</p>\n<p>Format availabe {Graphql and REST}</p>\n<p>For questions and inquiries please email: <a href=\"https://mailto:dev@loystar.co\">dev@loystar.co</a> or <a href=\"https://api.whatsapp.com/send?phone=2348024212152&amp;text=Hi%20team,%20I%20have%20questions%20about%20your%20Loyalty%20API\">WhatsApp</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"14187668","collectionId":"bcfa74d3-b5f0-4b22-ad90-99ab71c413ef","publishedId":"2s8YsnYbnF","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"000"},"publishDate":"2025-11-20T13:26:04.000Z"},"item":[{"name":"Organisation","item":[{"name":"Organization Registration","id":"0b99dc20-df55-4998-b636-d906be474be6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"organisation_email\": \"dev2@loystar.co\", \r\n    \"password\": \"pa55w0rd\", \r\n    \"organisation_name\": \"My Company Ltd\", \r\n    \"currency\":\"NGN\", \r\n    \"organisation_phone_number\": \"+234834567788\",\r\n    \"contact_phone_number\": \"string\",\r\n    \"contact_person\": \"string\",\r\n    \"contact_email\": \"string\",\r\n    \"organisation_address\": \"string\",\r\n    \"state\": \"string\",\r\n    \"country\": \"string\",\r\n    \"organisation_banner\": \"string\",\r\n    \"organisation_logo\": \"string\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://mtier.loystar.co/auth/add_organisation","description":"<p>Query for registration</p>\n","urlObject":{"path":["add_organisation"],"host":["https://mtier.loystar.co/auth"],"query":[],"variable":[]}},"response":[{"id":"734a666b-fd0e-4478-9c79-ca374db29ddb","name":"Registration","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"organisation_email\": \"hello@loystar.co\", \r\n    \"password\": \"...........\", \r\n    \"organisation_name\": \"uRewards by Loystar\", \r\n    \"currency\":\"NGN\", \r\n    \"organisation_phone_number\": \"+23480..\",\r\n    \"contact_phone_number\": \"23480...\",\r\n    \"contact_person\": \"dev\",\r\n    \"contact_email\": \"dev@loystar.co\",\r\n    \"organisation_address\": \"19b Adeyemi Lawson, Ikoyi, Lagos\",\r\n    \"state\": \"Lagos\",\r\n    \"country\": \"Nigeria\",\r\n    \"organisation_banner\": \"https://www.loystar.co/wp-content/uploads/2017/07/Untitled-design.png\",\r\n    \"organisation_logo\": \"https://www.loystar.co/wp-content/uploads/2017/07/loystar-urewaards.png\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://mtier.loystar.co/auth/add_organisation"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"266"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 12 Apr 2023 14:15:53 GMT"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"10a-fdg9VtlGvq6gQaIWdI79aJFypZU\""},{"key":"request-context","value":"appId=cid-v1:43e2ad04-3cf2-402e-a063-3ba820de9a20"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Success\",\n    \"data\": {\n        \"email\": \"hello@loystar.co\",\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Nzk3MSwidWlkIjoiaGVsbG9AbG95c3Rhci5jbyIsImlhdCI6MTY4MTMwODk1MywiZXhwIjoxNjgxMzk1MzUzfQ.v2hQ2_OtoFNoOQum5WTnLEixvveHPcyssivqjVQJNro\",\n        \"organisation_id\": 7971\n    }\n}"}],"_postman_id":"0b99dc20-df55-4998-b636-d906be474be6"},{"name":"Organization Signin","id":"f9b78339-e518-49ab-a278-7b6550b1b52a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ayo@loystar.co\",\r\n    \"password\": \".,ayo\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://mtier.loystar.co/auth/organisation_login","urlObject":{"path":["organisation_login"],"host":["https://mtier.loystar.co/auth"],"query":[],"variable":[]}},"response":[],"_postman_id":"f9b78339-e518-49ab-a278-7b6550b1b52a"}],"id":"6a663883-2db7-4bfe-9ff3-ea34ebb0e9c0","description":"<p>For registration and account management</p>\n","_postman_id":"6a663883-2db7-4bfe-9ff3-ea34ebb0e9c0"},{"name":"Gift Voucher/Card","item":[{"name":"Generate and Award gift voucher","id":"a5e4649c-3ef7-49b9-bfc5-66d197f86bec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n        \"value\": 5000,\r\n        \"email\": \"loystarapp@gmail.com\",\r\n        \"firstName\":\"Jack\",\r\n        \"lastName\":\"Robinson\",\r\n        \"phoneNumber\": \"+23480000234442\",\r\n        \"ieReferenceCode\": 67876565,\r\n        \"organisation_id\": 8720,\r\n        \"shouldSendEmail\": true,\r\n        \"senderMessage\": \"Thank you for your patronage\",\r\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NzUxOSwidWlkIjoiZGV2QGxveXN0YXIuY28iLCJpYXQiOjE2ODAyNTAyNjUsImV4cCI6MTY4MDMzNjY2NX0.QNKEuD3hpJWe6yeV5iEeWaxkB-RpTEMZSrn3iugoY-Q\"\r\n    }","options":{"raw":{"language":"json"}}},"url":"https://mtier.loystar.co/redeem","description":"<p>The organisation ID and the giftcard id should be passed in as a param to the redemption URL.  </p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code> https://stage.loystar.shop/o/: organization_id/:giftcardid\n\n</code></pre><p>e.g <a href=\"https://stage.urewards.me/o/1987/be653122-61e4-4624-a4b8-9a4608e906bd\">https://stage.urewards.me/o/1987/be653122-61e4-4624-a4b8-9a4608e906bd</a></p>\n","urlObject":{"host":["https://mtier.loystar.co/redeem"],"query":[],"variable":[]}},"response":[],"_postman_id":"a5e4649c-3ef7-49b9-bfc5-66d197f86bec"},{"name":"Get Voucher Transactions","id":"e2f8c81c-8b28-4e50-ba43-78031428c42e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"organisation_id\": 4558,\r\n    \"card_number\": \"7753135089079107\",\r\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Mzg0NCwidWlkIjoiYXlvQGxveXN0YXIuY28iLCJpYXQiOjE2NzcwNjYyODksImV4cCI6MTY3NzE1MjY4OX0.5rPxwvEvnK3G_XnFtD5gS2GCpoinGBQmFnfX6mIScW0\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://mtier.loystar.co/voucher_transaction_history","urlObject":{"host":["https://mtier.loystar.co/voucher_transaction_history"],"query":[],"variable":[]}},"response":[],"_postman_id":"e2f8c81c-8b28-4e50-ba43-78031428c42e"}],"id":"006502f9-d640-4b12-973a-5e901300aad8","_postman_id":"006502f9-d640-4b12-973a-5e901300aad8","description":""},{"name":"Multi-Level Points Loyalty","item":[{"name":"Loyalty Program","item":[{"name":"List Loyalty","id":"907cdabe-ba30-4154-b1b8-64bc40cc7f1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Access_Token","value":"oi7Sq_oeuDGfQn2x15jFrw","type":"text"},{"key":"Client","value":"qZzO-PlKcimYMLMlAQKSAg","type":"text"},{"key":"Uid","value":"ayo@loystar.co","type":"text"},{"key":"authorization","value":"Bearer -","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query {\n    listLoyalties {\n          id\n      name\n      currency_value\n      points\n      owner_id\n      created_at\n      verification\n      expiration\n      status\n      image_url\n      tier {\n        id\n        name\n        min_spending_target\n        max_spending_target\n      }\n    }\n}","variables":""}},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"907cdabe-ba30-4154-b1b8-64bc40cc7f1d"},{"name":"Create Loyalty","id":"072570c4-d8dc-4c34-8106-a398927d455d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Access_Token","value":"oi7Sq_oeuDGfQn2x15jFrw","type":"text"},{"key":"Client","value":"qZzO-PlKcimYMLMlAQKSAg","type":"text"},{"key":"Uid","value":"ayo@loystar.co","type":"text"},{"key":"authorization","value":"Bearer -","type":"text"}],"body":{"mode":"graphql","graphql":{"query":" mutation {\n    createLoyalty(\n      name: \"string\",\n      image_url: \"string\",\n      currency_value: 100,\n      points: 10,\n      verification: true,\n      expiration: 101290,\n    ) {\n      id\n      name\n      image_url\n      currency_value\n      points\n      verification\n      expiration\n    }\n  }","variables":""}},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"072570c4-d8dc-4c34-8106-a398927d455d"},{"name":"Edit Loyalty","id":"8003f74a-2a72-4fb4-9fd5-efb184c1c158","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Access_Token","value":"oi7Sq_oeuDGfQn2x15jFrw","type":"text"},{"key":"Client","value":"qZzO-PlKcimYMLMlAQKSAg","type":"text"},{"key":"Uid","value":"ayo@loystar.co","type":"text"},{"key":"authorization","value":"Bearer -","type":"text"}],"body":{"mode":"graphql","graphql":{"query":" mutation {\n    editLoyalty(\n        id: \"d2b6f549-9331-4455-9283-6d0c7de3cfd8\",\n        data: {\n        currency_value: 1500\n        expiration: null\nimage_url: \"http://res.cloudinary.com/loystar/raw/upload/v1636718846/multi-level/dhesfhiyf06kqifwpckr\"\nname: \"My MultiLoyalty \"\npoints: 10\nverification: false\n        }\n    ) {\n      id\n      name\n      image_url\n      currency_value\n      points\n      verification\n      expiration\n    }\n  }","variables":""}},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"8003f74a-2a72-4fb4-9fd5-efb184c1c158"},{"name":"Activate Loyalty","id":"18431ac8-38fd-4961-b54f-f92fea005568","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Access_Token","value":"oi7Sq_oeuDGfQn2x15jFrw","type":"text"},{"key":"Client","value":"qZzO-PlKcimYMLMlAQKSAg","type":"text"},{"key":"Uid","value":"ayo@loystar.co","type":"text"},{"key":"authorization","value":"Bearer -","type":"text"}],"body":{"mode":"graphql","graphql":{"query":" mutation  {\n    activateLoyalty(id: \"d2b6f549-9331-4455-9283-6d0c7de3cfd8\") {\n      id\n    }\n  }","variables":""}},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"18431ac8-38fd-4961-b54f-f92fea005568"},{"name":"Deactivate Loyalty","id":"0340c477-bf7e-498b-ad62-f3c2e82f689e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Access_Token","value":"oi7Sq_oeuDGfQn2x15jFrw","type":"text"},{"key":"Client","value":"qZzO-PlKcimYMLMlAQKSAg","type":"text"},{"key":"Uid","value":"ayo@loystar.co","type":"text"},{"key":"authorization","value":"Bearer -","type":"text"}],"body":{"mode":"graphql","graphql":{"query":" mutation  {\n    deActivateLoyalty(id: \"d2b6f549-9331-4455-9283-6d0c7de3cfd8\") {\n      id\n    }\n  }","variables":""}},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"0340c477-bf7e-498b-ad62-f3c2e82f689e"},{"name":"Delete Loyalty","id":"6ac75c9f-d93f-4964-8b94-acbbde53cbb1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Access_Token","value":"oi7Sq_oeuDGfQn2x15jFrw","type":"text"},{"key":"Client","value":"qZzO-PlKcimYMLMlAQKSAg","type":"text"},{"key":"Uid","value":"ayo@loystar.co","type":"text"},{"key":"authorization","value":"Bearer -","type":"text"}],"body":{"mode":"graphql","graphql":{"query":" mutation  {\n    deleteLoyalty(id: \"d2b6f549-9331-4455-9283-6d0c7de3cfd8\") {\n      id\n    }\n  }","variables":""}},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"6ac75c9f-d93f-4964-8b94-acbbde53cbb1"},{"name":"Get Loyalty Details","id":"f429ec85-946f-45bd-a075-6e37acdd43ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Access_Token","value":"oi7Sq_oeuDGfQn2x15jFrw","type":"text"},{"key":"Client","value":"qZzO-PlKcimYMLMlAQKSAg","type":"text"},{"key":"Uid","value":"ayo@loystar.co","type":"text"},{"key":"authorization","value":"Bearer -","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"  query {\n      getLoyalty(id: \"d2b6f549-9331-4455-9283-6d0c7de3cfd8\") {\n      id\n      name\n      currency_value\n      points\n      is_owner\n      created_at\n      tier {\n        id\n        name\n        min_spending_target\n        max_spending_target\n        reward\n        is_reward_self\n        instruction\n        created_at\n      }\n    }\n  }","variables":""}},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"f429ec85-946f-45bd-a075-6e37acdd43ec"}],"id":"33106e95-7eb0-47c1-89da-57272d4fae2a","_postman_id":"33106e95-7eb0-47c1-89da-57272d4fae2a","description":""},{"name":"Tiers","item":[{"name":"Create Tier","id":"49d876d2-178f-4493-a7a8-08870588c720","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Access_Token","value":"oi7Sq_oeuDGfQn2x15jFrw","type":"text"},{"key":"Client","value":"qZzO-PlKcimYMLMlAQKSAg","type":"text"},{"key":"Uid","value":"ayo@loystar.co","type":"text"},{"key":"authorization","value":"Bearer -","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation {\n     createTier(\n      name: \"string\",\n      min_spending_target: 100,\n      max_spending_target: 1000,\n      is_reward_self: true,\n      reward: \"string\",\n      instruction: \"string\",\n      loyalty_id: \"string\",\n      partners_id: \"string\",\n    ) {\n      id\n      name\n      min_spending_target\n      max_spending_target\n      is_reward_self\n      range\n      reward\n      created_at\n      instruction\n    }\n}","variables":""}},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"49d876d2-178f-4493-a7a8-08870588c720"},{"name":"List Tiers","id":"2b9b0c06-3c8c-47db-be4f-7377f327ca94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Access_Token","value":"oi7Sq_oeuDGfQn2x15jFrw","type":"text"},{"key":"Client","value":"qZzO-PlKcimYMLMlAQKSAg","type":"text"},{"key":"Uid","value":"ayo@loystar.co","type":"text"},{"key":"authorization","value":"Bearer -","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query {\n     listTiers(loyalty_id: \"d2b6f549-9331-4455-9283-6d0c7de3cfd8\") {\n      id\n      name\n      min_spending_target\n      max_spending_target\n      is_reward_self\n      reward\n      instruction\n      range\n      tierPosition\n      created_at\n      customers {\n        id\n        customer_id\n        first_name\n        last_name\n        email\n        points {\n          id\n          points_value\n          expiry_date\n          loyalty_name\n          loyalty_id\n        }\n      }\n    }\n}","variables":""}},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"2b9b0c06-3c8c-47db-be4f-7377f327ca94"},{"name":"Delete Tier","id":"5d7293ba-933c-45fc-9802-f1753c2df0b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Access_Token","value":"oi7Sq_oeuDGfQn2x15jFrw","type":"text"},{"key":"Client","value":"qZzO-PlKcimYMLMlAQKSAg","type":"text"},{"key":"Uid","value":"ayo@loystar.co","type":"text"},{"key":"authorization","value":"Bearer -","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation {\n     deleteTier(id: \"15b89ac2-47b0-4ee1-b741-d29885e08e4e\") {\n      status\n      message\n    }\n}","variables":""}},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"5d7293ba-933c-45fc-9802-f1753c2df0b2"},{"name":"Edit Tier","id":"4887abdc-658e-4fc8-97f4-86b1453db640","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Access_Token","value":"oi7Sq_oeuDGfQn2x15jFrw","type":"text"},{"key":"Client","value":"qZzO-PlKcimYMLMlAQKSAg","type":"text"},{"key":"Uid","value":"ayo@loystar.co","type":"text"},{"key":"authorization","value":"Bearer -","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"mutation {\n     editTier(\n         id: \"15b89ac2-47b0-4ee1-b741-d29885e08e4e\",\n         data: {\n            name: \"string\",\n            min_spending_target: 100,\n            max_spending_target: 1000,\n            is_reward_self: true,\n            reward: \"string\",\n            instruction: \"string\",\n            partners_id: \"string\",\n         }\n    ) {\n        id\n        name\n        min_spending_target\n        max_spending_target\n        reward\n        range\n        customers {\n            id\n        }\n    }\n}","variables":""}},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"4887abdc-658e-4fc8-97f4-86b1453db640"},{"name":"Get Tier Details","id":"66a687dc-b176-40dd-9cf4-ec9c02d71fb4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Access_Token","value":"oi7Sq_oeuDGfQn2x15jFrw","type":"text"},{"key":"Client","value":"qZzO-PlKcimYMLMlAQKSAg","type":"text"},{"key":"Uid","value":"ayo@loystar.co","type":"text"},{"key":"authorization","value":"Bearer -","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"query {\n     getTier(id: \"15b89ac2-47b0-4ee1-b741-d29885e08e4e\") {\n        id\n        name\n        min_spending_target\n        max_spending_target\n        reward\n        instruction\n        range\n        customers {\n            id\n        }\n    }\n}","variables":""}},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"66a687dc-b176-40dd-9cf4-ec9c02d71fb4"}],"id":"4592c01d-8f1c-4816-a1a2-771a2a606c84","_postman_id":"4592c01d-8f1c-4816-a1a2-771a2a606c84","description":""},{"name":"Customers","item":[{"name":"List Customers","id":"012aeefb-069e-4bb7-b77a-d92765b7675f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Access_Token","value":"oi7Sq_oeuDGfQn2x15jFrw","type":"text"},{"key":"Client","value":"qZzO-PlKcimYMLMlAQKSAg","type":"text"},{"key":"Uid","value":"ayo@loystar.co","type":"text"},{"key":"authorization","value":"Bearer -","type":"text"}],"body":{"mode":"graphql","graphql":{"query":" query {\n    listCustomers {\n      id\n      customer_id\n      first_name\n      last_name\n      tiers {\n        id\n        name\n        reward\n        min_spending_target\n        max_spending_target\n      }\n      points {\n        id\n        points_value\n        expiry_date\n        loyalty_name\n      }\n    }\n  }","variables":""}},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"012aeefb-069e-4bb7-b77a-d92765b7675f"},{"name":"List Loyalty Customers","id":"0b026acb-2ca0-4ae4-afbf-49b3077fd38a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Access_Token","value":"oi7Sq_oeuDGfQn2x15jFrw","type":"text"},{"key":"Client","value":"qZzO-PlKcimYMLMlAQKSAg","type":"text"},{"key":"Uid","value":"ayo@loystar.co","type":"text"},{"key":"authorization","value":"Bearer -","type":"text"}],"body":{"mode":"graphql","graphql":{"query":" query {\n    listLoyaltyCustomers(loyalty_id: \"d2b6f549-9331-4455-9283-6d0c7de3cfd8\") {\n      id\n      customer_id\n      first_name\n      last_name\n      email\n      user_id\n    }\n  }","variables":""}},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"0b026acb-2ca0-4ae4-afbf-49b3077fd38a"},{"name":"List Tiered Customers","id":"3e456df9-7e97-4e31-a4fc-371ba0b6c9cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Access_Token","value":"oi7Sq_oeuDGfQn2x15jFrw","type":"text"},{"key":"Client","value":"qZzO-PlKcimYMLMlAQKSAg","type":"text"},{"key":"Uid","value":"ayo@loystar.co","type":"text"},{"key":"authorization","value":"Bearer -","type":"text"}],"body":{"mode":"graphql","graphql":{"query":" query {\n    listTieredCustomers {\n      id\n      customer_id\n      first_name\n      last_name\n      email\n      # address\n      created_at\n      points {\n        id\n        points_value\n        loyalty_id\n        expiry_date\n        loyalty_name\n      }\n      tiers {\n        id\n        name\n        min_spending_target\n        max_spending_target\n        reward\n        created_at\n      }\n    }\n  }","variables":""}},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"3e456df9-7e97-4e31-a4fc-371ba0b6c9cd"},{"name":"List Untiered Customers","id":"d885c503-e179-46b3-b614-f506e24f7d4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Access_Token","value":"oi7Sq_oeuDGfQn2x15jFrw","type":"text"},{"key":"Client","value":"qZzO-PlKcimYMLMlAQKSAg","type":"text"},{"key":"Uid","value":"ayo@loystar.co","type":"text"},{"key":"authorization","value":"Bearer -","type":"text"}],"body":{"mode":"graphql","graphql":{"query":" query {\n    listUntieredCustomers {\n      id\n      customer_id\n      first_name\n      last_name\n      email\n      phone_number\n      tiers {\n        name\n      }\n      points {\n        points_value\n      }\n      created_at\n    }\n  }","variables":""}},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"d885c503-e179-46b3-b614-f506e24f7d4b"},{"name":"List Unenrolled Members","id":"5a710bb2-63ea-4af0-9a7b-ec082ad6e9f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Access_Token","value":"oi7Sq_oeuDGfQn2x15jFrw","type":"text"},{"key":"Client","value":"qZzO-PlKcimYMLMlAQKSAg","type":"text"},{"key":"Uid","value":"ayo@loystar.co","type":"text"},{"key":"authorization","value":"Bearer -","type":"text"}],"body":{"mode":"graphql","graphql":{"query":" query {\n    listUnenrolledMembers {\n      id\n      customer_id\n      first_name\n      last_name\n      email\n      created_at\n    }\n  }","variables":""}},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"5a710bb2-63ea-4af0-9a7b-ec082ad6e9f3"},{"name":"Get Customer Details","id":"a85d3fd6-028f-491d-b407-68b67ebae0b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Access_Token","value":"oi7Sq_oeuDGfQn2x15jFrw","type":"text"},{"key":"Client","value":"qZzO-PlKcimYMLMlAQKSAg","type":"text"},{"key":"Uid","value":"ayo@loystar.co","type":"text"},{"key":"authorization","value":"Bearer -","type":"text"}],"body":{"mode":"graphql","graphql":{"query":" query {\n    customer: getCustomer(id: 62) {\n      id\n      customer_id\n      first_name\n      last_name\n      email\n      tiers {\n        name\n        min_spending_target\n        max_spending_target\n      }\n      points {\n        points_value\n        amount\n        expiry_date\n        loyalty_id\n        loyalty_name\n      }\n    }\n  }","variables":""}},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"a85d3fd6-028f-491d-b407-68b67ebae0b8"},{"name":"Edit Loyalty Customer","id":"7511e3c4-9482-4d4d-a8bf-c6ce3ccdd818","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Access_Token","value":"oi7Sq_oeuDGfQn2x15jFrw","type":"text"},{"key":"Client","value":"qZzO-PlKcimYMLMlAQKSAg","type":"text"},{"key":"Uid","value":"ayo@loystar.co","type":"text"},{"key":"authorization","value":"Bearer -","type":"text"}],"body":{"mode":"graphql","graphql":{"query":" mutation {\n    editCustomer(id: \"62\", data: {\n        first_name: \"string\",\n        last_name: \"string\",\n        email: \"string\"\n    }) {\n      id\n      first_name\n      last_name\n      email\n    }\n  }","variables":""}},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"7511e3c4-9482-4d4d-a8bf-c6ce3ccdd818"},{"name":"Enroll Customer With Amount Spent","id":"e155a5f4-3034-40dc-8732-d698fda8961a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Access_Token","value":"oi7Sq_oeuDGfQn2x15jFrw","type":"text"},{"key":"Client","value":"qZzO-PlKcimYMLMlAQKSAg","type":"text"},{"key":"Uid","value":"ayo@loystar.co","type":"text"},{"key":"authorization","value":"Bearer -","type":"text"}],"body":{"mode":"graphql","graphql":{"query":" mutation {\n    enrollCustomerWithAmountSpent(\n      loyalty_id: \"d2b6f549-9331-4455-9283-6d0c7de3cfd8\",\n      customer: {\n          customer_id: \"62\",\n          email: \"string\",\n          first_name: \"string\",\n          last_name: \"string\",\n      }\n      amount_spent: 120.123\n    ) {\n      id\n      customer_id\n      points {\n        points_value\n        expiry_date\n        loyalty_name\n      }\n      tiers {\n        name\n        min_spending_target\n        max_spending_target\n        reward\n      }\n    }\n  }","variables":""}},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"e155a5f4-3034-40dc-8732-d698fda8961a"},{"name":"Enroll Customer With Points","id":"f97dad6f-ce60-4e29-a701-96421987e504","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Access_Token","value":"oi7Sq_oeuDGfQn2x15jFrw","type":"text"},{"key":"Client","value":"qZzO-PlKcimYMLMlAQKSAg","type":"text"},{"key":"Uid","value":"ayo@loystar.co","type":"text"},{"key":"authorization","value":"Bearer -","type":"text"}],"body":{"mode":"graphql","graphql":{"query":" mutation {\n    enrollCustomerWithPoints(\n       loyalty_id: \"d2b6f549-9331-4455-9283-6d0c7de3cfd8\",\n      customerListId: [{\n          customer_id: \"62\",\n          email: \"string\",\n          first_name: \"string\",\n          last_name: \"string\",\n      }, {\n          customer_id: \"62\",\n          email: \"string\",\n          first_name: \"string\",\n          last_name: \"string\",\n      }, {\n          customer_id: \"62\",\n          email: \"string\",\n          first_name: \"string\",\n          last_name: \"string\",\n      }]\n      points: 100\n    ) {\n      id\n      customer_id\n      points {\n        points_value\n        expiry_date\n        loyalty_name\n      }\n      tiers {\n        name\n        min_spending_target\n        max_spending_target\n        reward\n      }\n    }\n  }","variables":""}},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"f97dad6f-ce60-4e29-a701-96421987e504"},{"name":"Enroll Customers Without Points","id":"6bf2a76c-f39d-443d-94d1-c295c0a694bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Access_Token","value":"oi7Sq_oeuDGfQn2x15jFrw","type":"text"},{"key":"Client","value":"qZzO-PlKcimYMLMlAQKSAg","type":"text"},{"key":"Uid","value":"ayo@loystar.co","type":"text"},{"key":"authorization","value":"Bearer -","type":"text"}],"body":{"mode":"graphql","graphql":{"query":" mutation {\n    enrollCustomerWithoutPoints(\n       loyalty_id: \"d2b6f549-9331-4455-9283-6d0c7de3cfd8\",\n       customerListId: [{\n          customer_id: \"62\",\n          email: \"string\",\n          first_name: \"string\",\n          last_name: \"string\",\n      }, {\n          customer_id: \"62\",\n          email: \"string\",\n          first_name: \"string\",\n          last_name: \"string\",\n      }, {\n          customer_id: \"62\",\n          email: \"string\",\n          first_name: \"string\",\n          last_name: \"string\",\n      }]\n    ) {\n      id\n      customer_id\n      points {\n        points_value\n        expiry_date\n        loyalty_name\n      }\n      tiers {\n        name\n        min_spending_target\n        max_spending_target\n        reward\n      }\n    }\n  }","variables":""}},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"6bf2a76c-f39d-443d-94d1-c295c0a694bb"},{"name":"Delete Customer","id":"63add7f8-e412-42e2-916c-ee0bb0f20c79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Access_Token","value":"oi7Sq_oeuDGfQn2x15jFrw","type":"text"},{"key":"Client","value":"qZzO-PlKcimYMLMlAQKSAg","type":"text"},{"key":"Uid","value":"ayo@loystar.co","type":"text"},{"key":"authorization","value":"Bearer -","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"  mutation {\n    deleteCustomer(id: \"61982\") {\n      id\n      status\n      message\n    }\n  }","variables":""}},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"63add7f8-e412-42e2-916c-ee0bb0f20c79"},{"name":"Redeem Customer Points","id":"4cad8191-9eef-40b8-a38f-0222b289b90e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Access_Token","value":"oi7Sq_oeuDGfQn2x15jFrw","type":"text"},{"key":"Client","value":"qZzO-PlKcimYMLMlAQKSAg","type":"text"},{"key":"Uid","value":"ayo@loystar.co","type":"text"},{"key":"authorization","value":"Bearer -","type":"text"}],"body":{"mode":"graphql","graphql":{"query":"  mutation {\n    redeemCustomerPoints(\n      amount: 2.882,\n      loyalty_id: \"d2b6f549-9331-4455-9283-6d0c7de3cfd8\",\n      customer_id: 62\n    ) {\n      id\n      first_name\n      last_name\n      email\n      tiers {\n        name\n      }\n      points {\n        points_value\n        expiry_date\n        loyalty_name\n      }\n    }\n  }","variables":""}},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"4cad8191-9eef-40b8-a38f-0222b289b90e"},{"name":"Add Customer/User","id":"31d54747-d3f8-4b9e-bbdd-abfbc4884f44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"client","value":"y-Tu0WZzwf8NUQ1tt5ypDQ"},{"key":"uid","value":"renda@loystar.co"},{"key":"access-token","value":"-gmhW3-J7J7t4aPcVjdgYw"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n\t\r\n  \"data\": {\r\n\r\n\t\t\"first_name\": \"T9  Hanis\",\r\n\t    \"last_name\": \"\",\r\n\t    \"phone_number\": \"+234803709932425\",\r\n\t    \"email\": \"pwadio0oeino@yahoo.com\",\r\n\t    \"date_of_birth\": \"\",\r\n\t    \"sex\": \"-\",\r\n\t    \"address_line1\": \"4 Ikorodu Road\",\r\n\t    \"address_line2\": \"\",\r\n\t    \"state\": \"Lagos\",\r\n\t    \"country\": \"Nigeria\",\r\n\t    \"loyalty_id\":\"s3435\"\r\n\t}\r\n\r\n}"},"url":"https://mtier.loystar.co/graphql","urlObject":{"host":["https://mtier.loystar.co/graphql"],"query":[],"variable":[]}},"response":[],"_postman_id":"31d54747-d3f8-4b9e-bbdd-abfbc4884f44"}],"id":"93321e3d-678c-4c1d-b989-d14c2586fbb1","_postman_id":"93321e3d-678c-4c1d-b989-d14c2586fbb1","description":""}],"id":"7ade7cec-fb8f-4e29-9d95-366e71e1d236","_postman_id":"7ade7cec-fb8f-4e29-9d95-366e71e1d236","description":""},{"name":"Simple Loyalty Programs","item":[{"name":"Simple Point Loyalty","item":[{"name":"Create Simple Points Program","id":"653f6f99-c8e6-4cf0-bc82-b0fc77d848cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"access-token","value":"ObQ8VnkSrSuq6nlriiPP8g","type":"text"},{"key":"client","value":"4Wcr7f2viKE0mF_xtC75yA","type":"text"},{"key":"uid","value":"food@loystar.co","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"data\": {\r\n      \"name\": \"string\",\r\n      \"threshold\": 400000,\r\n      \"reward\": \"string\",\r\n      \"program_type\": \"SimplePoints\"\r\n    \r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api0.loystar.co/api/v2/merchant_loyalty_programs","urlObject":{"path":["api","v2","merchant_loyalty_programs"],"host":["https://api0.loystar.co"],"query":[],"variable":[]}},"response":[],"_postman_id":"653f6f99-c8e6-4cf0-bc82-b0fc77d848cd"},{"name":"Credit Simple Points Loyalty Transaction","id":"49e1b6f8-1e9d-457b-b7a1-8dd01860a7d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"access-token","value":"ObQ8VnkSrSuq6nlriiPP8g","type":"text"},{"key":"client","value":"4Wcr7f2viKE0mF_xtC75yA","type":"text"},{"key":"uid","value":"food@loystar.co","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"sale\": {\n\t\t\"is_paid_with_cash\": \"false\",\n\t\t\"is_paid_with_card\": \"true\",\n\t\t\"is_paid_with_mobile\": \"false\",\n        \"user_id\":61947,\n\t\t\"transactions\": [\n\t\t\t{\n\t\t\t\t\"points\": 100,\n\t\t\t\t\"user_id\":61947,\n                \"quantity\": 0,\n\t\t\t\t\"program_type\": \"SimplePoints\",\n\t\t\t\t\"amount\": 100, \n\t\t\t\t\"merchant_id\": 966,\n\t\t\t\t\"merchant_loyalty_program_id\": 1678\n\t\t\t}\n\t\t],\n        \"reference_code\": 169483742216412729232302 //Timestamp\n\n        \n\t}\n}","options":{"raw":{"language":"json"}}},"url":"https://api0.loystar.co/api/v2/sales/","urlObject":{"path":["api","v2","sales",""],"host":["https://api0.loystar.co"],"query":[],"variable":[]}},"response":[],"_postman_id":"49e1b6f8-1e9d-457b-b7a1-8dd01860a7d3"}],"id":"f14186b4-751b-49a2-9744-a2d03e33b9ce","_postman_id":"f14186b4-751b-49a2-9744-a2d03e33b9ce","description":""},{"name":"Stamp Loyalty Program","item":[{"name":"Create Stamp Program","id":"ad1b6a84-84cb-470b-8ed4-6591f24bbb54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"access-token","value":"ObQ8VnkSrSuq6nlriiPP8g","type":"text"},{"key":"client","value":"4Wcr7f2viKE0mF_xtC75yA","type":"text"},{"key":"uid","value":"food@loystar.co","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"data\": {\r\n    \"threshold\": 10, //no of stamps target\r\n    \"reward\": \"string\",\r\n    \"program_type\": \"StampsProgram\",\r\n    \"name\": \"string\"\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api0.loystar.co/api/v2/merchant_loyalty_programs","urlObject":{"path":["api","v2","merchant_loyalty_programs"],"host":["https://api0.loystar.co"],"query":[],"variable":[]}},"response":[],"_postman_id":"ad1b6a84-84cb-470b-8ed4-6591f24bbb54"},{"name":"Credit Stamp Points Loyalty Transaction","id":"7eb7a092-9aed-43a5-94ec-52f70e04520a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"access-token","value":"ObQ8VnkSrSuq6nlriiPP8g","type":"text"},{"key":"client","value":"4Wcr7f2viKE0mF_xtC75yA","type":"text"},{"key":"uid","value":"food@loystar.co","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"sale\": {\n\t\t\"is_paid_with_cash\": \"true\",\n\t\t\"is_paid_with_card\": \"false\",\n\t\t\"is_paid_with_mobile\": \"false\",\n        \"user_id\":61947,\n\t\t\"transactions\": [\n\t\t\t{\n\t\t\t\t\"stamps\": 5,\n\t\t\t\t\"user_id\":61947,\n                \"quantity\": 0,\n\t\t\t\t\"program_type\": \"StampsProgram\",\n\t\t\t\t\"amount\": 3200, \n\t\t\t\t\"merchant_id\": 966,\n\t\t\t\t\"merchant_loyalty_program_id\": 1677\n\t\t\t}\n\t\t],\n        \"reference_code\": 1694837421641729232302 //Timestamp\n\n        \n\t}\n}","options":{"raw":{"language":"json"}}},"url":"https://api0.loystar.co/api/v2/sales/","urlObject":{"path":["api","v2","sales",""],"host":["https://api0.loystar.co"],"query":[],"variable":[]}},"response":[],"_postman_id":"7eb7a092-9aed-43a5-94ec-52f70e04520a"}],"id":"7823d827-1f41-42e0-a6bf-b4020ed7573f","_postman_id":"7823d827-1f41-42e0-a6bf-b4020ed7573f","description":""},{"name":"Get Merchant Loyalty Programs","id":"eefdcd60-3b0d-42b0-b1f4-256972ab90d9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"access-token","value":"ObQ8VnkSrSuq6nlriiPP8g","type":"text"},{"key":"client","value":"4Wcr7f2viKE0mF_xtC75yA","type":"text"},{"key":"uid","value":"food@loystar.co","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://api0.loystar.co/api/v2/get_merchant_loyalty_programs_get_version","urlObject":{"path":["api","v2","get_merchant_loyalty_programs_get_version"],"host":["https://api0.loystar.co"],"query":[],"variable":[]}},"response":[],"_postman_id":"eefdcd60-3b0d-42b0-b1f4-256972ab90d9"},{"name":"Update Loyalty program","id":"c065722e-a9eb-45bc-a290-2e834fa3667e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"access-token","value":"ObQ8VnkSrSuq6nlriiPP8g","type":"text"},{"key":"client","value":"4Wcr7f2viKE0mF_xtC75yA","type":"text"},{"key":"uid","value":"food@loystar.co","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"data\": {\n      \"name\": \"qqqqqqq\",\n      \"threshold\": 525,\n      \"reward\": \"striddang\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"https://api0.loystar.co/api/v2/merchant_loyalty_programs/:id","urlObject":{"path":["api","v2","merchant_loyalty_programs",":id"],"host":["https://api0.loystar.co"],"query":[],"variable":[{"id":"7795e609-2ffa-4959-a299-01b4af28cd15","type":"any","value":"1678","key":"id"}]}},"response":[],"_postman_id":"c065722e-a9eb-45bc-a290-2e834fa3667e"},{"name":"Redeem Reward","id":"b26f127a-5224-495f-822b-4d82775f8242","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"access-token","value":"ObQ8VnkSrSuq6nlriiPP8g","type":"text"},{"key":"client","value":"4Wcr7f2viKE0mF_xtC75yA","type":"text"},{"key":"uid","value":"food@loystar.co","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"quantity\":0\n    }","options":{"raw":{"language":"json"}}},"url":"{{BASE_URL}}/api/v2/transactions/redeem_reward/:redemption_code/:customer_id/:loyalty_program_id","urlObject":{"path":["api","v2","transactions","redeem_reward",":redemption_code",":customer_id",":loyalty_program_id"],"host":["{{BASE_URL}}"],"query":[],"variable":[{"id":"48e94e78-c604-41c4-8325-6350c59cf06d","type":"any","value":"553a4f","key":"redemption_code"},{"id":"4efc4622-27f5-416c-9e0e-cf6c037f40a4","type":"any","value":"66003","key":"customer_id"},{"id":"496ec40d-db80-459f-b94b-f91a9aec07aa","type":"any","value":"1677","key":"loyalty_program_id"}]}},"response":[],"_postman_id":"b26f127a-5224-495f-822b-4d82775f8242"}],"id":"cf901cfd-9f54-4836-9916-4fa0a2c2c036","_postman_id":"cf901cfd-9f54-4836-9916-4fa0a2c2c036","description":""},{"name":"Whatsapp Referral Program","item":[{"name":"Create Referral","id":"6fc6c7dd-2987-421e-8963-a94148d4c450","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"merchant_id","value":"21609","type":"text"},{"key":"org_id","value":"7971","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Sam's Shoe Store\", //name should not contain words like referral, program, link\n  \"active\": true,\n  \"reward_type\": \"gifcard\", // switches to airtime, gifcard depending on what they pick\n  \"reward\": \"ref_gift_voucher\", //we using gift voucher for this\n  \"custom_template_name\": \"loy_afrique_custom\",\n  \"no_of_winners\": 2,\n  \"random\": false,\n  \"image\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/3/33/Cartoon_space_rocket.png/626px-Cartoon_space_rocket.png?20190222080929\",\n  \"share_message\": \"Join the fun and earn like me\",\n  \"optin_message\": \"I am here for the fun with Tom' pizza store\"\n}\n","options":{"raw":{"language":"json"}}},"url":"https://mtier.loystar.co//create_referal_program","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"8362ffac-237f-4a4b-a701-d0cd99c89cd8","id":"8362ffac-237f-4a4b-a701-d0cd99c89cd8","name":"Whatsapp Referral Program","type":"folder"}},"urlObject":{"path":["create_referal_program"],"host":["https://mtier.loystar.co/"],"query":[],"variable":[]}},"response":[{"id":"1cc83bc7-318b-40f9-a6fe-2f74f72ff591","name":"200-OK","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"program_name\": \"Africa Hack Raffle\",\n  \"description\": \"Winning a discount on our products\",\n  \"reward\": \"voucher\", // voucher, data, airtime or merchandise (drop down)\n  \"image\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/3/33/Cartoon_space_rocket.png/626px-Cartoon_space_rocket.png?20190222080929\",\n  \"loyalty_type\": \"raffle\", //either raffle or fastest fingers (drop down)\n  \"reward_amount\": 2000, // could be 1 shirt per winner, 2000N airtime per number and all\n  \"status\": \"active\", // or \"inactive\" based on your status options (drop down)\n  \"winner_pool\": 2, // or any number representing the size of the winner pool\n  \"instructions_to_redeem\": \"Instructions for redemption go here\"\n}\n","options":{"raw":{"language":"json"}}},"url":"{{url}}/event_loyalty_app"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"591"},{"key":"ETag","value":"W/\"24f-pwpEsuKJypgngDeGcFrQzU03Slk\""},{"key":"Date","value":"Fri, 17 Nov 2023 21:19:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"name\": \"Catey's kitchen referral\",\n        \"active\": true,\n        \"reward\": \"ref_gift_voucher\",\n        \"reward_type\": \"voucher\",\n        \"merchant_id\": \"21609\",\n        \"organisation_id\": \"7971\",\n        \"event_code\": \"bbd4c\",\n        \"deletedAt\": null,\n        \"id\": \"bbd4c2e9-f51d-47cf-8b60-35a5b0d717ef\",\n        \"createdAt\": \"2024-02-05T22:20:04.768Z\",\n        \"updatedAt\": \"2024-02-05T22:20:04.768Z\"\n    }\n}"}],"_postman_id":"6fc6c7dd-2987-421e-8963-a94148d4c450"},{"name":"Referral Program QR Code","id":"8a5f2c5b-5a09-419f-9fb4-31fe0bb63771","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"merchant_id","value":"21609","type":"text"},{"key":"org_id","value":"7971","type":"text"},{"key":"event_code","value":"3163d","type":"text"}],"url":"https://mtier.loystar.co//create_referal_qrcode","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"8362ffac-237f-4a4b-a701-d0cd99c89cd8","id":"8362ffac-237f-4a4b-a701-d0cd99c89cd8","name":"Whatsapp Referral Program","type":"folder"}},"urlObject":{"path":["create_referal_qrcode"],"host":["https://mtier.loystar.co/"],"query":[],"variable":[]}},"response":[{"id":"f0b03483-e1f5-4201-a1c8-e83e416c60a7","name":"200-OK","originalRequest":{"method":"POST","header":[],"url":"{{url}}/event_loyalty_app"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"591"},{"key":"ETag","value":"W/\"24f-pwpEsuKJypgngDeGcFrQzU03Slk\""},{"key":"Date","value":"Fri, 17 Nov 2023 21:19:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"https://stage.qrca.mp/geqgal\"\n}"}],"_postman_id":"8a5f2c5b-5a09-419f-9fb4-31fe0bb63771"},{"name":"Referral Program Details","id":"e95d67f1-0760-4d22-9f7e-12ba04a8474d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"merchant_id","value":"21609","type":"text"},{"key":"org_id","value":"7971","type":"text"},{"key":"event_code","value":"642a3","type":"text"}],"url":"https://mtier.loystar.co//referal_program_details","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"8362ffac-237f-4a4b-a701-d0cd99c89cd8","id":"8362ffac-237f-4a4b-a701-d0cd99c89cd8","name":"Whatsapp Referral Program","type":"folder"}},"urlObject":{"path":["referal_program_details"],"host":["https://mtier.loystar.co/"],"query":[],"variable":[]}},"response":[{"id":"2f76a62a-7983-4b7c-8bac-029c198a8420","name":"200-OK","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"program_name\": \"Africa Hack Raffle\",\n  \"description\": \"Winning a discount on our products\",\n  \"reward\": \"voucher\", // voucher, data, airtime or merchandise (drop down)\n  \"image\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/3/33/Cartoon_space_rocket.png/626px-Cartoon_space_rocket.png?20190222080929\",\n  \"loyalty_type\": \"raffle\", //either raffle or fastest fingers (drop down)\n  \"reward_amount\": 2000, // could be 1 shirt per winner, 2000N airtime per number and all\n  \"status\": \"active\", // or \"inactive\" based on your status options (drop down)\n  \"winner_pool\": 2, // or any number representing the size of the winner pool\n  \"instructions_to_redeem\": \"Instructions for redemption go here\"\n}\n","options":{"raw":{"language":"json"}}},"url":"{{url}}/event_loyalty_app"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"591"},{"key":"ETag","value":"W/\"24f-pwpEsuKJypgngDeGcFrQzU03Slk\""},{"key":"Date","value":"Fri, 17 Nov 2023 21:19:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"referrals\": 0,\n    \"data\": {\n        \"id\": \"bbd4c2e9-f51d-47cf-8b60-35a5b0d717ef\",\n        \"name\": \"Catey's kitchen referral\",\n        \"active\": true,\n        \"reward\": \"ref_gift_voucher\",\n        \"reward_type\": \"voucher\",\n        \"event_code\": \"bbd4c\",\n        \"merchant_id\": \"21609\",\n        \"organisation_id\": \"7971\",\n        \"createdAt\": \"2024-02-05T22:20:04.768Z\",\n        \"updatedAt\": \"2024-02-05T22:20:05.334Z\",\n        \"deletedAt\": null,\n        \"customer\": []\n    }\n}"}],"_postman_id":"e95d67f1-0760-4d22-9f7e-12ba04a8474d"},{"name":"Referral Program UUID","id":"4d140dd0-f40a-460b-a892-a67dc59d196f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"event_code","value":"642a3","type":"text"}],"url":"https://api0.loystar.co/referal_program_uuid","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"8362ffac-237f-4a4b-a701-d0cd99c89cd8","id":"8362ffac-237f-4a4b-a701-d0cd99c89cd8","name":"Whatsapp Referral Program","type":"folder"}},"urlObject":{"path":["referal_program_uuid"],"host":["https://api0.loystar.co"],"query":[],"variable":[]}},"response":[{"id":"d495fbf5-ead8-46ca-a72c-c89c56768ef1","name":"200-OK","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"program_name\": \"Africa Hack Raffle\",\n  \"description\": \"Winning a discount on our products\",\n  \"reward\": \"voucher\", // voucher, data, airtime or merchandise (drop down)\n  \"image\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/3/33/Cartoon_space_rocket.png/626px-Cartoon_space_rocket.png?20190222080929\",\n  \"loyalty_type\": \"raffle\", //either raffle or fastest fingers (drop down)\n  \"reward_amount\": 2000, // could be 1 shirt per winner, 2000N airtime per number and all\n  \"status\": \"active\", // or \"inactive\" based on your status options (drop down)\n  \"winner_pool\": 2, // or any number representing the size of the winner pool\n  \"instructions_to_redeem\": \"Instructions for redemption go here\"\n}\n","options":{"raw":{"language":"json"}}},"url":"{{url}}/event_loyalty_app"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"591"},{"key":"ETag","value":"W/\"24f-pwpEsuKJypgngDeGcFrQzU03Slk\""},{"key":"Date","value":"Fri, 17 Nov 2023 21:19:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"id\": \"bbd4c2e9-f51d-47cf-8b60-35a5b0d717ef\",\n        \"name\": \"Katey's kitchen referral\",\n        \"active\": true,\n        \"reward\": \"ref_gift_voucher\",\n        \"reward_type\": \"voucher\",\n        \"event_code\": \"bbd4c\",\n        \"merchant_id\": \"21609\",\n        \"organisation_id\": \"7971\",\n        \"createdAt\": \"2024-02-05T22:20:04.768Z\",\n        \"updatedAt\": \"2024-02-05T22:33:51.706Z\",\n        \"deletedAt\": null\n    }\n}"}],"_postman_id":"4d140dd0-f40a-460b-a892-a67dc59d196f"},{"name":"All Referral Program","id":"3d02224f-bfe9-4c17-bc43-ab2ff2ffbb54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"merchant_id","value":"21609","type":"text"},{"key":"org_id","value":"7971","type":"text"}],"url":"https://api0.loystar.co/all_referal_program","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"8362ffac-237f-4a4b-a701-d0cd99c89cd8","id":"8362ffac-237f-4a4b-a701-d0cd99c89cd8","name":"Whatsapp Referral Program","type":"folder"}},"urlObject":{"path":["all_referal_program"],"host":["https://api0.loystar.co"],"query":[],"variable":[]}},"response":[{"id":"6477f7af-9830-452e-8484-b49d8b0a449b","name":"200-OK","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"program_name\": \"Africa Hack Raffle\",\n  \"description\": \"Winning a discount on our products\",\n  \"reward\": \"voucher\", // voucher, data, airtime or merchandise (drop down)\n  \"image\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/3/33/Cartoon_space_rocket.png/626px-Cartoon_space_rocket.png?20190222080929\",\n  \"loyalty_type\": \"raffle\", //either raffle or fastest fingers (drop down)\n  \"reward_amount\": 2000, // could be 1 shirt per winner, 2000N airtime per number and all\n  \"status\": \"active\", // or \"inactive\" based on your status options (drop down)\n  \"winner_pool\": 2, // or any number representing the size of the winner pool\n  \"instructions_to_redeem\": \"Instructions for redemption go here\"\n}\n","options":{"raw":{"language":"json"}}},"url":"{{url}}/event_loyalty_app"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"591"},{"key":"ETag","value":"W/\"24f-pwpEsuKJypgngDeGcFrQzU03Slk\""},{"key":"Date","value":"Fri, 17 Nov 2023 21:19:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"id\": \"718f2842-7431-442b-8ed7-2b5a2e49375a\",\n            \"name\": \"Tom's pizza referral\",\n            \"active\": true,\n            \"reward\": \"points\",\n            \"reward_type\": \"ref_gift_voucher\",\n            \"event_code\": null,\n            \"merchant_id\": \"21609\",\n            \"organisation_id\": \"7971\",\n            \"createdAt\": \"2024-01-31T09:19:11.592Z\",\n            \"updatedAt\": \"2024-01-31T09:19:11.592Z\",\n            \"deletedAt\": null\n        },\n        {\n            \"id\": \"be0dd9ac-6b4a-4311-a72d-5e3232a6593a\",\n            \"name\": \"Catey's kitchen referral\",\n            \"active\": true,\n            \"reward\": \"points\",\n            \"reward_type\": \"ref_gift_voucher\",\n            \"event_code\": null,\n            \"merchant_id\": \"21609\",\n            \"organisation_id\": \"7971\",\n            \"createdAt\": \"2024-01-31T12:12:26.169Z\",\n            \"updatedAt\": \"2024-01-31T12:12:26.169Z\",\n            \"deletedAt\": null\n        },\n        {\n            \"id\": \"bbd4c2e9-f51d-47cf-8b60-35a5b0d717ef\",\n            \"name\": \"Catey's kitchen referral\",\n            \"active\": true,\n            \"reward\": \"ref_gift_voucher\",\n            \"reward_type\": \"voucher\",\n            \"event_code\": \"bbd4c\",\n            \"merchant_id\": \"21609\",\n            \"organisation_id\": \"7971\",\n            \"createdAt\": \"2024-02-05T22:20:04.768Z\",\n            \"updatedAt\": \"2024-02-05T22:20:05.334Z\",\n            \"deletedAt\": null\n        }\n    ]\n}"}],"_postman_id":"3d02224f-bfe9-4c17-bc43-ab2ff2ffbb54"},{"name":"Edit referral Program","id":"bde7d54f-969c-402d-9de4-7fe6dbd1cdbd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"merchant_id","value":"21609","type":"text"},{"key":"org_id","value":"7971","type":"text"},{"key":"id","value":"bbd4c2e9-f51d-47cf-8b60-35a5b0d717ef","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Join and Earn\", //name should not contain words like referral, program, link\n  \"active\": true,\n  \"reward_type\": \"gifcard\", // Yes, t is ommited. 'airtime' or 'gifcard', \n  \"reward\": \"ref_gift_voucher\", //we using gift voucher for this\n  \"no_of_winners\": 2,\n  \"random\": false, //Choose winners by random selection else choose top referrer.\n  \"image\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/3/33/Cartoon_space_rocket.png/626px-Cartoon_space_rocket.png?20190222080929\",\n  \"share_message\": \"Join the fun and earn like me\",\n  \"optin_message\": \"I am here for the fun with Tom' pizza store\"\n}\n","options":{"raw":{"language":"json"}}},"url":"https://mtier.loystar.co/edit_referal_program","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"8362ffac-237f-4a4b-a701-d0cd99c89cd8","id":"8362ffac-237f-4a4b-a701-d0cd99c89cd8","name":"Whatsapp Referral Program","type":"folder"}},"urlObject":{"host":["https://mtier.loystar.co/edit_referal_program"],"query":[],"variable":[]}},"response":[{"id":"f52717d3-2bec-4bca-ac68-4b170002c7b7","name":"200-OK","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"program_name\": \"Africa Hack Raffle\",\n  \"description\": \"Winning a discount on our products\",\n  \"reward\": \"voucher\", // voucher, data, airtime or merchandise (drop down)\n  \"image\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/3/33/Cartoon_space_rocket.png/626px-Cartoon_space_rocket.png?20190222080929\",\n  \"loyalty_type\": \"raffle\", //either raffle or fastest fingers (drop down)\n  \"reward_amount\": 2000, // could be 1 shirt per winner, 2000N airtime per number and all\n  \"status\": \"active\", // or \"inactive\" based on your status options (drop down)\n  \"winner_pool\": 2, // or any number representing the size of the winner pool\n  \"instructions_to_redeem\": \"Instructions for redemption go here\"\n}\n","options":{"raw":{"language":"json"}}},"url":"{{url}}/event_loyalty_app"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"591"},{"key":"ETag","value":"W/\"24f-pwpEsuKJypgngDeGcFrQzU03Slk\""},{"key":"Date","value":"Fri, 17 Nov 2023 21:19:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"id\": \"bbd4c2e9-f51d-47cf-8b60-35a5b0d717ef\",\n        \"name\": \"Katey's kitchen referral\",\n        \"active\": true,\n        \"reward\": \"ref_gift_voucher\",\n        \"reward_type\": \"points\",\n        \"event_code\": \"bbd4c\",\n        \"merchant_id\": \"21609\",\n        \"organisation_id\": \"7971\",\n        \"createdAt\": \"2024-02-05T22:20:04.768Z\",\n        \"updatedAt\": \"2024-02-05T22:20:05.334Z\",\n        \"deletedAt\": null\n    }\n}"}],"_postman_id":"bde7d54f-969c-402d-9de4-7fe6dbd1cdbd"},{"name":"Delete Referral Program","id":"edc76a5a-284d-43ae-a3d0-c4eb2e2b5915","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"merchant_id","value":"21609","type":"text"},{"key":"org_id","value":"7971","type":"text"},{"key":"id","value":"718f2842-7431-442b-8ed7-2b5a2e49375a","type":"text"}],"url":"https://api0.loystar.co/delete_referal_program","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"8362ffac-237f-4a4b-a701-d0cd99c89cd8","id":"8362ffac-237f-4a4b-a701-d0cd99c89cd8","name":"Whatsapp Referral Program","type":"folder"}},"urlObject":{"path":["delete_referal_program"],"host":["https://api0.loystar.co"],"query":[],"variable":[]}},"response":[{"id":"fe7b8cef-a4d3-4c3a-9fa7-4c30504510e7","name":"200-OK","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"program_name\": \"Africa Hack Raffle\",\n  \"description\": \"Winning a discount on our products\",\n  \"reward\": \"voucher\", // voucher, data, airtime or merchandise (drop down)\n  \"image\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/3/33/Cartoon_space_rocket.png/626px-Cartoon_space_rocket.png?20190222080929\",\n  \"loyalty_type\": \"raffle\", //either raffle or fastest fingers (drop down)\n  \"reward_amount\": 2000, // could be 1 shirt per winner, 2000N airtime per number and all\n  \"status\": \"active\", // or \"inactive\" based on your status options (drop down)\n  \"winner_pool\": 2, // or any number representing the size of the winner pool\n  \"instructions_to_redeem\": \"Instructions for redemption go here\"\n}\n","options":{"raw":{"language":"json"}}},"url":"{{url}}/event_loyalty_app"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"591"},{"key":"ETag","value":"W/\"24f-pwpEsuKJypgngDeGcFrQzU03Slk\""},{"key":"Date","value":"Fri, 17 Nov 2023 21:19:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"id\": \"718f2842-7431-442b-8ed7-2b5a2e49375a\",\n            \"name\": \"Tom's pizza referral\",\n            \"referer_point\": 10,\n            \"referee_point\": 10,\n            \"active\": true,\n            \"reward\": \"points\",\n            \"reward_type\": \"airtime\",\n            \"merchant_id\": \"21609\",\n            \"loyalty_id\": null,\n            \"program_id\": null,\n            \"organisation_id\": \"7971\",\n            \"createdAt\": \"2024-01-31T09:19:11.592Z\",\n            \"updatedAt\": \"2024-01-31T09:19:11.592Z\",\n            \"deletedAt\": null\n        },\n        {\n            \"id\": \"9b088929-01cc-4bf9-b891-ebfd7859fa9c\",\n            \"name\": \"Catey's kitchen referral\",\n            \"referer_point\": 10,\n            \"referee_point\": 10,\n            \"active\": true,\n            \"reward\": \"points\",\n            \"reward_type\": \"airtime\",\n            \"merchant_id\": \"21609\",\n            \"loyalty_id\": null,\n            \"program_id\": null,\n            \"organisation_id\": \"7971\",\n            \"createdAt\": \"2024-01-31T09:32:42.871Z\",\n            \"updatedAt\": \"2024-01-31T09:32:42.871Z\",\n            \"deletedAt\": null\n        }\n    ]\n}"}],"_postman_id":"edc76a5a-284d-43ae-a3d0-c4eb2e2b5915"},{"name":"Referral Program Winners","id":"d0fa7900-f247-4517-8bb1-4c6d1b549ef5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"merchant_id","value":"21609","type":"text"},{"key":"org_id","value":"7971","type":"text"},{"key":"event_code","value":"f96de","type":"text"},{"key":"api_key","value":"<Insert API Key>","type":"text"}],"url":"https://mtier.loystar.co//referral_winners","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"8362ffac-237f-4a4b-a701-d0cd99c89cd8","id":"8362ffac-237f-4a4b-a701-d0cd99c89cd8","name":"Whatsapp Referral Program","type":"folder"}},"urlObject":{"path":["referral_winners"],"host":["https://mtier.loystar.co/"],"query":[],"variable":[]}},"response":[],"_postman_id":"d0fa7900-f247-4517-8bb1-4c6d1b549ef5"},{"name":"Referral Program participants","id":"0ab12305-81c5-4a2f-b447-c2e3e7bb1e72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"merchant_id","value":"21609","type":"text"},{"key":"org_id","value":"7971","type":"text"},{"key":"event_code","value":"f96de","type":"text"}],"url":"https://mtier.loystar.co//referral_participants","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"8362ffac-237f-4a4b-a701-d0cd99c89cd8","id":"8362ffac-237f-4a4b-a701-d0cd99c89cd8","name":"Whatsapp Referral Program","type":"folder"}},"urlObject":{"path":["referral_participants"],"host":["https://mtier.loystar.co/"],"query":[],"variable":[]}},"response":[],"_postman_id":"0ab12305-81c5-4a2f-b447-c2e3e7bb1e72"},{"name":"Remove Referral participants","id":"4e9ee48b-88a2-4ab6-8ab8-7fedc52e8aa8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"merchant_id","value":"21609","type":"text"},{"key":"org_id","value":"7971","type":"text"},{"key":"event_code","value":"f96de","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Customer x\",\n    \"phone_no\": \"+23480231003\"\n}","options":{"raw":{"language":"json"}}},"url":"https://mtier.loystar.co/referral_participants","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"8362ffac-237f-4a4b-a701-d0cd99c89cd8","id":"8362ffac-237f-4a4b-a701-d0cd99c89cd8","name":"Whatsapp Referral Program","type":"folder"}},"urlObject":{"host":["https://mtier.loystar.co/referral_participants"],"query":[],"variable":[]}},"response":[],"_postman_id":"4e9ee48b-88a2-4ab6-8ab8-7fedc52e8aa8"},{"name":"Website - Referral Program Details","id":"f05ec368-7b01-43a6-a16d-4acf954ed088","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"event_code","value":"fe73b","type":"text"}],"url":"https://mtier.loystar.co/referral_details_code","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"8362ffac-237f-4a4b-a701-d0cd99c89cd8","id":"8362ffac-237f-4a4b-a701-d0cd99c89cd8","name":"Whatsapp Referral Program","type":"folder"}},"urlObject":{"host":["https://mtier.loystar.co/referral_details_code"],"query":[],"variable":[]}},"response":[{"id":"b5716920-0bd1-4579-826d-e007fb1474d9","name":"200-OK","originalRequest":{"method":"GET","header":[{"key":"event_code","value":"fe73b","type":"text"}],"url":"https://api0.loystar.co/referral_details_code"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"940"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 10 Apr 2024 17:20:12 GMT"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"3ac-6SZig6j+ZtrhZAuj6fmfh9TmFoI\""},{"key":"request-context","value":"appId=cid-v1:"},{"key":"X-Powered-By","value":"Express"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"referrals\": 1,\n    \"data\": {\n        \"id\": \"fe73be72-0025-4717-b7eb-00318f1f25dc\",\n        \"name\": \"Pete's Peting Store\",\n        \"active\": true,\n        \"reward\": \"ref_gift_voucher\",\n        \"custom_template_name\": null,\n        \"reward_type\": \"gifcard\",\n        \"event_code\": \"fe73b\",\n        \"image\": \"https://upload.wikimedia.org/wikipedia/commons/thumb/3/33/Cartoon_space_rocket.png/626px-Cartoon_space_rocket.png?20190222080929\",\n        \"merchant_id\": \"21609\",\n        \"no_of_winners\": 2,\n        \"random\": false,\n        \"optin_message\": \"I am here for the fun with Petes Peting Store\",\n        \"share_message\": \"Got a free puppy, come get yours\",\n        \"organisation_id\": \"7971\",\n        \"createdAt\": \"2024-04-10T16:50:42.248Z\",\n        \"updatedAt\": \"2024-04-10T16:50:42.628Z\",\n        \"deletedAt\": null,\n        \"customer\": [\n            {\n                \"id\": \"47d2c873-03b7-4506-9a80-f62dba562162\",\n                \"name\": \"Adesayo\",\n                \"phone_no\": \"+2349034462164\",\n                \"no_of_referrals\": 1,\n                \"active\": true,\n                \"merchant_id\": \"21609\",\n                \"referral_code\": \"ref-bcktmy\",\n                \"createdAt\": \"2024-04-10T16:51:34.708Z\",\n                \"updatedAt\": \"2024-04-10T17:18:43.192Z\",\n                \"deletedAt\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"f05ec368-7b01-43a6-a16d-4acf954ed088"}],"id":"8362ffac-237f-4a4b-a701-d0cd99c89cd8","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"1d097ba5-4152-4ca6-93c3-6f85e7b4752f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"252941ea-6077-4a6d-9454-8713e4ca2832","type":"text/javascript","exec":[""]}}],"_postman_id":"8362ffac-237f-4a4b-a701-d0cd99c89cd8","description":""}],"event":[{"listen":"prerequest","script":{"id":"2b18ba6c-346d-47f6-81d7-8cb550df1079","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7c5a31b2-618b-45f6-9ccd-607604480d47","type":"text/javascript","exec":[""]}}],"variable":[{"key":"base_url","value":"https://api0.loystar.co"},{"key":"mtier_base_url","value":"https://mtier.loystar.co/"},{"key":"mtier_token","value":"-"},{"key":"MTIER_BASE_URL","value":"https://mtier2.loystar.co/","type":"string"}]}