Suppliers

Supplier (or sometimes called vendor) is the entity responsible to provide inventory to the warehouse as fulfilment to Purchase Order.

Fetch details of a Supplier

GET /wms/supplier

Use this API to get the details of the Supplier(s). Below mentioned filters can be used to filter to get a single or set of client objects. If multi filters are used then all will be used for matching the result.

Query Parameters

NameTypeDescription

id

String

Supplier id returned by the Blowhorn at the time of client creation.

name

String

Full or partial supplier name

phone_number

String

Registered phone number of the supplier

gstin

String

GST number of the supplier

pan

String

PAN of the supplier

cin

String

CIN(corporate identification number) of the supplier

tan

String

TAN(Tax deduction Account Number) of the supplier

status

String

Status of the Supplier onboarding. Ex Values are 'onboarding', 'active' and 'inactive'

bank_account

String

Registered bank account number of the supplier

state

String

Registered state of the supplier

current_address

String

Full or partial current address of the supplier

invoice_address

String

Full or partial invoice address of the supplier

email

String

Email address of the supplier

Headers

NameTypeDescription

API_KEY*

string

API key obtained by the Customer/Partner

{
    "count": 4,
    "previous": null,
    "next": 0,
    "result": [
        {
            "id": 181,
            "bank_account": {
                "id": 29627,
                "account_number": "1234567890",
                "account_name": "JOHN DOE",
                "bank_name": "ICICI BANK",
                "ifsc_code": "ICIC0000424"
            },
            "current_address": {
                "id": 3926,
                "first_name": "John",
                "last_name": "Doe",
                "line1": "#007, Church Street",
                "line2": "80 Feet Road",
                "line3": "Near Police Station",
                "line4": "Koramangala",
                "state": "Karnataka",
                "country": "India",
                "postcode": "560068"
            },
            "invoice_address": {
                "id": 3927,
                "first_name": "Jane",
                "last_name": "Roe",
                "line1": "#008, French Street",
                "line2": "80 Feet Road",
                "line3": "Near Jhony Theatre",
                "line4": "Indira Nagar",
                "state": "Karnataka",
                "country": "India",
                "postcode": "560068"
            },
            "created_date": "2022-05-24T00:23:02.896972+05:30",
            "modified_date": "2022-05-24T00:23:02.898421+05:30",
            "name": "Supplier 01 From Koramangala",
            "phone_number": "+917411475502",
            "email": "abc@def.com",
            "photo": null,
            "is_address_same": false,
            "cin": "A12345BC6789DEF012345",
            "pan": "BMPPV4211B",
            "tan": "ABCD12345E",
            "gstin": "12ABCDE3456F7G8",
            "status": "onboarding",
            "reason_for_inactive": null,
            "remarks": null,
            "tos_response_date": null,
            "created_by": 108434,
            "modified_by": null,
            "state": null,
            "customer": 40082
        }
    ]
}

Create a Supplier

POST /wms/supplier

This API can used to create supplier. Supplier name is mandatory for a client and this should be unique across the client.

Headers

NameTypeDescription

API_KEY*

String

API key obtained by the Customer/Partner

Request Body

NameTypeDescription

name*

String

Name of the supplier

phone_number

String

Phone number of the supplier

Ex: +917411XXXX03

cin

String

CIN(corporate identification number) of the supplier.

Ex: A12345BC6789DEF012347

pan

String

PAN of the supplier.

Ex: BMPPV4211D

tan

String

TAN(Tax deduction Account Number) of the supplier.

Ex: ABCD12345G

gstin

String

GST number of the supplier.

Ex: 12ABCDE3456F7G0

bank_account

String

Bank account id or object containing bank account details per below given attributes.

account_number

String

Supplier bank account number

account_name

String

Supplier bank account holder name as per the bank KYC.

bank_name

String

Name of the supplier bank

ifsc_code

String

IFSC code of the supplier bank

current_address

String

Address id or object containing supplier current address details per below given attributes.

invoice_address

String

Address id or object containing supplier invoice address details per below given attributes.

first_name

String

First name of the supplier bank account holder

last_name

String

Last name of the supplier bank account holder

line1-line4

String

Address line of the address divided into four lines.

state

String

State name of the supplier

country

