Untitled diff

Created Diff never expires
0 removals
Lines
Total
Removed
Words
Total
Removed
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
252 lines
17 additions
Lines
Total
Added
Words
Total
Added
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
269 lines
{
{
"meta": {
"meta": {
"events": {
"events": {
"timeentries.create": 1,
"timeentries.create": 1,
"timeentries.update": 1,
"timeentries.update": 1,
"projects.create": 1,
"projects.create": 1,
"peoplecosts.change": 1,
"peoplecosts.change": 1,
"expenses.change": 1,
"expenses.change": 1,
"billing.change": 1
"billing.change": 1
}
}
},
},
"links": {
"links": {
"webhook": {
"webhook": {
"webhook": "https://new.costlocker.com/api-public/v2/webhooks/dd76b5e0-5b74-4a68-b0ad-db6efbed7b9c",
"webhook": "https://new.costlocker.com/api-public/v2/webhooks/dd76b5e0-5b74-4a68-b0ad-db6efbed7b9c",
"example": "https://new.costlocker.com/api-public/v2/webhooks/dd76b5e0-5b74-4a68-b0ad-db6efbed7b9c/test"
"example": "https://new.costlocker.com/api-public/v2/webhooks/dd76b5e0-5b74-4a68-b0ad-db6efbed7b9c/test"
}
}
},
},
"data": [{
"data": [{
"event": "timeentries.create",
"event": "timeentries.create",
"data": [{
"data": [{
"uuid": "139fce1b-c243-4890-b328-ec5d8394e073",
"uuid": "139fce1b-c243-4890-b328-ec5d8394e073",
"date": "2017-06-09T09:53:06+0000",
"date": "2017-06-09T09:53:06+0000",
"duration": 3600,
"duration": 3600,
"description": "Init project",
"description": "Init project",
"assignment": {
"assignment": {
"person_id": 1,
"person_id": 1,
"project_id": 1,
"project_id": 1,
"activity_id": 1,
"activity_id": 1,
"task_id": 1
"task_id": 1
},
},
"names": {
"names": {
"person_fullname": "John Doe",
"person_fullname": "John Doe",
"project_name": "Website",
"project_name": "Website",
"client_name": "ACME",
"client_name": "ACME",
"activity_name": "Design",
"activity_name": "Design",
"task_name": "Homepage"
"task_name": "Homepage"
}
}
}]
}]
}, {
}, {
"event": "timeentries.update",
"event": "timeentries.update",
"data": [{
"data": [{
"uuid": "e74dd664-ac42-473c-beae-e3081640c7a9",
"uuid": "e74dd664-ac42-473c-beae-e3081640c7a9",
"date": "2017-06-09T09:53:06+0000",
"date": "2017-06-09T09:53:06+0000",
"duration": 3600,
"duration": 3600,
"description": "Init project",
"description": "Init project",
"assignment": {
"assignment": {
"person_id": 1,
"person_id": 1,
"project_id": 1,
"project_id": 1,
"activity_id": 1,
"activity_id": 1,
"task_id": 1
"task_id": 1
},
},
"names": {
"names": {
"person_fullname": "John Doe",
"person_fullname": "John Doe",
"project_name": "Website",
"project_name": "Website",
"client_name": "ACME",
"client_name": "ACME",
"activity_name": "Design",
"activity_name": "Design",
"task_name": "Homepage"
"task_name": "Homepage"
}
}
}]
}]
}, {
}, {
"event": "projects.create",
"event": "projects.create",
"data": [{
"data": [{
"id": 1,
"id": 1,
"name": "Website",
"name": "Website",
"state": "running",
"state": "running",
"client": {
"client": {
"id": 1,
"id": 1,
"name": "ACME"
"name": "ACME"
},
},
"dates": {
"dates": {
"date_start": "2017-06-09",
"date_start": "2017-06-09",
"date_end": "2017-07-09"
"date_end": "2017-07-09"
},
},
"project_id": {
"project_id": {
"id": null,
"id": null,
"is_generated": false
"is_generated": false
},
},
"tags": [{
"tags": [{
"name": "Billable"
"name": "Billable"
}],
}],
"responsible_people": [{
"responsible_people": [{
"email": "john@example.com",
"email": "john@example.com",
"first_name": "John",
"first_name": "John",
"last_name": "Doe"
"last_name": "Doe"
}],
}],
"budget": {
"type": "time_estimates.person_activity"
},
"links": {
"links": {
"project": "https://new.costlocker.com/api-public/v2/projects/1",
"project": "https://new.costlocker.com/api-public/v2/projects/1",
"peoplecosts": "https://new.costlocker.com/api-public/v2/projects/1?types=peoplecosts",
"peoplecosts": "https://new.costlocker.com/api-public/v2/projects/1?types=peoplecosts",
"billing": "https://new.costlocker.com/api-public/v2/projects/1?types=billing",
"billing": "https://new.costlocker.com/api-public/v2/projects/1?types=billing",
"expenses": "https://new.costlocker.com/api-public/v2/projects/1?types=expenses",
"expenses": "https://new.costlocker.com/api-public/v2/projects/1?types=expenses",
"discounts": "https://new.costlocker.com/api-public/v2/projects/1?types=discounts"
"discounts": "https://new.costlocker.com/api-public/v2/projects/1?types=discounts"
}
}
}]
}]
}, {
}, {
"event": "peoplecosts.change",
"event": "peoplecosts.change",
"data": [{
"data": [{
"id": 1,
"id": 1,
"items": [{
"items": [{
"action": "upsert",
"action": "upsert",
"item": {
"item": {
"type": "project"
},
"budget": {
"total_amount": null
}
}, {
"action": "upsert",
"item": {
"type": "activity",
"type": "activity",
"activity_id": 1
"activity_id": 1
},
},
"activity": {
"activity": {
"name": "Design",
"name": "Design",
"hourly_rate": 100
"hourly_rate": 100
},
"hours": {
"budget": null
},
"budget": {
"total_amount": null
}
}
}, {
}, {
"action": "upsert",
"action": "upsert",
"item": {
"item": {
"type": "person",
"type": "person",
"activity_id": 1,
"activity_id": 1,
"person_id": 1
"person_id": 1
},
},
"hours": {
"hours": {
"budget": 20
"budget": 20
},
},
"person": {
"person": {
"email": "test@example.com",
"email": "test@example.com",
"first_name": "Tester",
"first_name": "Tester",
"last_name": "Test"
"last_name": "Test"
},
},
"activity": {
"activity": {
"name": "Design"
"name": "Design"
}
}
}, {
}, {
"action": "upsert",
"action": "upsert",
"item": {
"item": {
"type": "task",
"type": "task",
"activity_id": 1,
"activity_id": 1,
"person_id": 1,
"person_id": 1,
"task_id": 1
"task_id": 1
},
},
"hours": {
"hours": {
"budget": 20
"budget": 20
},
},
"person": {
"person": {
"email": "test@example.com",
"email": "test@example.com",
"first_name": "Tester",
"first_name": "Tester",
"last_name": "Test"
"last_name": "Test"
},
},
"activity": {
"activity": {
"name": "Design"
"name": "Design"
},
},
"task": {
"task": {
"name": "Homepage"
"name": "Homepage"
}
}
}, {
}, {
"action": "delete",
"action": "delete",
"item": {
"item": {
"type": "activity",
"type": "activity",
"activity_id": 2
"activity_id": 2
}
}
}, {
}, {
"action": "delete",
"action": "delete",
"item": {
"item": {
"type": "person",
"type": "person",
"activity_id": 2,
"activity_id": 2,
"person_id": 2
"person_id": 2
},
},
"hours": {
"hours": {
"budget": 0
"budget": 0
}
}
}, {
}, {
"action": "delete",
"action": "delete",
"item": {
"item": {
"type": "task",
"type": "task",
"activity_id": 2,
"activity_id": 2,
"person_id": 2,
"person_id": 2,
"task_id": 2
"task_id": 2
},
},
"hours": {
"hours": {
"budget": 0
"budget": 0
}
}
}],
}],
"links": {
"links": {
"project": "https://new.costlocker.com/api-public/v2/projects/1",
"project": "https://new.costlocker.com/api-public/v2/projects/1",
"peoplecosts": "https://new.costlocker.com/api-public/v2/projects/1?types=peoplecosts",
"peoplecosts": "https://new.costlocker.com/api-public/v2/projects/1?types=peoplecosts",
"billing": "https://new.costlocker.com/api-public/v2/projects/1?types=billing",
"billing": "https://new.costlocker.com/api-public/v2/projects/1?types=billing",
"expenses": "https://new.costlocker.com/api-public/v2/projects/1?types=expenses",
"expenses": "https://new.costlocker.com/api-public/v2/projects/1?types=expenses",
"discounts": "https://new.costlocker.com/api-public/v2/projects/1?types=discounts"
"discounts": "https://new.costlocker.com/api-public/v2/projects/1?types=discounts"
}
}
}]
}]
}, {
}, {
"event": "expenses.change",
"event": "expenses.change",
"data": [{
"data": [{
"id": 1,
"id": 1,
"items": [{
"items": [{
"action": "upsert",
"action": "upsert",
"item": {
"item": {
"type": "expense",
"type": "expense",
"expense_id": 1
"expense_id": 1
},
},
"expense": {
"expense": {
"description": "Invision license",
"description": "Invision license",
"purchased": {
"purchased": {
"total_amount": 2000,
"total_amount": 2000,
"date": "2017-03-28"
"date": "2017-03-28"
},
},
"billed": {
"billed": {
"total_amount": 1000
"total_amount": 1000
}
}
}
}
}, {
}, {
"action": "delete",
"action": "delete",
"item": {
"item": {
"type": "expense",
"type": "expense",
"expense_id": 2
"expense_id": 2
}
}
}],
}],
"links": {
"links": {
"project": "https://new.costlocker.com/api-public/v2/projects/1",
"project": "https://new.costlocker.com/api-public/v2/projects/1",
"peoplecosts": "https://new.costlocker.com/api-public/v2/projects/1?types=peoplecosts",
"peoplecosts": "https://new.costlocker.com/api-public/v2/projects/1?types=peoplecosts",
"billing": "https://new.costlocker.com/api-public/v2/projects/1?types=billing",
"billing": "https://new.costlocker.com/api-public/v2/projects/1?types=billing",
"expenses": "https://new.costlocker.com/api-public/v2/projects/1?types=expenses",
"expenses": "https://new.costlocker.com/api-public/v2/projects/1?types=expenses",
"discounts": "https://new.costlocker.com/api-public/v2/projects/1?types=discounts"
"discounts": "https://new.costlocker.com/api-public/v2/projects/1?types=discounts"
}
}
}]
}]
}, {
}, {
"event": "billing.change",
"event": "billing.change",
"data": [{
"data": [{
"id": 1,
"id": 1,
"items": [{
"items": [{
"action": "upsert",
"action": "upsert",
"item": {
"item": {
"type": "billing",
"type": "billing",
"billing_id": 1
"billing_id": 1
},
},
"billing": {
"billing": {
"description": "Invoice 2017000019",
"description": "Invoice 2017000019",
"total_amount": 1000,
"total_amount": 1000,
"date": "2017-04-01",
"date": "2017-04-01",
"status": "sent"
"status": "sent"
}
}
}, {
}, {
"action": "delete",
"action": "delete",
"item": {
"item": {
"type": "billing",
"type": "billing",
"billing_id": 2
"billing_id": 2
}
}
}],
}],
"links": {
"links": {
"project": "https://new.costlocker.com/api-public/v2/projects/1",
"project": "https://new.costlocker.com/api-public/v2/projects/1",
"peoplecosts": "https://new.costlocker.com/api-public/v2/projects/1?types=peoplecosts",
"peoplecosts": "https://new.costlocker.com/api-public/v2/projects/1?types=peoplecosts",
"billing": "https://new.costlocker.com/api-public/v2/projects/1?types=billing",
"billing": "https://new.costlocker.com/api-public/v2/projects/1?types=billing",
"expenses": "https://new.costlocker.com/api-public/v2/projects/1?types=expenses",
"expenses": "https://new.costlocker.com/api-public/v2/projects/1?types=expenses",
"discounts": "https://new.costlocker.com/api-public/v2/projects/1?types=discounts"
"discounts": "https://new.costlocker.com/api-public/v2/projects/1?types=discounts"
}
}
}]
}]
}]
}]
}
}