curl --request PUT \
--url https://api.exowpee.com/v1/accounting/client/transfer-pricing-narratives/{transferPricingNarrative} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"payload": {
"ultimate_parent_name": "<string>",
"ultimate_parent_address": "<string>",
"ultimate_parent_country": "<string>",
"group_activities": "<string>",
"group_pricing_policy": "<string>",
"intangibles": "<string>",
"restructuring_occurred": true,
"restructuring_description": "<string>",
"advance_pricing_agreement": true,
"advance_pricing_description": "<string>",
"significant_change": true,
"observations": "<string>"
}
}
'import requests
url = "https://api.exowpee.com/v1/accounting/client/transfer-pricing-narratives/{transferPricingNarrative}"
payload = { "payload": {
"ultimate_parent_name": "<string>",
"ultimate_parent_address": "<string>",
"ultimate_parent_country": "<string>",
"group_activities": "<string>",
"group_pricing_policy": "<string>",
"intangibles": "<string>",
"restructuring_occurred": True,
"restructuring_description": "<string>",
"advance_pricing_agreement": True,
"advance_pricing_description": "<string>",
"significant_change": True,
"observations": "<string>"
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
payload: {
ultimate_parent_name: '<string>',
ultimate_parent_address: '<string>',
ultimate_parent_country: '<string>',
group_activities: '<string>',
group_pricing_policy: '<string>',
intangibles: '<string>',
restructuring_occurred: true,
restructuring_description: '<string>',
advance_pricing_agreement: true,
advance_pricing_description: '<string>',
significant_change: true,
observations: '<string>'
}
})
};
fetch('https://api.exowpee.com/v1/accounting/client/transfer-pricing-narratives/{transferPricingNarrative}', 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/{transferPricingNarrative}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'payload' => [
'ultimate_parent_name' => '<string>',
'ultimate_parent_address' => '<string>',
'ultimate_parent_country' => '<string>',
'group_activities' => '<string>',
'group_pricing_policy' => '<string>',
'intangibles' => '<string>',
'restructuring_occurred' => true,
'restructuring_description' => '<string>',
'advance_pricing_agreement' => true,
'advance_pricing_description' => '<string>',
'significant_change' => true,
'observations' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.exowpee.com/v1/accounting/client/transfer-pricing-narratives/{transferPricingNarrative}"
payload := strings.NewReader("{\n \"payload\": {\n \"ultimate_parent_name\": \"<string>\",\n \"ultimate_parent_address\": \"<string>\",\n \"ultimate_parent_country\": \"<string>\",\n \"group_activities\": \"<string>\",\n \"group_pricing_policy\": \"<string>\",\n \"intangibles\": \"<string>\",\n \"restructuring_occurred\": true,\n \"restructuring_description\": \"<string>\",\n \"advance_pricing_agreement\": true,\n \"advance_pricing_description\": \"<string>\",\n \"significant_change\": true,\n \"observations\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.put("https://api.exowpee.com/v1/accounting/client/transfer-pricing-narratives/{transferPricingNarrative}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"payload\": {\n \"ultimate_parent_name\": \"<string>\",\n \"ultimate_parent_address\": \"<string>\",\n \"ultimate_parent_country\": \"<string>\",\n \"group_activities\": \"<string>\",\n \"group_pricing_policy\": \"<string>\",\n \"intangibles\": \"<string>\",\n \"restructuring_occurred\": true,\n \"restructuring_description\": \"<string>\",\n \"advance_pricing_agreement\": true,\n \"advance_pricing_description\": \"<string>\",\n \"significant_change\": true,\n \"observations\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/accounting/client/transfer-pricing-narratives/{transferPricingNarrative}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"payload\": {\n \"ultimate_parent_name\": \"<string>\",\n \"ultimate_parent_address\": \"<string>\",\n \"ultimate_parent_country\": \"<string>\",\n \"group_activities\": \"<string>\",\n \"group_pricing_policy\": \"<string>\",\n \"intangibles\": \"<string>\",\n \"restructuring_occurred\": true,\n \"restructuring_description\": \"<string>\",\n \"advance_pricing_agreement\": true,\n \"advance_pricing_description\": \"<string>\",\n \"significant_change\": true,\n \"observations\": \"<string>\"\n }\n}"
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>",
"errors": {}
}Replace the transfer-pricing answers of a year (client account)
Replaces the written answers of a fiscal year (client space).
curl --request PUT \
--url https://api.exowpee.com/v1/accounting/client/transfer-pricing-narratives/{transferPricingNarrative} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"payload": {
"ultimate_parent_name": "<string>",
"ultimate_parent_address": "<string>",
"ultimate_parent_country": "<string>",
"group_activities": "<string>",
"group_pricing_policy": "<string>",
"intangibles": "<string>",
"restructuring_occurred": true,
"restructuring_description": "<string>",
"advance_pricing_agreement": true,
"advance_pricing_description": "<string>",
"significant_change": true,
"observations": "<string>"
}
}
'import requests
url = "https://api.exowpee.com/v1/accounting/client/transfer-pricing-narratives/{transferPricingNarrative}"
payload = { "payload": {
"ultimate_parent_name": "<string>",
"ultimate_parent_address": "<string>",
"ultimate_parent_country": "<string>",
"group_activities": "<string>",
"group_pricing_policy": "<string>",
"intangibles": "<string>",
"restructuring_occurred": True,
"restructuring_description": "<string>",
"advance_pricing_agreement": True,
"advance_pricing_description": "<string>",
"significant_change": True,
"observations": "<string>"
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
payload: {
ultimate_parent_name: '<string>',
ultimate_parent_address: '<string>',
ultimate_parent_country: '<string>',
group_activities: '<string>',
group_pricing_policy: '<string>',
intangibles: '<string>',
restructuring_occurred: true,
restructuring_description: '<string>',
advance_pricing_agreement: true,
advance_pricing_description: '<string>',
significant_change: true,
observations: '<string>'
}
})
};
fetch('https://api.exowpee.com/v1/accounting/client/transfer-pricing-narratives/{transferPricingNarrative}', 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/{transferPricingNarrative}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'payload' => [
'ultimate_parent_name' => '<string>',
'ultimate_parent_address' => '<string>',
'ultimate_parent_country' => '<string>',
'group_activities' => '<string>',
'group_pricing_policy' => '<string>',
'intangibles' => '<string>',
'restructuring_occurred' => true,
'restructuring_description' => '<string>',
'advance_pricing_agreement' => true,
'advance_pricing_description' => '<string>',
'significant_change' => true,
'observations' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.exowpee.com/v1/accounting/client/transfer-pricing-narratives/{transferPricingNarrative}"
payload := strings.NewReader("{\n \"payload\": {\n \"ultimate_parent_name\": \"<string>\",\n \"ultimate_parent_address\": \"<string>\",\n \"ultimate_parent_country\": \"<string>\",\n \"group_activities\": \"<string>\",\n \"group_pricing_policy\": \"<string>\",\n \"intangibles\": \"<string>\",\n \"restructuring_occurred\": true,\n \"restructuring_description\": \"<string>\",\n \"advance_pricing_agreement\": true,\n \"advance_pricing_description\": \"<string>\",\n \"significant_change\": true,\n \"observations\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.put("https://api.exowpee.com/v1/accounting/client/transfer-pricing-narratives/{transferPricingNarrative}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"payload\": {\n \"ultimate_parent_name\": \"<string>\",\n \"ultimate_parent_address\": \"<string>\",\n \"ultimate_parent_country\": \"<string>\",\n \"group_activities\": \"<string>\",\n \"group_pricing_policy\": \"<string>\",\n \"intangibles\": \"<string>\",\n \"restructuring_occurred\": true,\n \"restructuring_description\": \"<string>\",\n \"advance_pricing_agreement\": true,\n \"advance_pricing_description\": \"<string>\",\n \"significant_change\": true,\n \"observations\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/accounting/client/transfer-pricing-narratives/{transferPricingNarrative}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"payload\": {\n \"ultimate_parent_name\": \"<string>\",\n \"ultimate_parent_address\": \"<string>\",\n \"ultimate_parent_country\": \"<string>\",\n \"group_activities\": \"<string>\",\n \"group_pricing_policy\": \"<string>\",\n \"intangibles\": \"<string>\",\n \"restructuring_occurred\": true,\n \"restructuring_description\": \"<string>\",\n \"advance_pricing_agreement\": true,\n \"advance_pricing_description\": \"<string>\",\n \"significant_change\": true,\n \"observations\": \"<string>\"\n }\n}"
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>",
"errors": {}
}transfer_pricing_narratives.update
Conditions
- The accounting module must be part of the organization’s plan.
- payload is required and replaces all the previous answers: a question left out is no longer answered. The same questions and rules as when the answers are written apply.
- The fiscal year never changes.
- Records who made the change (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.
Path Parameters
Identifier of the written answers of a fiscal year (27-character KSUID string), those of the book.
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: .
Body
Replaces the written answers of the year. The fiscal year does not change.
The written answers: an object that holds only the questions below; any other key is refused. Required. It replaces all the previous answers.
Show child attributes
Show child attributes
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.