Create tax payments

POST {{baseUrl}}/{{version}}/tax-payment

Use this route to pay taxes using the available balance in your Stark Bank account.

lineCONDITIONALY REQUIREDNumber sequence that describes the payment. Either 'line' or 'barCode' parameters are required. If both are sent, they must match.
barCodeCONDITIONALY REQUIREDBar code number that describes the payment. Either 'line' or 'barCode' parameters are required. If both are sent, they must match.
descriptionREQUIREDText to be displayed in your statement. Min lenght = 10.
tagsOPTIONALArray of strings to tag the entity for future queries. All tags will be converted to lowercase.
scheduledOPTIONALSchedule the payment for a specific date. Default value is the current day.

Request Body

{"payments"=>[{"barCode"=>"81660000005003657010074119002551100010601813", "description"=>"92886864d3322df8b76a14ca4f0903c2c4eae69f6dc180501a440ee8d7febeff", "scheduled"=>"2021-08-02", "tags"=>["take", "my", "money"]}]}

RESPONSES

status: OK

{"message":"Tax payment(s) successfully created","payments":[{"status":"created","scheduled":"2021-08-02T17:02:52.547962+00:00","updated":"2021-08-02T17:02:52.584954+00:00","description":"92886864d3322df8b76a14ca4f0903c2c4eae69f6dc180501a440ee8d7febeff","tags":["take","my","money"],"line":"81660000005 2 00365701007 4 41190025511 7 00010601813 8","id":"6308847597649920","fee":0,"created":"2021-08-02T17:02:52.584946+00:00","barCode":"81660000005003657010074119002551100010601813","amount":50036,"type":"iss","transactionIds":[]}]}