---
# System prepended metadata

title: Merchant Financial API Documentation

---

# Merchant Financial API Documentation

<br>

### Environment: `Staging`
### BASE_URL - `https://merchant-finance.p-stageenv.xyz`

<br>


## 01. Get Merchant Loan Avaibility
#### URL
> POST /api/merchant/1/avaibility

#### Headers

> Content-Type : application/json


##### Sample Request & Response : 


> Response : Success response

```json=
{
    message: "Merchant avibility",
    type: "success",
    code: 200,
    data: [
       "percentage": 80,
       "loan" : false
    ]
}

```


## 02. First Subscribe with Parcentage
#### URL
> POST /api/merchant/1/subscibe

#### Headers

> Content-Type : application/json

#### Payload
> percentage [Integer, `required`]


##### Sample Request & Response : 


> Response : Success response

```json=
{
    message: "Merchant subscribe",
    type: "success",
    code: 200,
    data: [
       "percentage": 80,
       "avalable_amount" : 10000
    ]
}

```


## 03. Merchanr Loan Info
#### URL
> POST /api/merchant/1/loan

#### Headers

> Content-Type : application/json




##### Sample Request & Response : 


> Response : Success response

```json=
{
    message: "Merchant loan info",
    type: "success",
    code: 200,
    data: [
       "loan_amount": 8000,
       "paid" : 4000
    ]
}

```

## 04.  Subscribe 
#### URL
> POST /api/merchant/1/subscibe

#### Headers

> Content-Type : application/json

#### Payload
> percentage [Integer, `required`]
> amount [Integer, `required`]
> cod [Integer, `required`]
> recurrent [Bool, true]


##### Sample Request & Response : 


> Response : Success response

```json=
{
    message: "Merchant subscription",
    type: "success",
    code: 200,
    data: [
       "percentage": 80,
       "amount" : 10000,
       "cod" : 1000,
       "recurrent" : true
    ]
}

```

## 05.  Daily volume check
#### URL
> POST /api/merchant/1/volume

#### Headers

> Content-Type : application/json

#### Payload
> collectable amount [Integer, `required`]


##### Sample Request & Response : 


> Response : Success response

```json=
{
    message: "Merchant subscription",
    type: "success",
    code: 200,
    data: [
       "create_invoice": true,
       "amount" : 3000
    ]
}

```
