Create authorization

Create a new automatic PIX authorization that allows the Astrapay to debit the user's account for recurring or variable payments.

Body Params

Authorization creation request with user details, creditors, and payment parameters

user
object

User (debtor) information

string

ID of the participating financial institution

creditors
array of objects

List of creditors authorized to receive payments

creditors
string

Human-readable description of the authorization purpose

int32

Maximum amount in cents for variable payments

int32

Minimum amount in cents for variable payments

boolean

Whether payment retries are accepted after failures

string

Payment recurrence interval in ISO 8601 duration format (e.g., P1M for monthly)

date

Reference start date for recurring payments

string

External contract or agreement identifier

contractDebtor
object

User (debtor) information

firstPayment
object

Details of the first payment in a recurring authorization

clientMetadata
object

Metadata about the client device/platform initiating the request

Headers
uuid
required

Transaction UUID for tracing and idempotency

Response

Language
Credentials
Bearer
JWT
Response
Click Try It! to start a request and see the response here! Or choose an example:
*/*