Create Creditor

  1. Request Instruction
    HTTPS Method POST
    URL http://subdomain.supersuite.my/api/creditor/create
    Content Type  application/json
    Response Type JSON
    Parameter Description

    token : string, is required.

    chart_account_number: string, is required.

    creditor_type_id : int or null.

    company_name : string , is required.

    registration_number : string.

    creditor_account_number : string.

    billing_address_1 : string. 

    billing_address_2 : string. 

    billing_address_3 : string. 

    billing_address_4 : string. 

    email : string. 

    phone_1 : string.

    phone_2 : string.

    fax_1: string.

    fax_2 : string.

    postcode : string. 

    currency_id : int, is required.

    statement_type : Only accept O/B/N , is required.

    aging_on : Only accept I/ D, is required.

    credit_limit : decimal, is required.

    confirm : Only accept Y/N.

    Request Headers

    {

        "Content-Type":"application/json"

    }

    Request Body

    {

       "token" : "B7ABD5DEEC6588997DE41B0FE0665",

       "chart_account_number" : "400-0000",

       "creditor_type_id" : null,

       "company_name" : "SuperCounting",

       "registration_number" : "R1234-123",

       "creditor_account_number" : "300-0001",

       "billing_address_1" : "Bayan Lepas Industrial Park,",

       "billing_address_2" : "Penang, Malaysia",

       "billing_address_3" : "",

       "billing_address_4" : "",

       "email" : "supercounting@kedios.com",

       "phone_1" : "0123456789",

       "phone_2" : "",

       "fax_1" : "0421345",

       "fax_2" : "",

       "postcode" : "11600",

       "currency_id" : "105",

       "statement_type" : "O",

       "aging_on" : "I",

       "credit_limit" : "1000.00",

       "confirm" : "Y"

    }

  2. Response JSON Format
    Successful Example

    {

        "status" : true,

        "creditor_account_number" : "400-F001",

        "ref_id" : "FFFBD5DEEC6588997DE41B0FE0665",

    }

    Fail Example

    {

        "status" : false,

        "error" : "Token invalid. /  Creditor save fail."

    }

  3. Remark Property
    Creditor Account Number If creditor account number is empty, it will auto generate by system.
    Statement Type

    Only Accept : O, B, N 

     

    O = Open Item,

    B =  Balance Forward,

    N = No Statement

    Aging On

    Only Accept : I, D

     

    I = Invoice Date,

    D = Due Date

    Confirm

    If your company name already exiting and you still want to create the same name so you need to put the confirm key as "Y" else "N".   

    Only Accept : Y,N

     

    Y = Yes,

    N = No