Contrats
Contrats - Ajouter un nouveau contrat
POST votredomaine.com/api/contracts
Header
json
Champ |
Type |
Description |
Authorization |
String |
Jeton d'authentification d'accès de base. |
Paramètre
json
Champ |
Type |
Description |
subject |
String |
Obligatoire. Objet du contrat |
datestart |
Date |
Obligatoire. Date de début de contrat |
client |
Number |
Obligatoire. Customer_id |
dateend |
Date |
Facultatif. Date de fin de contrat |
contract_type |
Number |
Facultatif. Type de contrat |
contract_value |
Number |
Facultatif. Valeur du contrat |
description |
String |
Facultatif. Description du contrat |
content |
String |
Facultatif. Contenu du contrat |
Succès 200
json
Champ |
Type |
Description |
status |
booléen |
État de la demande. |
message |
String |
Contrats ajoutés avec succès |
Erreur 4xx
json
Nom |
Type |
Description |
status |
booléen |
État de la demande. |
message |
String |
Échec de l'ajout de contrat |
-
Réponse réussie
HTTP/1.1 200 OK{ "status": true, "message": "Contract Added Successfully"}
-
Réponse d’erreur
HTTP/1.1 404 Not Found{ "status": false, "message": "Contract ID Exists"}
Contrats - Supprimer le contrat
SUPPRIMER votredomaine.com/api/contracts/:id
Header
json
Champ |
Type |
Description |
Authorization |
String |
Jeton d'authentification d'accès de base. |
Succès 200
json
Champ |
Type |
Description |
status |
booléen |
État de la demande. |
message |
String |
Contrat supprimé avec succès |
Erreur 4xx
json
Nom |
Type |
Description |
status |
booléen |
État de la demande. |
message |
String |
Échec de la suppression du contrat |
-
Réponse réussie
HTTP/1.1 200 OK{ "status": true, "message": "Contract Deleted Successfully"}
-
Réponse d’erreur
HTTP/1.1 404 Not Found{ "status": false, "message": "Contract Delete Fail"}
Contrats - Demander des informations sur le contrat
OBTENEZ votredomaine.com/api/contracts/:id
Header
json
Champ |
Type |
Description |
Authorization |
String |
Jeton d'authentification d'accès de base. |
Paramètre
json
Champ |
Type |
Description |
id |
Number |
Contacter l'identifiant unique |
Succès 200
json
Champ |
Type |
Description |
Contracts |
Objet |
information. |
Erreur 4xx
json
Nom |
Type |
Description |
status |
booléen |
État de la demande. |
message |
String |
Aucune donnée n'a été trouvée. |
-
Réponse réussie
HTTP/1.1 200 OK
{
"id": "1",
"content": "",
"description": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
"subject": "New Contract",
"client": "9",
"datestart": "2022-11-21",
"dateend": "2027-11-21",
"contract_type": "1",
"project_id": "0",
"addedfrom": "1",
"dateadded": "2022-11-21 12:45:58",
"isexpirynotified": "0",
"contract_value": "13456.00",
"trash": "0",
"not_visible_to_client": "0",
"hash": "31caaa36b9ea1f45a688c7e859d3ae70",
"signed": "0",
"signature": null,
"marked_as_signed": "0",
"acceptance_firstname": null,
"acceptance_lastname": null,
"acceptance_email": null,
"acceptance_date": null,
"acceptance_ip": null,
"short_link": null,
"name": "Development Contracts",
"userid": "9",
"company": "8web",
"vat": "",
"phonenumber": "",
"country": "0",
"city": "",
"zip": "",
"state": "",
"address": "",
"website": "",
"datecreated": "2022-08-11 14:07:26",
"active": "1",
"leadid": null,
"billing_street": "",
"billing_city": "",
"billing_state": "",
"billing_zip": "",
"billing_country": "0",
"shipping_street": "",
"shipping_city": "",
"shipping_state": "",
"shipping_zip": "",
"shipping_country": "0",
"longitude": null,
"latitude": null,
"default_language": "",
"default_currency": "0",
"show_primary_contact": "0",
"stripe_id": null,
"registration_confirmed": "1",
"type_name": "Development Contracts",
"attachments": [],
"customfields": [],
}