Invoice - thenibirahmed/wp-client-management GitHub Wiki

Get All Invoice

Endpoint (GET)

/invoices

Get Single Invoice

Endpoint (GET)

/invoice/{id}

Create Invoice

Endpoint (POST)

/invoice/create

Params

{
    eic_crm_user_id: '', // must be integer
    project_id: '', // must be integer
    client_id: '', // must be integer
    code: '', // integer
    type: '',
    title: '',
    date: '', // time format
    due_date: '', // time format
    items: '', // json
    note: '',
    billing_address: '',
    status: '', 
    total: '' // number
    discount: '', // number
    tax: '', // number
    fee: '', // number
}

Update Invoice

Endpoint (PUT/PATCH)

/invoice/update/{id}

Params

{
    eic_crm_user_id: '', // must be integer
    project_id: '', // must be integer
    client_id: '', // must be integer
    code: '', // integer
    type: '',
    title: '',
    date: '', // time format
    due_date: '', // time format
    items: '', // json
    note: '',
    billing_address: '',
    status: '', 
    total: '' // number
    discount: '', // number
    tax: '', // number
    fee: '', // number
}

Delete Invoice

Endpoint (DELETE)

/invoice/delete/{id}