String

Country name or id of the supplier

postcode

String

Postal code of the supplier

is_address_same

String

Flag indicating whether both invoice address and current are the same. This field default to s 'False'

email

String

Email address of the supplier

{
    "status": "FAIL",
    "message": "Supplier name should be unique."
}
{
    "name": "Supplier 03 From Koramangala",
    "phone_number": "+917411475503",
    "email": "abc@def.com",
    "cin": "A12345BC6789DEF012347",
    "pan": "BMPPV4211D",
    "tan": "ABCD12345G",
    "gstin": "12ABCDE3456F7G0",
    "bank_account": {
        "account_number": "1234567890",
        "account_name": "JOHN DOE",
        "bank_name": "ICICI BANK",
        "ifsc_code": "ICIC0000424" 
    },
    "current_address": {
        "first_name": "John",
        "last_name": "Doe",
        "line1": "#007, Church Street",
        "line2": "80 Feet Road",
        "line3": "Near Police Station",
        "line4": "Koramangala",
        "state": "Karnataka",
        "country": "India",
        "postcode": "560068"
    },
    "invoice_address": {
        "first_name": "Jane",
        "last_name": "Roe",
        "line1": "#008, French Street",
        "line2": "80 Feet Road",
        "line3": "Near Jhony Theatre",
        "line4": "Indira Nagar",
        "state": "Karnataka",
        "country": "India",
        "postcode": "560068"
    },
    "is_address_same": false
}

Update a supplier

PUT /wms/supplier

This API can be used to update a supplier details. Name or id is mandatory when trying to update a supplier to identify the supplier for updating the details.

Headers

NameTypeDescription

API_KEY*

String

API key obtained by the Customer/Partner

Request Body

NameTypeDescription

name*

String

Name of the supplier

phone_number

String

Phone number of the supplier

Ex: +917411XXXX03

cin

String

CIN(corporate identification number) of the supplier.

Ex: A12345BC6789DEF012347

pan

String

PAN of the supplier.

Ex: BMPPV4211D

tan

String

TAN(Tax deduction Account Number) of the supplier.

Ex: ABCD12345G

gstin

String

GST number of the supplier.

Ex: 12ABCDE3456F7G0

bank_account

String

Bank account id or object containing bank account details per below given attributes.

account_number

String

Supplier bank account number

account_name

String

Supplier bank account holder name as per the bank KYC.

bank_name

String

Name of the supplier bank

ifsc_code

String

IFSC code of the supplier bank

current_address

String

Address id or object containing supplier current address details per below given attributes.

invoice_address

String

Address id or object containing supplier invoice address details per below given attributes.

first_name

String

First name of the supplier bank account holder

last_name

String

Last name of the supplier bank account holder

line1-line4

String

Address line of the address divided into four lines.

state

String

State name of the supplier

country

String

Country name or id of the supplier

postcode

String

Postal code of the supplier

is_address_same

String

Flag indicating whether both invoice address and current are the same. This field default to s 'False'

{
    "status": "FAIL",
    "message": "Supplier does not exist."
}
{
    "name": "Supplier 01 From Koramangala",
    "phone_number": "+917411475502",
    "email": "abc@def.com",
    "cin": "A12345BC6789DEF012345",
    "pan": "BMPPV4211B",
    "tan": "ABCD12345E",
    "gstin": "12ABCDE3456F7G8",
    "bank_account": {
        "account_number": "1234567890",
        "account_name": "JOHN DOE",
        "bank_name": "ICICI BANK",
        "ifsc_code": "ICIC0000424" 
    },
    "current_address": {
        "first_name": "John",
        "last_name": "Doe",
        "line1": "#007, Church Street",
        "line2": "80 Feet Road",
        "line3": "Near Police Station",
        "line4": "Koramangala",
        "state": "Karnataka",
        "country": "India",
        "postcode": "560068"
    },
    "invoice_address": {
        "first_name": "Jane",
        "last_name": "Roe",
        "line1": "#008, French Street",
        "line2": "80 Feet Road",
        "line3": "Near Jhony Theatre",
        "line4": "Indira Nagar",
        "state": "Karnataka",
        "country": "India",
        "postcode": "560068"
    },
    "is_address_same": false
}

Last updated