Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.51 KB | None | 0 0
  1. /customer/:customerId/taxes/resume
  2. parameters:
  3. - customerId
  4. - establishemnt_id
  5. - begin_date
  6. - end_date
  7. - acquirer_id
  8. - brand_id
  9. - transaction_type
  10. - status
  11. - nsu
  12. - gross_amount
  13. - type
  14. returns:
  15. - type = 0:
  16. {
  17. "resume": {
  18. "all_taxes": 405.92,
  19. "overcharged_taxes": 20.49,
  20. "undercharged_taxes": 50.13,
  21. "economy": 2400
  22. },
  23. "total_taxes": [
  24. {
  25. "acquirer_id": 1,
  26. "acquirer_name": "Cielo",
  27. "total": 600,
  28. "overcharged": 20,
  29. "undercharged": 15
  30. },
  31. {
  32. "acquirer_id": 2,
  33. "acquirer_name": "Rede",
  34. "total": 495.45,
  35. "overcharged": 13.5,
  36. "udercharged": 8.13
  37. }
  38. ],
  39. "overcharged_taxes": [
  40. {
  41. "acquirer_id": 0,
  42. "acquirer_name": "Tudo",
  43. "dates": {
  44. "20190424": 989.13,
  45. "20190425": 1289.13,
  46. "20190426": 3389.13,
  47. "20190427": 5489.13,
  48. "20190428": 9689.13,
  49. "20190429": 7789.13
  50. }
  51. },
  52. {
  53. "acquirer_id": 1,
  54. "acquirer_name": "Cielo",
  55. "dates": {
  56. "20190424": 289.13,
  57. "20190425": 189.13,
  58. "20190426": 389.13,
  59. "20190427": 589.13,
  60. "20190428": 989.13,
  61. "20190429": 789.13
  62. }
  63. },
  64. {
  65. "acquirer_id": 2,
  66. "acquirer_name": "Rede",
  67. "dates": {
  68. "20190424": 259.13,
  69. "20190425": 159.13,
  70. "20190426": 359.13,
  71. "20190427": 559.13,
  72. "20190428": 959.13,
  73. "20190429": 759.13
  74. }
  75. }
  76. ],
  77. "udercharged_taxes": [
  78. {
  79. "acquirer_id": 0,
  80. "acquirer_name": "Tudo",
  81. "dates": {
  82. "20190424": 989.13,
  83. "20190425": 1289.13,
  84. "20190426": 3389.13,
  85. "20190427": 5489.13,
  86. "20190428": 9689.13,
  87. "20190429": 7789.13
  88. }
  89. },
  90. {
  91. "acquirer_id": 1,
  92. "acquirer_name": "Cielo",
  93. "dates": {
  94. "20190424": 289.13,
  95. "20190425": 189.13,
  96. "20190426": 389.13,
  97. "20190427": 589.13,
  98. "20190428": 989.13,
  99. "20190429": 789.13
  100. }
  101. },
  102. {
  103. "acquirer_id": 2,
  104. "acquirer_name": "Rede",
  105. "dates": {
  106. "20190424": 259.13,
  107. "20190425": 159.13,
  108. "20190426": 359.13,
  109. "20190427": 559.13,
  110. "20190428": 959.13,
  111. "20190429": 759.13
  112. }
  113. }
  114. ],
  115. "cards": {
  116. "debit": {
  117. "status": "error",
  118. "percentage": 1.3,
  119. "paid": 405.92,
  120. "better": 293.6,
  121. "yearly_economy": 13500,
  122. "acquirer_id": 1,
  123. "acquirer_name": "Cielo",
  124. "installments_min": null,
  125. "installments_max": null
  126. },
  127. "credit": {
  128. "status": "error",
  129. "percentage": 1.8,
  130. "paid": 405.92,
  131. "better": 293.6,
  132. "yearly_economy": 13500,
  133. "acquirer_id": 2,
  134. "acquirer_name": "Rede",
  135. "installments_min": null,
  136. "installments_max": null
  137. },
  138. "installment_credit": {
  139. "status": "success",
  140. "percentage": 2.4,
  141. "paid": null,
  142. "better": 293.6,
  143. "yearly_economy": null,
  144. "acquirer_id": 2,
  145. "acquirer_name": "Rede",
  146. "installments_min": null,
  147. "installments_max": null
  148. }
  149. }
  150. }
  151. - type = 1:
  152. {
  153. "resume": {
  154. "all_taxes": 405.92,
  155. "overcharged_taxes": 20.49,
  156. "undercharged_taxes": 50.13
  157. },
  158. "count": 4,
  159. "items": {
  160. "status": "succes | overcharged | undercharged",
  161. "sale_date": "2018-05-09",
  162. "sale_hour": "14:30",
  163. "establishment_name": "Supermercado Jagelim",
  164. "acquirer_name": "Cielo",
  165. "acquirer_id": 1,
  166. "brand_id": 1,
  167. "brand_name": "Visa",
  168. "transaction_type_code": "CP",
  169. "transaction_type": "Crédito Parcelado",
  170. "gross_amount": 324.76,
  171. "charged_tax_amount": 2.43,
  172. "charged_tax_percentage": 2.3,
  173. "registred_tax_amount": 2.43,
  174. "registred_tax_percentage": 2.3,
  175. "lost_tax_amount": 2.43,
  176. "lost_tax_percentage": 2.3,
  177. "nsu": "239045808",
  178. "batch_number": "p23uiu5"
  179. }
  180. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement