{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "https:\/\/api-sandbox.ltbfinancecoop.com"
        }
    ],
    "info": {
        "name": "LTB Sandbox Backend API Documentation",
        "_postman_id": "a50468f0-bd4d-4a49-a8c7-896b51ff62a2",
        "description": "",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "Auth",
            "description": "",
            "item": [
                {
                    "name": "Cr\u00e9ation de compte",
                    "description": "",
                    "item": [
                        {
                            "name": "Cr\u00e9er un compte utilisateur",
                            "request": {
                                "url": {
                                    "host": "{{baseUrl}}",
                                    "path": "api\/auth\/register",
                                    "query": [],
                                    "raw": "{{baseUrl}}\/api\/auth\/register"
                                },
                                "method": "POST",
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application\/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application\/json"
                                    }
                                ],
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\"firstname\":\"architecto\",\"lastname\":\"architecto\",\"email\":\"zbailey@example.net\",\"password\":\"|]|{+-\",\"birthdate\":\"architecto\",\"phone\":\"architecto\",\"address\":\"architecto\"}"
                                },
                                "description": "",
                                "auth": {
                                    "type": "noauth"
                                }
                            },
                            "response": []
                        },
                        {
                            "name": "V\u00e9rification de compte apr\u00e8s cr\u00e9ation",
                            "request": {
                                "url": {
                                    "host": "{{baseUrl}}",
                                    "path": "api\/auth\/register\/verify",
                                    "query": [],
                                    "raw": "{{baseUrl}}\/api\/auth\/register\/verify"
                                },
                                "method": "POST",
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application\/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application\/json"
                                    }
                                ],
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\"email\":\"gbailey@example.net\",\"verification_code\":\"architecto\"}"
                                },
                                "description": "",
                                "auth": {
                                    "type": "noauth"
                                }
                            },
                            "response": []
                        },
                        {
                            "name": "Soumission des documents KYC",
                            "request": {
                                "url": {
                                    "host": "{{baseUrl}}",
                                    "path": "api\/auth\/register\/kyc",
                                    "query": [],
                                    "raw": "{{baseUrl}}\/api\/auth\/register\/kyc"
                                },
                                "method": "POST",
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "multipart\/form-data"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application\/json"
                                    }
                                ],
                                "body": {
                                    "mode": "formdata",
                                    "formdata": [
                                        {
                                            "key": "email",
                                            "value": "gbailey@example.net",
                                            "type": "text",
                                            "description": "L'email de l'utilisateur temporaire."
                                        },
                                        {
                                            "key": "idcard_front",
                                            "src": [],
                                            "type": "file"
                                        },
                                        {
                                            "key": "idcard_back",
                                            "src": [],
                                            "type": "file"
                                        },
                                        {
                                            "key": "proof_of_address",
                                            "src": [],
                                            "type": "file"
                                        },
                                        {
                                            "key": "selfie",
                                            "src": [],
                                            "type": "file"
                                        }
                                    ]
                                },
                                "description": "",
                                "auth": {
                                    "type": "noauth"
                                }
                            },
                            "response": []
                        },
                        {
                            "name": "Activation du compte par l'administrateur",
                            "request": {
                                "url": {
                                    "host": "{{baseUrl}}",
                                    "path": "api\/auth\/register\/activate",
                                    "query": [],
                                    "raw": "{{baseUrl}}\/api\/auth\/register\/activate"
                                },
                                "method": "POST",
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application\/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application\/json"
                                    }
                                ],
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\"temp_user_id\":16,\"activate\":false}"
                                },
                                "description": ""
                            },
                            "response": []
                        }
                    ]
                },
                {
                    "name": "Connexion",
                    "description": "",
                    "item": [
                        {
                            "name": "Connexion \u00c9tape 1 - V\u00e9rification des identifiants et envoi de l'OTP",
                            "request": {
                                "url": {
                                    "host": "{{baseUrl}}",
                                    "path": "api\/auth\/login",
                                    "query": [],
                                    "raw": "{{baseUrl}}\/api\/auth\/login"
                                },
                                "method": "POST",
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application\/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application\/json"
                                    }
                                ],
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\"email\":\"gbailey@example.net\",\"password\":\"+-0pBNvYgxwmi\\\/#iw\"}"
                                },
                                "description": "",
                                "auth": {
                                    "type": "noauth"
                                }
                            },
                            "response": []
                        },
                        {
                            "name": "Connexion \u00c9tape 2 - V\u00e9rification de l'OTP pour valider la connexion au compte",
                            "request": {
                                "url": {
                                    "host": "{{baseUrl}}",
                                    "path": "api\/auth\/login\/verify",
                                    "query": [],
                                    "raw": "{{baseUrl}}\/api\/auth\/login\/verify"
                                },
                                "method": "POST",
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application\/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application\/json"
                                    }
                                ],
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\"email\":\"gbailey@example.net\",\"verification_code\":\"architecto\"}"
                                },
                                "description": "",
                                "auth": {
                                    "type": "noauth"
                                }
                            },
                            "response": []
                        },
                        {
                            "name": "D\u00e9connecter l'utilisateur authentifi\u00e9",
                            "request": {
                                "url": {
                                    "host": "{{baseUrl}}",
                                    "path": "api\/auth\/logout",
                                    "query": [],
                                    "raw": "{{baseUrl}}\/api\/auth\/logout"
                                },
                                "method": "POST",
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application\/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application\/json"
                                    }
                                ],
                                "body": null,
                                "description": "",
                                "auth": {
                                    "type": "noauth"
                                }
                            },
                            "response": []
                        }
                    ]
                },
                {
                    "name": "Reset Password",
                    "description": "",
                    "item": [
                        {
                            "name": "Initialiser un changement de mot de passe",
                            "request": {
                                "url": {
                                    "host": "{{baseUrl}}",
                                    "path": "api\/auth\/password\/request",
                                    "query": [],
                                    "raw": "{{baseUrl}}\/api\/auth\/password\/request"
                                },
                                "method": "POST",
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application\/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application\/json"
                                    }
                                ],
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\"email\":\"gbailey@example.net\"}"
                                },
                                "description": "",
                                "auth": {
                                    "type": "noauth"
                                }
                            },
                            "response": []
                        },
                        {
                            "name": "V\u00e9rifier le code et d\u00e9finir un nouveau mot de passe",
                            "request": {
                                "url": {
                                    "host": "{{baseUrl}}",
                                    "path": "api\/auth\/password\/reset",
                                    "query": [],
                                    "raw": "{{baseUrl}}\/api\/auth\/password\/reset"
                                },
                                "method": "POST",
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application\/json"
                                    },
                                    {
                                        "key": "Accept",
                                        "value": "application\/json"
                                    }
                                ],
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\"email\":\"gbailey@example.net\",\"password\":\"+-0pBNvYgxwmi\\\/#iw\",\"code\":\"architecto\"}"
                                },
                                "description": "",
                                "auth": {
                                    "type": "noauth"
                                }
                            },
                            "response": []
                        }
                    ]
                }
            ]
        },
        {
            "name": "Gestion des comptes bancaires",
            "description": "",
            "item": [
                {
                    "name": "Afficher la liste des comptes",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/accounts",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/accounts"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"filter_value\":\"architecto\",\"type\":\"courant\",\"status\":\"active\",\"page\":22,\"per_page\":67,\"sort_by\":\"architecto\",\"sort_direction\":\"asc\"}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "access-control-allow-origin",
                                    "value": "*"
                                }
                            ],
                            "code": 401,
                            "body": "{\"message\":\"Unauthenticated.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Afficher les d\u00e9tails d'un utilisateur",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/accounts\/:account_id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/accounts\/:account_id",
                            "variable": [
                                {
                                    "id": "account_id",
                                    "key": "account_id",
                                    "value": "architecto",
                                    "description": "The ID of the account."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "access-control-allow-origin",
                                    "value": "*"
                                }
                            ],
                            "code": 401,
                            "body": "{\"message\":\"Unauthenticated.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Initier une demande pour un compte joint",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/accounts\/init-joint-ownership",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/accounts\/init-joint-ownership"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"account_id\":\"architecto\",\"client_id\":\"architecto\"}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": []
                },
                {
                    "name": "Accepter\/Rejeter une demande de compte joint",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/accounts\/accept-joint-ownership",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/accounts\/accept-joint-ownership"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"account_id\":\"architecto\",\"decision\":true}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": []
                },
                {
                    "name": "Cl\u00f4turer un compte bancaire",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/accounts\/close",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/accounts\/close"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"account_id\":\"architecto\"}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Gestion des utilisateurs",
            "description": "",
            "item": [
                {
                    "name": "Afficher les utilisateurs du syst\u00e8me",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/users",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/users"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"filter_value\":\"architecto\",\"role\":\"caissier\",\"status\":\"admin\",\"page\":22,\"per_page\":67,\"gender\":\"femme\",\"sort_by\":\"architecto\",\"sort_direction\":\"asc\"}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "access-control-allow-origin",
                                    "value": "*"
                                }
                            ],
                            "code": 401,
                            "body": "{\"message\":\"Unauthenticated.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Afficher les d\u00e9tails d'un utilisateur",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/users\/:user_id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/users\/:user_id",
                            "variable": [
                                {
                                    "id": "user_id",
                                    "key": "user_id",
                                    "value": "1",
                                    "description": "The ID of the user."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"filter_value\":\"architecto\",\"role\":\"client\",\"status\":\"comptable\",\"page\":22,\"per_page\":67,\"gender\":\"homme\",\"sort_by\":\"architecto\",\"sort_direction\":\"desc\"}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "access-control-allow-origin",
                                    "value": "*"
                                }
                            ],
                            "code": 401,
                            "body": "{\"message\":\"Unauthenticated.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Mettre \u00e0 jour le compte d'un utilisateur",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/users\/:user_id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/users\/:user_id",
                            "variable": [
                                {
                                    "id": "user_id",
                                    "key": "user_id",
                                    "value": "1",
                                    "description": "The ID of the user."
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"firstname\":\"b\",\"lastname\":\"n\",\"birthdate\":\"architecto\",\"address\":\"architecto\",\"phone\":\"architecto\",\"role\":\"client\",\"status\":\"inactif\"}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": []
                }
            ]
        },
        {
            "name": "Profile Utilisateur",
            "description": "",
            "item": [
                {
                    "name": "Afficher les informations du compte de l'utilisateur connect\u00e9",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/profile",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/profile"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [
                                {
                                    "key": "cache-control",
                                    "value": "no-cache, private"
                                },
                                {
                                    "key": "content-type",
                                    "value": "application\/json"
                                },
                                {
                                    "key": "access-control-allow-origin",
                                    "value": "*"
                                }
                            ],
                            "code": 401,
                            "body": "{\"message\":\"Unauthenticated.\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Mettre \u00e0 jour les informations du compte de l'utilisatuer connect\u00e9",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/profile",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/profile"
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"firstname\":\"b\",\"lastname\":\"n\",\"birthdate\":\"architecto\",\"address\":\"architecto\",\"phone\":\"architecto\"}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": []
                }
            ]
        }
    ],
    "auth": {
        "type": "noauth"
    }
}