curl --request POST \
--url https://api.exowpee.com/v1/accounting/client/transfer-pricing-narratives \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exowpee.com/v1/accounting/client/transfer-pricing-narratives"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.exowpee.com/v1/accounting/client/transfer-pricing-narratives', 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.exowpee.com/v1/accounting/client/transfer-pricing-narratives",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.exowpee.com/v1/accounting/client/transfer-pricing-narratives"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.exowpee.com/v1/accounting/client/transfer-pricing-narratives")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/accounting/client/transfer-pricing-narratives")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"owner_type": "<string>",
"fiscal_year_id": "<string>",
"payload": {},
"updated_by": "<string>",
"updated_by_type": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Write the transfer-pricing answers of a year (client account)
Records the written answers that the transfer-pricing declaration asks about the group (ultimate parent, activities, pricing policy, restructuring, advance pricing agreement) for one fiscal year of the book (client space).
curl --request POST \
--url https://api.exowpee.com/v1/accounting/client/transfer-pricing-narratives \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exowpee.com/v1/accounting/client/transfer-pricing-narratives"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.exowpee.com/v1/accounting/client/transfer-pricing-narratives', 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.exowpee.com/v1/accounting/client/transfer-pricing-narratives",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.exowpee.com/v1/accounting/client/transfer-pricing-narratives"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.exowpee.com/v1/accounting/client/transfer-pricing-narratives")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/accounting/client/transfer-pricing-narratives")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"owner_type": "<string>",
"fiscal_year_id": "<string>",
"payload": {},
"updated_by": "<string>",
"updated_by_type": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}transfer_pricing_narratives.create
Conditions
- The accounting module must be part of the organization’s plan.
- fiscal_year_id is required and must be a fiscal year of the book. A fiscal year has one set of answers: a second set is refused, update the existing one.
- payload is required and an object that holds only the questions ultimate_parent_name, ultimate_parent_address, ultimate_parent_country, group_activities, group_pricing_policy, intangibles, restructuring_occurred, restructuring_description, advance_pricing_agreement, advance_pricing_description, significant_change and observations; any other key is refused. Each question may be null or left out.
- restructuring_occurred, advance_pricing_agreement and significant_change are true or false; ultimate_parent_country is two letters (ISO 3166-1 alpha-2); the others are text of 10,000 characters at most.
- Creates the answers exactly as sent and records who wrote them (updated_by and updated_by_type).
- A transfer-pricing draft of that year becomes stale and must be regenerated before it is filed.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Response mode. Default none; none answers 204 No Content.
none, resource Comma-separated JSON keys of the root resource (id is always rendered). Available: id, owner_type, fiscal_year_id, payload, updated_by, updated_by_type, created_at, updated_at.
Comma-separated include paths, each optionally followed by its fields in parentheses: units(id,sku),units.uomUnit(id,name). Max depth 6, max 40 paths. Available: .
Response
Resource (only with response=resource).
Identifier of the answers (27-character KSUID string).
Kind of book that holds the answers: organization, company or client account.
Identifier of the fiscal year the answers are for (27-character KSUID string).
The written answers, as saved: an object with the questions that were sent. A question never sent is absent. The questions are:
advance_pricing_agreement: Whether an advance pricing agreement exists.advance_pricing_description: Description of the advance pricing agreement.group_activities: Description of the activities of the group.group_pricing_policy: Description of the transfer-pricing policy of the group.intangibles: Description of the intangible assets of the group.observations: Free observations.restructuring_description: Description of the restructuring.restructuring_occurred: Whether a restructuring occurred during the year.significant_change: Whether a significant change occurred during the year.ultimate_parent_address: Address of the ultimate parent entity.ultimate_parent_country: Country of the ultimate parent entity (ISO 3166-1 alpha-2).ultimate_parent_name: Name of the ultimate parent entity of the group.
Identifier of the member or agent account who wrote or last changed them; null when the actor could not be resolved.
Kind of actor in updated_by (member or agent account); null when none could be resolved.
When the answers were first written, ISO 8601.
When the answers were last changed, ISO 8601.