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

# Generate bank slip for payment

`POST /v1/transactions/{transaction_id}/bank-slip`

## Request

- Base URL: `https://api.edubank.com.br` (the document declares no server; this is the origin it was published from)
- URL: `https://api.edubank.com.br/v1/transactions/{transaction_id}/bank-slip`
- Auth: one of:
  - API key in header `x-api-key`
  - API key in header `authorization`
  - API key in header `authorization`
- TypeScript: <https://skmtc.dev/edubank/apis/api-edubank/docs/v1/transactions/:transaction_id/bank-slip/post.ts> (a function with typed inputs; its response is checked against the schema)

Associate a bank slip payment with a previously created transaction

## Path parameters

- `transaction_id` string, required

## Request body

- EdubankTransactionBankSlipDto
  - `description` string: Description of the product being sold
  - `bank_slip_link` 'PDF' | 'HTML': Indicates whether the PDF of the bank slip or the HTML should be returned. DEFAULT is PDF

## Response `200`

Payment made successfully

## Other responses

- `201`: The object has been successfully created
- `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.dev/edubank/apis/api-edubank/revisions/dce4008191d4?raw)
