Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /customer/:customerId/taxes/resume
- parameters:
- - customerId
- - establishemnt_id
- - begin_date
- - end_date
- - status
- - acquirer_id
- - brand_id
- - transaction_type
- - status
- - nsu
- - gross_amount
- - type
- - offset
- - limit
- returns:
- - type = 0:
- {
- "resume": {
- "all_taxes": 405.92,
- "overcharged_taxes": 20.49,
- "undercharged_taxes": 50.13,
- "economy": 2400
- },
- "total_taxes": [
- {
- "acquirer_id": 1,
- "acquirer_name": "Cielo",
- "total": 600,
- "overcharged": 20,
- "undercharged": 15
- },
- {
- "acquirer_id": 2,
- "acquirer_name": "Rede",
- "total": 495.45,
- "overcharged": 13.5,
- "udercharged": 8.13
- }
- ],
- "overcharged_taxes": [
- {
- "acquirer_id": 0,
- "acquirer_name": "Tudo",
- "dates": {
- "20190424": 989.13,
- "20190425": 1289.13,
- "20190426": 3389.13,
- "20190427": 5489.13,
- "20190428": 9689.13,
- "20190429": 7789.13
- }
- },
- {
- "acquirer_id": 1,
- "acquirer_name": "Cielo",
- "dates": {
- "20190424": 289.13,
- "20190425": 189.13,
- "20190426": 389.13,
- "20190427": 589.13,
- "20190428": 989.13,
- "20190429": 789.13
- }
- },
- {
- "acquirer_id": 2,
- "acquirer_name": "Rede",
- "dates": {
- "20190424": 259.13,
- "20190425": 159.13,
- "20190426": 359.13,
- "20190427": 559.13,
- "20190428": 959.13,
- "20190429": 759.13
- }
- }
- ],
- "udercharged_taxes": [
- {
- "acquirer_id": 0,
- "acquirer_name": "Tudo",
- "dates": {
- "20190424": 989.13,
- "20190425": 1289.13,
- "20190426": 3389.13,
- "20190427": 5489.13,
- "20190428": 9689.13,
- "20190429": 7789.13
- }
- },
- {
- "acquirer_id": 1,
- "acquirer_name": "Cielo",
- "dates": {
- "20190424": 289.13,
- "20190425": 189.13,
- "20190426": 389.13,
- "20190427": 589.13,
- "20190428": 989.13,
- "20190429": 789.13
- }
- },
- {
- "acquirer_id": 2,
- "acquirer_name": "Rede",
- "dates": {
- "20190424": 259.13,
- "20190425": 159.13,
- "20190426": 359.13,
- "20190427": 559.13,
- "20190428": 959.13,
- "20190429": 759.13
- }
- }
- ],
- "cards": {
- "debit": {
- "status": "error",
- "percentage": 1.3,
- "paid": 405.92,
- "better": 293.6,
- "yearly_economy": 13500,
- "acquirer_id": 1,
- "acquirer_name": "Cielo",
- "installments_min": null,
- "installments_max": null
- },
- "credit": {
- "status": "error",
- "percentage": 1.8,
- "paid": 405.92,
- "better": 293.6,
- "yearly_economy": 13500,
- "acquirer_id": 2,
- "acquirer_name": "Rede",
- "installments_min": null,
- "installments_max": null
- },
- "installment_credit": {
- "status": "success",
- "percentage": 2.4,
- "paid": null,
- "better": 293.6,
- "yearly_economy": null,
- "acquirer_id": 2,
- "acquirer_name": "Rede",
- "installments_min": null,
- "installments_max": null
- }
- }
- }
- - type = 1:
- {
- "resume": {
- "all_taxes": 405.92,
- "overcharged_taxes": 20.49,
- "undercharged_taxes": 50.13
- },
- "count": 4,
- "items": {
- "status": "succes | overcharged | undercharged",
- "sale_date": "2018-05-09",
- "sale_hour": "14:30",
- "establishment_name": "Supermercado Jagelim",
- "acquirer_name": "Cielo",
- "acquirer_id": 1,
- "brand_id": 1,
- "brand_name": "Visa",
- "transaction_type_code": "CP",
- "transaction_type": "CrΓ©dito Parcelado",
- "gross_amount": 324.76,
- "charged_tax_amount": 2.43,
- "charged_tax_percentage": 2.3,
- "registred_tax_amount": 2.43,
- "registred_tax_percentage": 2.3,
- "lost_tax_amount": 2.43,
- "lost_tax_percentage": 2.3,
- "nsu": "239045808",
- "batch_number": "p23uiu5"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement