The access token must be included in every API request using the following HTTP header:
Every API request authenticated with an OAuth access token must also specify the target company (tenant) by including the CompanyID header.
To retrieve the list of companies available to the authenticated user or application, call:
Response
XML / HTTP Copy
<Lot>
<Product>
<ItemID></ItemID>
<Name></Name>
<Code></Code>
</Product>
<LotID></LotID>
<LotNumber></LotNumber>
<ExpiryDate></ExpiryDate>
<Description></Description>
<IsInactive></IsInactive>
</Lot>
Tag
Description
<ItemID>
Unique system identifier for product
<Code>
Product code (SKU)
<LotID>
Unique system identifier for lot.
See Get Lot
<IsInactive>
Boolean value (false | true)
Back to Items
GET Get Lot By Number
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/lotByNumber/{ItemID}/{LotNumber}
Parameter
Description
ItemID
Unique system identifier for product
LotNumber
Lot number
Response
XML / HTTP Copy
<Lot>
<Product>
<ItemID></ItemID>
<Name></Name>
<Code></Code>
</Product>
<LotID></LotID>
<LotNumber></LotNumber>
<ExpiryDate></ExpiryDate>
<Description></Description>
<IsInactive></IsInactive>
</Lot>
Tag
Description
<ItemID>
Unique system identifier for product
<Code>
Product code (SKU)
<LotID>
Unique system identifier for lot.
See Get Lot
<IsInactive>
Boolean value (false | true)
Back to Items
POST Add Lot
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/product/lot/{ItemID}
Parameter
Description
ItemID
Unique system identifier for product
Payload
XML / HTTP Copy
<Lot>
<LotNumber></LotNumber>
<ExpiryDate></ExpiryDate>
</Lot>
Only <LotNumber> is required.
For tags description please refer to Get Lot request .
Response
XML / HTTP Copy
<Response>
<LotID></LotID>
</Response>
Tag
Description
<LotID>
Unique system identifier for lot
Back to Items
POST Update Lot
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/lot/{LotID}
Parameter
Description
LotID
Unique system identifier for lot
Payload
XML / HTTP Copy
<Lot>
<LotNumber></LotNumber>
<ExpiryDate></ExpiryDate>
<Description></Description>
<IsInactive></IsInactive>
</Lot>
No tags are required.
For tags description please refer to Get Lot request .
Response
XML / HTTP Copy
<Response>
<LotID></LotID>
</Response>
Tag
Description
<LotID>
Unique system identifier for lot
Back to Items
GET Get Service List
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/services
Result list is sorted by service name in ascending order.
There are several options to change the default ordering by passing additional parameters to the request.
Optional parameters are available. Results can be filtered by service name or code.
This result list can be checked for new records and updates. See Optional parameters for additional info.
Response
XML / HTTP Copy
<Services>
<Service>
<ItemID></ItemID>
<Name></Name>
<Code></Code>
<Unit>
<UnitID></UnitID>
<UnitName></UnitName>
</Unit>
<Description />
<OtherLanguageName />
<Status></Status>
<Group>
<GroupID />
<GroupName />
</Group>
<TaxKeys>
<SalesTaxKeyID></SalesTaxKeyID>
<SalesTaxKeyName></SalesTaxKeyName>
</TaxKeys>
<TimeStamps>
<Created />
<Updated />
</TimeStamps>
</Service>
...
</Services>
Tag
Description
<ItemID>
Unique system identifier for service
<Code>
Service code
<UnitID>
Unique system identifier for unit of measure. See Get Unit
<Status>
Possible values:
1 - Active
2 - Discontinued
<GroupID>
Unique system identifier for service group. See Get Service Groups
<SalesTaxKeyID>
Unique system identifier for tax key on sales. See Get Tax Key
<Created>
Date created UTC timestamp
<Updated>
Date updated UTC timestamp
Back to Items
GET Get Service
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/service/{ItemID}
Parameter
Description
ItemID
Unique system identifier for service
Response
XML / HTTP Copy
<Service>
<ItemID></ItemID>
<Name></Name>
<Code></Code>
<Unit>
<UnitID></UnitID>
<UnitName></UnitName>
</Unit>
<Description />
<OtherLanguageName />
<Status></Status>
<Group>
<GroupID />
<GroupName />
</Group>
<TaxKeys>
<SalesTaxKeyID></SalesTaxKeyID>
<SalesTaxKeyName></SalesTaxKeyName>
</TaxKeys>
<Prices>
<Price>
<PriceGroup>
<PriceGroupID></PriceGroupID>
<PriceGroupName></PriceGroupName>
<IncludeTax></IncludeTax>
</PriceGroup>
<IsDefault></IsDefault>
<Amount></Amount>
<Currency></Currency>
</Price>
...
</Prices>
<Accounts>
<IncomeAccountID />
</Accounts>
<TimeStamps>
<Created />
<Updated />
</TimeStamps>
<Tags>
<Tag />
</Tags>
</Service>
Tag
Description
<ItemID>
Unique system identifier for service
<Code>
Service code
<UnitID>
Unique system identifier for unit of measure
<Status>
Possible values:
1 - Active
2 - Discontinued
<GroupID>
Unique system identifier for service group. See Get Service Groups
<SalesTaxKeyID>
Unique system identifier for tax key on sales. See Get Tax Key
<PriceGroupID>
Unique system identifier for price group. See Get Price Group
<IsDefault>
Boolean value (false | true)
<IncludeTax>
Boolean value (false | true)
Shows that amounts are tax inclusive
<IncomeAccountID>
Unique system identifier for income account. See Get Account
<Created>
Date created UTC timestamp
<Updated>
Date updated UTC timestamp
Back to Items
GET Get Service By Code
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/serviceByCode/{Code}
Parameter
Description
Code
Service code
Back to Items
GET Get Service Price List
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/servicePriceList/{PriceGroupID}
Result list is sorted by service name in ascending order.
Optional parameters are available. Results can be filtered by service name or code.
Parameter
Description
PriceGroupID
Unique system identifier for price group. See Get Price Group .
If 0 then the default price group will be applied.
TaxRate
An explicit tax rate can be optionally applied to the request:
GET https://go.paytraq.com/api/servicePriceList/{PriceGroupID}/{TaxRate} ?...
Tax rate to be applied.
If 0 then no tax will be applied.
If {TaxRate} is not provided then the default tax rate of each service will be applied.
Response
XML / HTTP Copy
<Services>
<Service>
<ItemID></ItemID>
<Name></Name>
<Code></Code>
<Price>
<PriceExclTax></PriceExclTax>
<PriceIncTax></PriceIncTax>
<Tax></Tax>
<TaxRate></TaxRate>
<Currency></Currency>
</Price>
</Service>
...
</Services>
Tag
Description
<ItemID>
Unique system identifier for service. See Get Service request .
<Code>
Service code
<PriceExclTax>
Price excluding tax
<PriceIncTax>
Price including tax
<Tax>
Tax value
Back to Items
POST Add Service
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/service
Payload
XML / HTTP Copy
<Service>
<Name></Name>
<Code></Code>
<Unit>
<UnitID></UnitID>
</Unit>
<Description />
<OtherLanguageName />
<Status></Status>
<Group>
<GroupID />
</Group>
<TaxKeys>
<SalesTaxKeyID></SalesTaxKeyID>
</TaxKeys>
</Service>
Only <Name> is required.
For tags description please refer to Get Service request .
Response
XML / HTTP Copy
<Response>
<ItemID></ItemID>
</Response>
Tag
Description
<ItemID>
Unique system identifier for service
Back to Items
POST Update Service
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/service/{ItemID}
Parameter
Description
ItemID
Unique system identifier for service
Payload
XML / HTTP Copy
<Service>
<Name></Name>
<Code></Code>
<Unit>
<UnitID></UnitID>
</Unit>
<Description />
<OtherLanguageName />
<Status></Status>
<Group>
<GroupID />
</Group>
<TaxKeys>
<SalesTaxKeyID></SalesTaxKeyID>
</TaxKeys>
</Service>
No tags are required.
For tags description please refer to Get Service request .
Response
XML / HTTP Copy
<Response>
<ItemID></ItemID>
</Response>
Tag
Description
<ItemID>
Unique system identifier for service
Back to Items
POST Add/Update Service Price
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/servicePrice/{ItemID}
Parameter
Description
ItemID
Unique system identifier for service
Payload
XML / HTTP Copy
<Price>
<PriceGroup>
<PriceGroupID></PriceGroupID>
</PriceGroup>
<IsDefault></IsDefault>
<Amount></Amount>
<Currency></Currency>
</Price>
For tags description please refer to Get Service request
Response
XML / HTTP Copy
<Response>
<ItemID></ItemID>
</Response>
Tag
Description
<ItemID>
Unique system identifier for service
Back to Items
GET Get Service Groups
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/serviceGroups
Response
XML / HTTP Copy
<Groups>
<Group>
<GroupID></GroupID>
<GroupName></GroupName>
</Group>
...
</Groups>
Tag
Description
<GroupID>
Unique system identifier for service group
Back to Items
GET Get Default Service Group
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/serviceGroupDefaultId
Response
XML / HTTP Copy
<Group>
<GroupID></GroupID>
</Group>
Tag
Description
<GroupID>
Unique system identifier for service group.
If no default group is found then <GroupID>0</GroupID> will be returned
Back to Items
Warehousing
GET Get Warehouse List
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/warehouses
Result list is sorted by warehouse name in ascending order.
Optional parameters are available. Results can be filtered by warehouse name or code.
Response
XML / HTTP Copy
<Warehouses>
<Warehouse>
<WarehouseID></WarehouseID>
<Code />
<Name></Name>
<Type></Type>
<LoadingArea>
<LoadingAreaID />
<LoadingAreaName />
</LoadingArea>
<PriceMarkup></PriceMarkup>
<IsDefault></IsDefault>
<IsInactive></IsInactive>
<NegativeStockEnabled></NegativeStockEnabled>
<Account>
<AccountID />
<AccountName />
</Account>
</Warehouse>
...
</Warehouses>
Tag
Description
<WarehouseID>
Unique system identifier for warehouse
<Type>
Possible values:
<LoadingAreaID>
Unique system identifier for loading area. See Get Loading Area
<IsDefault>
Boolean value (false | true)
<IsInactive>
Boolean value (false | true)
<NegativeStockEnabled>
Boolean value (false | true)
<AccountID>
Unique system identifier for inventory account. See Get Account
Back to Warehousing
GET Get Warehouse
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/warehouse/{WarehouseID}
Parameter
Description
WarehouseID
Unique system identifier for warehouse
Response
XML / HTTP Copy
<Warehouse>
<WarehouseID></WarehouseID>
<Code />
<Name></Name>
<Type></Type>
<LoadingArea>
<LoadingAreaID />
<LoadingAreaName />
</LoadingArea>
<PriceMarkup></PriceMarkup>
<IsDefault></IsDefault>
<IsInactive></IsInactive>
<NegativeStockEnabled></NegativeStockEnabled>
<Account>
<AccountID />
<AccountName />
</Account>
</Warehouse>
Tag
Description
<WarehouseID>
Unique system identifier for warehouse
<Type>
Possible values:
<LoadingAreaID>
Unique system identifier for loading area. See Get Loading Area
<IsDefault>
Boolean value (false | true)
<IsInactive>
Boolean value (false | true)
<NegativeStockEnabled>
Boolean value (false | true)
<AccountID>
Unique system identifier for inventory account. See Get Account
Back to Warehousing
GET Get Loading Area List
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/loadingAreas
Response
XML / HTTP Copy
<LoadingAreas>
<LoadingArea>
<LoadingAreaID></LoadingAreaID>
<LoadingAreaName></LoadingAreaName>
<LoadingAreaAddress>
<Address></Address>
<Zip></Zip>
<Country></Country>
</LoadingAreaAddress>
<IsDefault>false</IsDefault>
<IsInactive>false</IsInactive>
</LoadingArea>
</LoadingAreas>
Tag
Description
<LoadingAreaID>
Unique system identifier for loading area
<Country>
2-letter ISO country code
<IsDefault>
Boolean value (false | true)
<IsInactive>
Boolean value (false | true)
Back to Warehousing
GET Get Loading Area
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/loadingArea/{LoadingAreaID}
Parameter
Description
LoadingAreaID
Unique system identifier for loading area
Response
XML / HTTP Copy
<LoadingArea>
<LoadingAreaID></LoadingAreaID>
<LoadingAreaName></LoadingAreaName>
<LoadingAreaAddress>
<Address></Address>
<Zip></Zip>
<Country></Country>
</LoadingAreaAddress>
<IsDefault></IsDefault>
<IsInactive></IsInactive>
</LoadingArea>
Tag
Description
<LoadingAreaID>
Unique system identifier for loading area
<Country>
2-letter ISO country code
<IsDefault>
Boolean value (false | true)
<IsInactive>
Boolean value (false | true)
Back to Warehousing
GET Get Default Loading Area
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/loadingAreaDefaultId
Response
XML / HTTP Copy
<LoadingArea>
<LoadingAreaID></LoadingAreaID>
</LoadingArea>
Tag
Description
<LoadingAreaID>
Unique system identifier for loading area.
If no default value is found then <LoadingAreaID>0</LoadingAreaID> will be returned
Back to Warehousing
GET Get Shipper List
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/shippers
Response
XML / HTTP Copy
<Shippers>
<Shipper>
<ShipperID></ShipperID>
<ShipperName></ShipperName>
<ShipperRegNumber></ShipperRegNumber>
<ShipperVehicle></ShipperVehicle>
<ShipperDriver></ShipperDriver>
<IsDefault></IsDefault>
<IsInactive></IsInactive>
</Shipper>
...
</Shippers>
Tag
Description
<ShipperID>
Unique system identifier for shipper
<IsDefault>
Boolean value (false | true)
<IsInactive>
Boolean value (false | true)
Back to Warehousing
GET Get Shipper
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/shipper/{ShipperID}
Parameter
Description
ShipperID
Unique system identifier for shipper
Response
XML / HTTP Copy
<Shipper>
<ShipperID></ShipperID>
<ShipperName></ShipperName>
<ShipperRegNumber></ShipperRegNumber>
<ShipperVehicle></ShipperVehicle>
<ShipperDriver></ShipperDriver>
<IsDefault></IsDefault>
<IsInactive></IsInactive>
</Shipper>
Tag
Description
<ShipperID>
Unique system identifier for shipper
<IsDefault>
Boolean value (false | true)
<IsInactive>
Boolean value (false | true)
Back to Warehousing
POST Add Shipper
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/shipper
Parameter
Description
ShipperID
Unique system identifier for shipper
Payload
XML / HTTP Copy
<Shipper>
<ShipperName></ShipperName>
<ShipperRegNumber></ShipperRegNumber>
<ShipperVehicle></ShipperVehicle>
<ShipperDriver></ShipperDriver>
<IsDefault></IsDefault>
<IsInactive></IsInactive>
</Shipper>
Only <ShipperName> is required.
For tags description please refer to Get Shipper request .
Response
XML / HTTP Copy
<Response>
<ShipperID></ShipperID>
</Response>
Tag
Description
<ShipperID>
Unique system identifier for shipper
Back to Warehousing
POST Update Shipper
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/shipper/{ShipperID}
Parameter
Description
ShipperID
Unique system identifier for shipper
Payload
XML / HTTP Copy
<Shipper>
<ShipperName></ShipperName>
<ShipperRegNumber></ShipperRegNumber>
<ShipperVehicle></ShipperVehicle>
<ShipperDriver></ShipperDriver>
<IsDefault></IsDefault>
<IsInactive></IsInactive>
</Shipper>
No tags are required.
For tags description please refer to Get Shipper request .
Response
XML / HTTP Copy
<Response>
<ShipperID></ShipperID>
</Response>
Tag
Description
<ShipperID>
Unique system identifier for shipper
Back to Warehousing
GET Get Current Inventory
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/currentInventory/{WarehouseID}
Result list is sorted by product name, code, lot, warehouse name in ascending order.
Pagination optional parameter is available. Results can not be filtered.
Parameter
Description
WarehouseID
Unique system identifier for warehouse
Response
XML / HTTP Copy
<Inventory>
<LineItem>
<ItemID></ItemID>
<ItemCode></ItemCode>
<ItemName></ItemName>
<ItemBarCode />
<ItemDescription />
<LotID />
<LotNumber />
<WarehouseID></WarehouseID>
<WarehouseName></WarehouseName>
<Qty></Qty>
<InPO></InPO>
<Waiting></Waiting>
<InTransit></InTransit>
<InSO></InSO>
<InterimAvailable></InterimAvailable>
<UnitCost />
</LineItem>
...
</Inventory>
Tag
Description
<ItemID>
Unique system identifier for product. See Get Product
<ItemCode>
Product code (SKU)
<LotID>
Unique system identifier for lot
<WarehouseID>
Unique system identifier for warehouse. See Get Warehouse
<Qty>
Product quantity
<InPO>
Quantity in purchase orders
<Waiting>
Quantity in unapproved shipments
<InTransit>
Quantity in transit
<InSO>
Quantity in sales orders
<InterimAvailable>
Interim available. Does not include quantity in sales orders
Back to Warehousing
GET Get Product Inventory
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/productInventory/{ItemID}
Result list is sorted by product name, code, lot, warehouse name in ascending order.
Pagination optional parameter is available. Results can not be filtered.
Parameter
Description
ItemID
Unique system identifier for product
Response
XML / HTTP Copy
<Inventory>
<LineItem>
<ItemID></ItemID>
<ItemCode></ItemCode>
<ItemName></ItemName>
<ItemBarCode />
<ItemDescription />
<LotID />
<LotNumber />
<WarehouseID></WarehouseID>
<WarehouseName></WarehouseName>
<Qty></Qty>
<InPO></InPO>
<Waiting></Waiting>
<InTransit></InTransit>
<InSO></InSO>
<InterimAvailable></InterimAvailable>
<UnitCost />
</LineItem>
...
</Inventory>
Tag
Description
<ItemID>
Unique system identifier for product. See Get Product
<ItemCode>
Product code (SKU)
<LotID>
Unique system identifier for lot
<WarehouseID>
Unique system identifier for warehouse. See Get Warehouse
<Qty>
Product quantity
<InPO>
Quantity in purchase orders
<Waiting>
Quantity in unapproved shipments
<InTransit>
Quantity in transit
<InSO>
Quantity in sales orders
<InterimAvailable>
Interim available. Does not include quantity in sales orders
Back to Warehousing
GET Get Stock Movements
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/stockMovements
Result list is sorted by product name, code, warehouse name in ascending order.
Pagination and Date Range filter can be applied.
GET https://go.paytraq.com/api/stockMovements? ... &page=0&date_from=2025-01-01&date_till=2025-01-31
Additional optional parameter are available for this request:
GET https://go.paytraq.com/api/stockMovements/? ... &ItemID=0&WarehouseID=0
ItemID - Unique system identifier for product. See Get Product
WarehouseID - Unique system identifier for warehouse. See Get Warehouse
Response
XML / HTTP Copy
<StockMovements>
<LineItem>
<ItemID></ItemID>
<ItemCode></ItemCode>
<ItemName></ItemName>
<ItemBarCode></ItemBarCode>
<ItemDescription></ItemDescription>
<WarehouseID></WarehouseID>
<WarehouseName></WarehouseName>
<OpeningQty></OpeningQty>
<In></In>
<Out></Out>
<ClosingQty></ClosingQty>
<Difference></Difference>
<UnitCost></UnitCost>
<PurchasePrice></PurchasePrice>
</LineItem>
...
</StockMovements>
Tag
Description
<ItemID>
Unique system identifier for product. See Get Product
<ItemCode>
Product code (SKU)
<WarehouseID>
Unique system identifier for warehouse. See Get Warehouse
<OpeningQty>
Product quantity at the beginning of period
<In>
Incoming quantity
<Out>
Outgoing quantity
<ClosingQty>
Product quantity at the end of period
<Difference>
Change in quantity
Back to Warehousing
GET Get Product Movements
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/productMovements/{ItemID}
Result list is sorted by document date in ascending order.
Pagination and Date Range filter can be applied.
GET https://go.paytraq.com/api/productMovements/{ItemID}? ... &page=0&date_from=2025-01-01&date_till=2025-01-31
Additional optional parameter are available for this request:
GET https://go.paytraq.com/api/productMovements/{ItemID}/? ... &LotID=0&WarehouseID=0
LotID - Unique system identifier for lot. See Get Lot
WarehouseID - Unique system identifier for warehouse. See Get Warehouse
Parameter
Description
ItemID
Unique system identifier for product
Response
XML / HTTP Copy
<ProductMovements>
<InventoryMovement>
<Header>
<Document>
<DocumentID></DocumentID>
<DocumentDate></DocumentDate>
<DocumentRef></DocumentRef>
<DocumentType></DocumentType>
<DocumentStatus></DocumentStatus>
<BusinessPartner>
<BusinessPartnerID></BusinessPartnerID>
<BusinessPartnerName></BusinessPartnerName>
</BusinessPartner>
</Document>
<MovementType></MovementType>
<Operation></Operation>
<Direction></Direction>
<Sender></Sender>
<Receiver>
<WarehouseID></WarehouseID>
<WarehouseName></WarehouseName>
</Receiver>
<Warehouse>
<WarehouseID></WarehouseID>
<WarehouseName></WarehouseName>
</Warehouse>
<TimeStamps>
<Created></Created>
<Updated></Updated>
</TimeStamps>
</Header>
<MovementLine>
<Item>
<ItemID></ItemID>
<ItemCode></ItemCode>
<ItemName></ItemName>
</Item>
<ItemLot>
<LotID></LotID>
<LotNumber></LotNumber>
</ItemLot>
<Qty></Qty>
</MovementLine>
</InventoryMovement>
...
</ProductMovements>
Back to Warehousing
Sales
GET Get Sales Document List
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/sales
By default result list is sorted by document date in descending order.
There are several options to change the default ordering by passing additional parameters to the request.
Optional parameters are available. Results can be filtered by client name or document number.
This result list can be checked for new records and updates. See Optional parameters for additional info.
Document date range filter can be applied.
Status filter can be applied.
Additional optional parameters are available for this request:
GET https://go.paytraq.com/api/sales? ... &ClientID=0 ... &dueOnly=true
ClientID - Unique system identifier for client. See Get Client
dueOnly - Boolean, if true then only documents with "Waiting for Payment" and "Partially Paid" status are returned
Response
XML / HTTP Copy
<Sales>
<Sale>
<Header>
<Document>
<DocumentID></DocumentID>
<DocumentDate></DocumentDate>
<DocumentRef></DocumentRef>
<DocumentType></DocumentType>
<DocumentStatus></DocumentStatus>
<Client>
<ClientID></ClientID>
<ClientName></ClientName>
</Client>
</Document>
<SaleType></SaleType>
<Operation></Operation>
<Total></Total>
<AmountDue></AmountDue>
<DueNoticeEnabled></DueNoticeEnabled>
<Currency></Currency>
<BalanceCurrency></BalanceCurrency>
<CurrencyRate></CurrencyRate>
<TaxBasis></TaxBasis>
<IncludeTax></IncludeTax>
<UseOverpayment></UseOverpayment>
<DateDue></DateDue>
<DateApproved></DateApproved>
<IssuedBy></IssuedBy>
<Discount></Discount>
<Deposit></Deposit>
<Comment></Comment>
<Signature></Signature>
<InvoicePeriod>
<PeriodType></PeriodType>
<PeriodStart />
<PeriodEnd />
</InvoicePeriod>
<PayTerm>
<PayTermType></PayTermType>
<PayTermDays />
</PayTerm>
<PaymentMethod></PaymentMethod>
<AccountID></AccountID>
<ShippingData>
<ShippingType></ShippingType>
<Warehouse>
<WarehouseID></WarehouseID>
<WarehouseName></WarehouseName>
</Warehouse>
<LoadingArea>
<LoadingAreaID></LoadingAreaID>
<LoadingAreaName></LoadingAreaName>
<LoadingAreaAddress>
<Address></Address>
<Zip></Zip>
<Country></Country>
</LoadingAreaAddress>
</LoadingArea>
<Shipper>
<ShipperID></ShipperID>
<ShipperName></ShipperName>
<ShipperRegNumber></ShipperRegNumber>
<ShipperVehicle></ShipperVehicle>
<ShipperDriver></ShipperDriver>
</Shipper>
<ShippingAddress>
<AddressID></AddressID>
<ShipTo></ShipTo>
<Address></Address>
<Zip></Zip>
<Country></Country>
</ShippingAddress>
</ShippingData>
<Project>
<ProjectName />
</Project>
<TimeStamps>
<Created />
<Updated />
</TimeStamps>
</Header>
</Sale>
...
</Sales>
Tag
Description
<DocumentID>
Unique system identifier for sales document
<DocumentRef>
Document number
<DocumentStatus>
Possible values:
draft - Draft
wait_approve - Waiting for Approval
wait_payment - Waiting for Payment
part_paid - Partially Paid
paid - Paid
voided - Voided/Canceled
reversed - Reversed
done - Done
approved - Approved
in_process - In Progress
<ClientID>
Unique system identifier for client. See Get Client
<SaleType>
Possible values:
sales_order - Sales Order
sales_proforma - Proforma Invoice
sales_invoice - Invoice
sales_receipt - Receipt
sales_estimate - Quote/Estimate
credit_note - Credit Note/Refund
<Operation>
Possible values:
sell_goods - Selling Goods
sell_services - Selling Services
other_income - Other Income
<Currency>
Currency code
<TaxBasis>
Possible values:
<DueNoticeEnabled>
Boolean value (false | true)
<IncludeTax>
Boolean value (false | true)
Shows that amounts are tax inclusive
<UseOverpayment>
Boolean value (false | true)
<Signature>
Possible values:
0 - None
1 - Electronic
2 - To be signed by sender
3 - To be signed by recipient
4 - To be signed by both sender and recipient
5 - Scanned signature
<PeriodType>
Possible values:
0 - Not Defined
1 - Current Month
2 - Previous Month
3 - Next Month
9 - Other
<PayTermType>
Possible values:
0 - Other date
1 - Due days
2 - EOM+
3 - Cash on delivery
4 - Open date of payment
<PayTermDays>
Number of days. Can be used only with <PayTermType> values 1 and 2
<PaymentMethod>
Possible values:
0 - Not Defined
1 - Bank
2 - Cash
3 - Card
4 - Prepayment
5 - Offsetting
6 - Factoring
<AccountID>
Unique system identifier for accounts receivable. See Get Account
<ShippingType>
Possible values:
0 - Not Defined
1 - Supply of goods
2 - Movement of goods
3 - Product returns
<WarehouseID>
Unique system identifier for warehouse. See Get Warehouse
<LoadingAreaID>
Unique system identifier for loading area. See Get Loading Area
<ShipperID>
Unique system identifier for shipper. See Get Shipper
<AddressID>
Unique system identifier for shipping address. See Get Client Shipping Address
<Created>
Date created UTC timestamp
<Updated>
Date updated UTC timestamp
Back to Sales
GET Get Sales Document
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/sale/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for sales document
Response
XML / HTTP Copy
<Sale>
<Header>
<Document>
<DocumentID></DocumentID>
<DocumentDate></DocumentDate>
<DocumentRef></DocumentRef>
<DocumentType></DocumentType>
<DocumentStatus></DocumentStatus>
<Client>
<ClientID></ClientID>
<ClientName></ClientName>
</Client>
</Document>
<SaleType></SaleType>
<Operation></Operation>
<Total></Total>
<AmountDue></AmountDue>
<DueNoticeEnabled></DueNoticeEnabled>
<Currency></Currency>
<BalanceCurrency></BalanceCurrency>
<CurrencyRate></CurrencyRate>
<TaxBasis></TaxBasis>
<IncludeTax></IncludeTax>
<UseOverpayment></UseOverpayment>
<DateDue></DateDue>
<DateApproved></DateApproved>
<IssuedBy></IssuedBy>
<Discount></Discount>
<Deposit />
<Comment />
<Signature></Signature>
<InvoicePeriod>
<PeriodType></PeriodType>
<PeriodStart />
<PeriodEnd />
</InvoicePeriod>
<PayTerm>
<PayTermType></PayTermType>
<PayTermDays></PayTermDays>
</PayTerm>
<PaymentMethod></PaymentMethod>
<AccountID></AccountID>
<ShippingData>
<ShippingType></ShippingType>
<Warehouse>
<WarehouseID></WarehouseID>
<WarehouseName></WarehouseName>
</Warehouse>
<LoadingArea>
<LoadingAreaID></LoadingAreaID>
<LoadingAreaName></LoadingAreaName>
<LoadingAreaAddress>
<Address></Address>
<Zip></Zip>
<Country></Country>
</LoadingAreaAddress>
</LoadingArea>
<Shipper>
<ShipperID></ShipperID>
<ShipperName></ShipperName>
<ShipperRegNumber />
<ShipperVehicle />
<ShipperDriver />
</Shipper>
<ShippingAddress>
<AddressID></AddressID>
<ShipTo></ShipTo>
<Address></Address>
<Zip></Zip>
<Country></Country>
</ShippingAddress>
</ShippingData>
<Project>
<ProjectName />
</Project>
<TimeStamps>
<Created />
<Updated />
</TimeStamps>
</Header>
<CustomData>
<CustomField>
<FieldName></FieldName>
<FieldValue></FieldValue>
</CustomField>
...
</CustomData>
<LineItems>
<LineItem>
<Account>
<AccountID></AccountID>
<AccountCode></AccountCode>
<AccountName></AccountName>
</Account>
<Item>
<ItemID></ItemID>
<ItemCode />
<ItemName></ItemName>
</Item>
<ItemLot>
<LotID></LotID>
<LotNumber></LotNumber>
</ItemLot>
<Description></Description>
<ItemDescription></ItemDescription>
<Qty></Qty>
<Price></Price>
<LineDiscount></LineDiscount>
<LineTotal></LineTotal>
<Unit>
<UnitID></UnitID>
<UnitName></UnitName>
</Unit>
<TaxKey>
<TaxKeyID></TaxKeyID>
<TaxKeyName></TaxKeyName>
</TaxKey>
</LineItem>
...
</LineItems>
<Adjustments>
<Adjustment>
<Account>
<AccountID></AccountID>
<AccountCode></AccountCode>
<AccountName></AccountName>
</Account>
<Amount></Amount>
<Description />
<TypeID></TypeID>
<PctOrAmount></PctOrAmount>
<TaxKey>
<TaxKeyID></TaxKeyID>
<TaxKeyName></TaxKeyName>
</TaxKey>
</Adjustment>
...
</Adjustments>
<ShippingCharge>
<Account>
<AccountID></AccountID>
<AccountCode></AccountCode>
<AccountName></AccountName>
</Account>
<Amount></Amount>
<TaxKey>
<TaxKeyID></TaxKeyID>
<TaxKeyName></TaxKeyName>
</TaxKey>
</ShippingCharge>
<Taxes>
<Tax>
<TaxKey>
<TaxKeyID></TaxKeyID>
<TaxKeyName></TaxKeyName>
</TaxKey>
<TaxName></TaxName>
<GrossAmount></GrossAmount>
<NetAmount></NetAmount>
<TaxAmount></TaxAmount>
<Account>
<AccountID></AccountID>
<AccountName></AccountName>
</Account>
</Tax>
</Taxes>
<Totals>
<GrossAmount></GrossAmount>
<NetAmount></NetAmount>
<Qty></Qty>
</Totals>
<InvoiceReference>
<DocumentLink>
<DocumentID></DocumentID>
<DocumentRef></DocumentRef>
</DocumentLink>
...
</InvoiceReference>
<OrderReference>
<DocumentLink>
<DocumentID></DocumentID>
<DocumentRef></DocumentRef>
</DocumentLink>
...
</OrderReference>
<ProformaReference>
<DocumentLink>
<DocumentID></DocumentID>
<DocumentRef></DocumentRef>
</DocumentLink>
...
</ProformaReference>
<MovementReference>
<DocumentLink>
<DocumentID></DocumentID>
<DocumentRef></DocumentRef>
</DocumentLink>
...
</MovementReference>
<Payments>
<Payment>
<PaymentDate></PaymentDate>
<PaymentType></PaymentType>
<PaymentAmount></PaymentAmount>
<JournalID></JournalID>
<JournalRef></JournalRef>
<DocumentLink>
<DocumentID></DocumentID>
<DocumentRef></DocumentRef>
<DocumentType></DocumentType>
</DocumentLink>
</Payment>
...
</Payments>
<Journals>
<Journal>
<JournalID></JournalID>
<JournalRef></JournalRef>
<JournalDate></JournalDate>
<JournalStatus></JournalStatus>
<JournalType>
<JournalTypeID></JournalTypeID>
<JournalTypeName></JournalTypeName>
</JournalType>
</Journal>
...
</Journals>
<Tags>
<Tag />
</Tags>
<MessageLog>
<Message>
<Created></Created>
<DeliveredBy></DeliveredBy>
<From></From>
<To></To>
<SenderName>></SenderName>
<RecipientName></RecipientName>
<Kind></Kind>
<Subject></Subject>
<EventType></EventType>
<EventStatus></EventStatus>
<BounceReason></BounceReason>
</Message>
...
</MessageLog>
<Notes>
<Note>
<Created></Created>
<Text></Text>
</Note>
...
</Notes>
</Sale>
Tag
Description
<DocumentID>
Unique system identifier for sales document
<DocumentRef>
Document number
<DocumentStatus>
Possible values:
draft - Draft
wait_approve - Waiting for Approval
wait_payment - Waiting for Payment
part_paid - Partially Paid
paid - Paid
voided - Voided/Canceled
reversed - Reversed
done - Done
approved - Approved
in_process - In Progress
<ClientID>
Unique system identifier for client. See Get Client
<SaleType>
Possible values:
sales_order - Sales Order
sales_proforma - Proforma Invoice
sales_invoice - Invoice
sales_receipt - Receipt
sales_estimate - Quote/Estimate
credit_note - Credit Note/Refund
<Operation>
Possible values:
sell_goods - Selling Goods
sell_services - Selling Services
other_income - Other Income
<Currency>
Currency code
<TaxBasis>
Possible values:
<DueNoticeEnabled>
Boolean value (false | true)
<IncludeTax>
Boolean value (false | true)
Shows that amounts are tax inclusive
<UseOverpayment>
Boolean value (false | true)
<Signature>
Possible values:
0 - None
1 - Electronic
2 - To be signed by sender
3 - To be signed by recipient
4 - To be signed by both sender and recipient
5 - Scanned signature
<PeriodType>
Possible values:
0 - Not Defined
1 - Current Month
2 - Previous Month
3 - Next Month
9 - Other
<PayTermType>
Possible values:
0 - Other date
1 - Due days
2 - EOM+
3 - Cash on delivery
4 - Open date of payment
<PayTermDays>
Number of days. Can be used only with <PayTermType> values 1 and 2
<PaymentMethod>
Possible values:
0 - Not Defined
1 - Bank
2 - Cash
3 - Card
4 - Prepayment
5 - Offsetting
6 - Factoring
<AccountID>
Unique system identifier for account. See Get Account
<ShippingType>
Possible values:
0 - Not Defined
1 - Supply of goods
2 - Movement of goods
3 - Product returns
<WarehouseID>
Unique system identifier for warehouse. See Get Warehouse
<LoadingAreaID>
Unique system identifier for loading area. See Get Loading Area
<ShipperID>
Unique system identifier for shipper. See Get Shipper
<AddressID>
Unique system identifier for shipping address. See Get Client Shipping Address
<Created>
Date created UTC timestamp
<Updated>
Date updated UTC timestamp
<ItemID>
Unique system identifier for product or service. See Get Product or See Get Service
<ItemCode>
Product SKU or service code. See Get Product By Code or See Get Service By Code
<LotID>
Unique system identifier for lot
<UnitID>
Unique system identifier for unit of measure. See Get Unit
<TaxKeyID>
Unique system identifier for tax key. See Get Tax Key
<TypeID>
Possible values:
charge - Charge
discount - Discount
<PctOrAmount>
Possible values:
pct - Percent
amount - Amount
<DeliveredBy>
Possible values:
email - E-mail
direct - Paytraq Direct
edi - EDI/E-invoice Operator
<EventStatus>
Possible values:
sent - Sent
delivered - Delivered
open - Open
not_delivered - Undelivered/Failed
Back to Sales
POST Add Sales Document
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/sale
Payload
XML / HTTP Copy
<Sale>
<Header>
<Document>
<DocumentDate></DocumentDate>
<DocumentRef></DocumentRef>
<Client>
<ClientID></ClientID>
<ClientName></ClientName>
</Client>
</Document>
<SaleType></SaleType>
<Operation></Operation>
<DueNoticeEnabled></DueNoticeEnabled>
<Currency></Currency>
<TaxBasis></TaxBasis>
<IncludeTax></IncludeTax>
<UseOverpayment></UseOverpayment>
<DateDue></DateDue>
<DateApproved></DateApproved>
<IssuedBy></IssuedBy>
<Deposit />
<Comment />
<Signature></Signature>
<InvoicePeriod>
<PeriodType></PeriodType>
<PeriodStart />
<PeriodEnd />
</InvoicePeriod>
<PayTerm>
<PayTermType></PayTermType>
<PayTermDays></PayTermDays>
</PayTerm>
<PaymentMethod></PaymentMethod>
<ShippingData>
<ShippingType></ShippingType>
<Warehouse>
<WarehouseID></WarehouseID>
</Warehouse>
<LoadingArea>
<LoadingAreaID></LoadingAreaID>
</LoadingArea>
<Shipper>
<ShipperID></ShipperID>
</Shipper>
<ShippingAddress>
<AddressID></AddressID>
</ShippingAddress>
</ShippingData>
<Project>
<ProjectName />
</Project>
</Header>
<CustomData>
<CustomField>
<FieldName></FieldName>
<FieldValue></FieldValue>
</CustomField>
...
</CustomData>
<LineItems>
<LineItem>
<Account>
<AccountID></AccountID>
</Account>
<Item>
<ItemID></ItemID>
</Item>
<ItemLot>
<LotID></LotID>
</ItemLot>
<Description></Description>
<ItemDescription></ItemDescription>
<Qty></Qty>
<Price></Price>
<LineDiscount></LineDiscount>
<LineTotal></LineTotal>
<Unit>
<UnitID></UnitID>
</Unit>
<TaxKey>
<TaxKeyID></TaxKeyID>
</TaxKey>
</LineItem>
...
</LineItems>
<Adjustments>
<Adjustment>
<Account>
<AccountID></AccountID>
</Account>
<Amount></Amount>
<Description />
<TypeID></TypeID>
<PctOrAmount></PctOrAmount>
<TaxKey>
<TaxKeyID></TaxKeyID>
</TaxKey>
</Adjustment>
...
</Adjustments>
<ShippingCharge>
<Account>
<AccountID></AccountID>
</Account>
<Amount></Amount>
<TaxKey>
<TaxKeyID></TaxKeyID>
</TaxKey>
</ShippingCharge>
</Sale>
Only <SaleType> and <Operation> are required.
To add a client <ClientID /> OR <ClientName /> should be provided.
For tags description please refer to Get Sale Document .
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for sales document
Back to Sales
POST Update Sales Document
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/sale/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for sales document
Payload
XML / HTTP Copy
<Sale>
<Header>
<Document>
<DocumentDate></DocumentDate>
<DocumentRef></DocumentRef>
<Client>
<ClientID></ClientID>
</Client>
</Document>
<DueNoticeEnabled></DueNoticeEnabled>
<Currency></Currency>
<TaxBasis></TaxBasis>
<IncludeTax></IncludeTax>
<UseOverpayment></UseOverpayment>
<DateDue></DateDue>
<DateApproved></DateApproved>
<IssuedBy></IssuedBy>
<Deposit />
<Comment />
<Signature></Signature>
<InvoicePeriod>
<PeriodType></PeriodType>
<PeriodStart />
<PeriodEnd />
</InvoicePeriod>
<PayTerm>
<PayTermType></PayTermType>
<PayTermDays></PayTermDays>
</PayTerm>
<PaymentMethod></PaymentMethod>
<ShippingData>
<ShippingType></ShippingType>
<Warehouse>
<WarehouseID></WarehouseID>
</Warehouse>
<LoadingArea>
<LoadingAreaID></LoadingAreaID>
</LoadingArea>
<Shipper>
<ShipperID></ShipperID>
</Shipper>
<ShippingAddress>
<AddressID></AddressID>
</ShippingAddress>
</ShippingData>
<Project>
<ProjectName />
</Project>
</Header>
<CustomData>
<CustomField>
<FieldName></FieldName>
<FieldValue></FieldValue>
</CustomField>
...
</CustomData>
<LineItems>
<LineItem>
<Account>
<AccountID></AccountID>
</Account>
<Item>
<ItemID></ItemID>
</Item>
<ItemLot>
<LotID></LotID>
</ItemLot>
<Description></Description>
<ItemDescription></ItemDescription>
<Qty></Qty>
<Price></Price>
<LineDiscount></LineDiscount>
<LineTotal></LineTotal>
<Unit>
<UnitID></UnitID>
</Unit>
<TaxKey>
<TaxKeyID></TaxKeyID>
</TaxKey>
</LineItem>
...
</LineItems>
<Adjustments>
<Adjustment>
<Account>
<AccountID></AccountID>
</Account>
<Amount></Amount>
<Description />
<TypeID></TypeID>
<PctOrAmount></PctOrAmount>
<TaxKey>
<TaxKeyID></TaxKeyID>
</TaxKey>
</Adjustment>
...
</Adjustments>
<ShippingCharge>
<Account>
<AccountID></AccountID>
</Account>
<Amount></Amount>
<TaxKey>
<TaxKeyID></TaxKeyID>
</TaxKey>
</ShippingCharge>
</Sale>
Only documents with status Draft can be updated.
No tags are required.
For tags description please refer to Get Sale Document .
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for sales document
Back to Sales
POST Add Sales Note
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/addSaleNote/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for sales document
Payload
XML / HTTP Copy
<Note></Note>
Tag
Description
<Note>
Text of the note
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for sales document
Back to Sales
GET Post Sales Document
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/salePost/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for sales document
Sending Option
If you need to additionally send the document by email or as e-invoice within the same request then append a send parameter to the URL e.g. &send=true . The document is sent to all available channels.
Only documents with status Draft can be posted.
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for sales document
Back to Sales
GET Approve Sales Document
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/saleApprove/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for sales document
Sending Option
If you need to additionally send the document by email or PayTraq Direct within the same request then append a send parameter to the URL e.g. &send=true .
Only documents with status Draft can be approved.
This request is valid for Sales Order and Proforma Invoice only.
In case of any other document types please refer to Post Sales Document request .
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for sales document
Back to Sales
GET Void Sales Document
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/saleVoid/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for sales document
Documents with status Draft (except Estimate), Partially Paid, Paid, Reversed or Done can not be voided.
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for sales document
Back to Sales
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/proformaToSalesInvoice/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for proforma invoice
This request is valid for Proforma Invoice only.
The proforma status should not be Draft or Done.
This request will create an invoice and offset it with received prepayment based on the provided proforma ID.
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
<AmountDue></AmountDue>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for created invoice
Back to Sales
POST Add Payment to Sales Document
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/salePayment/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for sales document
Payload
XML / HTTP Copy
<DirectPayment>
<MoneyAccountID></MoneyAccountID>
<PaymentAmount></PaymentAmount>
<PaymentDate></PaymentDate>
<Narration></Narration>
<BankCharge></BankCharge>
</DirectPayment>
Only documents with status Waiting for Payment or Partially Paid can be paid.
<MoneyAccountID> should be in the same currency as sales document.
<Narration> is not required.
<BankCharge> is optional.
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
<AmountDue></AmountDue>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for payment document. See Get Payment
Is not available for <MoneyAccountID> with Merchant and Credit Card account types
Back to Sales
GET Offset Invoice with Credit Note
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/offsetSalesInvoiceWithCreditNote/{InvoiceID}/{CreditNoteID}
Parameter
Description
InvoiceID
Unique system identifier for invoice
CreditNoteID
Unique system identifier for credit note
Both invoice and credit note status should be either Waiting for Payment or Partially Paid.
Offset date will be the date of the credit note.
Response
XML / HTTP Copy
<Response>
<OffsetAmount></OffsetAmount>
<Invoice>
<DocumentID></DocumentID>
<AmountDue></AmountDue>
</Invoice>
<CreditNote>
<DocumentID></DocumentID>
<AmountDue></AmountDue>
</CreditNote>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for sales document
Back to Sales
POST Add Overpayment
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/overpaymentReceived/{ClientID}
Parameter
Description
ClientID
Unique system identifier for client. See Get Client
Payload
XML / HTTP Copy
<Overpayment>
<MoneyAccountID></MoneyAccountID>
<PaymentAmount></PaymentAmount>
<PaymentDate></PaymentDate>
<Narration></Narration>
</Overpayment>
Response
XML / HTTP Copy
<Response>
<ClientID></ClientID>
<JournalID></JournalID>
</Response>
Tag
Description
<ClientID>
Unique system identifier for client. See Get Client
<JournalID>
Unique system identifier for journal
Back to Sales
GET Offset Overpayment
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/offsetOverpaymentReceived/{InvoiceID}
Parameter
Description
InvoiceID
Unique system identifier for invoice
Offset date will be the date of the invoice.
Response
XML / HTTP Copy
<Response>
<OffsetAmount></OffsetAmount>
<Invoice>
<DocumentID></DocumentID>
<AmountDue></AmountDue>
</Invoice>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for sales document
Back to Sales
GET Get Prepayments (Open Proforma)
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/salesPrepayments/{ClientID}
Parameter
Description
ClientID
Unique system identifier for client. See Get Client
Response
XML / HTTP Copy
<Prepayments>
<Prepayment>
<Client>
<ClientID></ClientID>
<ClientName></ClientName>
</Client>
<DocumentID></DocumentID>
<DocumentRef></DocumentRef>
<DocumentDate></DocumentDate>
<Currency></Currency>
<Due></Due>
<Paid></Paid>
<Available></Available>
</Prepayment>
</Prepayments>
Tag
Description
<DocumentID>
Unique system identifier for sales document (proforma)
<Currency>
Currency code
<Due>
Proforma due amount
<Paid>
Proforma paid amount
<Available>
Amount available for offsetting
Back to Sales
GET Use Prepayment
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/offsetSalesInvoiceWithPrepayment/{InvoiceID}/{ProformaID}
Parameter
Description
InvoiceID
Unique system identifier for invoice
ProformaID
Unique system identifier for proforma
Offset date will be the date of the invoice.
Response
XML / HTTP Copy
<Response>
<OffsetAmount></OffsetAmount>
<Invoice>
<DocumentID></DocumentID>
<AmountDue></AmountDue>
</Invoice>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for sales document
Back to Sales
GET Get Sales Document as PDF
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/salePDF/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for sales document
Optional Query Parameter
Description
lang
PDF language. The following values are supported: en, et, lt, lv, ru, es, pt, bg, sk, fi, ar. Example: ?lang=lv
Response
XML / HTTP Copy
PDF (MIME type - application/pdf)
Back to Sales
GET Get Sales Document as Estonian E-invoice
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/saleEInvoice/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for sales document
Optional Query Parameter
Description
lang
Embedded PDF language. The following values are supported: en, et, lt, lv, ru, es, pt, bg, sk, fi, ar. Example: ?lang=lv
Response
XML / HTTP Copy
XML (MIME type - application/xml)
Back to Sales
GET Get Sales Document as UBL
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/saleUBL/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for sales document
Optional Query Parameter
Description
lang
Embedded PDF language. The following values are supported: en, et, lt, lv, ru, es, pt, bg, sk, fi, ar. Example: ?lang=lv
Response
XML / HTTP Copy
XML (MIME type - application/xml)
Back to Sales
GET Get Sales Document Online Link
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/saleLink/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for sales document
Optional Query Parameter
Description
lang
PDF language. The following values are supported: en, et, lt, lv, ru, es, pt, bg, sk, fi, ar. Example: ?lang=lv
Response
XML / HTTP Copy
<Sale>
<DocumentLink>
<URL></URL>
</DocumentLink>
<PDFLink>
<URL></URL>
</PDFLink>
<UBLLink>
<URL></URL>
</UBLLink>
<EInvoiceLink>
<URL></URL>
</EInvoiceLink>
</Sale>
Back to Sales
GET Send Sales Document
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/saleSend/{DocumentID}
The document is sent to all available channels.
Parameter
Description
DocumentID
Unique system identifier for sales document
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for sales document
Back to Sales
GET Send E-Invoice
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/saleSendEInvoice/{DocumentID}
The document is sent as e-invoice only.
Parameter
Description
DocumentID
Unique system identifier for sales document
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for sales document
Back to Sales
GET Get Income By Clients
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/incomeByClients
The result list is sorted by Total in descending order.
Pagination and Date Range filter can be applied.
GET https://go.paytraq.com/api/incomeByClients? ... &page=0&date_from=2025-01-01&date_till=2025-01-31
Response
XML / HTTP Copy
<Clients>
<Client>
<ClientID></ClientID>
<Name></Name>
<Total></Total>
<Currency></Currency>
</Client>
</Clients>
Tag
Description
<ClientID>
Unique system identifier for client. See Get Client
<Total>
Total income for the period
Back to Sales
GET Get Income By Products
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/incomeByProducts
The result list is sorted by Total in descending order.
Pagination and Date Range filter can be applied.
GET https://go.paytraq.com/api/incomeByProducts? ... &page=0&date_from=2025-01-01&date_till=2025-01-31
Response
XML / HTTP Copy
<Products>
<Product>
<ItemID></ItemID>
<Name></Name>
<Code></Code>
<Total></Total>
<Currency></Currency>
</Client>
</Product>
Tag
Description
<ItemID>
Unique system identifier for product. See Get Product
<Total>
Total income for the period
Back to Sales
GET Get Income By Services
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/incomeByServices
The result list is sorted by Total in descending order.
Pagination and Date Range filter can be applied.
GET https://go.paytraq.com/api/incomeByServices? ... &page=0&date_from=2025-01-01&date_till=2025-01-31
Response
XML / HTTP Copy
<Services>
<Service>
<ItemID></ItemID>
<Name></Name>
<Code></Code>
<Total></Total>
<Currency></Currency>
</Service>
</Service>
Tag
Description
<ItemID>
Unique system identifier for service. See Get Service
<Total>
Total income for the period
Back to Sales
GET List of Products Sold
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/listProductsSold
The result list is sorted by Journal Date in ascending order.
Pagination and Date Range filter can be applied.
GET https://go.paytraq.com/api/listProductsSold? ... &page=0&date_from=2025-01-01&date_till=2025-01-31
Additional optional parameters are available for this request:
GET https://go.paytraq.com/api/listProductsSold? ... &ClientID=0 ... &ItemID=0
ClientID - Unique system identifier for client. See Get Client
ItemID - Unique system identifier for product. See Get Product
Response
XML / HTTP Copy
<Sales>
<Sale>
<Document>
<DocumentID></DocumentID>
<DocumentDate>></DocumentDate>
<DocumentRef></DocumentRef>
<DocumentType></DocumentType>
<DocumentStatus></DocumentStatus>
<Client>
<ClientID></ClientID>
<ClientName></ClientName>
</Client>
</Document>
<SaleType></SaleType>
<Journal>
<JournalID></JournalID>
<JournalRef></JournalRef>
<JournalDate></JournalDate>
</Journal>
<Product>
<ItemID></ItemID>
<Name></Name>
<Code></Code>
<Qty></Qty>
<Total>></Total>
<Currency></Currency>
</Product>
</Sale>
</Sales>
Tag
Description
<ItemID>
Unique system identifier for product. See Get Product
<Qty>
Total qty for document
<Total>
Total amount for document
Back to Sales
GET List of Services Sold
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/listServicesSold
The result list is sorted by Journal Date in ascending order.
Pagination and Date Range filter can be applied.
GET https://go.paytraq.com/api/listServicesSold? ... &page=0&date_from=2025-01-01&date_till=2025-01-31
Additional optional parameters are available for this request:
GET https://go.paytraq.com/api/listServicesSold? ... &ClientID=0 ... &ItemID=0
ClientID - Unique system identifier for client. See Get Client
ItemID - Unique system identifier for service. See Get Service
Response
XML / HTTP Copy
<Sales>
<Sale>
<Document>
<DocumentID></DocumentID>
<DocumentDate>></DocumentDate>
<DocumentRef></DocumentRef>
<DocumentType></DocumentType>
<DocumentStatus></DocumentStatus>
<Client>
<ClientID></ClientID>
<ClientName></ClientName>
</Client>
</Document>
<SaleType></SaleType>
<Journal>
<JournalID></JournalID>
<JournalRef></JournalRef>
<JournalDate></JournalDate>
</Journal>
<Service>
<ItemID></ItemID>
<Name></Name>
<Code></Code>
<Qty></Qty>
<Total>></Total>
<Currency></Currency>
</Service>
</Sale>
</Sales>
Tag
Description
<ItemID>
Unique system identifier for service. See Get Service
<Qty>
Total qty for document
<Total>
Total amount for document
Back to Sales
Purchases
GET Get Purchase Document List
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/purchases
By default result list is sorted by document date in descending order.
There are several options to change the default ordering by passing additional parameters to the request.
Optional parameters are available. Results can be filtered by supplier name or document number.
This result list can be checked for new records and updates. See Optional parameters for additional info.
Document date range filter can be applied.
Status filter can be applied.
Additional optional parameters are available for this request:
GET https://go.paytraq.com/api/purchases? ... &SupplierID=0 ... &dueOnly=true
SupplierID - Unique system identifier for supplier. See Get Supplier
dueOnly - Boolean, if true then only documents with "Waiting for Payment" and "Partially Paid" status are returned
Response
XML / HTTP Copy
<Purchases>
<Purchase>
<Header>
<Document>
<DocumentID></DocumentID>
<DocumentDate></DocumentDate>
<DocumentRef></DocumentRef>
<DocumentType></DocumentType>
<DocumentStatus></DocumentStatus>
<Supplier>
<SupplierID></SupplierID>
<SupplierName></SupplierName>
</Supplier>
</Document>
<PurchaseType></PurchaseType>
<Operation></Operation>
<Total></Total>
<AmountDue></AmountDue>
<Currency></Currency>
<BalanceCurrency></BalanceCurrency>
<CurrencyRate></CurrencyRate>
<TaxBasis></TaxBasis>
<IncludeTax></IncludeTax>
<DateDue></DateDue>
<DateApproved></DateApproved>
<ReceivedBy></ReceivedBy>
<Discount></Discount>
<Deposit></Deposit>
<Comment></Comment>
<PayTerm>
<PayTermType></PayTermType>
<PayTermDays />
</PayTerm>
<PaymentMethod></PaymentMethod>
<AccountID></AccountID>
<ShippingData>
<ShippingType></ShippingType>
<Warehouse>
<WarehouseID></WarehouseID>
<WarehouseName></WarehouseName>
</Warehouse>
<LoadingArea>
<LoadingAreaID></LoadingAreaID>
<LoadingAreaName></LoadingAreaName>
<LoadingAreaAddress>
<Address></Address>
<Zip></Zip>
<Country></Country>
</LoadingAreaAddress>
</LoadingArea>
<Shipper>
<ShipperID></ShipperID>
<ShipperName></ShipperName>
<ShipperRegNumber></ShipperRegNumber>
<ShipperVehicle></ShipperVehicle>
<ShipperDriver></ShipperDriver>
</Shipper>
<ShippingAddress>
<AddressID></AddressID>
<ShipTo></ShipTo>
<Address></Address>
<Zip></Zip>
<Country></Country>
</ShippingAddress>
</ShippingData>
<Project>
<ProjectName />
</Project>
<TimeStamps>
<Created />
<Updated />
</TimeStamps>
</Header>
</Purchase>
...
</Purchases>
Tag
Description
<DocumentID>
Unique system identifier for purchase document
<DocumentRef>
Document number
<DocumentStatus>
Possible values:
draft - Draft
wait_approve - Waiting for Approval
wait_payment - Waiting for Payment
part_paid - Partially Paid
paid - Paid
voided - Voided/Canceled
reversed - Reversed
done - Done
approved - Approved
in_process - In Progress
<SupplierID>
Unique system identifier for supplier. See Get Supplier
<PurchaseType>
Possible values:
purchase_order - Purchase Order
purchase_proforma - Proforma Invoice
purchase_invoice - Invoice
purchase_receipt - Receipt
purchase_voucher - Self-Billed Invoice
debit_note - Credit Note/Refund
<Operation>
Possible values:
purchase_goods - Purchasing Goods
purchase_services - Purchasing Services
other_expenses - Other Expenses
<Currency>
Currency code
<TaxBasis>
Possible values:
<IncludeTax>
Boolean value (false | true)
Shows that amounts are tax inclusive
<PayTermType>
Possible values:
0 - Other date
1 - Due days
2 - EOM+
3 - Cash on delivery
4 - Open date of payment
<PayTermDays>
Number of days. Can be used only with <PayTermType> values 1 and 2
<PaymentMethod>
Possible values:
0 - Not Defined
1 - Bank
2 - Cash
3 - Card
4 - Prepayment
5 - Offsetting
6 - Factoring
<AccountID>
Unique system identifier for accounts payable. See Get Account
<ShippingType>
Possible values:
0 - Not Defined
1 - Supply of goods
2 - Movement of goods
3 - Product returns
<WarehouseID>
Unique system identifier for warehouse. See Get Warehouse
<LoadingAreaID>
Unique system identifier for loading area. See Get Loading Area
<ShipperID>
Unique system identifier for shipper. See Get Shipper
<AddressID>
Unique system identifier for shipping address. See Get Supplier Shipping Address
<Created>
Date created UTC timestamp
<Updated>
Date updated UTC timestamp
Back to Purchases
GET Get Purchase Document
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/purchase/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for purchase document
Response
XML / HTTP Copy
<Purchase>
<Header>
<Document>
<DocumentID></DocumentID>
<DocumentDate></DocumentDate>
<DocumentRef></DocumentRef>
<DocumentType></DocumentType>
<DocumentStatus></DocumentStatus>
<Supplier>
<SupplierID></SupplierID>
<SupplierName></SupplierName>
</Supplier>
</Document>
<PurchaseType></PurchaseType>
<Operation></Operation>
<Total></Total>
<AmountDue></AmountDue>
<Currency></Currency>
<BalanceCurrency></BalanceCurrency>
<CurrencyRate></CurrencyRate>
<TaxBasis></TaxBasis>
<IncludeTax></IncludeTax>
<DateDue></DateDue>
<DateApproved></DateApproved>
<ReceivedBy></ReceivedBy>
<Discount></Discount>
<Deposit />
<Comment />
<PayTerm>
<PayTermType></PayTermType>
<PayTermDays></PayTermDays>
</PayTerm>
<PaymentMethod></PaymentMethod>
<AccountID></AccountID>
<ShippingData>
<ShippingType></ShippingType>
<Warehouse>
<WarehouseID></WarehouseID>
<WarehouseName></WarehouseName>
</Warehouse>
<LoadingArea>
<LoadingAreaID></LoadingAreaID>
<LoadingAreaName></LoadingAreaName>
<LoadingAreaAddress>
<Address></Address>
<Zip></Zip>
<Country></Country>
</LoadingAreaAddress>
</LoadingArea>
<Shipper>
<ShipperID></ShipperID>
<ShipperName></ShipperName>
<ShipperRegNumber />
<ShipperVehicle />
<ShipperDriver />
</Shipper>
<ShippingAddress>
<AddressID></AddressID>
<ShipTo></ShipTo>
<Address></Address>
<Zip></Zip>
<Country></Country>
</ShippingAddress>
</ShippingData>
<Project>
<ProjectName />
</Project>
<TimeStamps>
<Created />
<Updated />
</TimeStamps>
</Header>
<LineItems>
<LineItem>
<Account>
<AccountID></AccountID>
<AccountCode></AccountCode>
<AccountName></AccountName>
</Account>
<Item>
<ItemID></ItemID>
<ItemCode />
<ItemName></ItemName>
</Item>
<ItemLot>
<LotID></LotID>
<LotNumber></LotNumber>
</ItemLot>
<Description></Description>
<Qty></Qty>
<Price></Price>
<LineDiscount></LineDiscount>
<LineTotal></LineTotal>
<Unit>
<UnitID></UnitID>
<UnitName></UnitName>
</Unit>
<TaxKey>
<TaxKeyID></TaxKeyID>
<TaxKeyName></TaxKeyName>
</TaxKey>
</LineItem>
...
</LineItems>
<Adjustments>
<Adjustment>
<Account>
<AccountID></AccountID>
<AccountCode></AccountCode>
<AccountName></AccountName>
</Account>
<Amount></Amount>
<Description />
<TypeID></TypeID>
<PctOrAmount></PctOrAmount>
<TaxKey>
<TaxKeyID></TaxKeyID>
<TaxKeyName></TaxKeyName>
</TaxKey>
</Adjustment>
...
</Adjustments>
<ShippingCharge>
<Account>
<AccountID></AccountID>
<AccountCode></AccountCode>
<AccountName></AccountName>
</Account>
<Amount></Amount>
<TaxKey>
<TaxKeyID></TaxKeyID>
<TaxKeyName></TaxKeyName>
</TaxKey>
</ShippingCharge>
<Taxes>
<Tax>
<TaxKey>
<TaxKeyID></TaxKeyID>
<TaxKeyName></TaxKeyName>
</TaxKey>
<TaxName></TaxName>
<GrossAmount></GrossAmount>
<NetAmount></NetAmount>
<TaxAmount></TaxAmount>
<Account>
<AccountID></AccountID>
<AccountName></AccountName>
</Account>
</Tax>
</Taxes>
<Totals>
<GrossAmount></GrossAmount>
<NetAmount></NetAmount>
<Qty></Qty>
</Totals>
<InvoiceReference>
<DocumentLink>
<DocumentID></DocumentID>
<DocumentRef></DocumentRef>
</DocumentLink>
...
</InvoiceReference>
<OrderReference>
<DocumentLink>
<DocumentID></DocumentID>
<DocumentRef></DocumentRef>
</DocumentLink>
...
</OrderReference>
<ProformaReference>
<DocumentLink>
<DocumentID></DocumentID>
<DocumentRef></DocumentRef>
</DocumentLink>
...
</ProformaReference>
<MovementReference>
<DocumentLink>
<DocumentID></DocumentID>
<DocumentRef></DocumentRef>
</DocumentLink>
...
</MovementReference>
<Payments>
<Payment>
<PaymentDate></PaymentDate>
<PaymentType></PaymentType>
<PaymentAmount></PaymentAmount>
<JournalID></JournalID>
<JournalRef></JournalRef>
<DocumentLink>
<DocumentID></DocumentID>
<DocumentRef></DocumentRef>
<DocumentType></DocumentType>
</DocumentLink>
</Payment>
...
</Payments>
<Journals>
<Journal>
<JournalID></JournalID>
<JournalRef></JournalRef>
<JournalDate></JournalDate>
<JournalStatus></JournalStatus>
<JournalType>
<JournalTypeID></JournalTypeID>
<JournalTypeName></JournalTypeName>
</JournalType>
</Journal>
...
</Journals>
<Tags>
<Tag />
</Tags>
<Notes>
<Note>
<Created></Created>
<Text></Text>
</Note>
...
</Notes>
</Purchase>
Tag
Description
<DocumentID>
Unique system identifier for purchase document
<DocumentRef>
Document number
<DocumentStatus>
Possible values:
draft - Draft
wait_approve - Waiting for Approval
wait_payment - Waiting for Payment
part_paid - Partially Paid
paid - Paid
voided - Voided/Canceled
reversed - Reversed
done - Done
approved - Approved
in_process - In Progress
<SupplierID>
Unique system identifier for supplier. See Get Supplier
<PurchaseType>
Possible values:
purchase_order - Purchase Order
purchase_proforma - Proforma Invoice
purchase_invoice - Invoice
purchase_receipt - Receipt
purchase_voucher - Self-Billed Invoice
debit_note - Credit Note/Refund
<Operation>
Possible values:
purchase_goods - Purchasing Goods
purchase_services - Purchasing Services
other_expenses - Other Expenses
<Currency>
Currency code
<TaxBasis>
Possible values:
<IncludeTax>
Boolean value (false | true)
Shows that amounts are tax inclusive
<PayTermType>
Possible values:
0 - Other date
1 - Due days
2 - EOM+
3 - Cash on delivery
4 - Open date of payment
<PayTermDays>
Number of days. Can be used only with <PayTermType> values 1 and 2
<PaymentMethod>
Possible values:
0 - Not Defined
1 - Bank
2 - Cash
3 - Card
4 - Prepayment
5 - Offsetting
6 - Factoring
<AccountID>
Unique system identifier for account. See Get Account
<ShippingType>
Possible values:
0 - Not Defined
1 - Supply of goods
2 - Movement of goods
3 - Product returns
<WarehouseID>
Unique system identifier for warehouse. See Get Warehouse
<LoadingAreaID>
Unique system identifier for loading area. See Get Loading Area
<ShipperID>
Unique system identifier for shipper. See Get Shipper
<AddressID>
Unique system identifier for shipping address. See Get Supplier Shipping Address
<Created>
Date created UTC timestamp
<Updated>
Date updated UTC timestamp
<ItemID>
Unique system identifier for product. See Get Product
<ItemCode>
Product SKU. See Get Product By Code
<LotID>
Unique system identifier for lot
<UnitID>
Unique system identifier for unit of measure. See Get Unit
<TaxKeyID>
Unique system identifier for tax key. See Get Tax Key
<TypeID>
Possible values:
charge - Charge
discount - Discount
<PctOrAmount>
Possible values:
pct - Percent
amount - Amount
Back to Purchases
POST Add Purchase Document
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/purchase
Payload
XML / HTTP Copy
<Purchase>
<Header>
<Document>
<DocumentDate></DocumentDate>
<DocumentRef></DocumentRef>
<Supplier>
<SupplierID></SupplierID>
<SupplierName></SupplierName>
</Supplier>
</Document>
<PurchaseType></PurchaseType>
<Operation></Operation>
<Currency></Currency>
<TaxBasis></TaxBasis>
<IncludeTax></IncludeTax>
<DateDue></DateDue>
<DateApproved></DateApproved>
<ReceivedBy></ReceivedBy>
<Deposit />
<Comment />
<PayTerm>
<PayTermType></PayTermType>
<PayTermDays></PayTermDays>
</PayTerm>
<PaymentMethod></PaymentMethod>
<ShippingData>
<ShippingType></ShippingType>
<Warehouse>
<WarehouseID></WarehouseID>
</Warehouse>
<LoadingArea>
<LoadingAreaID></LoadingAreaID>
</LoadingArea>
<Shipper>
<ShipperID></ShipperID>
</Shipper>
<ShippingAddress>
<AddressID></AddressID>
</ShippingAddress>
</ShippingData>
<Project>
<ProjectName />
</Project>
</Header>
<LineItems>
<LineItem>
<Account>
<AccountID></AccountID>
</Account>
<Item>
<ItemID></ItemID>
</Item>
<ItemLot>
<LotID></LotID>
</ItemLot>
<Description></Description>
<Qty></Qty>
<Price></Price>
<LineDiscount></LineDiscount>
<LineTotal></LineTotal>
<Unit>
<UnitID></UnitID>
</Unit>
<TaxKey>
<TaxKeyID></TaxKeyID>
</TaxKey>
</LineItem>
...
</LineItems>
<Adjustments>
<Adjustment>
<Account>
<AccountID></AccountID>
</Account>
<Amount></Amount>
<Description />
<TypeID></TypeID>
<PctOrAmount></PctOrAmount>
<TaxKey>
<TaxKeyID></TaxKeyID>
</TaxKey>
</Adjustment>
...
</Adjustments>
<ShippingCharge>
<Account>
<AccountID></AccountID>
</Account>
<Amount></Amount>
<TaxKey>
<TaxKeyID></TaxKeyID>
</TaxKey>
</ShippingCharge>
</Purchase>
Only <PurchaseType> and <Operation> are required.
To add a supplier <SupplierID /> OR <SupplierName /> should be provided.
For tags description please refer to Get Purchase Document .
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for purchase document
Back to Purchases
POST Update Purchase Document
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/purchase/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for purchase document
Payload
XML / HTTP Copy
<Purchase>
<Header>
<Document>
<DocumentDate></DocumentDate>
<DocumentRef></DocumentRef>
<Supplier>
<SupplierID></SupplierID>
</Supplier>
</Document>
<PurchaseType></PurchaseType>
<Operation></Operation>
<Currency></Currency>
<TaxBasis></TaxBasis>
<IncludeTax></IncludeTax>
<DateDue></DateDue>
<DateApproved></DateApproved>
<ReceivedBy></ReceivedBy>
<Deposit />
<Comment />
<PayTerm>
<PayTermType></PayTermType>
<PayTermDays></PayTermDays>
</PayTerm>
<PaymentMethod></PaymentMethod>
<ShippingData>
<ShippingType></ShippingType>
<Warehouse>
<WarehouseID></WarehouseID>
</Warehouse>
<LoadingArea>
<LoadingAreaID></LoadingAreaID>
</LoadingArea>
<Shipper>
<ShipperID></ShipperID>
</Shipper>
<ShippingAddress>
<AddressID></AddressID>
</ShippingAddress>
</ShippingData>
<Project>
<ProjectName />
</Project>
</Header>
<LineItems>
<LineItem>
<Account>
<AccountID></AccountID>
</Account>
<Item>
<ItemID></ItemID>
</Item>
<ItemLot>
<LotID></LotID>
</ItemLot>
<Description></Description>
<Qty></Qty>
<Price></Price>
<LineDiscount></LineDiscount>
<LineTotal></LineTotal>
<Unit>
<UnitID></UnitID>
</Unit>
<TaxKey>
<TaxKeyID></TaxKeyID>
</TaxKey>
</LineItem>
...
</LineItems>
<Adjustments>
<Adjustment>
<Account>
<AccountID></AccountID>
</Account>
<Amount></Amount>
<Description />
<TypeID></TypeID>
<PctOrAmount></PctOrAmount>
<TaxKey>
<TaxKeyID></TaxKeyID>
</TaxKey>
</Adjustment>
...
</Adjustments>
<ShippingCharge>
<Account>
<AccountID></AccountID>
</Account>
<Amount></Amount>
<TaxKey>
<TaxKeyID></TaxKeyID>
</TaxKey>
</ShippingCharge>
</Purchase>
Only documents with status Draft can be updated.
No tags are required.
For tags description please refer to Get Purchase Document .
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for purchase document
Back to Purchases
POST Add Purchase Note
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/addPurchaseNote/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for purchase document
Payload
XML / HTTP Copy
<Note></Note>
Tag
Description
<Note>
Text of the note
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for purchase document
Back to Purchases
GET Post Purchase Document
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/purchasePost/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for purchase document
Only documents with status Draft can be posted.
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for purchase document
Back to Purchases
GET Approve Purchase Document
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/purchaseApprove/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for purchase document
Sending Option
If you need to additionally send the document by email (for Purchase Order only) within the same request then append a send parameter to the URL e.g. &send=true .
Only documents with status Draft can be approved.
This request is valid for Purchase Order and Proforma Invoice only.
In case of any other document types please refer to Post Purchase Document request .
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for purchase document
Back to Purchases
GET Void Purchase Document
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/purchaseVoid/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for purchase document
Documents with status Draft, Partially Paid, Paid, Reversed or Done can not be voided.
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for purchase document
Back to Purchases
POST Add Payment to Purchase Document
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/purchasePayment/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for purchase document
Payload
XML / HTTP Copy
<DirectPayment>
<MoneyAccountID></MoneyAccountID>
<PaymentAmount></PaymentAmount>
<PaymentDate></PaymentDate>
<Narration></Narration>
<BankCharge></BankCharge>
</DirectPayment>
Only documents with status Waiting for Payment or Partially Paid can be paid.
<MoneyAccountID> should be in the same currency as purchase document.
<Narration> is not required.
<BankCharge> is optional.
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
<AmountDue></AmountDue>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for payment document. See Get Payment
Is not available for <MoneyAccountID> with Merchant and Credit Card account types
Back to Purchases
GET Offset Invoice with Credit Note
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/offsetPurchaseInvoiceWithCreditNote/{InvoiceID}/{CreditNoteID}
Parameter
Description
InvoiceID
Unique system identifier for invoice
CreditNoteID
Unique system identifier for credit note
Both invoice and credit note status should be either Waiting for Payment or Partially Paid.
Offset date will be the date of the credit note.
Response
XML / HTTP Copy
<Response>
<OffsetAmount></OffsetAmount>
<Invoice>
<DocumentID></DocumentID>
<AmountDue></AmountDue>
</Invoice>
<CreditNote>
<DocumentID></DocumentID>
<AmountDue></AmountDue>
</CreditNote>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for purchase document
Back to Purchases
POST Add Overpayment
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/overpaymentMade/{SupplierID}
Parameter
Description
SupplierID
Unique system identifier for supplier. See Get Supplier
Payload
XML / HTTP Copy
<Overpayment>
<MoneyAccountID></MoneyAccountID>
<PaymentAmount></PaymentAmount>
<PaymentDate></PaymentDate>
<Narration></Narration>
</Overpayment>
Response
XML / HTTP Copy
<Response>
<SupplierID></SupplierID>
<JournalID></JournalID>
</Response>
Tag
Description
<SupplierID>
Unique system identifier for supplier. See Get Supplier
<JournalID>
Unique system identifier for journal
Back to Purchases
GET Offset Overpayment
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/offsetOverpaymentMade/{InvoiceID}
Parameter
Description
InvoiceID
Unique system identifier for invoice
Offset date will be the date of the invoice.
Response
XML / HTTP Copy
<Response>
<OffsetAmount></OffsetAmount>
<Invoice>
<DocumentID></DocumentID>
<AmountDue></AmountDue>
</Invoice>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for purchase document
Back to Purchases
GET Get Prepayments (Open Proforma)
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/purchasesPrepayments/{SupplierID}
Parameter
Description
SupplierID
Unique system identifier for supplier. See Get Supplier
Response
XML / HTTP Copy
<Prepayments>
<Prepayment>
<Supplier>
<SupplierID></SupplierID>
<SupplierName></SupplierName>
</Supplier>
<DocumentID></DocumentID>
<DocumentRef></DocumentRef>
<DocumentDate></DocumentDate>
<Currency></Currency>
<Due></Due>
<Paid></Paid>
<Available></Available>
</Prepayment>
</Prepayments>
Tag
Description
<DocumentID>
Unique system identifier for purchase document (proforma)
<Currency>
Currency code
<Due>
Proforma due amount
<Paid>
Proforma paid amount
<Available>
Amount available for offsetting
Back to Purchases
GET Use Prepayment
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/offsetPurchaseInvoiceWithPrepayment/{InvoiceID}/{ProformaID}
Parameter
Description
InvoiceID
Unique system identifier for invoice
ProformaID
Unique system identifier for proforma
Offset date will be the date of the invoice.
Response
XML / HTTP Copy
<Response>
<OffsetAmount></OffsetAmount>
<Invoice>
<DocumentID></DocumentID>
<AmountDue></AmountDue>
</Invoice>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for purchase document
Back to Purchases
GET Get Expense Claims
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/expenseClaims
By default result list is sorted by document date in descending order.
There are several options to change the default ordering by passing additional parameters to the request.
Optional parameters are available. Results can be filtered by employee name or document number.
This result list can be checked for new records and updates. See Optional parameters for additional info.
Document date range filter can be applied.
Status filter can be applied.
Additional optional parameters are available for this request:
GET https://go.paytraq.com/api/expenseClaims? ... &EmployeeID=0 ... &dueOnly=true
EmployeeID - Unique system identifier for employee. See Get Employee
dueOnly - Boolean, if true then only documents with "Waiting for Payment" and "Partially Paid" status are returned
Response
XML / HTTP Copy
<ExpenseClaims>
<ExpenseClaim>
<Header>
<Document>
<DocumentID></DocumentID>
<DocumentDate></DocumentDate>
<DocumentRef></DocumentRef>
<DocumentType></DocumentType>
<DocumentStatus></DocumentStatus>
<Employee>
<EmployeeID></EmployeeID>
<EmployeeName></EmployeeName>
</Employee>
</Document>
<Total></Total>
<AmountDue></AmountDue>
<Currency></Currency>
<BalanceCurrency></BalanceCurrency>
<CurrencyRate></CurrencyRate>
<TaxBasis></TaxBasis>
<IncludeTax></IncludeTax>
<UsePrepayment></UsePrepayment>
<DateDue></DateDue>
<Comment />
<PayTerm>
<PayTermType></PayTermType>
<PayTermDays />
</PayTerm>
<AccountID></AccountID>
<Project>
<ProjectName />
</Project>
<TimeStamps>
<Created />
<Updated />
</TimeStamps>
</Header>
</ExpenseClaim>
...
</ExpenseClaims>
Tag
Description
<DocumentID>
Unique system identifier for expepse claim
<DocumentRef>
Document number
<DocumentStatus>
Possible values:
draft - Draft
wait_approve - Waiting for Approval
wait_payment - Waiting for Payment
part_paid - Partially Paid
paid - Paid
voided - Voided/Canceled
reversed - Reversed
done - Done
approved - Approved
in_process - In Progress
<EmployeeID>
Unique system identifier for employee. See Get Employee
<Currency>
Currency code
<TaxBasis>
Possible values:
<IncludeTax>
Boolean value (false | true)
Shows that amounts are tax inclusive
<UsePrepayment>
Boolean value (false | true)
<AccountID>
Unique system identifier for accounts payable. See Get Account
<Created>
Date created UTC timestamp
<Updated>
Date updated UTC timestamp
Back to Purchases
GET Get Expense Claim
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/expenseClaim/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for expense claim
Response
XML / HTTP Copy
<ExpenseClaim>
<Header>
<Document>
<DocumentID></DocumentID>
<DocumentDate></DocumentDate>
<DocumentRef></DocumentRef>
<DocumentType></DocumentType>
<DocumentStatus></DocumentStatus>
<Employee>
<EmployeeID></EmployeeID>
<EmployeeName></EmployeeName>
</Employee>
</Document>
<Total></Total>
<AmountDue></AmountDue>
<Currency></Currency>
<BalanceCurrency></BalanceCurrency>
<CurrencyRate></CurrencyRate>
<TaxBasis></TaxBasis>
<IncludeTax></IncludeTax>
<UsePrepayment></UsePrepayment>
<DateDue></DateDue>
<Comment />
<PayTerm>
<PayTermType></PayTermType>
<PayTermDays />
</PayTerm>
<AccountID></AccountID>
<Project>
<ProjectName />
</Project>
<TimeStamps>
<Created />
<Updated />
</TimeStamps>
</Header>
<Expenses>
<Expense>
<Account>
<AccountID></AccountID>
<AccountCode></AccountCode>
<AccountName></AccountName>
</Account>
<Supplier>
<SupplierID></SupplierID>
<SupplierName></SupplierName>
</Supplier>
<ReceiptDate></ReceiptDate>
<ReceiptRef></ReceiptRef>
<Description></Description>
<Amount></Amount>
<TaxKey>
<TaxKeyID></TaxKeyID>
<TaxKeyName></TaxKeyName>
</TaxKey>
</Expense>
...
</Expenses>
<Taxes>
<Tax>
<TaxKey>
<TaxKeyID></TaxKeyID>
<TaxKeyName></TaxKeyName>
</TaxKey>
<TaxName></TaxName>
<GrossAmount></GrossAmount>
<NetAmount></NetAmount>
<TaxAmount></TaxAmount>
<Account>
<AccountID></AccountID>
<AccountName></AccountName>
</Account>
</Tax>
</Taxes>
<Totals>
<GrossAmount></GrossAmount>
<NetAmount></NetAmount>
</Totals>
<Payments>
<Payment>
<PaymentDate></PaymentDate>
<PaymentType></PaymentType>
<PaymentAmount></PaymentAmount>
<JournalID></JournalID>
<JournalRef></JournalRef>
<DocumentLink>
<DocumentID></DocumentID>
<DocumentRef></DocumentRef>
<DocumentType></DocumentType>
</DocumentLink>
</Payment>
...
</Payments>
<Journals>
<Journal>
<JournalID></JournalID>
<JournalRef></JournalRef>
<JournalDate></JournalDate>
<JournalStatus></JournalStatus>
<JournalType>
<JournalTypeID></JournalTypeID>
<JournalTypeName></JournalTypeName>
</JournalType>
</Journal>
...
</Journals>
<Tags>
<Tag />
</Tags>
</ExpenseClaim>
Tag
Description
<DocumentID>
Unique system identifier for expepse claim
<DocumentRef>
Document number
<DocumentStatus>
Possible values:
draft - Draft
wait_approve - Waiting for Approval
wait_payment - Waiting for Payment
part_paid - Partially Paid
paid - Paid
voided - Voided/Canceled
reversed - Reversed
done - Done
approved - Approved
in_process - In Progress
<EmployeeID>
Unique system identifier for employee. See Get Employee
<Currency>
Currency code
<TaxBasis>
Possible values:
<IncludeTax>
Boolean value (false | true)
Shows that amounts are tax inclusive
<UsePrepayment>
Boolean value (false | true)
<PayTermType>
Possible values:
0 - Other date
1 - Due days
2 - EOM+
<PayTermDays>
Number of days. Can be used only with <PayTermType> values 1 and 2
<AccountID>
Unique system identifier for account. See Get Account
<Created>
Date created UTC timestamp
<Updated>
Date updated UTC timestamp
<SupplierID>
Unique system identifier for supplier. See Get Supplier
<ReceiptRef>
Receipt number
<TaxKeyID>
Unique system identifier for tax key. See Get Tax Key
Back to Purchases
POST Add Expense Claim
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/expenseClaim
Payload
XML / HTTP Copy
<ExpenseClaim>
<Header>
<Document>
<DocumentDate></DocumentDate>
<DocumentRef></DocumentRef>
<Employee>
<EmployeeID></EmployeeID>
<EmployeeName></EmployeeName>
</Employee>
</Document>
<Currency></Currency>
<UsePrepayment></UsePrepayment>
<DateDue></DateDue>
<Comment />
<PayTerm>
<PayTermType></PayTermType>
<PayTermDays />
</PayTerm>
<Project>
<ProjectName />
</Project>
</Header>
<Expenses>
<Expense>
<Account>
<AccountID></AccountID>
</Account>
<Supplier>
<SupplierID></SupplierID>
<SupplierName></SupplierName>
</Supplier>
<ReceiptDate></ReceiptDate>
<ReceiptRef></ReceiptRef>
<Description></Description>
<Amount></Amount>
<TaxKey>
<TaxKeyID></TaxKeyID>
</TaxKey>
</Expense>
...
</Expenses>
</ExpenseClaim>
No tags are required.
To add an employee <EmployeeID /> OR <EmployeeName /> should be provided.
To add a supplier <SupplierID /> OR <SupplierName /> should be provided.
For tags description please refer to Get Expense Claim .
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for purchase document
Back to Purchases
POST Update Expense Claim
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/expenseClaim/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for expense claim
Payload
XML / HTTP Copy
<ExpenseClaim>
<Header>
<Document>
<DocumentDate></DocumentDate>
<DocumentRef></DocumentRef>
<Employee>
<EmployeeID></EmployeeID>
</Employee>
</Document>
<Currency></Currency>
<UsePrepayment></UsePrepayment>
<DateDue></DateDue>
<Comment />
<PayTerm>
<PayTermType></PayTermType>
<PayTermDays />
</PayTerm>
<Project>
<ProjectName />
</Project>
</Header>
<Expenses>
<Expense>
<Account>
<AccountID></AccountID>
</Account>
<Supplier>
<SupplierID></SupplierID>
<SupplierName></SupplierName>
</Supplier>
<ReceiptDate></ReceiptDate>
<ReceiptRef></ReceiptRef>
<Description></Description>
<Amount></Amount>
<TaxKey>
<TaxKeyID></TaxKeyID>
</TaxKey>
</Expense>
...
</Expenses>
</ExpenseClaim>
Only documents with status Draft or Waiting for Approval can be updated.
No tags are required.
To add a supplier <SupplierID /> OR <SupplierName /> should be provided.
For tags description please refer to Get Expense Claim .
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for expense claim
Back to Purchases
GET Post Expense Claim
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/expenseClaimPost/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for expense claim
Only documents with status Waiting for Approval can be posted.
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for expense claim
Back to Purchases
POST Add Payment to Expense Claim
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/expenseClaimPayment/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for expense claim
Payload
XML / HTTP Copy
<DirectPayment>
<MoneyAccountID></MoneyAccountID>
<PaymentAmount></PaymentAmount>
<PaymentDate></PaymentDate>
<Narration></Narration>
</DirectPayment>
Only documents with status Waiting for Payment or Partially Paid can be paid.
<MoneyAccountID> should be in the same currency as expense claim.
<Narration> is not required.
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
<AmountDue></AmountDue>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for payment document. See Get Payment
Is not available for <MoneyAccountID> with Merchant and Credit Card account types
Back to Purchases
GET Get Expenses By Suppliers
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/expensesBySuppliers
The result list is sorted by Total in descending order.
Pagination and Date Range filter can be applied.
GET https://go.paytraq.com/api/expensesBySuppliers? ... &page=0&date_from=2025-01-01&date_till=2025-01-31
Response
XML / HTTP Copy
<Suppliers>
<Supplier>
<SupplierID></SupplierID>
<Name></Name>
<Total></Total>
<Currency></Currency>
</Supplier>
</Suppliers>
Tag
Description
<SupplierID>
Unique system identifier for supplier. See Get Supplier
<Total>
Total income for the period
Back to Purchases
GET Get Expenses By Products
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/expensesByProducts
The result list is sorted by Total in descending order.
Pagination and Date Range filter can be applied.
GET https://go.paytraq.com/api/expensesByProducts? ... &page=0&date_from=2025-01-01&date_till=2025-01-31
Response
XML / HTTP Copy
<Products>
<Product>
<ItemID></ItemID>
<Name></Name>
<Code></Code>
<Total></Total>
<Currency></Currency>
</Client>
</Product>
Tag
Description
<ItemID>
Unique system identifier for product. See Get Product
<Total>
Total income for the period
Back to Purchases
GET List of Products Purchased
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/listProductsPurchased
The result list is sorted by Journal Date in ascending order.
Pagination and Date Range filter can be applied.
GET https://go.paytraq.com/api/listProductsPurchased? ... &page=0&date_from=2025-01-01&date_till=2025-01-31
Additional optional parameters are available for this request:
GET https://go.paytraq.com/api/listProductsPurchased? ... &SupplierID=0 ... &ItemID=0
SupplierID - Unique system identifier for supplier. See Get Supplier
ItemID - Unique system identifier for product. See Get Product
Response
XML / HTTP Copy
<Purchases>
<Purchase>
<Document>
<DocumentID></DocumentID>
<DocumentDate>></DocumentDate>
<DocumentRef></DocumentRef>
<DocumentType></DocumentType>
<DocumentStatus></DocumentStatus>
<Supplier>
<SupplierID></SupplierID>
<SupplierName></SupplierName>
</Supplier>
</Document>
<PurchaseType></PurchaseType>
<Journal>
<JournalID></JournalID>
<JournalRef></JournalRef>
<JournalDate></JournalDate>
</Journal>
<Product>
<ItemID></ItemID>
<Name></Name>
<Code></Code>
<Qty></Qty>
<Total>></Total>
<Currency></Currency>
</Product>
</Purchase>
</Purchases>
Tag
Description
<ItemID>
Unique system identifier for product. See Get Product
<Qty>
Total qty for document
<Total>
Total amount for document
Back to Purchases
POST Upload File to Purchase Inbox
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/purchaseInbox/upload
The request should be sent as form-data with "file" param containing files
For XML files (Peppol/UBL, Estonian E-invoice or Paytraq XML) Paytraq Direct channel should be enabled
Parameter
Description
file
Files (form-data)
Back to Purchases
Inventory Moves
GET Get Inventory Movements
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/inventoryMovements
By default result list is sorted by document date in descending order.
There are several options to change the default ordering by passing additional parameters to the request.
Optional parameters are available. Results can be filtered by document number or by source or destination name.
This result list can be checked for new records and updates. See Optional parameters for additional info.
Document date range filter can be applied.
Status filter can be applied.
Additional optional parameters are available for this request:
GET https://go.paytraq.com/api/inventoryMovements? ... &BusinessPartnerID=0
BusinessPartnerID - Unique system identifier for client or supplier. See Get Client or Get Supplier
Response
XML / HTTP Copy
<InventoryMovements>
<InventoryMovement>
<Header>
<Document>
<DocumentID></DocumentID>
<DocumentDate></DocumentDate>
<DocumentRef></DocumentRef>
<DocumentType></DocumentType>
<DocumentStatus></DocumentStatus>
<BusinessPartner>
<BusinessPartnerID></BusinessPartnerID>
<BusinessPartnerName></BusinessPartnerName>
</BusinessPartner>
</Document>
<MovementType></MovementType>
<Operation></Operation>
<Direction></Direction>
<Sender>
<WarehouseID></WarehouseID>
<WarehouseName></WarehouseName>
</Sender>
<Receiver>
<WarehouseID></WarehouseID>
<WarehouseName></WarehouseName>
</Receiver>
<Warehouse>
<WarehouseID></WarehouseID>
<WarehouseName></WarehouseName>
</Warehouse>
<TimeStamps>
<Created />
<Updated />
</TimeStamps>
</Header>
</InventoryMovement>
...
</InventoryMovements>
Tag
Description
<DocumentID>
Unique system identifier for inventory document
<DocumentRef>
Document number
<DocumentType>
Possible values:
out_shipment - Outgoing Shipment
in_shipment - Incoming Shipment
inventory - Inventory Adjustment
<DocumentStatus>
Possible values:
wait_approve - Waiting for Approval
wait_invoice - Waiting for Invoice
wait_refund - Waiting for Refund
wait_delivery - Waiting for Delivery
in_transit - In Transit
issued_client - Issued to Client
wait_return - Waiting for Return
done - Done
in_production - In Production
in_process - In Progress
<BusinessPartnerID>
Unique system identifier for client or supplier. See Get Client or Get Supplier
<MovementType>
Possible values:
shipment - Shipment
adjustment - Inventory Adjustment
<Operation>
Possible values:
sales_invoice - Sales Invoice
purchase_invoice - Purchase Invoice
sales_return - Sales Return/Credit Note
purchase_return - Purchase Return/Credit Note
internal - Internal Shipment
external - External Shipment
receipt - Inventory Receipt
write_off - Intentory Write-off
inventory - Physical Inventory
revaluation - Revaluation
order - Production Order
<Direction>
Possible values:
out - Outgoing
in - Incoming
in/out - Incoming/Outgoing
<WarehouseID>
Unique system identifier for warehouse. See Get Warehouse
<Created>
Date created UTC timestamp
<Updated>
Date updated UTC timestamp
Back to Inventory Moves
GET Get Inventory Movement
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/inventoryMovement/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for inventory document
Response
XML / HTTP Copy
<InventoryMovement>
<Header>
<Document>
<DocumentID></DocumentID>
<DocumentDate></DocumentDate>
<DocumentRef></DocumentRef>
<DocumentType></DocumentType>
<DocumentStatus></DocumentStatus>
<BusinessPartner>
<BusinessPartnerID></BusinessPartnerID>
<BusinessPartnerName></BusinessPartnerName>
</BusinessPartner>
</Document>
<MovementType></MovementType>
<Operation></Operation>
<Direction></Direction>
<Sender>
<WarehouseID></WarehouseID>
<WarehouseName></WarehouseName>
</Sender>
<Receiver>
<WarehouseID></WarehouseID>
<WarehouseName></WarehouseName>
</Receiver>
<Warehouse>
<WarehouseID></WarehouseID>
<WarehouseName></WarehouseName>
</Warehouse>
<ShippingData>
<LoadingArea>
<LoadingAreaID></LoadingAreaID>
<LoadingAreaName></LoadingAreaName>
<LoadingAreaAddress>
<Address></Address>
<Zip></Zip>
<Country></Country>
</LoadingAreaAddress>
</LoadingArea>
<Shipper>
<ShipperID></ShipperID>
<ShipperName></ShipperName>
<ShipperRegNumber />
<ShipperVehicle />
<ShipperDriver />
</Shipper>
<ShippingAddress>
<AddressID></AddressID>
<ShipTo></ShipTo>
<Address></Address>
<Zip></Zip>
<Country></Country>
</ShippingAddress>
</ShippingData>
<Comment />
<Invoice>
<DocumentLink>
<DocumentID></DocumentID>
<DocumentDate></DocumentDate>
<DocumentRef></DocumentRef>
<DocumentType></DocumentType>
</DocumentLink>
</Invoice>
<InitShipment />
<TimeStamps>
<Created />
<Updated />
</TimeStamps>
</Header>
<CustomData>
<CustomField>
<FieldName></FieldName>
<FieldValue></FieldValue>
</CustomField>
...
</CustomData>
<MovementLines>
<MovementLine>
<Item>
<ItemID></ItemID>
<ItemCode />
<ItemName></ItemName>
</Item>
<ItemLot>
<LotID></LotID>
<LotNumber></LotNumber>
</ItemLot>
<ItemDescription></ItemDescription>
<Qty></Qty>
<UnitCost />
<Unit>
<UnitID></UnitID>
<UnitName></UnitName>
</Unit>
<Direction></Direction>
<Status></Status>
<ActualQty />
<InitQty />
</MovementLine>
</MovementLines>
<Totals>
<TotalCost></TotalCost>
<Qty></Qty>
</Totals>
<Tags>
<Tag />
</Tags>
</InventoryMovement>
Tag
Description
<DocumentID>
Unique system identifier for document
<DocumentRef>
Document number
<DocumentType>
Possible values:
out_shipment - Outgoing Shipment
in_shipment - Incoming Shipment
inventory - Inventory Adjustment
<DocumentStatus>
Possible values:
wait_approve - Waiting for Approval
wait_invoice - Waiting for Invoice
wait_refund - Waiting for Refund
wait_delivery - Waiting for Delivery
in_transit - In Transit
issued_client - Issued to Client
wait_return - Waiting for Return
done - Done
in_production - In Production
in_process - In Progress
<BusinessPartnerID>
Unique system identifier for client or supplier. See Get Client or Get Supplier
<MovementType>
Possible values:
shipment - Shipment
adjustment - Inventory Adjustment
<Operation>
Possible values:
sales_invoice - Sales Invoice
purchase_invoice - Purchase Invoice
sales_return - Sales Return/Credit Note
purchase_return - Purchase Return/Credit Note
internal - Internal Shipment
external - External Shipment
receipt - Inventory Receipt
write_off - Intentory Write-off
inventory - Physical Inventory
revaluation - Revaluation
order - Production Order
<Direction>
Possible values:
out - Outgoing
in - Incoming
in/out - Incoming/Outgoing
<WarehouseID>
Unique system identifier for warehouse. See Get Warehouse
<Created>
Date created UTC timestamp
<Updated>
Date updated UTC timestamp
<ItemID>
Unique system identifier for product. See Get Product
<ItemCode>
Product SKU. See Get Product By Code
<LotID>
Unique system identifier for lot
<UnitID>
Unique system identifier for unit of measure. See Get Unit
Back to Inventory Moves
POST Add Shipment
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/shipment
Payload
XML / HTTP Copy
<InventoryMovement>
<Header>
<Document>
<DocumentDate></DocumentDate>
<DocumentRef></DocumentRef>
<DocumentType></DocumentType>
<BusinessPartner>
<BusinessPartnerID></BusinessPartnerID>
<BusinessPartnerName></BusinessPartnerName>
</BusinessPartner>
</Document>
<Operation></Operation>
<Receiver>
<WarehouseID></WarehouseID>
</Receiver>
<Warehouse>
<WarehouseID></WarehouseID>
</Warehouse>
<ShippingData>
<LoadingArea>
<LoadingAreaID></LoadingAreaID>
</LoadingArea>
<Shipper>
<ShipperID></ShipperID>
</Shipper>
<ShippingAddress>
<AddressID></AddressID>
</ShippingAddress>
</ShippingData>
<Comment />
</Header>
<CustomData>
<CustomField>
<FieldName></FieldName>
<FieldValue></FieldValue>
</CustomField>
...
</CustomData>
<MovementLines>
<MovementLine>
<Item>
<ItemID></ItemID>
<ItemCode />
<ItemName></ItemName>
</Item>
<ItemLot>
<LotID></LotID>
<LotNumber></LotNumber>
</ItemLot>
<ItemDescription></ItemDescription>
<Qty></Qty>
<UnitCost />
<Unit>
<UnitID></UnitID>
<UnitName></UnitName>
</Unit>
</MovementLine>
</MovementLines>
</InventoryMovement>
Only <DocumentType> and <Operation> are required.
To add a partner <BusinessPartnerID /> OR <BusinessPartnerName /> should be provided.
To add an item <ItemID /> OR <ItemCode /> OR <ItemName /> should be provided.
To add a lot <LotID /> OR <LotNumber /> should be provided.
To add a unit <UnitID /> OR <UnitName /> should be provided.
<Receiver /> is required for Internal Transfer only.
For tags description please refer to Get Inventory Movement .
Tag
Description
<DocumentType>
Possible values:
out_shipment - Outgoing Shipment
in_shipment - Incoming Shipment
<Operation>
Possible values:
sales_invoice - Sales Invoice
purchase_invoice - Purchase Invoice
sales_return - Sales Return/Credit Note
purchase_return - Purchase Return/Credit Note
internal - Internal Shipment
external - External Shipment
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for document
Back to Inventory Moves
Update Shipment
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/shipment/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for document
Payload
XML / HTTP Copy
<InventoryMovement>
<Header>
<Document>
<DocumentDate></DocumentDate>
<DocumentRef></DocumentRef>
<BusinessPartner>
<BusinessPartnerID></BusinessPartnerID>
<BusinessPartnerName></BusinessPartnerName>
</BusinessPartner>
</Document>
<Receiver>
<WarehouseID></WarehouseID>
</Receiver>
<Warehouse>
<WarehouseID></WarehouseID>
</Warehouse>
<ShippingData>
<LoadingArea>
<LoadingAreaID></LoadingAreaID>
</LoadingArea>
<Shipper>
<ShipperID></ShipperID>
</Shipper>
<ShippingAddress>
<AddressID></AddressID>
</ShippingAddress>
</ShippingData>
<Comment />
</Header>
<CustomData>
<CustomField>
<FieldName></FieldName>
<FieldValue></FieldValue>
</CustomField>
...
</CustomData>
<MovementLines>
<MovementLine>
<Item>
<ItemID></ItemID>
<ItemCode />
<ItemName></ItemName>
</Item>
<ItemLot>
<LotID></LotID>
<LotNumber></LotNumber>
</ItemLot>
<ItemDescription></ItemDescription>
<Qty></Qty>
<UnitCost />
<Unit>
<UnitID></UnitID>
<UnitName></UnitName>
</Unit>
</MovementLine>
</MovementLines>
</InventoryMovement>
Only documents with status Waiting for Approval can be updated.
No tags are required.
For tags description please refer to Get Inventory Movement .
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
</Response>
Back to Inventory Moves
Approve Shipment
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/shipmentApprove/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for document
Only documents with status Waiting for Approval can be approved.
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
</Response>
Back to Inventory Moves
Payments
GET Get Payments
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/payments
By default result list is sorted by document date in descending order.
There are several options to change the default ordering by passing additional parameters to the request.
Optional parameters are available. Results can be filtered by document number or business partner name.
This result list can be checked for new records and updates. See Optional parameters for additional info.
Payment date range filter can be applied.
Status filter can be applied.
Additional optional parameters are available for this request:
GET https://go.paytraq.com/api/payments? ... &BusinessPartnerID=0
BusinessPartnerID - Unique system identifier for client, supplier or employee. See Get Client , Get Supplier or Get Employee
Response
XML / HTTP Copy
<Payments>
<Payment>
<Header>
<Document>
<DocumentID></DocumentID>
<DocumentDate></DocumentDate>
<DocumentRef></DocumentRef>
<DocumentType></DocumentType>
<DocumentStatus></DocumentStatus>
<BusinessPartner>
<BusinessPartnerID></BusinessPartnerID>
<BusinessPartnerName></BusinessPartnerName>
<BankInfo>
<BankAccount></BankAccount>
<BankName></BankName>
<BankCode></BankCode>
</BankInfo>
</BusinessPartner>
</Document>
<PaymentType></PaymentType>
<Operation></Operation>
<PaymentAmount></PaymentAmount>
<BalanceAmount><lt;/BalanceAmount>
<PaymentCurrency></PaymentCurrency>
<BalanceCurrency></BalanceCurrency>
<CurrencyRate></CurrencyRate>
<MoneyAccount>
<MoneyAccountID></MoneyAccountID>
<MoneyAccountName></MoneyAccountName>
<MoneyAccountCurrency></MoneyAccountCurrency>
<GLAccount>
<AccountID></AccountID>
<AccountCode />
<AccountName>Bank</AccountName>
</GLAccount>
<Type></Type>
<BankAccountNumber />
<BankName />
<BankCode />
</MoneyAccount>
<IsBankCharge></IsBankCharge>
<IsTransfer></IsTransfer>
<Narration></Narration>
<TimeStamps>
<Created />
<Updated />
</TimeStamps>
</Header>
</Payment>
...
</Payments>
Tag
Description
<DocumentID>
Unique system identifier for payment document
<DocumentRef>
Document number
<DocumentStatus>
Possible values:
draft - Draft
done - Done
<BusinessPartnerID>
Unique system identifier for client, supplier or employee. See Get Client , Get Supplier or Get Employee
<PaymentType>
Possible values:
bank_in - Incoming Bank Payment
bank_out - Outgoing Bank Payment
cash_in - Incoming Cash Payment
cash_out - Outgoing Cash Payment
cash_dr_voucher - Cash Debit Voucher
cash_cr_voucher- Cash Credit Voucher
<Operation>
Possible values:
out - Outgoing
in - Incoming
<PaymentCurrency>
Currency code
<MoneyAccountID>
Unique system identifier for bank or cash account. See Get Bank Accounts and Get Cash Accounts
<Type>
Possible values:
bank - Bank Account
card - Credit Card
merchant - Merchant Account
paypal - PayPal Account
cashbook - Cashbook
pos - Point of Sale / Cash Account
other - Other Money Account
<IsBankCharge>
Boolean value (false | true)
<IsTransfer>
Boolean value (false | true)
<Created>
Date created UTC timestamp
<Updated>
Date updated UTC timestamp
Back to Payments
GET Get Payment
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/payment/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for payment document
Response
XML / HTTP Copy
<Payment>
<Header>
<Document>
<DocumentID></DocumentID>
<DocumentDate></DocumentDate>
<DocumentRef></DocumentRef>
<DocumentType></DocumentType>
<DocumentStatus></DocumentStatus>
<BusinessPartner>
<BusinessPartnerID></BusinessPartnerID>
<BusinessPartnerName></BusinessPartnerName>
<BankInfo>
<BankAccount></BankAccount>
<BankName></BankName>
<BankCode></BankCode>
</BankInfo>
</BusinessPartner>
</Document>
<PaymentType></PaymentType>
<Operation></Operation>
<PaymentAmount></PaymentAmount>
<BalanceAmount></BalanceAmount>
<PaymentCurrency></PaymentCurrency>
<BalanceCurrency></BalanceCurrency>
<CurrencyRate></CurrencyRate>
<MoneyAccount>
<MoneyAccountID></MoneyAccountID>
<MoneyAccountName></MoneyAccountName>
<MoneyAccountCurrency></MoneyAccountCurrency>
<GLAccount>
<AccountID></AccountID>
<AccountCode />
<AccountName></AccountName>
</GLAccount>
<Type></Type>
<BankAccountNumber />
<BankName />
<BankCode />
</MoneyAccount>
<IsBankCharge></IsBankCharge>
<IsTransfer></IsTransfer>
<Narration></Narration>
<TimeStamps>
<Created />
<Updated />
</TimeStamps>
</Header>
<PaymentLines>
<PaymentLine>
<Account>
<AccountID></AccountID>
<AccountCode></AccountCode>
<AccountName></AccountName>
</Account>
<PaymentAmount></PaymentAmount>
<BalanceAmount></BalanceAmount>
<PaymentCurrency></PaymentCurrency>
<BalanceCurrency></BalanceCurrency>
<Description></Description>
<DocumentLink>
<DocumentID></DocumentID>
<DocumentDate></DocumentDate>
<DocumentRef></DocumentRef>
<DocumentType></DocumentType>
</DocumentLink>
</PaymentLine>
...
</PaymentLines>
<Journals>
<Journal>
<JournalID></JournalID>
<JournalRef></JournalRef>
<JournalDate></JournalDate>
<JournalStatus></JournalStatus>
<JournalType>
<JournalTypeID></JournalTypeID>
<JournalTypeName></JournalTypeName>
</JournalType>
</Journal>
...
</Journals>
<Tags>
<Tag />
</Tags>
</Payment>
Tag
Description
<DocumentID>
Unique system identifier for document
<DocumentRef>
Document number
<DocumentStatus>
Possible values:
draft - Draft
done - Done
<BusinessPartnerID>
Unique system identifier for client, supplier or employee. See Get Client , Get Supplier or Get Employee
<PaymentType>
Possible values:
bank_in - Incoming Bank Payment
bank_out - Outgoing Bank Payment
cash_in - Incoming Cash Payment
cash_out - Outgoing Cash Payment
cash_dr_voucher - Cash Debit Voucher
cash_cr_voucher- Cash Credit Voucher
<Operation>
Possible values:
out - Outgoing
in - Incoming
<PaymentCurrency>
Currency code
<MoneyAccountID>
Unique system identifier for bank or cash account. See Get Bank Accounts and Get Cash Accounts
<Type>
Possible values:
bank - Bank Account
card - Credit Card
merchant - Merchant Account
paypal - PayPal Account
cashbook - Cashbook
pos - Point of Sale / Cash Account
other - Other Money Account
<IsBankCharge>
Boolean value (false | true)
<IsTransfer>
Boolean value (false | true)
<Created>
Date created UTC timestamp
<Updated>
Date updated UTC timestamp
<AccountID>
Unique system identifier for account. See Get Account
Back to Payments
POST Upload a Bank Statement
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/bankStatementUpload/{BankAccountID}
Parameter
Description
BankAccountID
Unique system identifier for bank account. See Get Bank Accounts
Payload
XML / HTTP Copy
<BankStatement>
<Transactions>
<Transaction>
<Date></Date>
<TransactionID></TransactionID>
<Counterparty>
<Name></Name>
<LegalID></LegalID>
<AccountNumber></AccountNumber>
</Counterparty>
<PaymentDetails></PaymentDetails>
<Amount></Amount>
</Transaction>
...
</Transactions>
</BankStatement>
Tag
Description
<TransactionID>
Bank transaction reference
<Amount>
Positive or negative transaction amount. Amount should be in the same currency as the currency of the provided bank account
Only <Date> and <Amount> are required.
Response
XML / HTTP Copy
<Response>
<TotalTransactions></TotalTransactions>
<MoneyOut></MoneyOut>
<MoneyIn></MoneyyIn>
</Response>
Tag
Description
<TotalTransactions>
Total number of uploaded transactions
<MoneyOut>
Total amount of outgoing transactions
<MoneyIn>
Total amount of incoming transactions
Back to Payments
Accounting
GET Get Tax Keys
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/taxKeys
Response
XML / HTTP Copy
<TaxKeys>
<TaxKey>
<TaxKeyID></TaxKeyID>
<Name></Name>
<TaxName />
<EffectiveRate></EffectiveRate>
<IsDefault></IsDefault>
<TaxGroup>
<TaxGroupID></TaxGroupID>
<TaxGroupName></TaxGroupName>
<IsInput></IsInput>
<IsOutput></IsOutput>
<IsECSales></IsECSales>
<IsECPurchases></IsECPurchases>
<IsImport></IsImport>
<IsOSS></IsOSS>
<IsCrossBorder></IsCrossBorder>
<IsStandardRate></IsStandardRate>
</TaxGroup>
<Description />
<IsInactive></IsInactive>
<Country></Country>
<TaxNumber></TaxNumber>
</TaxKey>
...
</TaxKeys>
Tag
Description
<TaxKeyID>
Unique system identifier for tax key
<EffectiveRate>
Effective Tax Rate
<IsDefault>
Boolean value (false | true)
<TaxGroupID>
Unique system identifier for tax group
<IsInput>
Boolean value (false | true)
<IsOutput>
Boolean value (false | true)
<IsECSales>
Boolean value (false | true)
<IsECPurchases>
Boolean value (false | true)
<IsImport>
Boolean value (false | true)
<IsOSS>
Boolean value (false | true)
<IsCrossBorder>
Boolean value (false | true)
<IsStandardRate>
Boolean value (false | true)
<IsInactive>
Boolean value (false | true)
<Country>
2-letter ISO country code
Back to Accounting
GET Get Tax Key
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/taxKey/{TaxKeyID}
Parameter
Description
TaxKeyID
Unique system identifier for tax key
Response
XML / HTTP Copy
<TaxKey>
<TaxKeyID></TaxKeyID>
<Name></Name>
<TaxName />
<EffectiveRate></EffectiveRate>
<IsDefault></IsDefault>
<TaxGroup>
<TaxGroupID></TaxGroupID>
<TaxGroupName></TaxGroupName>
<IsInput></IsInput>
<IsOutput></IsOutput>
<IsECSales></IsECSales>
<IsECPurchases></IsECPurchases>
<IsImport></IsImport>
<IsOSS></IsOSS>
<IsCrossBorder></IsCrossBorder>
<IsStandardRate></IsStandardRate>
</TaxGroup>
<Description />
<IsInactive></IsInactive>
<Country></Country>
<TaxNumber></TaxNumber>
<Rates>
<Rate>
<RateID></RateID>
<TaxName></TaxName>
<TaxRate></TaxRate>
<IsReverseTax></IsReverseTax>
<SysTaxName></SysTaxName>
<TaxAccountID></TaxAccountID>
<TaxHoldAccountID></TaxHoldAccountID>
<TaxExpenseAccountID />
</Rate>
</Rates>
</TaxKey>
Tag
Description
<TaxKeyID>
Unique system identifier for tax key
<EffectiveRate>
Effective Tax Rate
<IsDefault>
Boolean value (false | true)
<TaxGroupID>
Unique system identifier for tax group
<IsInput>
Boolean value (false | true)
<IsOutput>
Boolean value (false | true)
<IsECSales>
Boolean value (false | true)
<IsECPurchases>
Boolean value (false | true)
<IsImport>
Boolean value (false | true)
<IsOSS>
Boolean value (false | true)
<IsCrossBorder>
Boolean value (false | true)
<IsStandardRate>
Boolean value (false | true)
<IsInactive>
Boolean value (false | true)
<Country>
2-letter ISO country code
<IsReverseTax>
Boolean value (false | true)
<TaxAccountID>
Unique system identifier for tax payable account. See Get Account
<TaxHoldAccountID>
Unique system identifier for tax holding account. See Get Account
Back to Accounting
GET Get Accounts
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/accounts
Result list is sorted by account code and account name in ascending order.
Optional query parameters is available. Results can be filtered by account code or account name. Pagination is not needed.
Response
XML / HTTP Copy
<Accounts>
<Account>
<AccountID></AccountID>
<Code></Code>
<Name></Name>
<Alias></Alias>
<ENName></ENName>
<AccountGroup>
<AccountGroupID></AccountGroupID>
<AccountGroupType></AccountGroupType>
<AccountGroupBalanceType></AccountGroupBalanceType>
<AccountGroupBalanceSubType></AccountGroupBalanceSubType>
</AccountGroup>
<AccountType></AccountType>
<IsInactive></IsInactive>
</Account>
...
</Accounts>
Tag
Description
<AccountID>
Unique system identifier for account
<Code>
Account Code
<AccountGroupID>
Unique system identifier for account group
<AccountGroupBalanceType>
Possible values:
A - Assets
L - Liabilities
N - Nominal
<AccountType>
Possible values:
<IsInactive>
Boolean value (false | true)
Back to Accounting
GET Get Account
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/account/{AccountID}
Parameter
Description
AccountID
Unique system identifier for account
Response
XML / HTTP Copy
<Account>
<AccountID></AccountID>
<Code></Code>
<Name></Name>
<Alias></Alias>
<ENName></ENName>
<AccountGroup>
<AccountGroupID></AccountGroupID>
<AccountGroupType></AccountGroupType>
<AccountGroupBalanceType></AccountGroupBalanceType>
<AccountGroupBalanceSubType></AccountGroupBalanceSubType>
</AccountGroup>
<AccountType></AccountType>
<IsInactive></IsInactive>
</Account>
Tag
Description
<AccountID>
Unique system identifier for account
<Code>
Account Code
<AccountGroupID>
Unique system identifier for account group
<AccountGroupBalanceType>
Possible values:
A - Assets
L - Liabilities
N - Nominal
<AccountType>
Possible values:
<IsInactive>
Boolean value (false | true)
Back to Accounting
GET Get Account By Code
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/accountByCode/{Code}
Parameter
Description
Code
Account Code
Response
XML / HTTP Copy
<Account>
<AccountID></AccountID>
<Code></Code>
<Name></Name>
<Alias></Alias>
<AccountGroup>
<AccountGroupID></AccountGroupID>
<AccountGroupType></AccountGroupType>
<AccountGroupBalanceType></AccountGroupBalanceType>
<AccountGroupBalanceSubType></AccountGroupBalanceSubType>
</AccountGroup>
<AccountType></AccountType>
<IsInactive></IsInactive>
</Account>
Tag
Description
<AccountID>
Unique system identifier for account
<Code>
Account Code
<AccountGroupID>
Unique system identifier for account group
<AccountGroupBalanceType>
Possible values:
A - Assets
L - Liabilities
N - Nominal
<AccountType>
Possible values:
<IsInactive>
Boolean value (false | true)
Back to Accounting
GET Get Account Journals
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/accountJournals/{AccountID}
Parameter
Description
AccountID
Unique system identifier for account. See Get Account
Pagination and Date Range filter can be applied.
GET https://go.paytraq.com/api/accountJournals/{AccountID}? ... &page=0&date_from=2025-01-01&date_till=2025-01-31
Additional optional parameters are available for this request:
GET https://go.paytraq.com/api/accountJournals/{AccountID}? ... &BusinessPartnerID=0¤cy=USD
BusinessPartnerID - Unique system identifier for client, supplier or employee. See Get Client , Get Supplier or Get Employee
currency - Currency code
Response
XML / HTTP Copy
<Journals>
<Journal>
<JournalID></JournalID>
<JournalRef></JournalRef>
<JournalDate></JournalDate>
<JournalStatus></JournalStatus>
<JournalType>
<JournalTypeID></JournalTypeID>
<JournalTypeName></JournalTypeName>
</JournalType>
<Currency></Currency>
<Narration />
<DocumentLink>
<DocumentID></DocumentID>
<DocumentRef></DocumentRef>
<DocumentDate></DocumentDate>
</DocumentLink>
<ExtReference></ExtReference>
<BusinessPartner>
<BusinessPartnerID></BusinessPartnerID>
<BusinessPartnerName></BusinessPartnerName>
</BusinessPartner>
<IsApproved></IsApproved>
<IsManual></IsManual>
<IsCompressed></IsCompressed>
<JournalEntry>
<Description></Description>
<Amounts>
<AmountJournal></AmountJournal>
<CurrencyJournal></CurrencyJournal>
<AmountBalance></AmountBalance>
<CurrencyBalance></CurrencyBalance>
<Rate></Rate>
</Amounts>
<Operation></Operation>
<TaxKey>
<TaxKeyID></TaxKeyID>
<TaxKeyName></TaxKeyName>
</TaxKey>
<DocumentLink>
<DocumentID />
<DocumentRef />
<DocumentDate />
</DocumentLink>
</JournalEntry>
<Project>
<ProjectName />
</Project>
<TimeStamps>
<Created />
<Updated />
</TimeStamps>
</Journal>
...
</Journals>
Tag
Description
<JournalID>
Unique system identifier for journal
<JournalRef>
System journal number (reference)
<JournalStatus>
Possible values:
P - Posted
R - Reversed
V - Voided
<JournalTypeID>
Unique system identifier for journal type. See Get Journal Types
<Currency>
Currency code
<BusinessPartnerID>
Unique system identifier for business partner e.g. client, supplier or employee. See Get Client , Get Supplier or Get Employee
<IsApproved>
Boolean value (false | true)
<IsManual>
Boolean value (false | true)
<IsCompressed>
Boolean value (false | true)
<Operation>
Possible values:
<TaxKeyID>
Unique system identifier for tax key. See Get Tax Key
<Created>
Date created UTC timestamp
<Updated>
Date updated UTC timestamp
Back to Accounting
GET Get Bank Accounts
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/bankAccounts
Response
XML / HTTP Copy
<BankAccounts>
<BankAccount>
<BankAccountID></BankAccountID>
<Name></Name>
<Currency></Currency>
<GLAccount>
<AccountID></AccountID>
<AccountCode />
<AccountName></AccountName>
</GLAccount>
<Type></Type>
<BankAccountNumber />
<BankName />
<BankCode />
<IsInactive></IsInactive>
<IsDefault></IsDefault>
<Balance></Balance>
</BankAccount>
...
</BankAccounts>
Tag
Description
<BankAccountID>
Unique system identifier for money account
<Currency>
Currency code
<AccountID>
Unique system identifier for account. See Get Account
<Type>
Possible values:
bank - Bank Account
card - Credit Card
merchant - Merchant Account
paypal - PayPal Account
other - Other Money Account
<IsInactive>
Boolean value (false | true)
<IsDefault>
Boolean value (false | true)
Back to Accounting
GET Get Cash Accounts
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/cashAccounts
Response
XML / HTTP Copy
<CashAccounts>
<CashAccount>
<CashAccountID></CashAccountID>
<Name></Name>
<Currency></Currency>
<GLAccount>
<AccountID></AccountID>
<AccountCode />
<AccountName></AccountName>
</GLAccount>
<Type></Type>
<IsInactive></IsInactive>
<IsDefault></IsDefault>
<Balance />
</CashAccount>
...
</CashAccounts>
Tag
Description
<CashAccountID>
Unique system identifier for money account
<Currency>
Currency code
<AccountID>
Unique system identifier for account. See Get Account
<Type>
Possible values:
cashbook - Cashbook
pos - Point of Sale / Cash Account
other - Other Money Account
<IsInactive>
Boolean value (false | true)
<IsDefault>
Boolean value (false | true)
Back to Accounting
GET Get Money Account Transactions
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/money/transactions/{MoneyAccountID}
Pagination and Date Range filter can be applied.
GET https://go.paytraq.com/api/money/transactions/{MoneyAccountID}? ... &page=0&date_from=2025-01-01&date_till=2025-01-31
Additional optional parameter are available for this request:
GET https://go.paytraq.com/api/money/transactions/{MoneyAccountID}? ... &BusinessPartnerID=0
BusinessPartnerID - Unique system identifier for client, supplier or employee. See Get Client , Get Supplier or Get Employee
Response
XML / HTTP Copy
<Transactions>
<Transaction>
<TransactionDate></TransactionDate>
<JournalID></JournalID>
<JournalRef></JournalRef>
<JournalStatus></JournalStatus>
<JournalType>
<JournalTypeID></JournalTypeID>
<JournalTypeName></JournalTypeName>
</JournalType>
<Narration />
<DocumentLink>
<DocumentID></DocumentID>
<DocumentRef></DocumentRef>
<DocumentDate></DocumentDate>
</DocumentLink>
<ExtReference></ExtReference>
<BusinessPartner>
<BusinessPartnerID></BusinessPartnerID>
<BusinessPartnerName></BusinessPartnerName>
</BusinessPartner>
<IsApproved></IsApproved>
<IsManual></IsManual>
<IsCompressed></IsCompressed>
<Description></Description>
<TransactionAmount></TransactionAmount>
<IsReconciled></IsReconciled>
<BankTransaction>
<BankTransactionID />
<BankTransactionDetails />
</BankTransaction>
<Project>
<ProjectName />
</Project>
<TimeStamps>
<Created />
<Updated />
</TimeStamps>
</Transaction>
...
</Transactions>
Tag
Description
<JournalID>
Unique system identifier for journal
<JournalRef>
System journal number (reference)
<JournalStatus>
Possible values:
P - Posted
R - Reversed
V - Voided
<JournalTypeID>
Unique system identifier for journal type. See Get Journal Types
<BusinessPartnerID>
Unique system identifier for business partner e.g. client, supplier or employee. See Get Client , Get Supplier or Get Employee
<IsApproved>
Boolean value (false | true)
<IsManual>
Boolean value (false | true)
<IsCompressed>
Boolean value (false | true)
<TransactionAmount>
Transaction amount (Money In / Money Out)
<IsReconciled>
Boolean value (false | true)
<Created>
Date created UTC timestamp
<Updated>
Date updated UTC timestamp
Back to Accounting
GET Get Trial Balance
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/trialBalance
Optional query parameters
Parameter
Description
date
As of date (YYYY-MM-DD)
en_locale
Boolean value (false | true)
gl_types
Boolean value (false | true)
if enabled the GL account types will be included in the result set.
Response
XML / HTTP Copy
<TrialBalance>
<Account>
<GLAccount>
<AccountID></AccountID>
<Code />
<Name></Name>
<GLType></GLType>
</GLAccount>
<DR></DR>
<CR></CR>
<Balance></Balance>
</Account>
</TrialBalance>
Tag
Description
<AccountID>
Unique system identifier for account. See Get Account
<Code>
Account Code
Back to Accounting
GET Get Balance Confirmation
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/balanceConfirmation/{BusinessPartnerID}
Parameter
Description
BusinessPartnerID
Unique system identifier for business partner e.g. client or supplier. See Get Client or Get Supplier
Optional query parameters
Parameter
Description
date
As of date (YYYY-MM-DD)
by_documents
Boolean value (false | true)
acc_id
Unique system identifier for account. See Get Account
Response
XML / HTTP Copy
<BalanceConfirmation>
<BusinessPartner>
<BusinessPartnerID></BusinessPartnerID>
<BusinessPartnerName></BusinessPartnerName>
</BusinessPartner>
<Date></Date>
<Balances>
<Balance>
<Account>
<AccountID></AccountID>
<AccountCode></AccountCode>
<AccountName></AccountName>
</Account>
<DR></DR>
<CR></CR>
<Currency></Currency>
<Documents>
<Document>
<DocumentID></DocumentID>
<DocumentRef></DocumentRef>
<DocumentDate></DocumentDate>
<DocumentType></DocumentType>
<DR></DR>
<CR></CR>
<Currency></Currency>
</Document>
</Documents>
</Balance>
</Balances>
</BalanceConfirmation>
Tag
Description
<AccountID>
Unique system identifier for account. See Get Account
<AccountCode>
Account Code
<DR>
Debit Balance
<CR>
Credit Balance
Back to Accounting
GET Get Partner Balances
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/partnerBalances
Optional query parameters
Parameter
Description
date
As of date (YYYY-MM-DD)
BusinessPartnerID
Unique system identifier for business partner e.g. client or supplier. See Get Client or Get Supplier
AccountID
Unique system identifier for account. See Get Account
by_docs
Boolean value (false | true)
page
Pagination
By default only the first 100 records are returned.
To utilise paging, append a page parameter to the URL e.g. &page= 0.
If there are 100 records in the response you will need to check if there is any more data by fetching the next page e.g. &page=1 and continuing this process until no more results are returned.
Note: Page values start with 0.
Response
XML / HTTP Copy
<PartnerBalances>
<BusinessPartner>
<BusinessPartnerID></BusinessPartnerID>
<BusinessPartnerName></BusinessPartnerName>
<Balance></Balance>
<Accounts>
<Account>
<AccountID></AccountID>
<AccountCode></AccountCode>
<AccountName></AccountName>
<Balance></Balance>
<DR></DR>
<CR></CR>
<Currency></Currency>
<ForeignCurrencyBalances>
<ForeignCurrencyBalance>
<DR></DR>
<CR></CR>
<Balance></Balance>
<ForeignCurrency></ForeignCurrency>
<EQ>
<DR></DR>
<CR></CR>
<Balance></Balance>
<Currency></Currency>
</EQ>
</ForeignCurrencyBalance>
</ForeignCurrencyBalances>
<Documents>
<Document>
<DocumentID></DocumentID>
<DocumentRef></DocumentRef>
<DocumentDate></DocumentDate>
<DocumentType></DocumentType>
<DR></DR>
<CR></CR>
<Currency></Currency>
</Document>
</Documents>
</Account>
</Accounts>
</BusinessPartner>
</PartnerBalances>
Tag
Description
<BusinessPartnerID>
Unique system identifier for business partner e.g. client or supplier. See Get Client or Get Supplier
<AccountID>
Unique system identifier for account. See Get Account
<AccountCode>
Account Code
<DR>
Debit Balance
<CR>
Credit Balance
Back to Accounting
GET Get Balance Sheet
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/balanceSheet
Optional query parameters
Parameter
Description
period
"year" or "month", default is "year", example &period=month
year
Reporting year for the current period, default is current financial year, example: &year=2026
month
Reporting month for the current period, default is current month, can be provided only if period=month, example: &month=4
by_accounts
Boolean value (false | true), if true then detailed balance sheet is returned, default is false, example: &by_accounts=true
prev_periods
Number of previous periods, default is "1", maximum number is "12", example: &prev_periods=3
Response
XML / HTTP Copy
<BalanceSheet>
<Line>
<LineID></LineID>
<LineName></LineName>
<LineNameEN>></LineNameEN>
<IsHeader></IsHeader>
<LineType></LineType>
<ParentLine>
<ParentLineID></ParentLineID>
<ParentLineName></ParentLineName>
</ParentLine>
<Path></Path>
<ExportCode></ExportCode>
<PeriodBalances>
<PeriodBalance>
<Period></Period>
<Balance></Balance>
</PeriodBalance>
<PeriodBalance>
<Period></Period>
<Balance></Balance>
</PeriodBalance>
...
</PeriodBalances>
<Accounts>
<Account>
<AccountID></AccountID>
<AccountCode></AccountCode>
<AccountName></AccountName>
<PeriodBalances>
<PeriodBalance>
<Period></Period>
<Balance></Balance>
</PeriodBalance>
<PeriodBalance>
<Period></Period>
<Balance></Balance>
</PeriodBalance>
...
</PeriodBalances>
</Account>
...
</Accounts>
</Line>
...
<BalanceSheet>
Tag
Description
<LineName>
Balance line name
<IsHeader>
Header line
<Period>
Reporting period, either YYYY or YYYY/MM depending on "period" param
<Balance>
Line balance for the period
<AccountID>
Unique system identifier for account. See Get Account
Back to Accounting
GET Get Profit and Loss Statement
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/profitLoss
Optional query parameters
Parameter
Description
period
"year" or "month", default is "year", example &period=month
year
Reporting year for the current period, default is current financial year, example: &year=2026
month
Reporting month for the current period, default is current month, can be provided only if period=month, example: &month=4
by_accounts
Boolean value (false | true), if true then detailed P/L Statement is returned, default is false, example: &by_accounts=true
prev_periods
Number of previous periods, default is "1", maximum number is "12", example: &prev_periods=3
Response
XML / HTTP Copy
<ProfitLoss>
<Line>
<LineID></LineID>
<LineName></LineName>
<LineNameEN>></LineNameEN>
<IsHeader></IsHeader>
<IsSubTotal></IsSubTotal>
<LineType></LineType>
<ParentLine>
<ParentLineID></ParentLineID>
<ParentLineName></ParentLineName>
</ParentLine>
<Path></Path>
<ExportCode></ExportCode>
<PeriodBalances>
<PeriodBalance>
<Period></Period>
<Balance></Balance>
</PeriodBalance>
<PeriodBalance>
<Period></Period>
<Balance></Balance>
</PeriodBalance>
...
</PeriodBalances>
<Accounts>
<Account>
<AccountID></AccountID>
<AccountCode></AccountCode>
<AccountName></AccountName>
<PeriodBalances>
<PeriodBalance>
<Period></Period>
<Balance></Balance>
</PeriodBalance>
<PeriodBalance>
<Period></Period>
<Balance></Balance>
</PeriodBalance>
...
</PeriodBalances>
</Account>
...
</Accounts>
</Line>
...
<ProfitLoss>
Tag
Description
<LineName>
P/L line name
<IsHeader>
Header line
<IsSubtotal>
Subtotal line
<Period>
Reporting period, either YYYY or YYYY/MM depending on "period" param
<Balance>
Line balance for the period
<AccountID>
Unique system identifier for account. See Get Account
Back to Accounting
GET Get Journal Types
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/journalTypes
Response
XML / HTTP Copy
<JournalTypes>
<JournalType>
<JournalTypeID></JournalTypeID>
<JournalTypeName></JournalTypeName>
<Narration></Narration>
<SysCode></SysCode>
<IsInactive></IsInactive>
<IsDefault></IsDefault>
<IsSystem></IsSystem>
</JournalType>
...
</JournalTypes>
Tag
Description
<JournalTypeID>
Unique system identifier for journal type
<IsInactive>
Boolean value (false | true)
<IsDefault>
Boolean value (false | true)
<IsSystem>
Boolean value (false | true)
Back to Accounting
GET Get Journals
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/journals
By default result list is sorted by journal date in descending order.
There are several options to change the default ordering by passing additional parameters to the request.
Optional parameters are available. Results can be filtered by journal number or business partner name.
This result list can be checked for new records and updates. See Optional parameters for additional info.
Journal date range filter can be applied.
Status filter can be applied.
Additional optional parameters are available for this request:
GET https://go.paytraq.com/api/journals? ... &BusinessPartnerID=0
BusinessPartnerID - Unique system identifier for client, supplier or employee. See Get Client , Get Supplier or Get Employee
Response
XML / HTTP Copy
<Journals>
<Journal>
<JournalID></JournalID>
<JournalRef></JournalRef>
<JournalDate></JournalDate>
<JournalStatus></JournalStatus>
<JournalType>
<JournalTypeID></JournalTypeID>
<JournalTypeName></JournalTypeName>
</JournalType>
<Currency></Currency>
<Narration />
<DocumentLink>
<DocumentID></DocumentID>
<DocumentRef></DocumentRef>
<DocumentDate></DocumentDate>
<DocumentType></DocumentType>
</DocumentLink>
<ExtReference></ExtReference>
<BusinessPartner>
<BusinessPartnerID></BusinessPartnerID>
<BusinessPartnerName></BusinessPartnerName>
</BusinessPartner>
<IsApproved></IsApproved>
<IsManual></IsManual>
<IsCompressed></IsCompressed>
<JournalEntries>
<JournalEntry>
<Account>
<AccountID></AccountID>
<AccountCode></AccountCode>
<AccountName></AccountName>
</Account>
<Description></Description>
<Amounts>
<AmountJournal></AmountJournal>
<CurrencyJournal></CurrencyJournal>
<AmountBalance></AmountBalance>
<CurrencyBalance></CurrencyBalance>
<Rate></Rate>
</Amounts>
<Operation></Operation>
<TaxKey>
<TaxKeyID></TaxKeyID>
<TaxKeyName></TaxKeyName>
</TaxKey>
<ItemID />
<DocumentLink>
<DocumentID />
<DocumentRef />
<DocumentDate />
<DocumentType />
</DocumentLink>
</JournalEntry>
...
</JournalEntries>
<TotalDR></TotalDR>
<TotalCR></TotalCR>
<Project>
<ProjectName />
</Project>
<TimeStamps>
<Created />
<Updated />
</TimeStamps>
</Journal>
...
</Journals>
Tag
Description
<JournalID>
Unique system identifier for journal
<JournalRef>
System journal number (reference)
<JournalStatus>
Possible values:
P - Posted
R - Reversed
V - Voided
<JournalTypeID>
Unique system identifier for journal type. See Get Journal Types
<Currency>
Currency code
<DocumentType>
Possible values:
sale - Sale
purchase - Purchase
expense_claim - Expence Claim
in_shipment - Incoming Shipment
out_shipment - Outgoing Shipment
inventory - Inventory Adjustment
payment - Payment
payroll - Payroll Run
product_cost - Product Cost Calculation
fixed_asset - Fixed Asset
loan - Loan
<BusinessPartnerID>
Unique system identifier for business partner e.g. client, supplier or employee. See Get Client , Get Supplier or Get Employee
<IsApproved>
Boolean value (false | true)
<IsManual>
Boolean value (false | true)
<IsCompressed>
Boolean value (false | true)
<AccountID>
Unique system identifier for account. See Get Account
<AccountCode>
Account Code
<Operation>
Possible values:
<TaxKeyID>
Unique system identifier for tax key. See Get Tax Key
<Created>
Date created UTC timestamp
<Updated>
Date updated UTC timestamp
Back to Accounting
GET Get Journal
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/journal/{JournalID}
Parameter
Description
JournalID
Unique system identifier for journal
Response
XML / HTTP Copy
<Journal>
<JournalID></JournalID>
<JournalRef></JournalRef>
<JournalDate></JournalDate>
<JournalStatus></JournalStatus>
<JournalType>
<JournalTypeID></JournalTypeID>
<JournalTypeName></JournalTypeName>
</JournalType>
<Currency></Currency>
<Narration />
<DocumentLink>
<DocumentID></DocumentID>
<DocumentRef></DocumentRef>
<DocumentDate></DocumentDate>
<DocumentType></DocumentType>
</DocumentLink>
<ExtReference></ExtReference>
<BusinessPartner>
<BusinessPartnerID></BusinessPartnerID>
<BusinessPartnerName></BusinessPartnerName>
</BusinessPartner>
<IsApproved></IsApproved>
<IsManual></IsManual>
<IsCompressed></IsCompressed>
<JournalEntries>
<JournalEntry>
<Account>
<AccountID></AccountID>
<AccountCode></AccountCode>
<AccountName></AccountName>
</Account>
<Description></Description>
<Amounts>
<AmountJournal></AmountJournal>
<CurrencyJournal></CurrencyJournal>
<AmountBalance></AmountBalance>
<CurrencyBalance></CurrencyBalance>
<Rate></Rate>
</Amounts>
<Operation></Operation>
<TaxKey>
<TaxKeyID></TaxKeyID>
<TaxKeyName></TaxKeyName>
</TaxKey>
<ItemID />
<DocumentLink>
<DocumentID />
<DocumentRef />
<DocumentDate />
<DocumentType />
</DocumentLink>
</JournalEntry>
...
</JournalEntries>
<JournalTaxes>
<Tax>
<TaxKey>
<TaxKeyID></TaxKeyID>
<TaxKeyName></TaxKeyName>
</TaxKey>
<Account>
<AccountID></AccountID>
<AccountCode></AccountCode>
<AccountName></AccountName>
</Account>
<TaxableAmount></TaxableAmount>
<TaxAmount></TaxAmount>
<Rate></Rate>
</Tax>
...
</JournalTaxes>
<TotalDR></TotalDR>
<TotalCR></TotalCR>
<Project>
<ProjectName />
</Project>
<TimeStamps>
<Created />
<Updated />
</TimeStamps>
<Tags>
<Tag />
</Tags>
</Journal>
Tag
Description
<JournalID>
Unique system identifier for journal
<JournalRef>
System journal number (reference)
<JournalStatus>
Possible values:
P - Posted
R - Reversed
V - Voided
<JournalTypeID>
Unique system identifier for journal type. See Get Journal Types
<Currency>
Currency code
<DocumentType>
Possible values:
sale - Sale
purchase - Purchase
expense_claim - Expence Claim
in_shipment - Incoming Shipment
out_shipment - Outgoing Shipment
inventory - Inventory Adjustment
payment - Payment
payroll - Payroll Run
product_cost - Product Cost Calculation
fixed_asset - Fixed Asset
loan - Loan
<BusinessPartnerID>
Unique system identifier for business partner e.g. client, supplier or employee. See Get Client , Get Supplier or Get Employee
<IsApproved>
Boolean value (false | true)
<IsManual>
Boolean value (false | true)
<IsCompressed>
Boolean value (false | true)
<AccountID>
Unique system identifier for account. See Get Account
<AccountCode>
Account Code
<Operation>
Possible values:
<TaxKeyID>
Unique system identifier for tax key. See Get Tax Key
<Created>
Date created UTC timestamp
<Updated>
Date updated UTC timestamp
Back to Accounting
POST Add Manual Journal
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/manualJournal
Payload
XML / HTTP Copy
<Journal>
<JournalDate></JournalDate>
<JournalType>
<JournalTypeID></JournalTypeID>
</JournalType>
<Narration />
<ExtReference></ExtReference>
<BusinessPartner>
<BusinessPartnerID></BusinessPartnerID>
<BusinessPartnerName></BusinessPartnerName>
</BusinessPartner>
<Project>
<ProjectName />
</Project>
<IsApproved></IsApproved>
<JournalEntries>
<JournalEntry>
<Account>
<AccountID></AccountID>
<AccountCode></AccountCode>
</Account>
<Description></Description>
<Amounts>
<AmountJournal></AmountJournal>
<CurrencyJournal></CurrencyJournal>
<AmountBalance></AmountBalance>
</Amounts>
<Operation></Operation>
<TaxKey>
<TaxKeyID></TaxKeyID>
</TaxKey>
</JournalEntry>
...
</JournalEntries>
</Journal>
To add a business partner <BusinessPartnerID /> OR <BusinessPartnerName /> should be provided.
To add an account <AccountID /> OR <AccountCode /> should be provided.
<JournalDate>, <JournalTypeID>, <IsApproved>, <Narration />, <ExtReference>, <Description>, <CurrencyJournal>, <AmountBalance> and <TaxKeyID> are optional
Tag
Description
<JournalTypeID>
Unique system identifier for journal type. See Get Journal Types
<CurrencyJournal>
Currency code
<BusinessPartnerID>
Unique system identifier for business partner e.g. client, supplier or employee. See Get Client , Get Supplier or Get Employee
<IsApproved>
Boolean value (false | true); Default is true
<AccountID>
Unique system identifier for account. See Get Account
<AccountCode>
Account Code
<Operation>
Possible values:
<TaxKeyID>
Unique system identifier for tax key. See Get Tax Key
For other tags description please refer to
Get Journal .
Response
XML / HTTP Copy
<Response>
<JournalID></JournalID>
</Response>
Tag
Description
<JournalID>
Unique system identifier for journal
Back to Accounting
GET Get Business Snapshot
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/businessSnapshot
Response
XML / HTTP Copy
<BusinessSnapshot>
<AsOfDate></AsOfDate>
<Currency></Currency>
<AccountsReceivable></AccountsReceivable>
<AccountsPayable></AccountsPayable>
<Money></Money>
<Taxes></Taxes>
<IncomeYTD></IncomeYTD>
<ExpensesYTD></ExpensesYTD>
<OperatingProfitYTD>></OperatingProfitYTD>
</BusinessSnapshot>
Tag
Description
<AsOfDate>
Current date
<AccountsReceivable>
Balance of Accounts Receivable
<AccountsPayable>
Balance of Accounts Payable
<Money>
Balance of Money Accounts
<Taxes>
Due Taxes
<IncomeYTD>
Income for the current financial year
<ExpensesYTD>
Expenses for the current financial year
<OperatingProfitYTD>
Operating profit for the current financial year
Back to Accounting
GET Get Unprocessed Entries
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/checkUnprocessedEntries
Response
XML / HTTP Copy
<UnprocessedEntries>
<SalesInbox></SalesInbox>
<PurchaseInbox></PurchaseInbox>
<UnreconciledBank></UnreconciledBank>
<UnapprovedJournals></UnapprovedJournals>
</UnprocessedEntries>
Tag
Description
<SalesInbox>
Number of unprocessed messages in sales inbox
<PurchaseInbox>
Number of unprocessed messages in purchase inbox
<UnreconciledBank>
Number of unreconciled bank transactions
<UnapprovedJournals>
Number of journals in the "Waiting for approval" status
Back to Accounting
GET Get Tax Key Report
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/taxKeyReport
Date Range filter can be applied.
GET https://go.paytraq.com/api/taxKeyReport? ... &date_from=2025-01-01&date_till=2025-01-31
Response
XML / HTTP Copy
<TaxKeys>
<TaxKey>
<TaxKeyID></TaxKeyID>
<Name></Name>
<TaxName></TaxName>
<SysTaxName></SysTaxName>
<TaxGroup>
<TaxGroupID></TaxGroupID>
<TaxGroupName></TaxGroupName>
<IsInput></IsInput>
<IsOutput></IsOutput>
<IsECSales></IsECSales>
<IsECPurchases></IsECPurchases>
<IsImport></IsImport>
<IsOSS></IsOSS>
<IsCrossBorder></IsCrossBorder>
<IsStandardRate></IsStandardRate>
<RateType></RateType>
</TaxGroup>
<TaxableAmount></TaxableAmount>
<TaxAmount></TaxAmount>
<TaxRate></TaxRate>
<Account>
<AccountID></AccountID>
<Code></Code>
<Name></Name>
</Account>
</TaxKey>
...
</TaxKeys>
Tag
Description
<TaxKeyID>
Unique system identifier for tax key. See Get Tax Key
<AccountID>
Unique system identifier for account. See Get Account
Back to Accounting
GET Get Tax Key Journals
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/taxKeyJournals/{TaxKeyID}
Result list is sorted by journal date in ascending order.
Pagination and Date Range filter can be applied.
GET https://go.paytraq.com/api/taxKeyJournals/{TaxKeyID}? ... &page=0&date_from=2025-01-01&date_till=2025-01-31
Additional optional parameter is available for this request:
GET https://go.paytraq.com/api/taxKeyJournals/{TaxKeyID}? ... &BusinessPartnerID=0
BusinessPartnerID - Unique system identifier for client or supplier. See Get Client or Get Supplier
Parameter
Description
TaxKeyID
Unique system identifier for tax key. See Get Tax Key
Response
XML / HTTP Copy
<Journals>
<Journal>
<JournalID></JournalID>
<JournalRef></JournalRef>
<JournalDate></JournalDate>
<JournalStatus></JournalStatus>
<JournalType>
<JournalTypeID></JournalTypeID>
<JournalTypeName></JournalTypeName>
</JournalType>
<Currency></Currency>
<Narration />
<DocumentLink>
<DocumentID></DocumentID>
<DocumentRef></DocumentRef>
<DocumentDate></DocumentDate>
</DocumentLink>
<ExtReference></ExtReference>
<BusinessPartner>
<BusinessPartnerID></BusinessPartnerID>
<BusinessPartnerName></BusinessPartnerName>
</BusinessPartner>
<IsApproved></IsApproved>
<IsManual></IsManual>
<IsCompressed></IsCompressed>
<TaxKey>
<TaxKeyID></TaxKeyID>
<Name></Name>
<TaxableAmount></TaxableAmount>
<TaxAmount></TaxAmount>
<TaxRate></TaxRate>
</TaxKey>
<Project>
<ProjectName />
</Project>
<TimeStamps>
<Created />
<Updated />
</TimeStamps>
</Journal>
...
</Journals>
Tag
Description
For <Journal> tags description please refer to Get Journal .
<TaxKeyID>
Unique system identifier for tax key. See Get Tax Key
<TaxableAmount>
Amount applied by the tax key in the journal
<TaxAmount>
Tax amount in the journal
Back to Accounting
GET Get Billing Statement
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/partnerStatement/{BusinessPartnerID}
Result list is sorted by journal date in ascending order.
Date Range filter can be applied.
GET https://go.paytraq.com/api/partnerStatement/{BusinessPartnerID}? ... &date_from=2025-01-01&date_till=2025-01-31
Additional optional parameter is available for this request:
GET https://go.paytraq.com/api/partnerStatement/{BusinessPartnerID}? ... ¤cy=USD
currency - Currency code
Parameter
Description
BusinessPartnerID
Unique system identifier for client or supplier. See Get Client or Get Supplier
Response
XML / HTTP Copy
<BillingStatement>
<BusinessPartner>
<BusinessPartnerID></BusinessPartnerID>
<BusinessPartnerName></BusinessPartnerName>
</BusinessPartner>
<PeriodFrom></PeriodFrom>
<PeriodTill></PeriodTill>
<Currency></Currency>
<OpeningBalance></OpeningBalance>
<ClosingBalance></ClosingBalance>
<ClosingBalanceDetails>
<TotalOutstanding></TotalOutstanding>
<Prepayment></Prepayment>
<Overpayment></Overpayment>
</ClosingBalanceDetails>
<Transactions>
<Transaction>
<JournalID></JournalID>
<JournalRef></JournalRef>
<JournalDate></JournalDate>
<JournalType>
<JournalTypeID></JournalTypeID>
<JournalTypeName></JournalTypeName>
</JournalType>
<DocumentType></DocumentType>
<DocumentLink>
<DocumentID></DocumentID>
<DocumentRef></DocumentRef>
<DocumentDate></DocumentDate>
</DocumentLink>
<PaymentLineType><PaymentLineType>
<PaymentLine>
<DocumentID></DocumentID>
<DocumentRef></DocumentRef>
<DocumentDate></DocumentDate>
</PaymentLine>
<AccountGroupType></AccountGroupType>
<JrType></JrType>
<PaymentType></PaymentType>
<Description></Description>
<TransactionType></TransactionType>
<AmountDue></AmountDue>
<PaymentAmount></PaymentAmount>
<RunningTotal></RunningTotal>
</Transaction>
...
</Transactions>
<BillingStatement>
Tag
Description
<BusinessPartnerID>
Unique system identifier for business partner e.g. client or supplier. See Get Client or Get Supplier
<PeriodFrom>
Period start date
<PeriodTill>
Period end date
<Currency>
Currency code
<OpeningBalance>
Balance at the begining pf period
<ClosingBalance>
Balance at the end of period
<TotalOutstanding>
Due amount included in the ClosingBalance
<Prepayment>
Prepayment included in the ClosingBalance
<Overpayment>
Overpayment included in the ClosingBalance
<JournalID>
Unique system identifier for journal
<JournalRef>
System journal number (reference)
<JournalStatus>
Possible values:
P - Posted
R - Reversed
V - Voided
<JournalTypeID>
Unique system identifier for journal type. See Get Journal Types
<DocumentType>
Possible values:
sale - Sale
purchase - Purchase
payment - Payment
<DocumentID>
Unique system identifier for document. See Get Sales Document ,
Get Purchase Document or Get Payment
Back to Accounting
GET Get Payroll List
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/payrolls
By default result list is sorted by document date in descending order.
Optional parameters are available. Results can be filtered by employee name or document number.
Pagination and document date range filter can be applied.
Status filter can be applied.
Default ordering can be changed by passing &reverse=true param to the request.
Additional optional parameter is available for this request:
GET https://go.paytraq.com/api/payrolls? ... &EmployeeID=0
EmployeeID - Unique system identifier for employee. See Get Employee
Response
XML / HTTP Copy
<Payrolls>
<Payroll>
<Header>
<PayrollID></PayrollID>
<PeriodFrom></PeriodFrom>
<PeriodTill></PeriodTill>
<Document>
<DocumentID></DocumentID>
<DocumentDate></DocumentDate>
<DocumentRef></DocumentRef>
<DocumentType></DocumentType>
<Employee>
<EmployeeID></EmployeeID>
<Name></Name>
>/Employee>
</Document>
<PayrollStatus></PayrollStatus>
<PayrollCurrency></PayrollCurrency>
<BalanceCurrency></BalanceCurrency>
<CurrencyRate></CurrencyRate>
<GrossAmount></GrossAmount>
<TaxableAmount></TaxableAmount>
<NetAmount></NetAmount>
<Contributions></Contributions>
<Total></Total>
<AmountDue></AmountDue>
<WorkingHours></WorkingHours>
<Narration><Narration>
<Project>
<ProjectName />
</Project>
<TimeStamps>
<Created />
<Updated />
</TimeStamps>
</Header>
</Payroll>
...
</Payrolls>
Tag
Description
<PayrollID>
Unique system identifier for period payroll run
<DocumentID>
Unique system identifier for employee payroll
<DocumentRef>
Document number
<EmployeeID>
Unique system identifier for employee. See Get Employee
<PayrollStatus>
Possible values:
draft - Draft
wait_payment - Waiting for Payment
part_paid - Partially Paid
paid - Paid
<Created>
Date created UTC timestamp
<Updated>
Date updated UTC timestamp
Back to Accounting
GET Get Payroll
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/payroll/{PayrollID}/{DocumentID}
Parameter
Description
PayrollID
Unique system identifier for period payroll run
DocumentID
Unique system identifier for employee payroll
Response
XML / HTTP Copy
<Payroll>
<Header>
<PayrollID></PayrollID>
<PeriodFrom></PeriodFrom>
<PeriodTill></PeriodTill>
<Document>
<DocumentID></DocumentID>
<DocumentDate></DocumentDate>
<DocumentRef></DocumentRef>
<DocumentType></DocumentType>
<Employee>
<EmployeeID></EmployeeID>
<Name></Name>
>/Employee>
</Document>
<PayrollStatus></PayrollStatus>
<PayrollCurrency></PayrollCurrency>
<BalanceCurrency></BalanceCurrency>
<CurrencyRate></CurrencyRate>
<GrossAmount></GrossAmount>
<TaxableAmount></TaxableAmount>
<NetAmount></NetAmount>
<Contributions></Contributions>
<Total></Total>
<AmountDue></AmountDue>
<WorkingHours></WorkingHours>
<Narration><Narration>
<Project>
<ProjectName />
</Project>
<TimeStamps>
<Created />
<Updated />
</TimeStamps>
</Header>
<PayItems>
<PayItem>
<PayItemType></PayItemType>
<PayItemTypeName></PayItemTypeName>
<IsTax></IsTax>
<IsAllowance></IsAllowance>
<IsContribution></IsContribution>
<Name></Name>
<Code></Code>
<Formula></Formula>
<Amount></Amount>
</PayItem>
...
</PayItems>
</Payroll>
Tag
Description
<PayrollID>
Unique system identifier for period payroll run
<DocumentID>
Unique system identifier for employee payroll
<DocumentRef>
Document number
<EmployeeID>
Unique system identifier for employee. See Get Employee
<PayrollStatus>
Possible values:
draft - Draft
wait_payment - Waiting for Payment
part_paid - Partially Paid
paid - Paid
<Created>
Date created UTC timestamp
<Updated>
Date updated UTC timestamp
<PayItemType>
Possible values:
salary - Wages and Salaries
payment - Additional Payments
deduction - Deductions
tax - Taxes
post_tax_deduction - Post Tax Deductions
contribution - Employer Contributions and Duties
allowance - Withholding Allowances
post_tax_income - Post Tax Reimbursements
Back to Accounting
GET Get Fixed Assets Reconciliation
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/fixedAssetsReconciliation
Date Range filter can be applied.
GET https://go.paytraq.com/api/fixedAssetsReconciliation? ... &date_from=2025-01-01&date_till=2025-01-31
Response
XML / HTTP Copy
<FixedAssets>
<FixedAsset>
<FixedAssetID></FixedAssetID>
<FixedAssetNo></FixedAssetNo>
<Product>
<ItemID></ItemID>
<Name></Name>
<Code></Code>
</Product>
<OpeningBalance></OpeningBalance>
<Changes></Changes>
<ClosingBalance></ClosingBalance>
<GrossValue>
<OpeningBalance></OpeningBalance>
<Changes></Changes>
<ClosingBalance></ClosingBalance>
</GrossValue>
<AccumulatedDepreciation>
<OpeningBalance></OpeningBalance>
<Changes></Changes>
<ClosingBalance></ClosingBalance>
</AccumulatedDepreciation>
<Currency></Currency>
</FixedAsset>
</FixedAssets>
Tag
Description
ItemID
Unique system identifier for product
<OpeningBalance>
Balance at the begining pf period
<ClosingBalance>
Balance at the end of period
Back to Accounting
Attachments
POST Upload Document Attachment
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/documentAttachment/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for document
Payload
XML / HTTP Copy
<Attachment>
<FileName></FileName>
<ContentType></ContentType>
<Description></Description>
<Content></Content>
</Attachment>
Tag
Description
<FileName>
Name of the file
<ContentType>
MIME Content Type
<Description>
File description
<Content>
Base64 encoded file content
Response
XML / HTTP Copy
<Response>
<AttachmentID></AttachmentID>
<AttachmentUID></AttachmentUID>
<DocumentID></DocumentID>
</Response>
Tag
Description
<AttachmentID>
Unique system identifier for attachment
<DocumentID>
Unique system identifier for document
Back to Attachments
POST Upload Journal Attachment
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/journalAttachment/{JournalID}
Parameter
Description
JournalID
Unique system identifier for journal
Payload
XML / HTTP Copy
<Attachment>
<FileName></FileName>
<ContentType></ContentType>
<Description></Description>
<Content></Content>
</Attachment>
Tag
Description
<FileName>
Name of the file
<ContentType>
MIME Content Type
<Description>
File description
<Content>
Base64 encoded file content
Response
XML / HTTP Copy
<Response>
<AttachmentID></AttachmentID>
<AttachmentUID></AttachmentUID>
<JournalID></JournalID>
</Response>
Tag
Description
<AttachmentID>
Unique system identifier for attachment
<JournalID>
Unique system identifier for journal
Back to Attachments
POST Upload Partner Attachment
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/partnerAttachment/{BusinessPartnerID}
Upload Client Attachment
XML / HTTP Copy
POST https://go.paytraq.com/api/clientAttachment/{ClientID}
Upload Supplier Attachment
XML / HTTP Copy
POST https://go.paytraq.com/api/supplierAttachment/{SupplierID}
Upload Employee Attachment
XML / HTTP Copy
POST https://go.paytraq.com/api/employeeAttachment/{EmployeeID}
Parameter
Description
BusinessPartnerID
Unique system identifier for partner
Payload
XML / HTTP Copy
<Attachment>
<FileName></FileName>
<ContentType></ContentType>
<Description></Description>
<Content></Content>
</Attachment>
Tag
Description
<FileName>
Name of the file
<ContentType>
MIME Content Type
<Description>
File description
<Content>
Base64 encoded file content
Response
XML / HTTP Copy
<Response>
<AttachmentID></AttachmentID>
<AttachmentUID></AttachmentUID>
<BusinessPartnerID></BusinessPartnerID>
</Response>
Tag
Description
<AttachmentID>
Unique system identifier for attachment
<BusinessPartnerID>
Unique system identifier for partner
Back to Attachments
POST Upload Product/Service Attachment
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/itemAttachment/{ItemID}
Parameter
Description
ItemID
Unique system identifier for product/service
Payload
XML / HTTP Copy
<Attachment>
<FileName></FileName>
<ContentType></ContentType>
<Description></Description>
<Content></Content>
</Attachment>
Tag
Description
<FileName>
Name of the file
<ContentType>
MIME Content Type
<Description>
File description
<Content>
Base64 encoded file content
Response
XML / HTTP Copy
<Response>
<AttachmentID></AttachmentID>
<AttachmentUID></AttachmentUID>
<ItemID></ItemID>
</Response>
Tag
Description
<AttachmentID>
Unique system identifier for attachment
<ItemID>
Unique system identifier for product/service
Back to Attachments
GET Get Document Attachments
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/documentAttachments/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for document
Response
XML / HTTP Copy
<Attachments>
<Attachment>
<AttachmentID></AttachmentID>
<AttachmentUID></AttachmentUID>
<FileName></FileName>
<ContentType></ContentType>
<Description></Description>
<Link></Link>
<SignedURL></SignedURL>
</Attachment>
...
</Attachments>
Tag
Description
<AttachmentID>
Unique system identifier for attachment
<SignedURL>
Web link to download attachment. Valid for 15 minutes.
Back to Attachments
GET Get Journal Attachments
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/journalAttachments/{JournalID}
Parameter
Description
JournalID
Unique system identifier for journal
Response
XML / HTTP Copy
<Attachments>
<Attachment>
<AttachmentID></AttachmentID>
<AttachmentUID></AttachmentUID>
<FileName></FileName>
<ContentType></ContentType>
<Description></Description>
<Link></Link>
<SignedURL></SignedURL>
</Attachment>
...
</Attachments>
Tag
Description
<AttachmentID>
Unique system identifier for attachment
<SignedURL>
Web link to download attachment. Valid for 15 minutes.
Back to Attachments
GET Get Partner Attachments
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/partnerAttachments/{BusinessPartnerID}
Get Client Attachments
XML / HTTP Copy
GET https://go.paytraq.com/api/clientAttachments/{ClientID}
Get Supplier Attachments
XML / HTTP Copy
GET https://go.paytraq.com/api/supplierAttachments/{SupplierID}
Get Employee Attachments
XML / HTTP Copy
GET https://go.paytraq.com/api/employeeAttachments/{EmployeeID}
Parameter
Description
BusinessPartnerID
Unique system identifier for partner
Response
XML / HTTP Copy
<Attachments>
<Attachment>
<AttachmentID></AttachmentID>
<AttachmentUID></AttachmentUID>
<FileName></FileName>
<ContentType></ContentType>
<Description></Description>
<Link></Link>
<SignedURL></SignedURL>
</Attachment>
...
</Attachments>
Tag
Description
<AttachmentID>
Unique system identifier for attachment
<SignedURL>
Web link to download attachment. Valid for 15 minutes.
Back to Attachments
GET Get Product/Service Attachments
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/itemAttachments/{ItemID}
Parameter
Description
ItemID
Unique system identifier for product/service
Response
XML / HTTP Copy
<Attachments>
<Attachment>
<AttachmentID></AttachmentID>
<AttachmentUID></AttachmentUID>
<FileName></FileName>
<ContentType></ContentType>
<Description></Description>
<Link></Link>
<SignedURL></SignedURL>
</Attachment>
...
</Attachments>
Tag
Description
<AttachmentID>
Unique system identifier for attachment
<SignedURL>
Web link to download attachment. Valid for 15 minutes.
Back to Attachments
GET Download Attachment
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/attachment/{AttachmentID}/{AttachmentUID}
Parameter
Description
AttachmentID
Unique system identifier for attachment
AttachmentUID
Unique identification number for attachment
Response
XML / HTTP Copy
File (MIME type - ContentType)
Back to Attachments
Tags
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/documentTags/{DocumentID}
Parameter
Description
DocumentID
Unique system identifier for document
Payload
XML / HTTP Copy
<Tags>
<Tag></Tag>
<Tag></Tag>
</Tags>
Tag
Description
<Tag>
Tag Name
Response
XML / HTTP Copy
<Response>
<DocumentID></DocumentID>
<Tags>
<Tag></Tag>
</Tags>
</Response>
Tag
Description
<DocumentID>
Unique system identifier for document
Back to Tags
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/journalTags/{JournalID}
Parameter
Description
JournalID
Unique system identifier for journal
Payload
XML / HTTP Copy
<Tags>
<Tag></Tag>
<Tag></Tag>
</Tags>
Tag
Description
<Tag>
Tag Name
Response
XML / HTTP Copy
<Response>
<JournalID></JournalID>
<Tags>
<Tag></Tag>
</Tags>
</Response>
Tag
Description
<JournalID>
Unique system identifier for journal
Back to Tags
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/partnerTags/{BusinessPartnerID}
Parameter
Description
BusinessPartnerID
Unique system identifier for partner
Payload
XML / HTTP Copy
<Tags>
<Tag></Tag>
<Tag></Tag>
</Tags>
Tag
Description
<Tag>
Tag Name
Response
XML / HTTP Copy
<Response>
<BusinessPartnerID></BusinessPartnerID>
<Tags>
<Tag></Tag>
</Tags>
</Response>
Tag
Description
<BusinessPartnerID>
Unique system identifier for partner
Back to Tags
Request
XML / HTTP Copy
POST https://go.paytraq.com/api/itemTags/{ItemID}
Parameter
Description
ItemID
Unique system identifier for product/service
Payload
XML / HTTP Copy
<Tags>
<Tag></Tag>
<Tag></Tag>
</Tags>
Tag
Description
<Tag>
Tag Name
Response
XML / HTTP Copy
<Response>
<ItemID></ItemID>
<Tags>
<Tag></Tag>
</Tags>
</Response>
Tag
Description
<ItemID>
Unique system identifier for product/service
Back to Tags
Settings
GET Get Price Groups
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/priceGroups
Response
XML / HTTP Copy
<PriceGroups>
<PriceGroup>
<PriceGroupID></PriceGroupID>
<Name></Name>
<Currency></Currency>
<IncludeTax></IncludeTax>
<IsDefault></IsDefault>
<IsInactive></IsInactive>
</PriceGroup>
...
</PriceGroups>
Tag
Description
<PriceGroupID>
Unique system identifier for price group
<Currency>
Currency code
<IncludeTax>
Boolean value (false | true)
Shows that amounts are tax inclusive
<IsDefault>
Boolean value (false | true)
<IsInactive>
Boolean value (false | true)
Back to Settings
GET Get Price Group
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/priceGroup/{PriceGroupID}
Parameter
Description
PriceGroupID
Unique system identifier for price group
Response
XML / HTTP Copy
<PriceGroup>
<PriceGroupID></PriceGroupID>
<Name></Name>
<Currency></Currency>
<IncludeTax></IncludeTax>
<IsDefault></IsDefault>
<IsInactive></IsInactive>
</PriceGroup>
Tag
Description
<PriceGroupID>
Unique system identifier for price group
<Currency>
Currency code
<IncludeTax>
Boolean value (false | true)
Shows that amounts are tax inclusive
<IsDefault>
Boolean value (false | true)
<IsInactive>
Boolean value (false | true)
Back to Settings
GET Get Default Price Group
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/priceGroupDefaultId
Response
XML / HTTP Copy
<PriceGroup>
<PriceGroupID></PriceGroupID>
</PriceGroup>
Tag
Description
<PriceGroupID>
Unique system identifier for price group.
If no default price group is found then <PriceGroupID>0</PriceGroupID> will be returned
Back to Settings
GET Get Units
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/units
Response
XML / HTTP Copy
<Units>
<Unit>
<UnitID></UnitID>
<Name></Name>
<IsDefault></IsDefault>
<IsInactive></IsInactive>
</Unit>
...
</Units>
Tag
Description
<UnitID>
Unique system identifier for unit of measure
<Name>
Unit name
<IsDefault>
Boolean value (false | true)
<IsInactive>
Boolean value (false | true)
Back to Settings
GET Get Unit
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/unit/{UnitID}
Parameter
Description
UnitID
Unique system identifier for unit of measure
Response
XML / HTTP Copy
<Unit>
<UnitID></UnitID>
<Name></Name>
<IsDefault></IsDefault>
<IsInactive></IsInactive>
</Unit>
Tag
Description
<UnitID>
Unique system identifier for unit of measure
<Name>
Unit name
<IsDefault>
Boolean value (false | true)
<IsInactive>
Boolean value (false | true)
Back to Settings
GET Get Unit By Name
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/unitByName/{Name}
Parameter
Description
Name
Unit name
Response
XML / HTTP Copy
<Unit>
<UnitID></UnitID>
<Name></Name>
<IsDefault></IsDefault>
<IsInactive></IsInactive>
</Unit>
Tag
Description
<UnitID>
Unique system identifier for unit of measure
<Name>
Unit name
<IsDefault>
Boolean value (false | true)
<IsInactive>
Boolean value (false | true)
Back to Settings
GET Get Currencies
Request
XML / HTTP Copy
GET https://go.paytraq.com/api/currencies
Response
XML / HTTP Copy
<Currencies>
<Currency>
<Code></Code>
<Name></Name>
</Currency>
...
</Currencies>
Back to Settings