Create darf payments
POST {{baseUrl}}/{{version}}/darf-payment
Use this route to pay DARFs using the available balance in your Stark Bank account.
description | REQUIRED | Text to be displayed in your statement (min. 10 characters). Example: payment ABC |
---|---|---|
revenueCode | REQUIRED | 4-digit tax code assigned by Federal Revenue. Example: 5948 |
taxId | REQUIRED | Payer CPF (11 digits formatted or unformatted) or CNPJ (14 digits formatted or unformatted). Example: 012.345.678-90 |
competence | REQUIRED | Competence month of the service. Example: '2020-03-10' |
nominalAmount | REQUIRED | Amount due in cents without fee or interest. Example: 23456 (= R$ 234.56) |
fineAmount | REQUIRED | Fixed amount due in cents for fines. Example: 234 (= R$ 2.34) |
interestAmount | REQUIRED | Amount due in cents for interest. Example: 456 (= R$ 4.56) |
due | REQUIRED | Due date for payment. Example: '2020-03-10' |
referenceNumber | OPTIONAL | Number assigned to the region of the tax. Example: 08.1.17.00-4 |
scheduled | OPTIONAL | Schedule the payment for a specific date. Default value is the current day. |
tags | OPTIONAL | Array of strings to tag the entity for future queries. All tags will be converted to lowercase. |
Request Body
{"payments"=>[{"description"=>"92886864d3322df8b76a14ca4f0903c2c4eae69f6dc180501a440ee8d7febeff", "scheduled"=>"2021-08-02", "tags"=>["paying", "taxes"], "competence"=>"2021-07-28", "due"=>"2021-08-04", "fineAmount"=>90, "interestAmount"=>18, "nominalAmount"=>961, "referenceNumber"=>"062021", "revenueCode"=>"4333", "taxId"=>"16.281.034/0001-31"}]}
RESPONSES
status: OK
{"message":"Tax payment(s) successfully created","payments":[{"status":"created","scheduled":"2021-08-02T18:36:20.775512+00:00","updated":"2021-08-02T18:36:20.775989+00:00","fee":0,"description":"92886864d3322df8b76a14ca4f0903c2c4eae69f6dc180501a440ee8d7febeff","tags":["take","my","money"],"competence":"2021-07-29T02:59:59.999999+00:00","referenceNumber":"062021","revenueCode":"4333","taxId":"16.281.034/0001-31","nominalAmount":961,"amount":1069,"created":"2021-08-02T18:36:20.775981+00:00","due":"2021-08-05T02:59:59.999999+00:00","fineAmount":90,"interestAmount":18,"id":"5464422667517952","transactionIds":[]}]}