Advertisement
conferecartoes

Untitled

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