Login

  • Fiori
  • GET Order

See your orders

This method allows you to view the list of all your orders.

Resource

Production environment:

  • https://fiori.altravia.com/order
  • https://fiori.altravia.com/order/"_id"

Testing environment

  • https://test.fiori.altravia.com/order
  • https://test.fiori.altravia.com/order/"_id"

Parameters

Request Example

Response

Response Format

If successful, the response header HTTP status code will be 200 OK and the request will be answered.

If you try to get a request without authorization, you will receive an error 401 Unauthorized.

Additionally you should also handle the 400 Bad request status. For more info on HTTP status handling see dedicated section in Integration best practices page.

Request Response

Parameter Type Description
data DataResponseDetails Present only if the API call goes to good end, it will contain the answer data.
success boolean True or false.
message string It contains a message that can be shown by the user.
error int Present only if the API call fails, it contains an error code.

Data Response Details

Parameter Type Description
_id string Unique order id.
dataOrdine string Order date in ISO 8601 format.
owner string Order owner.

Additional examples

Request of a specific order:

Response

Data Response Details

Parameter Type Description
_id string Unique order id.
Mitt_Cognome string Sender's surname.
Mitt_Nome string Sender's name.
Mitt_Email string Sender's email.
Mitt_Telefono string Sender's phone.
Mitt_Indirizzo string Sender's address.
Mitt_Citta string Sender's city.
Mitt_Provincia string Sender's province.
Mitt_Stato string Sender's country.
Mitt_CodFiscale string Sender's fiscal code or Vat.
Dest_nazioneConsegna string Nation of delivery in Italian.
Dest_Cognome string Recipient surname.
Dest_Nome string Recipient name.
Dest_Presso string C/o.
Dest_Indirizzo string Recipient address.
Dest_Citta string Recipient city.
Dest_Cap string Recipient postal code.
Dest_dataConsegna string Delivery date in ISO 8601 format.
Dest_Telefono string Recipient phone.
Dest_Messaggio string Attached message.
Dest_Note string Attached note.
chkPromotions string True or False.
idComposizione int Id of the ordered product.
quantitaOrdinata int Ordered quantity.
tipoComposizione string Product type ordered.
sitoOrdine string Website that placed the order; fiori.altravia.com by default.
dataOrdine string Order date in ISO 8601 format.
nomeComposizione string Name of the ordered composition.
owner string Order owner.
prezzo_base double Product price.
prezzo_totale double Product price for the quantity.
isSpedito string True or False; indicates if the product will be delivered by a deliveryman in the area (false) or sent by courier (true).