On this page you will find information about How to charge for Delivered goods, How to handle Returns and Refunds.
On delivery Merchant sends delivered items to Avarda via PurchaseOrder.
POST /CheckOut2Api/Commerce/PurchaseOrder
The method allows partners to invoice a customer. A call to this method should be performed on delivery of the purchased items. The items submitted in the call will be enlisted on the invoice as individual invoice lines. Items with both positive and negative (rebates) value are supported as long the total amount is positive. The Reseller order ID passed in a request will be used to identify the transaction.
{
"ExternalId": "2b152405a841ee7828e2c317712f5d8d",
"TranId": "DD9ACDB9DE28424083BA",
"OrderReference": "4000124352",
"TrackingCode": "",
"Items": [
{
"Description": "Carrey-hybriditakki, naisten, punai",
"Notes": "HH854765",
"Amount": 20.97,
"TaxCode": "24.0000",
"TaxAmount": 4.06
},
{
"Description": "Lester-matkakassi, sininen",
"Notes": "HH1001863",
"Amount": 29.97,
"TaxCode": "24.0000",
"TaxAmount": 5.8
},
{
"Description": "Discount",
"Notes": "HH1001863",
"Amount": -2.97,
"TaxCode": "24.0000",
"TaxAmount": -0.41
}
]
}
If successful, the method returns a HTTP status code 200 (OK) with no additional content.
Merchant receives returns for purchased goods. On delivery Merchant ends delivered items to Avarda via PurchaseOrder
POST /CheckOut2Api/Commerce/ReturnOrder
The method allows to submit a return or to make a price adjustment of goods purchased by a customer. The call is performed when the returned goods are received to the reseller or if some amount needs to be credited. All items submitted in the return call will be printed as negative invoice rows at the invoice.
{
"ExternalId": "19ac0d1ee909c302d212b4324d9194b5",
"Items": [
{
"Description": "Description",
"Notes": "Notes",
"Amount": 1
}
],
"OrderReference": "ue12345",
"TranId": "123456",
"TrackingCode": "123456",
"PosId": "Id123456"
}
If successful, the method returns a HTTP status code 200 (OK) with no additional content.
Merchant is unable to deliver all goods for one order.
POST /CheckOut2Api/Commerce/Refund
The method allows to merchant refund money.
{
"ExternalId": "19ac0d1ee909c302d212b4324d9194b5",
"Amount": 10.0,
"TranId": "123456",
"OrderReference": "ue12345"
}
If successful, the method returns a HTTP status code 200 (OK) with no additional content.