Tarifa API de impuestos

Retrieve state list that requires sales tax calculation

GET https://api.printful.com/tax/countries

Returns a list of countries and states that need Printful sales tax calculation.
Parámetros de entrada
Ninguno
Formato de respuesta:
code integer Código del estado de respuesta 200
result Country [ ]
code string Country code
name string Country name
states State [ ] Array of states
code string State code
name string State name
Clave API
Ejecutar

Calculate tax rate

POST https://api.printful.com/tax/rates

Calculates sales tax rate for given address if required
Parámetros de entrada
Request body TaxRequest Tax address information
recipient TaxAddressInfo Recipient address information
country_code string Country code
state_code string State code
city string City
zip string ZIP or postal code
Formato de respuesta:
code integer Código del estado de respuesta 200
result TaxInfo
required boolean Whether sales tax is required for the given address
rate float Tax rate
Clave API
Request body
Ejecutar

¿Listo para probar Printful?