---
title: "Generate Pix for payment"
method: POST
path: "/v1/transactions/{transaction_id}/pix"
tags: ["Transactions"]
---

# Generate Pix for payment

`POST /v1/transactions/{transaction_id}/pix`

Associate a Pix payment with a previously created transaction. A new Pix can be generated for the same transaction when the previous one expires

## Path parameters

- `transaction_id` string, required

## Request body

- EdubankTransactionPixDto
  - `description` string — A brief description of the reason for your transaction
  - `pix_expiration_date_time` string — PIX expiration date that exceeds 24 hours. Can only be used when previously configured

## Response `201`

The object has been successfully created

- EdubankTransactionSuccessResponsePix
  - `status_code` number, required — Status code
  - `transaction_id` string, required — Edubank transaction id
  - `transaction_type` string, required — Type of transaction performed. CARD/PIX/BANK_SLIP/BANK_SLIP_PIX
  - `status` string, required — Current transaction status
  - `payment_id` string, required — Payment id
  - `bank_slip_digitable_line` string — Digitable line for payment slip
  - `pix_qrcode` string — Pix qrcode
  - `pix_base64` string — Pix qrcode image in base64
  - `pix_expiration` string — Pix expiration

## Other responses

- `400` — Client specified an invalid argument, request body or query param
- `401` — The user is unauthorized
- `403` — Authenticated user is not allowed to access this resource
- `404` — The resource was not found
- `408` — Request timeout
- `422` — Error: Unprocessable Entity
- `429` — Too many requests
- `500` — Internal server error

---

[API](https://skmtc.dev/edubank/apis/api-edubank.md) · [All operations](https://skmtc.dev/edubank/apis/api-edubank/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/edubank/api-edubank/revisions/dce4008191d4/schema)
