BaseTender
  1. Invoices
BaseTender
  • Documentazione
  • Auth
    • auth
      POST
  • Vehicles
    • /vehicles/plate/:plate
      GET
    • /vehicles/id/:id
      GET
    • /vehicles/all/:company_id
      GET
    • /vehicles/update/:id
      PUT
  • Companies
    • /companies/create
      POST
  • Users
    • /users/create
      POST
    • /users/createResetOauthPw
      POST
    • /users/resetOauthPw
      POST
    • /users/resetLegacyPw
      POST
  • Trips
    • /trips/all/:company_id/:user_id
      GET
    • /trips/mine/:company_id
      GET
    • /trips/quoted/:company_id
      GET
    • /trips/:id/set/status/:status
      POST
    • /trips/details/:id/:company_id
      GET
    • /trips/all_data/:trip_id
      GET
    • /trips/add
      POST
  • Offers
    • /offers/:id/set/status/:status
      POST
    • /offers/:id/set/offer_business/:offer
      POST
    • offers/:trip_id
      GET
  • Invoices
    • /invoices/mine/:company_id
      GET
    • /invoices/send
      POST
    • /invoices/documents/:trip_id/:type?
      GET
    • /invoices/documents/insert
      POST
    • /invoices/documents/delete/:document_id
      DELETE
  1. Invoices

/invoices/send

POST
/invoices/send
Questa route serve per inviare al chiamante stesso le fatture che deve emettere verso la company operativa superadmin a cui è assegnato.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

🔴500Server Error
🟢200Message Success
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://tender.whyb.it:8443/v1/invoices/send' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "viaggi_da_fatturare_dati": [
        {
            "_id": "67b731240037f05237531060",
            "trip_id": "67b60b5b0e641bbe3066caa9",
            "ammount": 230,
            "company_id_fornitore": "67b58fd0c79190a4c38936dc",
            "rif_cliente": "Non specificato",
            "status": "waiting",
            "validation": "waiting",
            "luogo_carico": "46031, Bagnolo San Vito, Italia",
            "data_carico": "20/02/2025 09:00-11:00",
            "luogo_scarico": "21020, Bodio Lomnago, Italia",
            "data_scarico": "20/02/2025"
        }
    ]
}'
Response Response Example
200 - Example 1
{}
Modified at 2025-05-22 14:40:18
Previous
/invoices/mine/:company_id
Next
/invoices/documents/:trip_id/:type?
Built with