cURL
curl --request POST \
--url https://api.smartbills.io/v1/businesses/{businessId}/expense-reports/{reportId}/recall \
--header 'Content-Type: application/json' \
--data '
{
"reason": "<string>"
}
'import requests
url = "https://api.smartbills.io/v1/businesses/{businessId}/expense-reports/{reportId}/recall"
payload = { "reason": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({reason: '<string>'})
};
fetch('https://api.smartbills.io/v1/businesses/{businessId}/expense-reports/{reportId}/recall', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.smartbills.io/v1/businesses/{businessId}/expense-reports/{reportId}/recall",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'reason' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.smartbills.io/v1/businesses/{businessId}/expense-reports/{reportId}/recall"
payload := strings.NewReader("{\n \"reason\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.smartbills.io/v1/businesses/{businessId}/expense-reports/{reportId}/recall")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.smartbills.io/v1/businesses/{businessId}/expense-reports/{reportId}/recall")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"reason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"reportNumber": "<string>",
"title": "<string>",
"description": "<string>",
"businessPurpose": "<string>",
"total": {
"amount": 123,
"currency": "<string>",
"conversion": {
"originalAmount": 123,
"originalCurrency": "<string>",
"exchangeRate": 123,
"convertedAt": "2023-11-07T05:31:56Z"
}
},
"approved": {
"amount": 123,
"currency": "<string>",
"conversion": {
"originalAmount": 123,
"originalCurrency": "<string>",
"exchangeRate": 123,
"convertedAt": "2023-11-07T05:31:56Z"
}
},
"reimbursed": {
"amount": 123,
"currency": "<string>",
"conversion": {
"originalAmount": 123,
"originalCurrency": "<string>",
"exchangeRate": 123,
"convertedAt": "2023-11-07T05:31:56Z"
}
},
"totalAmount": 123,
"currency": "<string>",
"approvedAmount": 123,
"reimbursedAmount": 123,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"submittedAt": "2023-11-07T05:31:56Z",
"reimbursedAt": "2023-11-07T05:31:56Z",
"plannedReimbursementDate": "2023-11-07T05:31:56Z",
"business": {
"id": 123,
"name": "<string>",
"slug": "<string>",
"customerEmail": "<string>",
"phoneNumber": "<string>",
"website": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"stateCode": "<string>",
"country": "<string>",
"countryCode": "<string>",
"postalCode": "<string>",
"location": {
"longitude": 123,
"latitude": 123
},
"googlePlaceId": "<string>",
"formattedAddress": "<string>"
},
"logo": "<string>"
},
"employee": {
"id": 123,
"firstName": "<string>",
"lastName": "<string>",
"name": "<string>",
"email": "<string>",
"avatar": "<string>"
},
"submittedByEmployee": {
"id": 123,
"firstName": "<string>",
"lastName": "<string>",
"name": "<string>",
"email": "<string>",
"avatar": "<string>"
},
"delegateEmployee": {
"id": 123,
"firstName": "<string>",
"lastName": "<string>",
"name": "<string>",
"email": "<string>",
"avatar": "<string>"
},
"createdByEmployee": {
"id": 123,
"firstName": "<string>",
"lastName": "<string>",
"name": "<string>",
"email": "<string>",
"avatar": "<string>"
},
"expenseCount": 123,
"commentsCount": 123,
"reimbursementCount": 123
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}ExpenseReports
Post v1businesses expense reports recall
POST
/
v1
/
businesses
/
{businessId}
/
expense-reports
/
{reportId}
/
recall
cURL
curl --request POST \
--url https://api.smartbills.io/v1/businesses/{businessId}/expense-reports/{reportId}/recall \
--header 'Content-Type: application/json' \
--data '
{
"reason": "<string>"
}
'import requests
url = "https://api.smartbills.io/v1/businesses/{businessId}/expense-reports/{reportId}/recall"
payload = { "reason": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({reason: '<string>'})
};
fetch('https://api.smartbills.io/v1/businesses/{businessId}/expense-reports/{reportId}/recall', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.smartbills.io/v1/businesses/{businessId}/expense-reports/{reportId}/recall",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'reason' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.smartbills.io/v1/businesses/{businessId}/expense-reports/{reportId}/recall"
payload := strings.NewReader("{\n \"reason\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.smartbills.io/v1/businesses/{businessId}/expense-reports/{reportId}/recall")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.smartbills.io/v1/businesses/{businessId}/expense-reports/{reportId}/recall")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"reason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": 123,
"reportNumber": "<string>",
"title": "<string>",
"description": "<string>",
"businessPurpose": "<string>",
"total": {
"amount": 123,
"currency": "<string>",
"conversion": {
"originalAmount": 123,
"originalCurrency": "<string>",
"exchangeRate": 123,
"convertedAt": "2023-11-07T05:31:56Z"
}
},
"approved": {
"amount": 123,
"currency": "<string>",
"conversion": {
"originalAmount": 123,
"originalCurrency": "<string>",
"exchangeRate": 123,
"convertedAt": "2023-11-07T05:31:56Z"
}
},
"reimbursed": {
"amount": 123,
"currency": "<string>",
"conversion": {
"originalAmount": 123,
"originalCurrency": "<string>",
"exchangeRate": 123,
"convertedAt": "2023-11-07T05:31:56Z"
}
},
"totalAmount": 123,
"currency": "<string>",
"approvedAmount": 123,
"reimbursedAmount": 123,
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"submittedAt": "2023-11-07T05:31:56Z",
"reimbursedAt": "2023-11-07T05:31:56Z",
"plannedReimbursementDate": "2023-11-07T05:31:56Z",
"business": {
"id": 123,
"name": "<string>",
"slug": "<string>",
"customerEmail": "<string>",
"phoneNumber": "<string>",
"website": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"stateCode": "<string>",
"country": "<string>",
"countryCode": "<string>",
"postalCode": "<string>",
"location": {
"longitude": 123,
"latitude": 123
},
"googlePlaceId": "<string>",
"formattedAddress": "<string>"
},
"logo": "<string>"
},
"employee": {
"id": 123,
"firstName": "<string>",
"lastName": "<string>",
"name": "<string>",
"email": "<string>",
"avatar": "<string>"
},
"submittedByEmployee": {
"id": 123,
"firstName": "<string>",
"lastName": "<string>",
"name": "<string>",
"email": "<string>",
"avatar": "<string>"
},
"delegateEmployee": {
"id": 123,
"firstName": "<string>",
"lastName": "<string>",
"name": "<string>",
"email": "<string>",
"avatar": "<string>"
},
"createdByEmployee": {
"id": 123,
"firstName": "<string>",
"lastName": "<string>",
"name": "<string>",
"email": "<string>",
"avatar": "<string>"
},
"expenseCount": 123,
"commentsCount": 123,
"reimbursementCount": 123
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Body
application/jsontext/jsonapplication/*+json
Response
OK
Available options:
DRAFT, SUBMITTED, UNDER_REVIEW, APPROVED, REJECTED, REIMBURSED, CANCELLED, REIMBURSEMENT_PLANNED, REQUIRES_CHANGES, PARTIALLY_APPROVED, PARTIALLY_REIMBURSED Available options:
NOT_PAID, PENDING, PROCESSING, PAID, PARTIALLY_PAID, FAILED, CANCELLED Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?
⌘I