DOCS

Recupera il codice fiscale

Recupera il codice fiscale

Recupera il codice fiscale necessario per elaborare spedizioni a basso valore.

GraphQL

Se stai utilizzando l'API Landed Cost, puoi richiedere un taxId quando crei un preventivo per Landed Cost o dopo che è stato creato. Questo taxId verrà restituito solo se la spedizione per cui viene generato il preventivo richiederà una rimessa in base al paese di destinazione e al valore dell'articolo. Questo taxId può quindi essere passato al corriere quando crei l'etichetta e la fattura commerciale.

Recupera il codice fiscale per la rimessa 

Le mutazioni e le query indicate di seguito mostreranno come un taxId applicabile verrà restituito nella risposta. Nel caso in cui un taxId non si applichi alla spedizione, il campo taxId sarà vuoto.

Mutazione

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
mutation {
  landedCostCalculateWorkflow(
    input: { endUse: NOT_FOR_RESALE, method: DAP, tariffRate: ZONOS_PREFERRED }
  ) {
    id
    amountSubtotals {
      duties
    }

    duties {
      amount
      currency
    }
    taxes {
      amount
      currency
    }
    fees {
      amount
      description
      currency
    }
    remittance {
      amount
      description
      note
    }
    taxId {
      taxIdNumber
      countryCode
    }
  }
}

Query

1
2
3
4
5
6
7
query {
  landedCost(id: "landed_cost_f809d1a3-8551-46c2-9d20-b0cdb16b39b6") {
    taxId {
      taxIdNumber
    }
  }
}

Questa pagina è stata utile?