PayTraq Direct
Overview
The PayTraq Direct is an inbound webhook call that can be used by suppliers with other accounting software to deliver their invoices directly to PayTraq client's Purchase Inbox by means of an electonic channel.
API Call
Request
POST https://go.paytraq.com/ext/direct/inbox/{ChannelID}
An actual Request URI should be provided by a PayTraq user.
To get this URI a user should activate the PayTraq Direct channel in Purchase Inbox.
This request should be made in XML format with "Content-Type: application/xml" header.
Every successful request should always return HTTP 200 OK code.
Payload
<Sale>
<Header>
<Document>
<DocumentDate></DocumentDate>
<DocumentRef></DocumentRef>
<ExternalLink>
<DocumentURI></DocumentURI>
<PDF></PDF>
</ExternalLink>
<SupplierData>
<SupplierName></SupplierName>
</SupplierData>
<ClientData>
<ClientName></ClientName>
</ClientData>
</Document>
<SaleType></SaleType>
<Operation></Operation>
<Currency></Currency>
<TaxBasis></TaxBasis>
<IncludeTax></IncludeTax>
<PayTerm>
<PayTermType></PayTermType>
<PayTermDays></PayTermDays>
</PayTerm>
<DateDue></DateDue>
<Deposit></Deposit>
<Comment></Comment>
<PaymentMethod></PaymentMethod>
<ShippingData>
<ShippingType></ShippingType>
</ShippingData>
</Header>
<LineItems>
<LineItem>
<Item>
<ItemCode></ItemCode>
<ItemBarCode></ItemBarCode>
<ItemName></ItemName>
</Item>
<Description></Description>
<Qty></Qty>
<Price></Price>
<LineDiscount></LineDiscount>
<LineTotal></LineTotal>
<Unit>
<UnitName></UnitName>
</Unit>
</LineItem>
</LineItems>
<Adjustments>
<Adjustment>
<Amount></Amount>
<Description />
<TypeID></TypeID>
<PctOrAmount></PctOrAmount>
</Adjustment>
</Adjustments>
<ShippingCharge>
<Amount></Amount>
</ShippingCharge>
<Totals>
<GrossAmount></GrossAmount>
<NetAmount></NetAmount>
</Totals>
</Sale>
Tag | Description |
---|---|
<DocumentDate> | Document date. Should be passed in the following format YYYY-MM-DD e.g. 2014-01-30 |
<DocumentRef> | Document number |
<SaleType> | Possible values:
|
<Operation> | Possible values:
|
<SupplierName> | Supplier name |
<ClientName> | Client name |
<Currency> | Currency code |
<TaxBasis> | Possible values:
|
<IncludeTax> | Boolean value (false | true)
Shows that amounts are tax inclusive |
<PayTermType> | Possible values:
|
<PayTermDays> | Number of days. Can be used only with <PayTermType> values 1 and 2 |
<DateDue> | Document due date. Can be used only with <PayTermType> value 0 Should be passed in the following format YYYY-MM-DD e.g. 2014-01-30 |
<PaymentMethod> | Possible values:
|
<ShippingType> | Possible values:
|
<ItemCode> | Product/Service SKU |
<ItemName> | Product/Service name |
<LineDiscount> | Line discount in % |
<GrossAmount> | Total amount with taxes |
<NetAmount> | Total amount before taxes |
<TypeID> | Possible values:
|
<PctOrAmount> | Possible values:
|