{
    "info": {
        "_postman_id": "microcrm-waba-api_6a85d0f49f0128.09343100",
        "name": "MicroCRM WABA - API",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
        "description": "MicroCRM WABA External API (OpenAPI-driven tester).",
        "version": "1.0.0"
    },
    "variable": [
        {
            "key": "baseUrl",
            "value": "https://waba.microcrm.in/external-api"
        },
        {
            "key": "client_id",
            "value": ""
        },
        {
            "key": "client_secret",
            "value": ""
        },
        {
            "key": "contactId",
            "value": "1"
        },
        {
            "key": "conversationId",
            "value": "1"
        },
        {
            "key": "page",
            "value": "1"
        },
        {
            "key": "paginate",
            "value": "20"
        },
        {
            "key": "search",
            "value": ""
        },
        {
            "key": "status",
            "value": ""
        }
    ],
    "item": [
        {
            "name": "Contact",
            "item": [
                {
                    "name": "Contact List",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "client-id",
                                "value": "{{client_id}}",
                                "type": "text"
                            },
                            {
                                "key": "client-secret",
                                "value": "{{client_secret}}",
                                "type": "text"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/contact/list?page={{page}}&paginate={{paginate}}&search={{search}}",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "contact",
                                "list"
                            ],
                            "query": [
                                {
                                    "key": "page",
                                    "value": "1"
                                },
                                {
                                    "key": "paginate",
                                    "value": "20"
                                },
                                {
                                    "key": "search",
                                    "value": ""
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Create Contact",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "client-id",
                                "value": "{{client_id}}",
                                "type": "text"
                            },
                            {
                                "key": "client-secret",
                                "value": "{{client_secret}}",
                                "type": "text"
                            }
                        ],
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "firstname",
                                    "value": "John"
                                },
                                {
                                    "key": "lastname",
                                    "value": "Doe"
                                },
                                {
                                    "key": "mobile_code",
                                    "value": "91"
                                },
                                {
                                    "key": "mobile",
                                    "value": "9999999999"
                                },
                                {
                                    "key": "city",
                                    "value": ""
                                },
                                {
                                    "key": "address",
                                    "value": ""
                                }
                            ]
                        },
                        "url": {
                            "raw": "{{baseUrl}}/contact/store",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "contact",
                                "store"
                            ]
                        }
                    }
                },
                {
                    "name": "Update Contact",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "client-id",
                                "value": "{{client_id}}",
                                "type": "text"
                            },
                            {
                                "key": "client-secret",
                                "value": "{{client_secret}}",
                                "type": "text"
                            }
                        ],
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "firstname",
                                    "value": "John"
                                },
                                {
                                    "key": "lastname",
                                    "value": "Doe"
                                },
                                {
                                    "key": "mobile_code",
                                    "value": "91"
                                },
                                {
                                    "key": "mobile",
                                    "value": "9999999999"
                                }
                            ]
                        },
                        "url": {
                            "raw": "{{baseUrl}}/contact/update/{{contactId}}",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "contact",
                                "update",
                                "{{contactId}}"
                            ]
                        }
                    }
                },
                {
                    "name": "Delete Contact",
                    "request": {
                        "method": "DELETE",
                        "header": [
                            {
                                "key": "client-id",
                                "value": "{{client_id}}",
                                "type": "text"
                            },
                            {
                                "key": "client-secret",
                                "value": "{{client_secret}}",
                                "type": "text"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/contact/delete/{{contactId}}",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "contact",
                                "delete",
                                "{{contactId}}"
                            ]
                        }
                    }
                }
            ]
        },
        {
            "name": "Inbox",
            "item": [
                {
                    "name": "Conversation List",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "client-id",
                                "value": "{{client_id}}",
                                "type": "text"
                            },
                            {
                                "key": "client-secret",
                                "value": "{{client_secret}}",
                                "type": "text"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/inbox/conversation-list?status={{status}}&page={{page}}&paginate={{paginate}}",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "inbox",
                                "conversation-list"
                            ],
                            "query": [
                                {
                                    "key": "status",
                                    "value": ""
                                },
                                {
                                    "key": "page",
                                    "value": "1"
                                },
                                {
                                    "key": "paginate",
                                    "value": "20"
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Conversation Messages",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "client-id",
                                "value": "{{client_id}}",
                                "type": "text"
                            },
                            {
                                "key": "client-secret",
                                "value": "{{client_secret}}",
                                "type": "text"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/inbox/conversation-messages/{{conversationId}}",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "inbox",
                                "conversation-messages",
                                "{{conversationId}}"
                            ]
                        }
                    }
                },
                {
                    "name": "Conversation Details",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "client-id",
                                "value": "{{client_id}}",
                                "type": "text"
                            },
                            {
                                "key": "client-secret",
                                "value": "{{client_secret}}",
                                "type": "text"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/inbox/conversation-details/{{conversationId}}",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "inbox",
                                "conversation-details",
                                "{{conversationId}}"
                            ]
                        }
                    }
                },
                {
                    "name": "Change Conversation Status",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "client-id",
                                "value": "{{client_id}}",
                                "type": "text"
                            },
                            {
                                "key": "client-secret",
                                "value": "{{client_secret}}",
                                "type": "text"
                            }
                        ],
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "status",
                                    "value": "2"
                                }
                            ]
                        },
                        "url": {
                            "raw": "{{baseUrl}}/inbox/change-conversation-status/{{conversationId}}",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "inbox",
                                "change-conversation-status",
                                "{{conversationId}}"
                            ]
                        }
                    }
                },
                {
                    "name": "Send Message",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "client-id",
                                "value": "{{client_id}}",
                                "type": "text"
                            },
                            {
                                "key": "client-secret",
                                "value": "{{client_secret}}",
                                "type": "text"
                            }
                        ],
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "mobile_code",
                                    "value": "91"
                                },
                                {
                                    "key": "mobile",
                                    "value": "9999999999"
                                },
                                {
                                    "key": "message",
                                    "value": "Hello world"
                                },
                                {
                                    "key": "from_number",
                                    "value": ""
                                }
                            ]
                        },
                        "url": {
                            "raw": "{{baseUrl}}/inbox/send-message",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "inbox",
                                "send-message"
                            ]
                        }
                    }
                },
                {
                    "name": "Template List",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "client-id",
                                "value": "{{client_id}}",
                                "type": "text"
                            },
                            {
                                "key": "client-secret",
                                "value": "{{client_secret}}",
                                "type": "text"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/inbox/template-list",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "inbox",
                                "template-list"
                            ]
                        }
                    }
                },
                {
                    "name": "Send Template (Simple)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "client-id",
                                "value": "{{client_id}}",
                                "type": "text"
                            },
                            {
                                "key": "client-secret",
                                "value": "{{client_secret}}",
                                "type": "text"
                            }
                        ],
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "mobile_code",
                                    "value": "91"
                                },
                                {
                                    "key": "mobile",
                                    "value": "9999999999"
                                },
                                {
                                    "key": "template_id",
                                    "value": ""
                                },
                                {
                                    "key": "from_number",
                                    "value": ""
                                },
                                {
                                    "key": "body_variables[0]",
                                    "value": "John"
                                },
                                {
                                    "key": "body_variables[1]",
                                    "value": "Order #1234"
                                }
                            ]
                        },
                        "url": {
                            "raw": "{{baseUrl}}/inbox/send-template-message",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "inbox",
                                "send-template-message"
                            ]
                        }
                    }
                },
                {
                    "name": "Send Template (Header + Body)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "client-id",
                                "value": "{{client_id}}",
                                "type": "text"
                            },
                            {
                                "key": "client-secret",
                                "value": "{{client_secret}}",
                                "type": "text"
                            }
                        ],
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "mobile_code",
                                    "value": "91"
                                },
                                {
                                    "key": "mobile",
                                    "value": "9999999999"
                                },
                                {
                                    "key": "template_id",
                                    "value": ""
                                },
                                {
                                    "key": "from_number",
                                    "value": ""
                                },
                                {
                                    "key": "header_media_url",
                                    "value": "https://example.com/promo-banner.jpg"
                                },
                                {
                                    "key": "header_media_type",
                                    "value": "image"
                                },
                                {
                                    "key": "body_variables[0]",
                                    "value": "John"
                                },
                                {
                                    "key": "body_variables[1]",
                                    "value": "Order #1234"
                                }
                            ]
                        },
                        "url": {
                            "raw": "{{baseUrl}}/inbox/send-template-message",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "inbox",
                                "send-template-message"
                            ]
                        }
                    }
                },
                {
                    "name": "Send Template (Order Details)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "client-id",
                                "value": "{{client_id}}",
                                "type": "text"
                            },
                            {
                                "key": "client-secret",
                                "value": "{{client_secret}}",
                                "type": "text"
                            }
                        ],
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "mobile_code",
                                    "value": "91"
                                },
                                {
                                    "key": "mobile",
                                    "value": "9999999999"
                                },
                                {
                                    "key": "template_id",
                                    "value": ""
                                },
                                {
                                    "key": "configuration_name",
                                    "value": "your_payment_config_name"
                                },
                                {
                                    "key": "item_name",
                                    "value": "Premium Subscription"
                                },
                                {
                                    "key": "amount",
                                    "value": "499.00"
                                },
                                {
                                    "key": "goods_type",
                                    "value": "digital-goods"
                                },
                                {
                                    "key": "reference_id",
                                    "value": "ORD-2024-001"
                                },
                                {
                                    "key": "quick_pay",
                                    "value": "1"
                                },
                                {
                                    "key": "body_variables[0]",
                                    "value": "John"
                                },
                                {
                                    "key": "body_variables[1]",
                                    "value": "Order #1234"
                                }
                            ]
                        },
                        "url": {
                            "raw": "{{baseUrl}}/inbox/send-template-message",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "inbox",
                                "send-template-message"
                            ]
                        }
                    }
                }
            ]
        }
    ]
}