- calculateTaxAmountForOrder
- getOrderById
- getOrderPaymentMethod
- getOrders
- getOrdersCount
- getOrdersStatus
- getRMA
- getRMATypes
- getTrackingUrl
- getChildOrderDetails
Dato un ID ordine, restituisce l'importo IVA complessivo.
calculateTaxAmountForOrder(orderID)
| param | type | note | default |
|---|---|---|---|
| orderID | string | order.orderID |
getOrderById(orderID)
| param | type | note | default |
|---|---|---|---|
| orderID | string | ID ordine Storeden |
{
"orderID":"114501_5c6c0f557621a",
"short_id":61,
"billing":{
"_id":{
"$id":"58cbe56716f46afd4e9c1e81"
},
"userUID":49077,
"fullname":"Mari Rossi",
"email":"test@test.it",
"phone":"123456789",
"vat":"9846531032130",
"addr1":"Via Verdi 2",
"addr2":"",
"zip":"31100",
"city":"Treviso",
"state":"13637",
"nation":"119",
"principal":1
},
"delivery":{
"_id":{
"$id":"58cbe56716f46afd4e9c1e81"
},
"userUID":49077,
"fullname":"Mari Rossi",
"email":"test@test.it",
"phone":"123456789",
"vat":"9846531032130",
"addr1":"Via Verdi 2",
"addr2":"",
"zip":"31100",
"city":"Treviso",
"state":"13637",
"nation":"119",
"principal":1
},
"store_settings":{
"tax_country_handler":"billing"
},
"cart":{
"total":135.26,
"items":{
"1224100":{
"count":1,
"price":12.3,
"options":"",
"title":"Aboca Digererbe Tavolette",
"sku":"905988263",
"tax_profile_id":"5697c11a16f46a6d021f485a",
"tax_profile_value":10
},
"1226260":{
"count":1,
"price":4.5,
"options":"",
"title":"Sapone profumo Mughetto",
"sku":"907906097",
"tax_profile_id":"5795bdb716f46a787c34ed8d",
"tax_profile_value":22
},
"1226267":{
"count":3,
"price":4.5,
"options":"",
"title":"Sapone profumo Melograno",
"sku":"907906162",
"tax_profile_id":"5795bdb716f46a787c34ed8d",
"tax_profile_value":22
},
"1231285#|#35_marrone":{
"count":1,
"price":100,
"options":"35_marrone",
"title":"Asciugamano",
"sku":"109178",
"tax_profile_id":"5795bdb716f46a787c34ed8d",
"tax_profile_value":22
}
},
"saleCode":"test",
"saleAmount":13.03,
"shippingAmount":10,
"shippingProfile":"Italia",
"paymentAmount":5,
"paymentProfile":"mark",
"billingID":"58cbe56716f46afd4e9c1e81",
"deliveryID":"58cbe56716f46afd4e9c1e81",
"checkouted":true,
"ts":{
"sec":1550585685,
"usec":482000
},
"userUID":49077,
"groupUID":114501,
"cartUUID":"2592514935c6bc153a536b764829322"
},
"total":135.26,
"userUID":49077,
"groupUID":114501,
"orderDate":{
"sec":1550585685,
"usec":519000
},
"details":"",
"method":"Italia",
"payment":"mark",
"message":"Per cortesia suonare al piano terra. ",
"status":0,
"remote_ip":"XX.XX.XX.XXX",
"refID":"",
"locale":"it_IT",
"http_host":"https://iltuosito.com",
"gift":{
"cost":"2.99",
"want":true,
"message":"Buon compleanno!",
"count_packaged":1
}
"isGift":true,
"giftCost":"2.99",
"giftMessage":"Buon compleanno!"
}
Ottenere il nome del metodo di pagamento di un ordine.
getOrderPaymentMethod(name)
| param | type | note | default |
|---|---|---|---|
| name | string | order.cart.paymentProfile |
Ottenere gli rdini in un determinato intervallo di tempo oppure tutti.
getOrders(time,status)
| param | type | note | default |
|---|---|---|---|
| time | string | Giorni da verificare: "30","90","180" o "older" | empty string |
| status | int | Stato ordine da ricercare* |
* Vedere getOrdersStatus per gli stati disponibili.
Numero di ordini in un determinato intervallo di tempo oppure tutti.
getOrdersCount(time,status)
| param | type | note | default |
|---|---|---|---|
| time | string | Giorni da verificare: "30","90","180" o "older" | empty string |
| status | int | Stato ordine da ricercare* |
* Vedere getOrdersStatus per gli stati disponibili.
Lista dei possibili stati ordine.
getOrdersStatus()
Mapping degli ID:
{
"opened": {
"0": "Pending Payment",
"1": "Order Paid"
},
"processing": {
"2": "Preparation",
"3": "Sent",
"4": "Delivered"
},
"closed": {
"5": "Closed",
"6": "Archived/Deleted",
"7": "Aborted"
},
"aftersale": {
"8": "AfterSale"
}
}
Ottenere i dati del reso di un ordine
getRMA(orderID)
| param | type | note | default |
|---|---|---|---|
| orderID | string | order.orderID |
{
"_id":{
"$id":"5c6c12ed16f46a5e325bcc19"
},
"groupUID":114501,
"rma":"rma_5c6c12ed32b3b",
"orderID":"114501_5c6c0f557621a",
"cart":{
"1224100":{
"return":"1",
"reason":"3",
"quantity":"1",
"note":"Vorrei la versione da 50 capsule, ho sbagliato. ",
"sku":"905988263",
"options":"",
"price":"12.3"
}
},
"details":"",
"status":0,
"accepted":false,
"data":[ ],
"ts":{
"sec":1550586605,
"usec":207000
}
}
Ottenere i possibili tipi di reso.
getRMATypes()
Passare i valori ottenuti alla funzione {{lang(key)}} per ottenere il nome del reso.
Ottenere i dati del tracking della spedizione
getTrackingUrl(orderID)
| param | type | note | default |
|---|---|---|---|
| orderID | string | order.orderID |
Ottiene i dettagli relativi agli ordini figli generati. marketplace only
getChildOrderDetails(orderID)
| param | type | note | default |
|---|---|---|---|
| orderID | string | order.orderID |
Commenti