PATCH
/v2/api/corporate/expenseCode
Use this Api to add or remove expense code allocation.
Name | Data Type | Description | Type | Remark |
---|---|---|---|---|
expense_code | string | Expense Code Name | Payload | Mandatory |
expense_code_creation_level | string | Expense Code level | Payload | Mandatory |
expense_code_created_for | string | Expense Code Created For | Payload | Mandatory |
operation | string | Add or Remove | Payload | Mandatory (only add or remove values allowed) |
PATCH
https://devapi.olacabs.com/v2/api/corporate/expenseCode
{
"expense_code": "corp2",
"expense_code_creation_level": "EMPLOYEE",
"expense_code_created_for": "example@corporate_partners.com",
"operation": "remove"
}
Headers: {
X-CORPORATE-TOKEN: fd5d4d3726121212f12ff12f12f1f12f1f12fa
}
{
"expense_code": "expenseCodeName",
"expense_code_creation_level": "EMPLOYEE",
"expense_code_created_for": "example@corporate_partners.com",
"operation": "add"
}