Create dynamic brcodes
POST {{baseUrl}}/{{version}}/dynamic-brcode
Use this route to create up to 100 new dynamic brcodes at a time.
Parameters | Value Type | Description |
---|---|---|
amount | REQUIRED | A non-negative integer that represents the amount in cents to be received. Example: 100 (R$1.00) |
expiration | OPTIONAL | Time in seconds counted from the due datetime until the brcode expires. After expiration, the brcode cannot be paid anymore. Default value: 3600 (1 hour) |
tags | OPTIONAL | Array of strings to tag the entity for future queries. All tags will be converted to lowercase. |
Request Body
{"brcodes"=>[{"amount"=>4000, "expiration"=>1234567890, "tags"=>["New sword", "DynamicBrcode #1234"]}]}
RESPONSES
status: OK
{"brcodes":[{"amount":4000,"created":"2023-02-21T20:09:03.161862+00:00","expiration":1234567890,"id":"00020101021226890014br.gov.bcb.pix2567brcode-h.sandbox.starkinfra.com/v2/c3196a43637a44598d47606c061725445204000053039865802BR5925Stark Bank S.A. - Institu6009Sao Paulo62070503***63048F40","pictureUrl":"https://sandbox.api.starkbank.com/v2/dynamic-brcode/c3196a43637a44598d47606c06172544.png","tags":["new sword","dynamicbrcode #1234"],"updated":"2023-02-21T20:09:03.510041+00:00","uuid":"c3196a43637a44598d47606c06172544"}],"message":"Brcode(s) successfully created"}