Skip to content

Instantly share code, notes, and snippets.

@braidn
Last active June 26, 2017 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save braidn/298c594118a00eab03ffbc8d15173161 to your computer and use it in GitHub Desktop.
Save braidn/298c594118a00eab03ffbc8d15173161 to your computer and use it in GitHub Desktop.
Avatax Sales Receipt Return
{"id"=>313728202, "code"=>"25b54cc0-3f49-4f9a-aac7-174a5ee43f70", "companyId"=>636231, "date"=>"2017-06-26", "paymentDate"=>"1900-01-01", "status"=>"Saved", "type"=>"SalesInvoice", "batchCode"=>"", "currencyCode"=>"USD", "customerUsageType"=>"", "customerVendorCode"=>"mohammed@schaden.co.uk", "exemptNo"=>"", "reconci
led"=>false, "purchaseOrderNo"=>"GLO195104244742", "referenceCode"=>"", "salespersonCode"=>"", "taxOverrideType"=>"None", "taxOverrideAmount"=>0.0, "taxOverrideReason"=>"", "totalAmount"=>1.0, "totalExempt"=>1.0, "totalTax"=>0.0, "totalTaxable"=>0.0, "totalTaxCalculated"=>0.0, "adjustmentReason"=>"NotAdjusted", "adju
stmentDescription"=>"", "locked"=>false, "region"=>"NY", "country"=>"US", "version"=>1, "softwareVersion"=>"17.6.3.5", "originAddressId"=>797558954, "destinationAddressId"=>797558955, "exchangeRateEffectiveDate"=>"2017-06-26", "exchangeRate"=>1.0, "isSellerImporterOfRecord"=>false, "description"=>"Spree Order", "busi
nessIdentificationNo"=>"", "modifiedDate"=>"2017-06-26T14:19:00.323", "modifiedUserId"=>289059, "taxDate"=>"2017-06-26T00:00:00", "lines"=>[{"id"=>1136677271, "transactionId"=>313728202, "lineNumber"=>"1005", "boundaryOverrideId"=>0, "customerUsageType"=>"", "description"=>"", "destinationAddressId"=>797558955, "orig
inAddressId"=>797558954, "discountAmount"=>0.0, "exemptAmount"=>1.0, "exemptCertId"=>0, "exemptNo"=>"", "isItemTaxable"=>true, "isSSTP"=>false, "itemCode"=>"C-4469", "lineAmount"=>1.0, "quantity"=>1.0, "ref1"=>"", "ref2"=>"", "reportingDate"=>"2017-06-26", "revAccount"=>"", "sourcing"=>"Destination", "tax"=>0.0, "tax
ableAmount"=>0.0, "taxCalculated"=>0.0, "taxCode"=>"", "taxCodeId"=>8087, "taxDate"=>"2017-06-26", "taxEngine"=>"", "taxOverrideType"=>"None", "businessIdentificationNo"=>"", "taxOverrideAmount"=>0.0, "taxOverrideReason"=>"", "taxIncluded"=>false, "details"=>[{"id"=>2077411256, "transactionLineId"=>1136677271, "trans
actionId"=>313728202, "addressId"=>797558955, "country"=>"US", "region"=>"NY", "stateFIPS"=>"36", "exemptAmount"=>0.0, "exemptReasonId"=>6, "inState"=>true, "jurisCode"=>"36", "jurisName"=>"NEW YORK", "jurisdictionId"=>42, "signatureCode"=>"BFEQ", "stateAssignedNo"=>"", "jurisType"=>"STA", "nonTaxableAmount"=>1.0, "n
onTaxableRuleId"=>0, "nonTaxableType"=>"NexusRule", "rate"=>0.0, "rateRuleId"=>0, "rateSourceId"=>0, "serCode"=>" ", "sourcing"=>"Destination", "tax"=>0.0, "taxableAmount"=>0.0, "taxType"=>"Sales", "taxName"=>"NY STATE TAX", "taxAuthorityTypeId"=>45, "taxRegionId"=>2088629, "taxCalculated"=>0.0, "taxOverride"=>0.
0, "rateType"=>"General", "rateTypeCode"=>"G", "taxableUnits"=>0.0, "nonTaxableUnits"=>1.0, "exemptUnits"=>0.0, "unitOfBasis"=>"PerCurrencyUnit"}], "lineLocationTypes"=>[{"documentLineLocationTypeId"=>766816338, "documentLineId"=>1136677271, "documentAddressId"=>797558955, "locationTypeCode"=>"ShipTo"}, {"documentLin
eLocationTypeId"=>766816337, "documentLineId"=>1136677271, "documentAddressId"=>797558954, "locationTypeCode"=>"ShipFrom"}], "parameters"=>{}}], "addresses"=>[{"id"=>797558954, "transactionId"=>313728202, "boundaryLevel"=>"Address", "line1"=>"123 Lafayette St Ph", "line2"=>"", "line3"=>"", "city"=>"New York", "region
"=>"NY", "postalCode"=>"10013-3294", "country"=>"US", "taxRegionId"=>2088629, "latitude"=>"40.718751", "longitude"=>"-74.000042"}, {"id"=>797558955, "transactionId"=>313728202, "boundaryLevel"=>"Address", "line1"=>"123 Lafayette St Ph", "line2"=>"", "line3"=>"", "city"=>"New York", "region"=>"NY", "postalCode"=>"1001
3-3294", "country"=>"US", "taxRegionId"=>2088629, "latitude"=>"40.718751", "longitude"=>"-74.000042"}], "locationTypes"=>[{"documentLocationTypeId"=>11117519, "documentId"=>313728202, "documentAddressId"=>797558955, "locationTypeCode"=>"ShipTo"}, {"documentLocationTypeId"=>11117518, "documentId"=>313728202, "document
AddressId"=>797558954, "locationTypeCode"=>"ShipFrom"}], "summary"=>[{"country"=>"US", "region"=>"NY", "jurisType"=>"State", "jurisCode"=>"36", "jurisName"=>"NEW YORK", "taxAuthorityType"=>45, "stateAssignedNo"=>"", "taxType"=>"Sales", "taxName"=>"NY STATE TAX", "rateType"=>"General", "taxable"=>0.0, "rate"=>0.0, "ta
x"=>0.0, "taxCalculated"=>0.0, "nonTaxable"=>1.0, "exemption"=>0.0}], "parameters"=>{}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment