{"info":{"_postman_id":"e90dc5ac-a883-47b2-8d9d-f72f87b10cbb","name":"Reseller Public API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"23443351","collectionId":"e90dc5ac-a883-47b2-8d9d-f72f87b10cbb","publishedId":"2sB2cShPhS","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-04-03T10:32:53.000Z"},"item":[{"name":"Products","item":[{"name":"Get Products/Services and Categories","id":"7fdc0833-9937-42cc-a652-c1d0d2706cdb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://{{API_URL}}/api/reseller/v1/products","description":"<p>Retrieve a list of available products, their categories, pricing, and required transaction details.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{vault:authorization-secret}}"}]},"isInherited":true,"source":{"_postman_id":"e90dc5ac-a883-47b2-8d9d-f72f87b10cbb","id":"e90dc5ac-a883-47b2-8d9d-f72f87b10cbb","name":"Reseller Public API","type":"collection"}},"urlObject":{"protocol":"http","path":["api","reseller","v1","products"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7fdc0833-9937-42cc-a652-c1d0d2706cdb"}],"id":"56a640e4-5c6d-45e6-b0e1-6493e49aa1fb","_postman_id":"56a640e4-5c6d-45e6-b0e1-6493e49aa1fb","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{vault:authorization-secret}}"}]},"isInherited":true,"source":{"_postman_id":"e90dc5ac-a883-47b2-8d9d-f72f87b10cbb","id":"e90dc5ac-a883-47b2-8d9d-f72f87b10cbb","name":"Reseller Public API","type":"collection"}}},{"name":"Retrieve Account Information","item":[{"name":"Get Account Info","id":"eb4c812a-91db-4db6-8755-eb92ecb612e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://{{API_URL}}/api/reseller/v1/account","description":"<p>Fetch details about the account, including balance, currency, and account holder information.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{vault:authorization-secret}}"}]},"isInherited":true,"source":{"_postman_id":"e90dc5ac-a883-47b2-8d9d-f72f87b10cbb","id":"e90dc5ac-a883-47b2-8d9d-f72f87b10cbb","name":"Reseller Public API","type":"collection"}},"urlObject":{"protocol":"http","path":["api","reseller","v1","account"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"eb4c812a-91db-4db6-8755-eb92ecb612e1"}],"id":"a85d8f27-82d7-4c3b-a64c-7a29d280486a","_postman_id":"a85d8f27-82d7-4c3b-a64c-7a29d280486a","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{vault:authorization-secret}}"}]},"isInherited":true,"source":{"_postman_id":"e90dc5ac-a883-47b2-8d9d-f72f87b10cbb","id":"e90dc5ac-a883-47b2-8d9d-f72f87b10cbb","name":"Reseller Public API","type":"collection"}}},{"name":"Order","item":[{"name":"Get Order Details","id":"5439efef-21e1-471f-8e5a-af37a996bf3a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{PROTOCOL}}://{{API_URL}}/api/reseller/v1/order?order_uuid=E121110144452240","description":"<p>Retrieve detailed information about a specific order using its unique identifier.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{vault:authorization-secret}}"}]},"isInherited":true,"source":{"_postman_id":"e90dc5ac-a883-47b2-8d9d-f72f87b10cbb","id":"e90dc5ac-a883-47b2-8d9d-f72f87b10cbb","name":"Reseller Public API","type":"collection"}},"urlObject":{"protocol":"{{PROTOCOL}}","path":["api","reseller","v1","order"],"host":["{{API_URL}}"],"query":[{"key":"order_uuid","value":"E121110144452240"}],"variable":[]}},"response":[],"_postman_id":"5439efef-21e1-471f-8e5a-af37a996bf3a"},{"name":"Place New Order","event":[{"listen":"prerequest","script":{"id":"959a7cba-3918-44be-81fe-028426e50d8b","exec":[""],"type":"text/javascript","packages":{}}}],"id":"d40fc08b-d823-4208-b69b-1c05a0370e9b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"[\n    {\n        \"product_uuid\": \"dd44ccc4-9139-11ef-9b79-11111111111\",\n        \"fields\": [\n            {\n                \"feedback_url\": \"https://example.com?action=feedback&order_id=112233\",\n                \"refrance_id\" : \"112233\",\n                \"IMEI\": \"423123412342387\",\n                \"Quantity\": 1\n            },\n            {\n                \"feedback_url\": \"https://example.com?action=feedback&order_id=112233\",\n                \"IMEI\": \"423123412342387\",\n                \"Quantity\": 1\n            }\n        ]\n    },\n    {\n        \"product_uuid\": \"dd44ccc4-9139-11ef-9b79-222222222222\",\n        \"fields\": [\n            {\n                \"feedback_url\": \"https://example.com?action=feedback&order_id=112233\",\n                \"Email\": \"342534523453459\",\n                \"Quantity\": 1\n            }\n        ]\n    }\n]"},"url":"{{PROTOCOL}}://{{API_URL}}/api/reseller/v1/order","description":"<p>Add OrderSubmit a new order by specifying product details, required fields, and optional parameters.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{vault:authorization-secret}}"}]},"isInherited":true,"source":{"_postman_id":"e90dc5ac-a883-47b2-8d9d-f72f87b10cbb","id":"e90dc5ac-a883-47b2-8d9d-f72f87b10cbb","name":"Reseller Public API","type":"collection"}},"urlObject":{"protocol":"{{PROTOCOL}}","path":["api","reseller","v1","order"],"host":["{{API_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d40fc08b-d823-4208-b69b-1c05a0370e9b"}],"id":"acc11800-93e7-4084-a58e-afb5c0cb7ba9","_postman_id":"acc11800-93e7-4084-a58e-afb5c0cb7ba9","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{vault:authorization-secret}}"}]},"isInherited":true,"source":{"_postman_id":"e90dc5ac-a883-47b2-8d9d-f72f87b10cbb","id":"e90dc5ac-a883-47b2-8d9d-f72f87b10cbb","name":"Reseller Public API","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{vault:authorization-secret}}"}]}},"event":[{"listen":"prerequest","script":{"type":"text/javascript","packages":{},"exec":["function generateValidIMEI() {","    // Generate the first 14 digits randomly","    const base = Array.from({ length: 14 }, () => Math.floor(Math.random() * 10)).join('');","","    // Calculate the checksum using the Luhn algorithm","    let sum = 0;","    for (let i = 0; i < base.length; i++) {","        let digit = parseInt(base[i], 10);","        if (i % 2 !== 0) { // Double every second digit","            digit *= 2;","            if (digit > 9) digit -= 9; // Subtract 9 from numbers greater than 9","        }","        sum += digit;","    }","    const checkDigit = (10 - (sum % 10)) % 10; // Calculate the checksum digit","","    // Return the full 15-digit IMEI","    return base + checkDigit;","}","","// Set the generated IMEI as a variable","pm.variables.set(\"randomIMEI\", generateValidIMEI());"],"id":"bf2f868c-6c51-445b-8e9b-8d9c59410558"}},{"listen":"test","script":{"type":"text/javascript","packages":{},"exec":[""],"id":"c018ab20-ea17-4635-904a-64277011282a"}}]}