Skip to content

Instantly share code, notes, and snippets.

@Pradnya-Paranjape
Last active February 3, 2017 12:32
Show Gist options
  • Select an option

  • Save Pradnya-Paranjape/7931f72832c080d9d5973840abb7a3c3 to your computer and use it in GitHub Desktop.

Select an option

Save Pradnya-Paranjape/7931f72832c080d9d5973840abb7a3c3 to your computer and use it in GitHub Desktop.
cost api endpoints
1. CREATE COST
API CALL : (POST) https://zuaritwochemicals.ewr.com/cost
Body : {
"amount": "43",
"internal_cost": "40",
"currency": "GBP",
"source": "Company website",
"invoice_date": "2017-02-02 08:45:00",
"referrer_name" : "refereerName",
"agency_name" : "Agencty name",
"cost_created_by": "Pradnya",
"cost_last_edited_by": "Pradnya",
"job_id" : "abdacf81-fcc3-4413-9ab0-73845a47306e",
"candidates" : ["c32e31f2-e0cb-43e1-ade1-a60771ba7cf7", "85ea79dd-5a26-46f9-a8bd-e8364277eb24"]
}
2. UPDATE COST
API_CALL : (PUT) https://zuaritwochemicals.ewr.com/cost/89c73913-f178-46d1-b030-168cf29d8aba
Body : {
"amount": "56",
"internal_cost": "40",
"currency": "GBP",
"source": "Company website",
"invoice_date": "2017-02-02 08:45:00",
"cost_created_by": "Pradnya",
"cost_last_edited_by": "Pradnya",
"job_id" : "5dfdcfec-1ae6-439f-85a2-448a27df8469",
"candidates" : ["c32e31f2-e0cb-43e1-ade1-a60771ba7cf7", "85ea79dd-5a26-46f9-a8bd-e8364277eb24"]
}
3. GET COST BY ID
API CALL : (GET) https://{{URL}}/cost/0681f778-659c-42f2-ab76-5c95b2ed914c
4. DELETE COST BY ID
API CALL : (DELETE) https://{{URL}}/cost/0681f778-659c-42f2-ab76-5c95b2ed914c
5. DELETE BULK COST
API CALL : (PUT) : https://{{URL}}/bulk/cost/delete
Body : ["cost id 1", "cost id 2"]
6. GET AGENCY PROFILE
API CALL : (GET) https://{{URL}}/agencies/profiles/:agency_id
7. GET ALL COSTS FOR COMPANY
API_CALL : (GET) http://{{url}}/cost/all/company
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment