Business Trips
Add Business Trip
Endpoint to add a new BusinessTrip.
post/business/v2/business-trips
Headers
X-Soldo-Fingerprintstring required
Advanced authentication: SHA512SUM of the fingerprint values listed in the fingerprint order for this endpoint.
Example:{{fingerprint}}
X-Soldo-Fingerprint-Signaturestring required
Advanced authentication: Signature of the X-Soldo-Fingerprint.
Example:{{fingerprint_signature}}
Request body
Example request
{
"request_timestamp": 1576850500000,
"name": "EXAMPLE BUSINESS TRIP",
"description": "EXAMPLE BUSINESS TRIP DESCRIPTION",
"destination": "monte fato",
"traveller_user_id": "XMPL1234-000001",
"traveller_card_id": "7bf79328-a7ae-4222-aa54-091ff7f429a7",
"wallet_id": "7bf79328-a7ae-4222-aa54-091ff7f429a7",
"tags": [
{
"tag_id": "2d65bd5e-3fdf-4002-b166-bde7fb8863fa",
"dictionary_id": "2d65bd5e-3fdf-4002-b166-bde7fb8863fa"
}
],
"from_date": "2017-06-01T12:48:40Z",
"to_date": "2017-06-01T12:48:40Z",
"expense_allocation": [
{
"expense_category_id": "7bf79328-a7ae-4222-aa54-091ff7f429a7",
"amount": 10.25,
"description": "CUSTOM_EXPENSE"
}
]
}Response
The returned resource is a single BusinessTrip.
Example response
{
"id": "7bf79328-a7ae-4222-aa54-091ff7f429a7",
"name": "There and back again",
"description": "EXAMPLE BUSINESS TRIP DESCRIPTION",
"author_user_id": "XMPL1234-000001",
"approver_user_id": "XMPL1234-000003",
"traveller_user_id": "XMPL1234-000003",
"traveller_card_id": "2d65bd5e-3fdf-4002-b166-bde7fb8863fa",
"total_amount": 10.25,
"wallet_id": "2d65bd5e-3fdf-4002-b166-bde7fb8863fa",
"creation_time": "2017-06-01T12:48:40Z",
"last_update_time": "2017-06-01T12:48:40Z",
"expense_allocation": [
{
"expense_category_id": "7bf79328-a7ae-4222-aa54-091ff7f429a7",
"amount": 10.25,
"description": "CUSTOM_EXPENSE"
}
],
"tags": [
{
"tag_id": "2d65bd5e-3fdf-4002-b166-bde7fb8863fa",
"dictionary_id": "2d65bd5e-3fdf-4002-b166-bde7fb8863fa"
}
]
}