1. Vendas
API - TDesk
  • Autenticação
    • Authenticate
      POST
  • Vendas
    • CreateDate
      GET
    • LastDate
      GET
    • ID
      GET
    • Esquemas
      • Order
  1. Vendas

ID

GET
/api/v1.0/orders/id/{id}
Retorna as vendas, serviços, pagamentos, pelo número da venda. Lembrar que em uma mesma venda, podem haver serviços e pagamentos criados em datas distintas. Recomenda-se utilizar o método LastDate.

Requisição

Authorization
Forneça seu token bearer no cabeçalho
Authorization
ao fazer requisições para recursos protegidos.
Exemplo:
Authorization: Bearer ********************
Parâmetros de Caminho

Respostas

🟢200Success
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/api/v1.0/orders/id/1234' \
--header 'Authorization: Bearer <token>'
Response Response Example
[
    {
        "ID": 0,
        "CreatedDateTime": "2019-08-24T14:15:22.123Z",
        "CheckInDateTime": "2019-08-24T14:15:22.123Z",
        "CheckOutDateTime": "2019-08-24T14:15:22.123Z",
        "IssueDateTime": "2019-08-24T14:15:22.123Z",
        "LastUpdateDateTime": "2019-08-24T14:15:22.123Z",
        "Status": 0,
        "Requester": "string",
        "Agency": {
            "ID": 0,
            "Name": "string",
            "LegalName": "string",
            "Document": "string",
            "Address": "string",
            "Address2": "string",
            "Number": "string",
            "District": "string",
            "City": "string",
            "State": "string",
            "Country": "string",
            "LocationID": 0
        },
        "Attendant": {
            "ID": 0,
            "Name": "string"
        },
        "AgencyRef": "string",
        "Category": "string",
        "Services": [
            {
                "ID": 0,
                "Description": "string",
                "Information": "string",
                "ProductType": "string",
                "ProductName": "string",
                "AdtQty": 0,
                "ChdQty": 0,
                "InfQty": 0,
                "CheckIn": "string",
                "CheckOut": "string",
                "ResDeadline": "string",
                "CldDeadline": "string",
                "CldPenalty": "string",
                "ConfirmationNumber": "string",
                "Status": 0,
                "Supplier": {
                    "ID": 0,
                    "Name": "string",
                    "LegalName": "string",
                    "Document": "string",
                    "Address": "string",
                    "Address2": "string",
                    "Number": "string",
                    "District": "string",
                    "City": "string",
                    "State": "string",
                    "Country": "string",
                    "LocationID": 0
                },
                "Distributor": {
                    "ID": 0,
                    "Name": "string",
                    "LegalName": "string",
                    "Document": "string",
                    "Address": "string",
                    "Address2": "string",
                    "Number": "string",
                    "District": "string",
                    "City": "string",
                    "State": "string",
                    "Country": "string",
                    "LocationID": 0
                },
                "Paxs": [
                    {
                        "PaxType": 0,
                        "FirstName": "string",
                        "LastName": "string",
                        "RateType": 0,
                        "PaxQty": 0,
                        "ServicePaxQty": 0,
                        "SaleAmounts": {
                            "Currency": "string",
                            "ExchangeRate": 0,
                            "Rate": 0,
                            "EquivalentRate": 0,
                            "Fee": 0,
                            "AgentTax": 0,
                            "AdmAgentTax": 0,
                            "AirportTax": 0,
                            "ServiceTax": 0,
                            "Penalty": 0,
                            "Discount": 0,
                            "Issqn": 0,
                            "Kandir": 0,
                            "Commission": 0,
                            "Incentive": 0
                        },
                        "CostAmounts": {
                            "Currency": "string",
                            "ExchangeRate": 0,
                            "Rate": 0,
                            "EquivalentRate": 0,
                            "Fee": 0,
                            "AgentTax": 0,
                            "AdmAgentTax": 0,
                            "AirportTax": 0,
                            "ServiceTax": 0,
                            "Penalty": 0,
                            "Discount": 0,
                            "Issqn": 0,
                            "Kandir": 0,
                            "Commission": 0,
                            "Incentive": 0
                        }
                    }
                ],
                "Flights": [
                    {
                        "CarrierCode": "string",
                        "FlightNumber": "string",
                        "BookingClass": "string",
                        "DepartureDateTime": "string",
                        "ArrivalDateTime": "string",
                        "DepartureAirportCode": "string",
                        "ArrivalAirportCode": "string",
                        "CarrierRef": "string"
                    }
                ]
            }
        ],
        "Payments": [
            {
                "Document": "string",
                "Date": "2019-08-24T14:15:22.123Z",
                "Method": "string",
                "Amount": 0,
                "CommissionRetained": 0,
                "Installments": 0,
                "CreditCard": {
                    "Number": "string",
                    "Holder": "string"
                }
            }
        ]
    }
]
Modificado em 2026-09-14 12:13:13
Página anterior
LastDate
Próxima página
Order
Built with