Login
// Replace with user data
{
"email":"user email",
"password":"user password"
}
// Route, use method POST
https://apivetastic.ntg.co/api/login
// Response
{
"token": "Current token",
"user": {
"id": user id,
"name": "user name",
"email": "user email",
"specialty": user specialty,
"role": user role,
"email_verified_at": user email_verified_at,
"vetLicense": user vetLicense,
"license_exp": user license_exp,
"start_workingday": user start_workingday,
"appointment_color": "#color",
"bio": user bio,
"client_id": user client id,
"impi": user impi,
"status": user status,
"impu": user impu,
"SIPpw": user SIPpw,
"dupReminderEmail": 0,
"autoOpenSoapTelemed": 0,
"created_at": "date",
"updated_at": "date"
}
}
Client
// Replace with client data
{
"first_name": string, --> not null
"last_name": string,
"email": string,
"address": string,
"city": string,
"state": string,
"zip": integer,
"relation": string,
"note": string,
"favorite": boolean,
"ssn": string,
"license": string,
"status": integer,
"noReminders": integer,
"clienttype_id": foreign id,
"dateofbirth": date,
"subscribemail": booelan, --> default(false)
"subscribewhassapp": boolean, --> default(false)
"balance": decimal,
"preferredDoc": integer,
"referal": integer,
"defaultTelemed": integer, --> default(0)
"user_id_modifier": integer, --> default(0)
}
// Route, use method GET
https://apivetastic.ntg.co/api/client
//Response --> all clients
// Route, use method POST
https://apivetastic.ntg.co/api/client
//Send the required data on the body
// Route, use method PUT, replace with the client id
https://apivetastic.ntg.co/api/client/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the client id
https://apivetastic.ntg.co/api/client/{id}
// Route, use method POST, Send the client to search the body
https://apivetastic.ntg.co/api/client/search --> Returns all clients related to the search
//Example of body, for the search
{
"search":"client" --> Client or word to search
}
Pet
// Replace with pet data
{
"client_id": foreign id, --> not null
"name": string, --> not null
"birthday": date,
"weight": decimal,
"original_weight": decimal,
"species": string,
"certificate": string,
"allergy": string,
"sex": integer,
"breed": string,
"codes": string,
"rabies": boolean,
"deceased": boolean,
"petcolor_id": foreign id,
"microchip": string,
"insurance_information": string,
"breed_id": integer, --> default(1)
"status": integer, --> default(1)
}
// Route, use method GET
https://apivetastic.ntg.co/api/pet
//Response --> all pets
// Route, use method POST
https://apivetastic.ntg.co/api/pet
//Send the required data on the body
// Route, use method PUT, replace with the pet id
https://apivetastic.ntg.co/api/pet/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the pet id
https://apivetastic.ntg.co/api/pet/{id}
Petcode
// Replace with petcode data
{
"code": char, --> not null
"description": string --> not null
}
// Route, use method GET
https://apivetastic.ntg.co/api/petcodes?all=true --> get all the petcodes
// Page 1 and 10 petcodes per page by default
https://apivetastic.ntg.co/api/petcodes --> get petcodes with pagination default
//Replace with the page num and perPage num
https://apivetastic.ntg.co/api/petcodes?page=1&perPage=10 --> get petcodes with pagination
// Route, use method POST
https://apivetastic.ntg.co/api/petcodes
//Send the required data on the body
// Route, use method PUT, replace with the petcode id
https://apivetastic.ntg.co/api/petcodes/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the petcode id
https://apivetastic.ntg.co/api/petcodes/{id}
Petcolor
// Replace with petcolor data
{
"name": string, --> not null
}
// Route, use method GET
https://apivetastic.ntg.co/api/petcolor?all=true --> get all the petcolors
// Page 1 and 10 petcolor per page by default
https://apivetastic.ntg.co/api/petcolor --> get petcolors with pagination default
//Replace with the page num and perPage num
https://apivetastic.ntg.co/api/petcolor?page=1&perPage=10 --> get petcolors with pagination
// Route, use method POST
https://apivetastic.ntg.co/api/petcolor
//Send the required data on the body
// Route, use method PUT, replace with the petcolor id
https://apivetastic.ntg.co/api/petcolor/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the petcolor id
https://apivetastic.ntg.co/api/petcolor/{id}
Allergy
// Replace with allergy data
{
"name": string, --> not null
"description": string --> not null
}
// Route, use method GET
https://apivetastic.ntg.co/api/allergy?all=true --> get all the allergies
// Page 1 and 10 allergy per page by default
https://apivetastic.ntg.co/api/allergy --> get allergies with pagination default
//Replace with the page num and perPage num
https://apivetastic.ntg.co/api/allergy?page=1&perPage=10 --> get allergies with pagination
// Route, use method POST
https://apivetastic.ntg.co/api/allergy
//Send the required data on the body
// Route, use method PUT, replace with the allergy id
https://apivetastic.ntg.co/api/allergy/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the allergy id
https://apivetastic.ntg.co/api/allergy/{id}
Category
// Replace with category data
{
"isActive": boolean, --> default(true),
"acountNo": integer, -->not null
"name": string, --> not null
"code": string, --> not null
"category": string, --> not null
"status": integer, --> not null
"type": integer, --> not null
}
// Route, use method GET
https://apivetastic.ntg.co/api/category?all=true --> get all the categories
// Page 1 and 10 category per page by default
https://apivetastic.ntg.co/api/category --> get categories with pagination default
//Replace with the page num and perPage num
https://apivetastic.ntg.co/api/category?page=1&perPage=10 --> get categories with pagination
// Route, use method POST
https://apivetastic.ntg.co/api/category
//Send the required data on the body
// Route, use method PUT, replace with the category id
https://apivetastic.ntg.co/api/category/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the category id
https://apivetastic.ntg.co/api/category/{id}
Employee
// Replace with employee data
{
"name": string, --> not null
"position": string, --> not null
"contact_information": string -->not null
}
// Route, use method GET
https://apivetastic.ntg.co/api/employee?all=true --> get all the employees
// Page 1 and 10 employee per page by default
https://apivetastic.ntg.co/api/employee --> get employees with pagination default
//Replace with the page num and perPage num
https://apivetastic.ntg.co/api/employee?page=1&perPage=10 --> get employees with pagination
// Route, use method POST
https://apivetastic.ntg.co/api/employee
//Send the required data on the body
// Route, use method PUT, replace with the employee id
https://apivetastic.ntg.co/api/employee/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the employee id
https://apivetastic.ntg.co/api/employee/{id}
Historial
// Replace with historial data
{
"id_tipo": string, --> not null
"user_id": foreign, --> not null
"titulo": string, --> not null
"descripcion": string, --> not null
"client_id": foreign, --> not null
"pet_id": foreign, --> not null
"invoice_id": foreign, --> not null
"fechaInicio": dateTime, --> not null
"fechaFin": dateTime, --> not null
"parent_id": integer,
"price": decimal, --> not null
"descuento": decimal, --> not null
"seguro_id": foreignId, --> not null
"cantidad": decimal, --> not null
"tipo_medida": tinyInteger, --> not null
"detalles": json, --> not null
"documento": json, --> not null
"status": tinyInteger, --> default(0) --> values: 0,1,2
"interno": boolean, --> not null
"external_id": foreignId,
}
// Route, use method GET
https://apivetastic.ntg.co/api/historial?all=true --> get all the historials
// Page 1 and 10 historial per page by default
https://apivetastic.ntg.co/api/historial --> get historials with pagination default
//Replace with the page num and perPage num
https://apivetastic.ntg.co/api/historial?page=1&perPage=10 --> get historials with pagination
// Route, use method POST
https://apivetastic.ntg.co/api/historial
//Send the required data on the body
// Route, use method PUT, replace with the historial id
https://apivetastic.ntg.co/api/historial/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the historial id
https://apivetastic.ntg.co/api/historial/{id}
Laboratory
// Replace with laboratory data
{
"historial_id": foreignId, --> not null
"client_id": foreignId, --> not null
"date": date, --> not null
"indexx_id": integer,
"status": tinyInteger, --> default(0)
}
// Route, use method GET
https://apivetastic.ntg.co/api/laboratory?all=true --> get all the laboratories
// Page 1 and 10 laboratory per page by default
https://apivetastic.ntg.co/api/laboratory --> get laboratories with pagination default
//Replace with the page num and perPage num
https://apivetastic.ntg.co/api/laboratory?page=1&perPage=10 --> get laboratories with pagination
// Route, use method POST
https://apivetastic.ntg.co/api/laboratory
//Send the required data on the body
// Route, use method PUT, replace with the laboratory id
https://apivetastic.ntg.co/api/laboratory/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the laboratory id
https://apivetastic.ntg.co/api/laboratory/{id}
Medication
// Replace with medication data
{
"product_id": foreignId, --> not null
"status": integer, --> not null
"Expiry_Date": date, --> not null
"Purchase_Date": date, --> not null
"Purchase_price": decimal, --> not null
"current_location": string --> not null
}
// Route, use method GET
https://apivetastic.ntg.co/api/medication?all=true --> get all the medications
// Page 1 and 10 medication per page by default
https://apivetastic.ntg.co/api/medication --> get medications with pagination default
//Replace with the page num and perPage num
https://apivetastic.ntg.co/api/medication?page=1&perPage=10 --> get medications with pagination
// Route, use method POST
https://apivetastic.ntg.co/api/medication
//Send the required data on the body
// Route, use method PUT, replace with the medication id
https://apivetastic.ntg.co/api/medication/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the medication id
https://apivetastic.ntg.co/api/medication/{id}
Product
// Replace with product data
{
"name": string, --> not null
"code": string, --> not null
"categoryID": foreignId, --> not null (product category)
"manufacturer": string,
"Dosage_Strength": string,
"Supplier_Information": string,
"product_code": string,
"description": string,
"sell_price": decimal,
"cost_unit": decimal,
"cost_pkg": decimal,
"product_group": integer,
"stock": decimal,
"unit": integer,
"msds": string,
"upc": string,
"markup_percent": decimal, --> default(0)
"markup_unit_cost": decimal, --> default(0)
"markup_pkg_cost": decimal, --> default(0)
"minimal_stock": decimal, --> default(0)
"lineitems": json,
"expiration_date": date,
"lot_number": integer,
"import_id": integer,
"taxed": integer,
}
// Route, use method GET
https://apivetastic.ntg.co/api/product?all=true --> get all the products
// Page 1 and 10 product per page by default
https://apivetastic.ntg.co/api/product --> get products with pagination default
//Replace with the page num and perPage num
https://apivetastic.ntg.co/api/product?page=1&perPage=10 --> get products with pagination
// Route, use method POST
https://apivetastic.ntg.co/api/product
//Send the required data on the body
// Route, use method PUT, replace with the product id
https://apivetastic.ntg.co/api/product/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the product id
https://apivetastic.ntg.co/api/product/{id}
Product Category
// Replace with productCategory data
{
"isActive": boolean, --> default(true)
"account_no": string,
"category_name": string, --> not null
"report_name": string
}
// Route, use method GET
https://apivetastic.ntg.co/api/productCategory?all=true --> get all the product categories
// Page 1 and 10 productCategory per page by default
https://apivetastic.ntg.co/api/productCategory --> get product categories with pagination default
//Replace with the page num and perPage num
https://apivetastic.ntg.co/api/productCategory?page=1&perPage=10 --> get product categories with pagination
// Route, use method POST
https://apivetastic.ntg.co/api/productCategory
//Send the required data on the body
// Route, use method PUT, replace with the productCategory id
https://apivetastic.ntg.co/api/productCategory/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the productCategory id
https://apivetastic.ntg.co/api/productCategory/{id}
Reminder
// Replace with reminder data
{
"reminder": json, --> not null
"remind_all": boolean, --> default(false)
"remind_social": boolean, --> default(false)
"remind_client": boolean, --> default(false)
"status": integer, --> default(0)
"historial_id": foreignId, --> not null
}
// Route, use method GET
https://apivetastic.ntg.co/api/reminder?all=true --> get all the reminders
// Page 1 and 10 reminder per page by default
https://apivetastic.ntg.co/api/reminder --> get reminders with pagination default
//Replace with the page num and perPage num
https://apivetastic.ntg.co/api/reminder?page=1&perPage=10 --> get reminders with pagination
// Route, use method POST
https://apivetastic.ntg.co/api/reminder
//Send the required data on the body
// Route, use method PUT, replace with the reminder id
https://apivetastic.ntg.co/api/reminder/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the reminder id
https://apivetastic.ntg.co/api/reminder/{id}
Seguro
// Replace with seguro data
{
"name": string, --> not null
"client_id": foreignId, --> not null
"code": string --> not null
}
// Route, use method GET
https://apivetastic.ntg.co/api/seguro?all=true --> get all the seguros
// Page 1 and 10 seguro per page by default
https://apivetastic.ntg.co/api/seguro --> get seguros with pagination default
//Replace with the page num and perPage num
https://apivetastic.ntg.co/api/seguro?page=1&perPage=10 --> get seguros with pagination
// Route, use method POST
https://apivetastic.ntg.co/api/seguro
//Send the required data on the body
// Route, use method PUT, replace with the seguro id
https://apivetastic.ntg.co/api/seguro/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the seguro id
https://apivetastic.ntg.co/api/seguro/{id}
Servicio
// Replace with servicio data
{
"name": string, --> not null
"description": string, --> not null
"purchase_price": decimal, --> not null
"price": decimal, --> not null
"price_sale": decimal --> not null
}
// Route, use method GET
https://apivetastic.ntg.co/api/servicio?all=true --> get all the servicios
// Page 1 and 10 servicio per page by default
https://apivetastic.ntg.co/api/servicio --> get servicios with pagination default
//Replace with the page num and perPage num
https://apivetastic.ntg.co/api/servicio?page=1&perPage=10 --> get servicios with pagination
// Route, use method POST
https://apivetastic.ntg.co/api/servicio
//Send the required data on the body
// Route, use method PUT, replace with the servicio id
https://apivetastic.ntg.co/api/servicio/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the servicio id
https://apivetastic.ntg.co/api/servicio/{id}
Supplier
// Replace with supplier data
{
"name": string, --> not null
"contact_person": string,
"address": string,
"phone": string,
"email": string,
}
// Route, use method GET
https://apivetastic.ntg.co/api/supplier?all=true --> get all the suppliers
// Page 1 and 10 supplier per page by default
https://apivetastic.ntg.co/api/supplier --> get suppliers with pagination default
//Replace with the page num and perPage num
https://apivetastic.ntg.co/api/supplier?page=1&perPage=10 --> get suppliers with pagination
// Route, use method POST
https://apivetastic.ntg.co/api/supplier
//Send the required data on the body
// Route, use method PUT, replace with the supplier id
https://apivetastic.ntg.co/api/supplier/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the supplier id
https://apivetastic.ntg.co/api/supplier/{id}
Phone
// Replace with phone data
{
"client_id": foreignId, --> not null
"phone_number": string, --> not null
"relation": string, --> not null
"favorite": integer --> not null --> values (0,1)
}
// Route, use method GET
https://apivetastic.ntg.co/api/phone --> get all the phones
// Route, use method POST
https://apivetastic.ntg.co/api/phone
//Send the required data on the body
// Route, use method PUT, replace with the phone id
https://apivetastic.ntg.co/api/phone/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the phone id
https://apivetastic.ntg.co/api/phone/{id}
Specie
// Replace with specie data
{
"name": code, --> not null
"antechSecies": string, --> not null
"name": string, --> not null
"weigh": integer, --> not null
"lifelearn": string, --> not null
"description": string,
"indexx_code";: string,
"antech_code": string
}
// Route, use method GET
https://apivetastic.ntg.co/api/specie?all=true --> get all the species
// Page 1 and 10 specie per page by default
https://apivetastic.ntg.co/api/specie --> get species with pagination default
//Replace with the page num and perPage num
https://apivetastic.ntg.co/api/specie?page=1&perPage=10 --> get species with pagination
// Route, use method POST
https://apivetastic.ntg.co/api/specie
//Send the required data on the body
// Route, use method PUT, replace with the specie id
https://apivetastic.ntg.co/api/specie/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the specie id
https://apivetastic.ntg.co/api/specie/{id}
Breed
// Replace with breed data
{
"active": boolean, --> not null
"code": string, --> not null
"name": string, --> not null
"breedType": string, --> not null
"antechBreeds": string, --> not null
"description": string
}
// Route, use method GET
https://apivetastic.ntg.co/api/breed?all=true --> get all the breeds
// Page 1 and 10 breed per page by default
https://apivetastic.ntg.co/api/breed --> get breeds with pagination default
//Replace with the page num and perPage num
https://apivetastic.ntg.co/api/breed?page=1&perPage=10 --> get breeds with pagination
// Route, use method POST
https://apivetastic.ntg.co/api/breed
//Send the required data on the body
// Route, use method PUT, replace with the breed id
https://apivetastic.ntg.co/api/breed/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the breed id
https://apivetastic.ntg.co/api/breed/{id}
Room
// Replace with room data
{
"room_name": string, --> not null
"room_number": string, --> not null
"description": string,
"in_use": integer --> not null
}
// Route, use method GET
https://apivetastic.ntg.co/api/room?all=true --> get all the rooms
// Page 1 and 10 room per page by default
https://apivetastic.ntg.co/api/room --> get rooms with pagination default
//Replace with the page num and perPage num
https://apivetastic.ntg.co/api/room?page=1&perPage=10 --> get rooms with pagination
// Route, use method POST
https://apivetastic.ntg.co/api/room
//Send the required data on the body
// Route, use method PUT, replace with the room id
https://apivetastic.ntg.co/api/room/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the room id
https://apivetastic.ntg.co/api/room/{id}
Appointment Type
// Replace with appointmentType data
{
"name": string, --> not null
}
// Route, use method GET
https://apivetastic.ntg.co/api/appointmentType?all=true --> get all the Appointment Types
// Page 1 and 10 appointmentType per page by default
https://apivetastic.ntg.co/api/appointmentType --> get appointmentTypes with pagination default
//Replace with the page num and perPage num
https://apivetastic.ntg.co/api/appointmentType?page=1&perPage=10 --> get Appointments Types with pagination
// Route, use method POST
https://apivetastic.ntg.co/api/appointmentType
//Send the required data on the body
// Route, use method PUT, replace with the appointmentType id
https://apivetastic.ntg.co/api/appointmentType/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the appointmentType id
https://apivetastic.ntg.co/api/appointmentType/{id}
Appointment
// Replace with appointment data
{
"name": string, --> not null
"room_id": foreignId, --> not null
"user_id": foreignId, --> not null
"client_id": foreignId, --> not null
"pet_id": foreignId, --> not null
"appointment_type_id": foreignId, --> not null
"description": string,
"cost": decimal, --> not null
"appointment_date": dateTime, --> not null
"appointment_end_date": dateTime,
"lastReminderEmail": dateTime,
"appointmentStatus": integer,
"checkin_date": dateTime,
"checkout_date": dateTime,
"timezone": string
}
// Route, use method GET
https://apivetastic.ntg.co/api/appointment?all=true --> get all the appointments
// Page 1 and 10 appointment per page by default
https://apivetastic.ntg.co/api/appointment --> get appointments with pagination default
//Replace with the page num and perPage num
https://apivetastic.ntg.co/api/appointment?page=1&perPage=10 --> get appointments with pagination
// Route, use method POST
https://apivetastic.ntg.co/api/appointment
//Send the required data on the body
// Route, use method PUT, replace with the appointment id
https://apivetastic.ntg.co/api/appointment/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the appointment id
https://apivetastic.ntg.co/api/appointment/{id}
Prescription Group
// Replace with prescription/group data
{
"isActive": boolean, --> default(true)
"accountNo": integer, --> not null
"name": string, --> not null
"code": string, --> not null
"category": string, --> not null
"status": integer, --> default(1)
"type": integer, --> default(1)
}
// Route, use method GET
https://apivetastic.ntg.co/api/prescription/group?all=true --> get all the prescription/groups
// Page 1 and 10 prescription/group per page by default
https://apivetastic.ntg.co/api/prescription/group --> get prescription/groups with pagination default
//Replace with the page num and perPage num
https://apivetastic.ntg.co/api/prescription/group?page=1&perPage=10 --> get prescription/groups with pagination
// Route, use method POST
https://apivetastic.ntg.co/api/prescription/group
//Send the required data on the body
// Route, use method PUT, replace with the prescription/group id
https://apivetastic.ntg.co/api/prescription/group/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the prescription/group id
https://apivetastic.ntg.co/api/prescription/group/{id}
Treatment
// Replace with treatment data
{
"name": string, --> not null
"code": string,
"categoryID": foreignId, --> not null (treatment category)
"treatmentcode": string,
"invoice_name": string,
"cost": decimal, --> not null
"sell_price": decimal,
"time": integer, --> not null
"description": string, --> not null
"discount_class": integer,
"charge": decimal,
"lineitems": json,
"import_id": integer,
"taxed": boolean --> default(false)
}
// Route, use method GET
https://apivetastic.ntg.co/api/treatment?all=true --> get all the treatments
// Page 1 and 10 treatment per page by default
https://apivetastic.ntg.co/api/treatment --> get treatments with pagination default
//Replace with the page num and perPage num
https://apivetastic.ntg.co/api/treatment?page=1&perPage=10 --> get treatments with pagination
// Route, use method POST
https://apivetastic.ntg.co/api/treatment
//Send the required data on the body
// Route, use method PUT, replace with the treatment id
https://apivetastic.ntg.co/api/treatment/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the treatment id
https://apivetastic.ntg.co/api/treatment/{id}
Treatment Category
// Replace with treatmentCategory data
{
"isActive": boolean, --> default(true)
"account_no": string,
"category_name": string, --> not null
"report_name": string
}
// Route, use method GET
https://apivetastic.ntg.co/api/treatmentCategory?all=true --> get all the treatment categories
// Page 1 and 10 treatmentCategory per page by default
https://apivetastic.ntg.co/api/treatmentCategory --> get treatment categories with pagination default
//Replace with the page num and perPage num
https://apivetastic.ntg.co/api/treatmentCategory?page=1&perPage=10 --> get treatment categories with pagination
// Route, use method POST
https://apivetastic.ntg.co/api/treatmentCategory
//Send the required data on the body
// Route, use method PUT, replace with the treatmentCategory id
https://apivetastic.ntg.co/api/treatmentCategory/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the treatmentCategory id
https://apivetastic.ntg.co/api/treatmentCategory/{id}
Client Codes
// Replace with clientcodes data
{
"code": char, --> not null
"description": string,
}
// Route, use method GET
https://apivetastic.ntg.co/api/clientcodes?all=true --> get all the clientcodes
// Page 1 and 10 clientcodes per page by default
https://apivetastic.ntg.co/api/clientcodes --> get clientcodes with pagination default
//Replace with the page num and perPage num
https://apivetastic.ntg.co/api/clientcodes?page=1&perPage=10 --> get clientcodes with pagination
// Route, use method POST
https://apivetastic.ntg.co/api/clientcodes
//Send the required data on the body
// Route, use method PUT, replace with the clientcodes id
https://apivetastic.ntg.co/api/clientcodes/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the clientcodes id
https://apivetastic.ntg.co/api/clientcodes/{id}
Invoices
// Replace with invoice data
{
"client_id": foreignId, --> not null
"pet_id": foreignId, --> not null
"clientname": string, --> not null
"address": string, --> not null
"lineitems": json,
"total": decimal, --> not null
"dueDate": date, --> not null
"global_discount": decimal,
"status": integer,
"total_tax": decimal,
"createdBy": string, --> default("N/A")
}
// Route, use method GET
https://apivetastic.ntg.co/api/invoices?all=true --> get all the invoices
// Page 1 and 10 invoices per page by default
https://apivetastic.ntg.co/api/invoices --> get invoices with pagination default
//Replace with the page num and perPage num
https://apivetastic.ntg.co/api/invoices?page=1&perPage=10 --> get invoices with pagination
// Route, use method POST
https://apivetastic.ntg.co/api/invoices
//Send the required data on the body
// Route, use method PUT, replace with the invoices id
https://apivetastic.ntg.co/api/invoices/{id}
//Send the data to update in the body
// Route, use method DELETE, replace with the invoices id
https://apivetastic.ntg.co/api/invoices/{id}
// Route, use method GET, replace with the invoice id to get
https://apivetastic.ntg.co/api/invoice/pdf/{id} --> Generate a PDF of the invoice and download it automatically