Pulling Profit And Loss Information in Bulk


In order to get information about profit and loss for multiple orders, you can consume the endpoint presented in this article. In order to consume it, you must:

  • Be authenticated user

For information on how you can authenticate, see: Authentication

As soon as you do authentication and receive a valid token, it needs to be passed on every call to the server.


Example for such endpoint for TT server is:


For your server endpoint will be:


Request Payload


Field Description
OrderID ID of the sales order.
OrderItems Array of order items information related to fees, commissions, prices, costs for each item.
CurrencyCode Currency code of the order. Info for all available currencies can be found here: https://developer.sellercloud.com/article/tgetz37vsb-currency-codes
PaymentStatus All available payment statuses can be found here:


ShippingStatus All available shipping statuses can be found here:


ShipDate When order has been shipped.
Channel Codes for all channels can be found here:


CustomerID ID of the customer. That information can be used for doing other calls for retrieving additional information for that customer> More info here:


DropshipFee Dropshipping fee.

If orders is not using USD, then dropshipping fee will be calculated in the correct order’s currency according to the currency rates.
DropshipFeeUsd Dropshipping fee in USD.
Commission Commission fee. If order is from Amazon or FBA order, than commissions is “N/A”

If orders is not using USD, then commission will be calculated in the correct order’s currency according to the currency rates.

Response Status Codes






Internal Server Error

Demo in c#


public DateTime? validFrom { get; set; }
public DateTime? validTo { get; set; }

public interface IAuthenticationClient
string Login(string baseUri, LoginRequest request);

public class LoginRequest

public LoginRequest(string username, string password)
this.Username = username;
this.Password = password;

public string Username { get; }

public string Password { get; }

var responseMessage = client.SendAsync(request).Result;

var content = responseMessage.Content

var response = JsonConvert.DeserializeObject(content);

return response.access_token;

Getting Profit And Loss

string username = “{your_username}”;
string password = “{your_password}”;

IAuthenticationClient authenticationClient = new AuthenticationClient();
string token = authenticationClient.Login(baseUri, new LoginRequest(username, password));

var content = new GetProfitAndLossRequest()
Orders = realOrders

using (var client = new HttpClient())
using (var request = new HttpRequestMessage(HttpMethod.Post, url))
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(“Bearer”, token);

var json = JsonConvert.SerializeObject(content);
using (var stringContent = new StringContent(json, Encoding.UTF8, “application/json”))
request.Content = stringContent;

var responseMessage = await client.SendAsync(request);

var jsonContent = await responseMessage.Content.ReadAsStringAsync();

Was this article helpful?

Related Articles