{
"data": null,
"message": null,
"error": {
"message": "Erro ao processar a transacao. Tente novamente.",
"code": "internal_error"
}
}
Creates a new payment transaction. Supports PIX, Boleto, and Credit Card payment methods.
PIX: Only method and amount are required. Returns the Copy and Paste code for payment.
Boleto: Requires method, amount, and a linked customer (customerIdorcustomerName). Returns barcode, digitable line, and PDF URL.
Credit Card: Requires method=CreditCard, amount, and card data (cardNumber, cardHolderName, cardExpirationMonth, cardExpirationYear, cardCvv) or a cardToken obtained via POST /v1/card-tokenize.
International sale: Requires method=International and the international block (country, local method or card in euro and dollar). See the International sales guide.
QR Code images are not returned by the API. You should generate the image in your frontend using the pix.copyAndPaste value.See the dedicated guide: Generating PIX QR Code.
You can also use tokenized cards as a payment method! Check out the dedicated guide: Tokenize card.
Payment splitting through the API
For a PIX transaction, send splits to direct portions of the net amount to other organizations. Each recipient is identified by its splitCode.
value for PERCENTAGE: from 1 to 100, with up to two decimal places.
value for FIXED: a positive whole number in cents.
The same splitCode cannot be included twice, and all shares must fit within the payment’s projected available settlement.
Splitting is PIX-only and must be enabled for the organization creating the charge.
When the PIX is confirmed, each recipient receives its shareAmount in cents. The create response and transaction retrieval include the applied splits for reconciliation.
Authorizations
Authorization
string
header
required
Token JWT obtido via /v1/auth/token
Body
application/json
method
enum<string>
required
Metodo de pagamento
Available options:
Pix,
CreditCard,
Boleto
Example:
"Pix"
amount
integer<int64>
required
Valor em centavos (min: 100)
Example:
10000
currency
enum<string>
required
Moeda
Available options:
BRL
Example:
"BRL"
description
string | null
Descricao da transacao (max: 500)
Example:
"Pagamento do pedido #12345"
externalId
string | null
ID externo para referencia (max: 100)
Example:
"pedido_12345"
customerId
string<uuid> | null
ID do cliente cadastrado. Para boleto, informe customerId ou customerName.
Example:
"550e8400-e29b-41d4-a716-446655440000"
callbackUrl
string | null
URL para receber webhooks
Example:
"https://seusite.com.br/webhook"
metadata
string | null
Metadados em JSON
Example:
"{\"orderId\": 12345}"
splits
object[] | null
Regras de split para PIX. Cada split direciona parte do valor liquido a outra organizacao. Disponivel apenas quando o split estiver habilitado para a organizacao principal.
Show child attributes
pixExpirationMinutes
integer | null
Tempo de expiracao do PIX (5-1440 min)
Example:
30
customerName
string | null
Nome do cliente/pagador. Se customerId nao for enviado e customerName for informado, a Safefy cria (ou reutiliza) um cliente e vincula a transacao.
Example:
"Joao Silva"
customerDocument
string | null
CPF/CNPJ do cliente/pagador
Example:
"12345678900"
customerEmail
string | null
Email do cliente/pagador (opcional). Se nao for enviado, a Safefy gera um email tecnico apenas para viabilizar o processamento.
Example:
"joao@exemplo.com"
customerPhone
string | null
Telefone do cliente/pagador com codigo do pais. Aceita com ou sem '+' no envio e e normalizado para apenas digitos no processamento.
Example:
"5511999998888"
boletoDueDate
string<date> | null
Data de vencimento do boleto (YYYY-MM-DD). Obrigatorio para boleto. Minimo: D+2.
Example:
"2025-02-15"
boletoInstructions
string | null
Instrucoes do boleto. Opcional.
Example:
"Nao receber apos o vencimento"
cardNumber
string | null
Numero do cartao de credito (obrigatorio para method=CreditCard)
Example:
"4111111111111111"
cardHolderName
string | null
Nome do titular do cartao (obrigatorio para method=CreditCard)
Example:
"JOAO SILVA"
cardExpirationMonth
string | null
Mes de expiracao do cartao, dois digitos (obrigatorio para method=CreditCard)
Example:
"12"
cardExpirationYear
string | null
Ano de expiracao do cartao, quatro digitos (obrigatorio para method=CreditCard)
Example:
"2028"
cardCvv
string | null
Codigo de seguranca do cartao CVV (obrigatorio para method=CreditCard)
Example:
"123"
installments
integer | null
Numero de parcelas, de 1 a 12 (obrigatorio para method=CreditCard)
Example:
1
cardToken
string | null
Token de cartao obtido via /v1/card-tokenize (alternativa ao envio de dados brutos do cartao)
Example:
"ct_abc123def456"
Response
Transacao criada com sucesso
data
object
Show child attributes
message
string | null
error
object | null
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Safefy Pay","colors":{"primary":"#3b82f6","light":"#60a5fa","dark":"#2563eb"},"logo":{"light":"https://mintcdn.com/safefypay/-Bz3jDSg0a2tULm6/logo/light.svg?fit=max\u0026auto=format\u0026n=-Bz3jDSg0a2tULm6\u0026q=85\u0026s=582ff1fbb2198f44a03cf0083f79c7bb","dark":"https://mintcdn.com/safefypay/-Bz3jDSg0a2tULm6/logo/dark.svg?fit=max\u0026auto=format\u0026n=-Bz3jDSg0a2tULm6\u0026q=85\u0026s=1f5e52a5b2998f9bea22018d08bbe534"},"favicon":"https://mintcdn.com/safefypay/mnZdbRGEjZDQ6G9R/favicon.ico?fit=max\u0026auto=format\u0026n=mnZdbRGEjZDQ6G9R\u0026q=85\u0026s=f8e5a425e9e824c156b5b0065956b9f4","api":{"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["curl","python","javascript","go","java"],"prefill":true}},"background":{"color":{"light":"#f9f9f9","dark":"#161616"}},"navbar":{"links":[{"href":"mailto:suporte@safefypay.com.br","label":"Support"}],"primary":{"type":"button","label":"Access Dashboard","href":"https://app.safefypay.com.br"}},"footer":{"socials":{"instagram":"https://www.instagram.com/safefy_pay"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Status","icon":"signal","href":"/en/status"},{"anchor":"Support","icon":"life-ring","href":"mailto:suporte@safefypay.com.br"}]},"languages":[{"language":"pt-BR","href":""},{"language":"en","href":"en"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"safefypay","hasAudioNarration":false,"actualSubdomain":"safefypay","customDomains":["docs.safefypay.com.br"],"gitSource":{"type":"github","owner":"safefy-pay","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b0053b257be3405ccaa0ca6","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"pt-BR","tag":"API","count":34},{"language":"en","tag":"API","count":34},{"language":"pt-BR","tag":"Documentação","count":14},{"language":"en","tag":"Documentation","count":14},{"language":"pt-BR","tag":"Transações","count":12},{"language":"en","tag":"Transactions","count":12},{"language":"pt-BR","tag":"Saques","count":8},{"language":"en","tag":"Cashouts","count":8},{"language":"pt-BR","tag":"Disputas","count":6},{"language":"en","tag":"Disputes","count":6},{"language":"pt-BR","tag":"Clientes","count":5},{"language":"pt-BR","tag":"Conceitos","count":5},{"language":"pt-BR","tag":"Introdução","count":5},{"language":"en","tag":"Customers","count":5},{"language":"en","tag":"Concepts","count":5},{"language":"en","tag":"Introduction","count":5},{"language":"pt-BR","tag":"Saldo","count":2},{"language":"pt-BR","tag":"Checkout e links","count":2},{"language":"en","tag":"Balance","count":2},{"language":"en","tag":"Checkout and links","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"en/api-reference/transactions/create","slug":"/en/api-reference/transactions/create","pageMetadata":{"title":"Create transaction","description":"Create a new PIX, Boleto, or Credit Card charge","openapi":"api-reference/openapi.json POST /v1/transactions","href":"/en/api-reference/transactions/create"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create a new PIX, Boleto, or Credit Card charge\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Info}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Creates a new payment transaction. Supports `,_jsx(_components.strong,{children:`PIX`}),`, `,_jsx(_components.strong,{children:`Boleto`}),`, and `,_jsx(_components.strong,{children:`Credit Card`}),` payment methods.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`PIX`}),`: Only `,_jsx(_components.code,{children:`method`}),` and `,_jsx(_components.code,{children:`amount`}),` are required. Returns the `,_jsx(_components.strong,{children:`Copy and Paste`}),` code for payment.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Boleto`}),`: Requires `,_jsx(_components.code,{children:`method`}),`, `,_jsx(_components.code,{children:`amount`}),`, and a linked customer (`,_jsx(_components.code,{children:`customerId`}),` `,_jsx(_components.strong,{children:`or`}),` `,_jsx(_components.code,{children:`customerName`}),`). Returns barcode, digitable line, and PDF URL.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Credit Card`}),`: Requires `,_jsx(_components.code,{children:`method=CreditCard`}),`, `,_jsx(_components.code,{children:`amount`}),`, and card data (`,_jsx(_components.code,{children:`cardNumber`}),`, `,_jsx(_components.code,{children:`cardHolderName`}),`, `,_jsx(_components.code,{children:`cardExpirationMonth`}),`, `,_jsx(_components.code,{children:`cardExpirationYear`}),`, `,_jsx(_components.code,{children:`cardCvv`}),`) `,_jsx(_components.strong,{children:`or`}),` a `,_jsx(_components.code,{children:`cardToken`}),` obtained via `,_jsx(_components.code,{children:`POST /v1/card-tokenize`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`International sale`}),`: Requires `,_jsx(_components.code,{children:`method=International`}),` and the `,_jsx(_components.code,{children:`international`}),` block (country, local method or card in euro and dollar). See the `,_jsx(_components.a,{href:`/en/api-reference/transactions/international`,children:`International sales`}),` guide.`]}),`\n`]}),`\n`,_jsxs(Info,{children:[_jsxs(_components.p,{children:[`QR Code images are `,_jsx(_components.strong,{children:`not returned`}),` by the API. You should generate the image in your frontend using the `,_jsx(_components.code,{children:`pix.copyAndPaste`}),` value.`]}),_jsxs(_components.p,{children:[`See the dedicated guide: `,_jsx(_components.a,{href:`/en/api-reference/transactions/qr-code`,children:`Generating PIX QR Code`}),`.`]})]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`You can also use `,_jsx(_components.strong,{children:`tokenized cards`}),` as a payment method! Check out the dedicated guide: `,_jsx(_components.a,{href:`/en/api-reference/transactions/card-tokenize`,children:`Tokenize card`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`payment-splitting-through-the-api`,children:`Payment splitting through the API`}),`\n`,_jsxs(_components.p,{children:[`For a `,_jsx(_components.strong,{children:`PIX`}),` transaction, send `,_jsx(_components.code,{children:`splits`}),` to direct portions of the net amount to other organizations. Each recipient is identified by its `,_jsx(_components.code,{children:`splitCode`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`17`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"method\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Pix\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"currency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"BRL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"splits\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"splitCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"550e8400-e29b-41d4-a716-446655440001\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PERCENTAGE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`20`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"splitCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"550e8400-e29b-41d4-a716-446655440002\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"FIXED\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1000`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`type`}),`: use `,_jsx(_components.code,{children:`PERCENTAGE`}),` or `,_jsx(_components.code,{children:`FIXED`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`value`}),` for `,_jsx(_components.code,{children:`PERCENTAGE`}),`: from 1 to 100, with up to two decimal places.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`value`}),` for `,_jsx(_components.code,{children:`FIXED`}),`: a positive whole number in cents.`]}),`\n`,_jsxs(_components.li,{children:[`The same `,_jsx(_components.code,{children:`splitCode`}),` cannot be included twice, and all shares must fit within the payment’s projected available settlement.`]}),`\n`,_jsx(_components.li,{children:`Splitting is PIX-only and must be enabled for the organization creating the charge.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`When the PIX is confirmed, each recipient receives its `,_jsx(_components.code,{children:`shareAmount`}),` in cents. The create response and transaction retrieval include the applied splits for reconciliation.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create transaction","description":"Create a new PIX, Boleto, or Credit Card charge","openapi":"api-reference/openapi.json POST /v1/transactions","href":"/en/api-reference/transactions/create"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Payment splitting through the API","slug":"payment-splitting-through-the-api","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Transacoes"],"summary":"Criar transacao","description":"Create a new PIX, Boleto, or Credit Card charge","operationId":"createTransaction","requestBody":"5d1e19d1-5ad5-42dc-b993-fb23c66edddc","responses":{"201":"2e3ca49b-7f00-400c-aca3-a218c7e254b7","400":"e90dbf7d-3d33-43c0-808c-860ffde389d3","401":"354f3a31-9c03-49b9-b1d8-b8943e1446fa","500":"0ed05954-6245-4ec4-8bdf-65637fbfa5f5"},"method":"post","type":"path","servers":["ad42bb95-9ee9-43f3-8b75-5b69e2293265"],"security":["d07cda11-4db3-44ec-8c53-a5a5d3b18ae3"],"path":"/v1/transactions","baseUrlOptions":["https://api-payment.safefypay.com.br"],"title":"Criar transacao","codeSamples":[],"requestExampleLanguages":["bash","python","javascript","go","java"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.method":"Pix","body.amount":10000,"body.currency":"BRL","body.description.oneOf.0":"Pagamento do pedido #12345","body.externalId.oneOf.0":"pedido_12345","body.callbackUrl.oneOf.0":"https://seusite.com.br/webhook","body.pixExpirationMinutes.oneOf.0":30,"body.customerName.oneOf.0":"Joao Silva","body.customerDocument.oneOf.0":"12345678900","body.customerEmail.oneOf.0":"joao@exemplo.com","body.customerPhone.oneOf.0":"5511999998888"},{"body.method":"Pix","body.amount":10000,"body.currency":"BRL","body.externalId.oneOf.0":"pedido_com_split_12345","body.splits.oneOf.0.items.0.splitCode":"550e8400-e29b-41d4-a716-446655440001","body.splits.oneOf.0.items.0.type":"PERCENTAGE","body.splits.oneOf.0.items.0.value":20,"body.splits.oneOf.0.items.1.splitCode":"550e8400-e29b-41d4-a716-446655440002","body.splits.oneOf.0.items.1.type":"FIXED","body.splits.oneOf.0.items.1.value":1000},{"body.method":"Boleto","body.amount":15000,"body.currency":"BRL","body.description.oneOf.0":"Pagamento do pedido #67890","body.customerId.oneOf.0":"550e8400-e29b-41d4-a716-446655440000","body.callbackUrl.oneOf.0":"https://seusite.com.br/webhook","body.boletoDueDate.oneOf.0":"2025-02-15"},{"body.method":"Boleto","body.amount":15000,"body.currency":"BRL","body.description.oneOf.0":"Pagamento do pedido #67890","body.callbackUrl.oneOf.0":"https://seusite.com.br/webhook","body.customerName.oneOf.0":"Joao Silva","body.customerDocument.oneOf.0":"12345678900","body.customerEmail.oneOf.0":"joao@exemplo.com","body.customerPhone.oneOf.0":"5511999998888","body.boletoDueDate.oneOf.0":"2025-02-15"}]},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["method","amount","currency"],"properties":{"method":{"type":"string","enum":["Pix","CreditCard","Boleto"],"description":"Metodo de pagamento","example":"Pix","isRequired":true,"uniqueKey":"method","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","format":"int64","description":"Valor em centavos (min: 100)","example":10000,"isRequired":true,"uniqueKey":"amount","typeLabel":"integer\u003cint64>"},"currency":{"type":"string","enum":["BRL"],"description":"Moeda","example":"BRL","isRequired":true,"uniqueKey":"currency","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"Descricao da transacao (max: 500)","example":"Pagamento do pedido #12345","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Descricao da transacao (max: 500)","example":"Pagamento do pedido #12345","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"externalId":{"oneOf":[{"type":"string","description":"ID externo para referencia (max: 100)","example":"pedido_12345","uniqueKey":"externalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID externo para referencia (max: 100)","example":"pedido_12345","uniqueKey":"externalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"externalId","typeLabel":"string | null"},"customerId":{"oneOf":[{"type":"string","format":"uuid","description":"ID do cliente cadastrado. Para boleto, informe customerId ou customerName.","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"customerId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID do cliente cadastrado. Para boleto, informe customerId ou customerName.","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"customerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"customerId","typeLabel":"string\u003cuuid> | null"},"callbackUrl":{"oneOf":[{"type":"string","description":"URL para receber webhooks","example":"https://seusite.com.br/webhook","uniqueKey":"callbackUrl.oneOf.0","typeLabel":"string"},{"type":"null","description":"URL para receber webhooks","example":"https://seusite.com.br/webhook","uniqueKey":"callbackUrl.oneOf.1","typeLabel":"null"}],"uniqueKey":"callbackUrl","typeLabel":"string | null"},"metadata":{"oneOf":[{"type":"string","description":"Metadados em JSON","example":"{\"orderId\": 12345}","uniqueKey":"metadata.oneOf.0","typeLabel":"string"},{"type":"null","description":"Metadados em JSON","example":"{\"orderId\": 12345}","uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"string | null"},"splits":{"oneOf":[{"type":"array","description":"Regras de split para PIX. Cada split direciona parte do valor liquido a outra organizacao. Disponivel apenas quando o split estiver habilitado para a organizacao principal.","items":{"type":"object","required":["splitCode","type","value"],"description":"Regra para direcionar uma fatia do valor liquido de uma transacao PIX a outra organizacao.","properties":{"splitCode":{"type":"string","format":"uuid","description":"Codigo de referencia da organizacao destinataria.","example":"550e8400-e29b-41d4-a716-446655440001","isRequired":true,"uniqueKey":"splits.oneOf.0.items.[INDEX].splitCode","typeLabel":"string\u003cuuid>"},"type":{"type":"string","enum":["PERCENTAGE","FIXED"],"description":"PERCENTAGE divide o valor liquido por percentual; FIXED direciona um valor fixo em centavos.","example":"PERCENTAGE","isRequired":true,"uniqueKey":"splits.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"value":{"type":"number","description":"Em PERCENTAGE, valor de 1 a 100 com no maximo duas casas decimais. Em FIXED, inteiro positivo em centavos.","example":20,"isRequired":true,"uniqueKey":"splits.oneOf.0.items.[INDEX].value","typeLabel":"number"}},"uniqueKey":"splits.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"splits.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"Regras de split para PIX. Cada split direciona parte do valor liquido a outra organizacao. Disponivel apenas quando o split estiver habilitado para a organizacao principal.","items":{"type":"object","required":["splitCode","type","value"],"description":"Regra para direcionar uma fatia do valor liquido de uma transacao PIX a outra organizacao.","properties":{"splitCode":{"type":"string","format":"uuid","description":"Codigo de referencia da organizacao destinataria.","example":"550e8400-e29b-41d4-a716-446655440001"},"type":{"type":"string","enum":["PERCENTAGE","FIXED"],"description":"PERCENTAGE divide o valor liquido por percentual; FIXED direciona um valor fixo em centavos.","example":"PERCENTAGE"},"value":{"type":"number","description":"Em PERCENTAGE, valor de 1 a 100 com no maximo duas casas decimais. Em FIXED, inteiro positivo em centavos.","example":20}}},"uniqueKey":"splits.oneOf.1","typeLabel":"null"}],"uniqueKey":"splits","typeLabel":"object[] | null"},"pixExpirationMinutes":{"oneOf":[{"type":"integer","description":"Tempo de expiracao do PIX (5-1440 min)","example":30,"uniqueKey":"pixExpirationMinutes.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Tempo de expiracao do PIX (5-1440 min)","example":30,"uniqueKey":"pixExpirationMinutes.oneOf.1","typeLabel":"null"}],"uniqueKey":"pixExpirationMinutes","typeLabel":"integer | null"},"customerName":{"oneOf":[{"type":"string","description":"Nome do cliente/pagador. Se customerId nao for enviado e customerName for informado, a Safefy cria (ou reutiliza) um cliente e vincula a transacao.","example":"Joao Silva","uniqueKey":"customerName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Nome do cliente/pagador. Se customerId nao for enviado e customerName for informado, a Safefy cria (ou reutiliza) um cliente e vincula a transacao.","example":"Joao Silva","uniqueKey":"customerName.oneOf.1","typeLabel":"null"}],"uniqueKey":"customerName","typeLabel":"string | null"},"customerDocument":{"oneOf":[{"type":"string","description":"CPF/CNPJ do cliente/pagador","example":"12345678900","uniqueKey":"customerDocument.oneOf.0","typeLabel":"string"},{"type":"null","description":"CPF/CNPJ do cliente/pagador","example":"12345678900","uniqueKey":"customerDocument.oneOf.1","typeLabel":"null"}],"uniqueKey":"customerDocument","typeLabel":"string | null"},"customerEmail":{"oneOf":[{"type":"string","description":"Email do cliente/pagador (opcional). Se nao for enviado, a Safefy gera um email tecnico apenas para viabilizar o processamento.","example":"joao@exemplo.com","uniqueKey":"customerEmail.oneOf.0","typeLabel":"string"},{"type":"null","description":"Email do cliente/pagador (opcional). Se nao for enviado, a Safefy gera um email tecnico apenas para viabilizar o processamento.","example":"joao@exemplo.com","uniqueKey":"customerEmail.oneOf.1","typeLabel":"null"}],"uniqueKey":"customerEmail","typeLabel":"string | null"},"customerPhone":{"oneOf":[{"type":"string","description":"Telefone do cliente/pagador com codigo do pais. Aceita com ou sem '+' no envio e e normalizado para apenas digitos no processamento.","example":"5511999998888","uniqueKey":"customerPhone.oneOf.0","typeLabel":"string"},{"type":"null","description":"Telefone do cliente/pagador com codigo do pais. Aceita com ou sem '+' no envio e e normalizado para apenas digitos no processamento.","example":"5511999998888","uniqueKey":"customerPhone.oneOf.1","typeLabel":"null"}],"uniqueKey":"customerPhone","typeLabel":"string | null"},"boletoDueDate":{"oneOf":[{"type":"string","format":"date","description":"Data de vencimento do boleto (YYYY-MM-DD). Obrigatorio para boleto. Minimo: D+2.","example":"2025-02-15","uniqueKey":"boletoDueDate.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","description":"Data de vencimento do boleto (YYYY-MM-DD). Obrigatorio para boleto. Minimo: D+2.","example":"2025-02-15","uniqueKey":"boletoDueDate.oneOf.1","typeLabel":"null"}],"uniqueKey":"boletoDueDate","typeLabel":"string\u003cdate> | null"},"boletoInstructions":{"oneOf":[{"type":"string","description":"Instrucoes do boleto. Opcional.","example":"Nao receber apos o vencimento","uniqueKey":"boletoInstructions.oneOf.0","typeLabel":"string"},{"type":"null","description":"Instrucoes do boleto. Opcional.","example":"Nao receber apos o vencimento","uniqueKey":"boletoInstructions.oneOf.1","typeLabel":"null"}],"uniqueKey":"boletoInstructions","typeLabel":"string | null"},"cardNumber":{"oneOf":[{"type":"string","description":"Numero do cartao de credito (obrigatorio para method=CreditCard)","example":"4111111111111111","uniqueKey":"cardNumber.oneOf.0","typeLabel":"string"},{"type":"null","description":"Numero do cartao de credito (obrigatorio para method=CreditCard)","example":"4111111111111111","uniqueKey":"cardNumber.oneOf.1","typeLabel":"null"}],"uniqueKey":"cardNumber","typeLabel":"string | null"},"cardHolderName":{"oneOf":[{"type":"string","description":"Nome do titular do cartao (obrigatorio para method=CreditCard)","example":"JOAO SILVA","uniqueKey":"cardHolderName.oneOf.0","typeLabel":"string"},{"type":"null","description":"Nome do titular do cartao (obrigatorio para method=CreditCard)","example":"JOAO SILVA","uniqueKey":"cardHolderName.oneOf.1","typeLabel":"null"}],"uniqueKey":"cardHolderName","typeLabel":"string | null"},"cardExpirationMonth":{"oneOf":[{"type":"string","description":"Mes de expiracao do cartao, dois digitos (obrigatorio para method=CreditCard)","example":"12","uniqueKey":"cardExpirationMonth.oneOf.0","typeLabel":"string"},{"type":"null","description":"Mes de expiracao do cartao, dois digitos (obrigatorio para method=CreditCard)","example":"12","uniqueKey":"cardExpirationMonth.oneOf.1","typeLabel":"null"}],"uniqueKey":"cardExpirationMonth","typeLabel":"string | null"},"cardExpirationYear":{"oneOf":[{"type":"string","description":"Ano de expiracao do cartao, quatro digitos (obrigatorio para method=CreditCard)","example":"2028","uniqueKey":"cardExpirationYear.oneOf.0","typeLabel":"string"},{"type":"null","description":"Ano de expiracao do cartao, quatro digitos (obrigatorio para method=CreditCard)","example":"2028","uniqueKey":"cardExpirationYear.oneOf.1","typeLabel":"null"}],"uniqueKey":"cardExpirationYear","typeLabel":"string | null"},"cardCvv":{"oneOf":[{"type":"string","description":"Codigo de seguranca do cartao CVV (obrigatorio para method=CreditCard)","example":"123","uniqueKey":"cardCvv.oneOf.0","typeLabel":"string"},{"type":"null","description":"Codigo de seguranca do cartao CVV (obrigatorio para method=CreditCard)","example":"123","uniqueKey":"cardCvv.oneOf.1","typeLabel":"null"}],"uniqueKey":"cardCvv","typeLabel":"string | null"},"installments":{"oneOf":[{"type":"integer","description":"Numero de parcelas, de 1 a 12 (obrigatorio para method=CreditCard)","example":1,"uniqueKey":"installments.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Numero de parcelas, de 1 a 12 (obrigatorio para method=CreditCard)","example":1,"uniqueKey":"installments.oneOf.1","typeLabel":"null"}],"uniqueKey":"installments","typeLabel":"integer | null"},"cardToken":{"oneOf":[{"type":"string","description":"Token de cartao obtido via /v1/card-tokenize (alternativa ao envio de dados brutos do cartao)","example":"ct_abc123def456","uniqueKey":"cardToken.oneOf.0","typeLabel":"string"},{"type":"null","description":"Token de cartao obtido via /v1/card-tokenize (alternativa ao envio de dados brutos do cartao)","example":"ct_abc123def456","uniqueKey":"cardToken.oneOf.1","typeLabel":"null"}],"uniqueKey":"cardToken","typeLabel":"string | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"pix":{"title":"pix","summary":"Criar transacao PIX","value":{"method":"Pix","amount":10000,"currency":"BRL","description":"Pagamento do pedido #12345","externalId":"pedido_12345","callbackUrl":"https://seusite.com.br/webhook","pixExpirationMinutes":30,"customerName":"Joao Silva","customerDocument":"12345678900","customerEmail":"joao@exemplo.com","customerPhone":"5511999998888"}},"pixWithSplits":{"title":"pixWithSplits","summary":"Criar transacao PIX com splits","value":{"method":"Pix","amount":10000,"currency":"BRL","externalId":"pedido_com_split_12345","splits":[{"splitCode":"550e8400-e29b-41d4-a716-446655440001","type":"PERCENTAGE","value":20},{"splitCode":"550e8400-e29b-41d4-a716-446655440002","type":"FIXED","value":1000}]}},"boleto":{"title":"boleto","summary":"Criar transacao Boleto","value":{"method":"Boleto","amount":15000,"currency":"BRL","customerId":"550e8400-e29b-41d4-a716-446655440000","description":"Pagamento do pedido #67890","boletoDueDate":"2025-02-15","callbackUrl":"https://seusite.com.br/webhook"}},"boletoInlineCustomer":{"title":"boletoInlineCustomer","summary":"Criar transacao Boleto (criando cliente automaticamente)","value":{"method":"Boleto","amount":15000,"currency":"BRL","customerName":"Joao Silva","customerDocument":"12345678900","customerEmail":"joao@exemplo.com","customerPhone":"5511999998888","description":"Pagamento do pedido #67890","boletoDueDate":"2025-02-15","callbackUrl":"https://seusite.com.br/webhook"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"2e3ca49b-7f00-400c-aca3-a218c7e254b7":{"description":"Transacao criada com sucesso","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID unico da transacao","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","uniqueKey":"data.id","typeLabel":"string\u003cuuid>"},"externalId":{"oneOf":[{"type":"string","description":"ID externo informado","example":"pedido_12345","uniqueKey":"data.externalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID externo informado","example":"pedido_12345","uniqueKey":"data.externalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.externalId","typeLabel":"string | null"},"method":{"type":"string","enum":["Pix","CreditCard","Boleto"],"description":"Metodo de pagamento","example":"Pix","uniqueKey":"data.method","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","format":"int64","description":"Valor em centavos","example":10000,"uniqueKey":"data.amount","typeLabel":"integer\u003cint64>"},"fee":{"type":"integer","format":"int64","description":"Taxa cobrada em centavos","example":150,"uniqueKey":"data.fee","typeLabel":"integer\u003cint64>"},"netAmount":{"type":"integer","format":"int64","description":"Valor liquido em centavos","example":9850,"uniqueKey":"data.netAmount","typeLabel":"integer\u003cint64>"},"currency":{"type":"string","description":"Moeda","example":"BRL","uniqueKey":"data.currency","typeLabel":"string"},"status":{"type":"string","enum":["Pending","Processing","Completed","Failed","Refunded","Expired","Cancelled"],"description":"Status da transacao","example":"Pending","uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"Descricao","example":"Pagamento do pedido #12345","uniqueKey":"data.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Descricao","example":"Pagamento do pedido #12345","uniqueKey":"data.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.description","typeLabel":"string | null"},"environment":{"type":"string","enum":["Sandbox","Production"],"description":"Ambiente","example":"Sandbox","uniqueKey":"data.environment","typeLabel":"enum\u003cstring>"},"expiresAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data de expiracao","example":"2025-01-15T15:30:00Z","uniqueKey":"data.expiresAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Data de expiracao","example":"2025-01-15T15:30:00Z","uniqueKey":"data.expiresAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.expiresAt","typeLabel":"string\u003cdate-time> | null"},"createdAt":{"type":"string","format":"date-time","description":"Data de criacao","example":"2025-01-15T15:00:00Z","uniqueKey":"data.createdAt","typeLabel":"string\u003cdate-time>"},"completedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data de confirmacao","example":null,"uniqueKey":"data.completedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Data de confirmacao","example":null,"uniqueKey":"data.completedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.completedAt","typeLabel":"string\u003cdate-time> | null"},"customerId":{"oneOf":[{"type":"string","format":"uuid","description":"ID do cliente","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"data.customerId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID do cliente","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"data.customerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.customerId","typeLabel":"string\u003cuuid> | null"},"splits":{"oneOf":[{"type":"array","description":"Splits aplicados a transacao.","items":{"type":"object","required":["splitCode","type","value","shareAmount"],"description":"Split efetivamente aplicado a transacao.","properties":{"splitCode":{"type":"string","format":"uuid","description":"Codigo de referencia da organizacao destinataria.","isRequired":true,"uniqueKey":"data.splits.oneOf.0.items.[INDEX].splitCode","typeLabel":"string\u003cuuid>"},"type":{"type":"string","enum":["PERCENTAGE","FIXED"],"description":"Tipo da regra aplicada.","isRequired":true,"uniqueKey":"data.splits.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"value":{"type":"number","description":"Valor original da regra: percentual ou centavos, conforme o tipo.","isRequired":true,"uniqueKey":"data.splits.oneOf.0.items.[INDEX].value","typeLabel":"number"},"shareAmount":{"type":"integer","format":"int64","description":"Fatia calculada em centavos, creditada ao destinatario na confirmacao do PIX.","example":1970,"isRequired":true,"uniqueKey":"data.splits.oneOf.0.items.[INDEX].shareAmount","typeLabel":"integer\u003cint64>"}},"uniqueKey":"data.splits.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.splits.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"Splits aplicados a transacao.","items":{"type":"object","required":["splitCode","type","value","shareAmount"],"description":"Split efetivamente aplicado a transacao.","properties":{"splitCode":{"type":"string","format":"uuid","description":"Codigo de referencia da organizacao destinataria."},"type":{"type":"string","enum":["PERCENTAGE","FIXED"],"description":"Tipo da regra aplicada."},"value":{"type":"number","description":"Valor original da regra: percentual ou centavos, conforme o tipo."},"shareAmount":{"type":"integer","format":"int64","description":"Fatia calculada em centavos, creditada ao destinatario na confirmacao do PIX.","example":1970}}},"uniqueKey":"data.splits.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.splits","typeLabel":"object[] | null"},"pix":{"oneOf":[{"type":"object","description":"Dados do PIX. A imagem do QR Code não é retornada - use uma biblioteca de QR Code para gerar a imagem a partir do copyAndPaste.","properties":{"txId":{"type":"string","description":"ID da transacao PIX (TxId)","example":"SAFEFY2025011512345678901234","uniqueKey":"data.pix.oneOf.0.txId","typeLabel":"string"},"copyAndPaste":{"type":"string","description":"Codigo PIX Copia e Cola (BR Code). Use este codigo para gerar a imagem do QR Code no seu frontend.","example":"00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890...","uniqueKey":"data.pix.oneOf.0.copyAndPaste","typeLabel":"string"},"expiresAt":{"type":"string","format":"date-time","description":"Data de expiracao do codigo PIX","example":"2025-01-15T15:30:00Z","uniqueKey":"data.pix.oneOf.0.expiresAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.pix.oneOf.0","typeLabel":"object"},{"type":"null","description":"Dados do PIX. A imagem do QR Code não é retornada - use uma biblioteca de QR Code para gerar a imagem a partir do copyAndPaste.","properties":{"txId":{"type":"string","description":"ID da transacao PIX (TxId)","example":"SAFEFY2025011512345678901234"},"copyAndPaste":{"type":"string","description":"Codigo PIX Copia e Cola (BR Code). Use este codigo para gerar a imagem do QR Code no seu frontend.","example":"00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890..."},"expiresAt":{"type":"string","format":"date-time","description":"Data de expiracao do codigo PIX","example":"2025-01-15T15:30:00Z"}},"uniqueKey":"data.pix.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.pix","typeLabel":"object | null"},"card":{"oneOf":[{"type":"object","properties":{"lastFour":{"type":"string","description":"Ultimos 4 digitos do cartao","example":"1234","uniqueKey":"data.card.oneOf.0.lastFour","typeLabel":"string"},"brand":{"type":"string","description":"Bandeira do cartao","example":"Visa","uniqueKey":"data.card.oneOf.0.brand","typeLabel":"string"},"installments":{"type":"integer","description":"Numero de parcelas","example":1,"uniqueKey":"data.card.oneOf.0.installments","typeLabel":"integer"},"authorizationCode":{"type":"string","description":"Codigo de autorizacao","example":"ABC123","uniqueKey":"data.card.oneOf.0.authorizationCode","typeLabel":"string"}},"uniqueKey":"data.card.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"lastFour":{"type":"string","description":"Ultimos 4 digitos do cartao","example":"1234"},"brand":{"type":"string","description":"Bandeira do cartao","example":"Visa"},"installments":{"type":"integer","description":"Numero de parcelas","example":1},"authorizationCode":{"type":"string","description":"Codigo de autorizacao","example":"ABC123"}},"uniqueKey":"data.card.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.card","typeLabel":"object | null"},"boleto":{"oneOf":[{"type":"object","properties":{"barcode":{"type":"string","description":"Codigo de barras","example":"23793.38128 60000.000003 00000.000400 1 84340000010000","uniqueKey":"data.boleto.oneOf.0.barcode","typeLabel":"string"},"digitableLine":{"type":"string","description":"Linha digitavel","example":"23793.38128 60000.000003 00000.000400 1 84340000010000","uniqueKey":"data.boleto.oneOf.0.digitableLine","typeLabel":"string"},"pdfUrl":{"type":"string","description":"URL do PDF do boleto","example":"https://api.safefypay.com.br/boleto/123456.pdf","uniqueKey":"data.boleto.oneOf.0.pdfUrl","typeLabel":"string"},"dueDate":{"type":"string","format":"date-time","description":"Data de vencimento","example":"2025-01-20T00:00:00Z","uniqueKey":"data.boleto.oneOf.0.dueDate","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.boleto.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"barcode":{"type":"string","description":"Codigo de barras","example":"23793.38128 60000.000003 00000.000400 1 84340000010000"},"digitableLine":{"type":"string","description":"Linha digitavel","example":"23793.38128 60000.000003 00000.000400 1 84340000010000"},"pdfUrl":{"type":"string","description":"URL do PDF do boleto","example":"https://api.safefypay.com.br/boleto/123456.pdf"},"dueDate":{"type":"string","format":"date-time","description":"Data de vencimento","example":"2025-01-20T00:00:00Z"}},"uniqueKey":"data.boleto.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.boleto","typeLabel":"object | null"}},"uniqueKey":"data","typeLabel":"object"},"message":{"oneOf":[{"type":"string","uniqueKey":"message.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"message.oneOf.1","typeLabel":"null"}],"uniqueKey":"message","typeLabel":"string | null"},"error":{"oneOf":[{"type":"object","properties":{"message":{"type":"string","description":"Mensagem de erro","example":"Token invalido ou expirado.","uniqueKey":"error.oneOf.0.message","typeLabel":"string"},"code":{"type":"string","description":"Codigo do erro","example":"unauthorized","uniqueKey":"error.oneOf.0.code","typeLabel":"string"}},"uniqueKey":"error.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"message":{"type":"string","description":"Mensagem de erro","example":"Token invalido ou expirado."},"code":{"type":"string","description":"Codigo do erro","example":"unauthorized"}},"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"uniqueKey":"error","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"example":{"data":{"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","externalId":"pedido_12345","method":"Pix","amount":10000,"fee":150,"netAmount":9850,"currency":"BRL","status":"Pending","description":"Pagamento do pedido #12345","environment":"Sandbox","expiresAt":"2025-01-15T15:30:00Z","createdAt":"2025-01-15T15:00:00Z","completedAt":null,"customerId":"550e8400-e29b-41d4-a716-446655440000","splits":[{"splitCode":"550e8400-e29b-41d4-a716-446655440001","type":"PERCENTAGE","value":20,"shareAmount":1970}],"pix":{"txId":"SAFEFY2025011512345678901234","copyAndPaste":"00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890...","expiresAt":"2025-01-15T15:30:00Z"},"card":null,"boleto":null},"message":"Transacao criada com sucesso.","error":null},"examples":{"Example":{"title":"Example","value":{"data":{"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","externalId":"pedido_12345","method":"Pix","amount":10000,"fee":150,"netAmount":9850,"currency":"BRL","status":"Pending","description":"Pagamento do pedido #12345","environment":"Sandbox","expiresAt":"2025-01-15T15:30:00Z","createdAt":"2025-01-15T15:00:00Z","completedAt":null,"customerId":"550e8400-e29b-41d4-a716-446655440000","splits":[{"splitCode":"550e8400-e29b-41d4-a716-446655440001","type":"PERCENTAGE","value":20,"shareAmount":1970}],"pix":{"txId":"SAFEFY2025011512345678901234","copyAndPaste":"00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890...","expiresAt":"2025-01-15T15:30:00Z"},"card":null,"boleto":null},"message":"Transacao criada com sucesso.","error":null}}},"exampleType":"examples"}},"exampleType":"examples"},"e90dbf7d-3d33-43c0-808c-860ffde389d3":{"description":"Dados invalidos","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID unico da transacao","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","uniqueKey":"data.id","typeLabel":"string\u003cuuid>"},"externalId":{"oneOf":[{"type":"string","description":"ID externo informado","example":"pedido_12345","uniqueKey":"data.externalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID externo informado","example":"pedido_12345","uniqueKey":"data.externalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.externalId","typeLabel":"string | null"},"method":{"type":"string","enum":["Pix","CreditCard","Boleto"],"description":"Metodo de pagamento","example":"Pix","uniqueKey":"data.method","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","format":"int64","description":"Valor em centavos","example":10000,"uniqueKey":"data.amount","typeLabel":"integer\u003cint64>"},"fee":{"type":"integer","format":"int64","description":"Taxa cobrada em centavos","example":150,"uniqueKey":"data.fee","typeLabel":"integer\u003cint64>"},"netAmount":{"type":"integer","format":"int64","description":"Valor liquido em centavos","example":9850,"uniqueKey":"data.netAmount","typeLabel":"integer\u003cint64>"},"currency":{"type":"string","description":"Moeda","example":"BRL","uniqueKey":"data.currency","typeLabel":"string"},"status":{"type":"string","enum":["Pending","Processing","Completed","Failed","Refunded","Expired","Cancelled"],"description":"Status da transacao","example":"Pending","uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"Descricao","example":"Pagamento do pedido #12345","uniqueKey":"data.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Descricao","example":"Pagamento do pedido #12345","uniqueKey":"data.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.description","typeLabel":"string | null"},"environment":{"type":"string","enum":["Sandbox","Production"],"description":"Ambiente","example":"Sandbox","uniqueKey":"data.environment","typeLabel":"enum\u003cstring>"},"expiresAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data de expiracao","example":"2025-01-15T15:30:00Z","uniqueKey":"data.expiresAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Data de expiracao","example":"2025-01-15T15:30:00Z","uniqueKey":"data.expiresAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.expiresAt","typeLabel":"string\u003cdate-time> | null"},"createdAt":{"type":"string","format":"date-time","description":"Data de criacao","example":"2025-01-15T15:00:00Z","uniqueKey":"data.createdAt","typeLabel":"string\u003cdate-time>"},"completedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data de confirmacao","example":null,"uniqueKey":"data.completedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Data de confirmacao","example":null,"uniqueKey":"data.completedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.completedAt","typeLabel":"string\u003cdate-time> | null"},"customerId":{"oneOf":[{"type":"string","format":"uuid","description":"ID do cliente","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"data.customerId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID do cliente","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"data.customerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.customerId","typeLabel":"string\u003cuuid> | null"},"splits":{"oneOf":[{"type":"array","description":"Splits aplicados a transacao.","items":{"type":"object","required":["splitCode","type","value","shareAmount"],"description":"Split efetivamente aplicado a transacao.","properties":{"splitCode":{"type":"string","format":"uuid","description":"Codigo de referencia da organizacao destinataria.","isRequired":true,"uniqueKey":"data.splits.oneOf.0.items.[INDEX].splitCode","typeLabel":"string\u003cuuid>"},"type":{"type":"string","enum":["PERCENTAGE","FIXED"],"description":"Tipo da regra aplicada.","isRequired":true,"uniqueKey":"data.splits.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"value":{"type":"number","description":"Valor original da regra: percentual ou centavos, conforme o tipo.","isRequired":true,"uniqueKey":"data.splits.oneOf.0.items.[INDEX].value","typeLabel":"number"},"shareAmount":{"type":"integer","format":"int64","description":"Fatia calculada em centavos, creditada ao destinatario na confirmacao do PIX.","example":1970,"isRequired":true,"uniqueKey":"data.splits.oneOf.0.items.[INDEX].shareAmount","typeLabel":"integer\u003cint64>"}},"uniqueKey":"data.splits.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.splits.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"Splits aplicados a transacao.","items":{"type":"object","required":["splitCode","type","value","shareAmount"],"description":"Split efetivamente aplicado a transacao.","properties":{"splitCode":{"type":"string","format":"uuid","description":"Codigo de referencia da organizacao destinataria."},"type":{"type":"string","enum":["PERCENTAGE","FIXED"],"description":"Tipo da regra aplicada."},"value":{"type":"number","description":"Valor original da regra: percentual ou centavos, conforme o tipo."},"shareAmount":{"type":"integer","format":"int64","description":"Fatia calculada em centavos, creditada ao destinatario na confirmacao do PIX.","example":1970}}},"uniqueKey":"data.splits.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.splits","typeLabel":"object[] | null"},"pix":{"oneOf":[{"type":"object","description":"Dados do PIX. A imagem do QR Code não é retornada - use uma biblioteca de QR Code para gerar a imagem a partir do copyAndPaste.","properties":{"txId":{"type":"string","description":"ID da transacao PIX (TxId)","example":"SAFEFY2025011512345678901234","uniqueKey":"data.pix.oneOf.0.txId","typeLabel":"string"},"copyAndPaste":{"type":"string","description":"Codigo PIX Copia e Cola (BR Code). Use este codigo para gerar a imagem do QR Code no seu frontend.","example":"00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890...","uniqueKey":"data.pix.oneOf.0.copyAndPaste","typeLabel":"string"},"expiresAt":{"type":"string","format":"date-time","description":"Data de expiracao do codigo PIX","example":"2025-01-15T15:30:00Z","uniqueKey":"data.pix.oneOf.0.expiresAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.pix.oneOf.0","typeLabel":"object"},{"type":"null","description":"Dados do PIX. A imagem do QR Code não é retornada - use uma biblioteca de QR Code para gerar a imagem a partir do copyAndPaste.","properties":{"txId":{"type":"string","description":"ID da transacao PIX (TxId)","example":"SAFEFY2025011512345678901234"},"copyAndPaste":{"type":"string","description":"Codigo PIX Copia e Cola (BR Code). Use este codigo para gerar a imagem do QR Code no seu frontend.","example":"00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890..."},"expiresAt":{"type":"string","format":"date-time","description":"Data de expiracao do codigo PIX","example":"2025-01-15T15:30:00Z"}},"uniqueKey":"data.pix.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.pix","typeLabel":"object | null"},"card":{"oneOf":[{"type":"object","properties":{"lastFour":{"type":"string","description":"Ultimos 4 digitos do cartao","example":"1234","uniqueKey":"data.card.oneOf.0.lastFour","typeLabel":"string"},"brand":{"type":"string","description":"Bandeira do cartao","example":"Visa","uniqueKey":"data.card.oneOf.0.brand","typeLabel":"string"},"installments":{"type":"integer","description":"Numero de parcelas","example":1,"uniqueKey":"data.card.oneOf.0.installments","typeLabel":"integer"},"authorizationCode":{"type":"string","description":"Codigo de autorizacao","example":"ABC123","uniqueKey":"data.card.oneOf.0.authorizationCode","typeLabel":"string"}},"uniqueKey":"data.card.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"lastFour":{"type":"string","description":"Ultimos 4 digitos do cartao","example":"1234"},"brand":{"type":"string","description":"Bandeira do cartao","example":"Visa"},"installments":{"type":"integer","description":"Numero de parcelas","example":1},"authorizationCode":{"type":"string","description":"Codigo de autorizacao","example":"ABC123"}},"uniqueKey":"data.card.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.card","typeLabel":"object | null"},"boleto":{"oneOf":[{"type":"object","properties":{"barcode":{"type":"string","description":"Codigo de barras","example":"23793.38128 60000.000003 00000.000400 1 84340000010000","uniqueKey":"data.boleto.oneOf.0.barcode","typeLabel":"string"},"digitableLine":{"type":"string","description":"Linha digitavel","example":"23793.38128 60000.000003 00000.000400 1 84340000010000","uniqueKey":"data.boleto.oneOf.0.digitableLine","typeLabel":"string"},"pdfUrl":{"type":"string","description":"URL do PDF do boleto","example":"https://api.safefypay.com.br/boleto/123456.pdf","uniqueKey":"data.boleto.oneOf.0.pdfUrl","typeLabel":"string"},"dueDate":{"type":"string","format":"date-time","description":"Data de vencimento","example":"2025-01-20T00:00:00Z","uniqueKey":"data.boleto.oneOf.0.dueDate","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.boleto.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"barcode":{"type":"string","description":"Codigo de barras","example":"23793.38128 60000.000003 00000.000400 1 84340000010000"},"digitableLine":{"type":"string","description":"Linha digitavel","example":"23793.38128 60000.000003 00000.000400 1 84340000010000"},"pdfUrl":{"type":"string","description":"URL do PDF do boleto","example":"https://api.safefypay.com.br/boleto/123456.pdf"},"dueDate":{"type":"string","format":"date-time","description":"Data de vencimento","example":"2025-01-20T00:00:00Z"}},"uniqueKey":"data.boleto.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.boleto","typeLabel":"object | null"}},"uniqueKey":"data","typeLabel":"object"},"message":{"oneOf":[{"type":"string","uniqueKey":"message.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"message.oneOf.1","typeLabel":"null"}],"uniqueKey":"message","typeLabel":"string | null"},"error":{"oneOf":[{"type":"object","properties":{"message":{"type":"string","description":"Mensagem de erro","example":"Token invalido ou expirado.","uniqueKey":"error.oneOf.0.message","typeLabel":"string"},"code":{"type":"string","description":"Codigo do erro","example":"unauthorized","uniqueKey":"error.oneOf.0.code","typeLabel":"string"}},"uniqueKey":"error.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"message":{"type":"string","description":"Mensagem de erro","example":"Token invalido ou expirado."},"code":{"type":"string","description":"Codigo do erro","example":"unauthorized"}},"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"uniqueKey":"error","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"example":{"data":null,"message":null,"error":{"message":"O Valor Mínimo da transacao e R$ 1,00 (100 centavos).","code":"invalid_amount"}},"examples":{"Example":{"title":"Example","value":{"data":null,"message":null,"error":{"message":"O Valor Mínimo da transacao e R$ 1,00 (100 centavos).","code":"invalid_amount"}}}},"exampleType":"examples"}},"exampleType":"examples"},"354f3a31-9c03-49b9-b1d8-b8943e1446fa":{"description":"Nao autorizado","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID unico da transacao","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","uniqueKey":"data.id","typeLabel":"string\u003cuuid>"},"externalId":{"oneOf":[{"type":"string","description":"ID externo informado","example":"pedido_12345","uniqueKey":"data.externalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID externo informado","example":"pedido_12345","uniqueKey":"data.externalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.externalId","typeLabel":"string | null"},"method":{"type":"string","enum":["Pix","CreditCard","Boleto"],"description":"Metodo de pagamento","example":"Pix","uniqueKey":"data.method","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","format":"int64","description":"Valor em centavos","example":10000,"uniqueKey":"data.amount","typeLabel":"integer\u003cint64>"},"fee":{"type":"integer","format":"int64","description":"Taxa cobrada em centavos","example":150,"uniqueKey":"data.fee","typeLabel":"integer\u003cint64>"},"netAmount":{"type":"integer","format":"int64","description":"Valor liquido em centavos","example":9850,"uniqueKey":"data.netAmount","typeLabel":"integer\u003cint64>"},"currency":{"type":"string","description":"Moeda","example":"BRL","uniqueKey":"data.currency","typeLabel":"string"},"status":{"type":"string","enum":["Pending","Processing","Completed","Failed","Refunded","Expired","Cancelled"],"description":"Status da transacao","example":"Pending","uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"Descricao","example":"Pagamento do pedido #12345","uniqueKey":"data.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Descricao","example":"Pagamento do pedido #12345","uniqueKey":"data.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.description","typeLabel":"string | null"},"environment":{"type":"string","enum":["Sandbox","Production"],"description":"Ambiente","example":"Sandbox","uniqueKey":"data.environment","typeLabel":"enum\u003cstring>"},"expiresAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data de expiracao","example":"2025-01-15T15:30:00Z","uniqueKey":"data.expiresAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Data de expiracao","example":"2025-01-15T15:30:00Z","uniqueKey":"data.expiresAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.expiresAt","typeLabel":"string\u003cdate-time> | null"},"createdAt":{"type":"string","format":"date-time","description":"Data de criacao","example":"2025-01-15T15:00:00Z","uniqueKey":"data.createdAt","typeLabel":"string\u003cdate-time>"},"completedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data de confirmacao","example":null,"uniqueKey":"data.completedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Data de confirmacao","example":null,"uniqueKey":"data.completedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.completedAt","typeLabel":"string\u003cdate-time> | null"},"customerId":{"oneOf":[{"type":"string","format":"uuid","description":"ID do cliente","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"data.customerId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID do cliente","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"data.customerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.customerId","typeLabel":"string\u003cuuid> | null"},"splits":{"oneOf":[{"type":"array","description":"Splits aplicados a transacao.","items":{"type":"object","required":["splitCode","type","value","shareAmount"],"description":"Split efetivamente aplicado a transacao.","properties":{"splitCode":{"type":"string","format":"uuid","description":"Codigo de referencia da organizacao destinataria.","isRequired":true,"uniqueKey":"data.splits.oneOf.0.items.[INDEX].splitCode","typeLabel":"string\u003cuuid>"},"type":{"type":"string","enum":["PERCENTAGE","FIXED"],"description":"Tipo da regra aplicada.","isRequired":true,"uniqueKey":"data.splits.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"value":{"type":"number","description":"Valor original da regra: percentual ou centavos, conforme o tipo.","isRequired":true,"uniqueKey":"data.splits.oneOf.0.items.[INDEX].value","typeLabel":"number"},"shareAmount":{"type":"integer","format":"int64","description":"Fatia calculada em centavos, creditada ao destinatario na confirmacao do PIX.","example":1970,"isRequired":true,"uniqueKey":"data.splits.oneOf.0.items.[INDEX].shareAmount","typeLabel":"integer\u003cint64>"}},"uniqueKey":"data.splits.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.splits.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"Splits aplicados a transacao.","items":{"type":"object","required":["splitCode","type","value","shareAmount"],"description":"Split efetivamente aplicado a transacao.","properties":{"splitCode":{"type":"string","format":"uuid","description":"Codigo de referencia da organizacao destinataria."},"type":{"type":"string","enum":["PERCENTAGE","FIXED"],"description":"Tipo da regra aplicada."},"value":{"type":"number","description":"Valor original da regra: percentual ou centavos, conforme o tipo."},"shareAmount":{"type":"integer","format":"int64","description":"Fatia calculada em centavos, creditada ao destinatario na confirmacao do PIX.","example":1970}}},"uniqueKey":"data.splits.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.splits","typeLabel":"object[] | null"},"pix":{"oneOf":[{"type":"object","description":"Dados do PIX. A imagem do QR Code não é retornada - use uma biblioteca de QR Code para gerar a imagem a partir do copyAndPaste.","properties":{"txId":{"type":"string","description":"ID da transacao PIX (TxId)","example":"SAFEFY2025011512345678901234","uniqueKey":"data.pix.oneOf.0.txId","typeLabel":"string"},"copyAndPaste":{"type":"string","description":"Codigo PIX Copia e Cola (BR Code). Use este codigo para gerar a imagem do QR Code no seu frontend.","example":"00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890...","uniqueKey":"data.pix.oneOf.0.copyAndPaste","typeLabel":"string"},"expiresAt":{"type":"string","format":"date-time","description":"Data de expiracao do codigo PIX","example":"2025-01-15T15:30:00Z","uniqueKey":"data.pix.oneOf.0.expiresAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.pix.oneOf.0","typeLabel":"object"},{"type":"null","description":"Dados do PIX. A imagem do QR Code não é retornada - use uma biblioteca de QR Code para gerar a imagem a partir do copyAndPaste.","properties":{"txId":{"type":"string","description":"ID da transacao PIX (TxId)","example":"SAFEFY2025011512345678901234"},"copyAndPaste":{"type":"string","description":"Codigo PIX Copia e Cola (BR Code). Use este codigo para gerar a imagem do QR Code no seu frontend.","example":"00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890..."},"expiresAt":{"type":"string","format":"date-time","description":"Data de expiracao do codigo PIX","example":"2025-01-15T15:30:00Z"}},"uniqueKey":"data.pix.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.pix","typeLabel":"object | null"},"card":{"oneOf":[{"type":"object","properties":{"lastFour":{"type":"string","description":"Ultimos 4 digitos do cartao","example":"1234","uniqueKey":"data.card.oneOf.0.lastFour","typeLabel":"string"},"brand":{"type":"string","description":"Bandeira do cartao","example":"Visa","uniqueKey":"data.card.oneOf.0.brand","typeLabel":"string"},"installments":{"type":"integer","description":"Numero de parcelas","example":1,"uniqueKey":"data.card.oneOf.0.installments","typeLabel":"integer"},"authorizationCode":{"type":"string","description":"Codigo de autorizacao","example":"ABC123","uniqueKey":"data.card.oneOf.0.authorizationCode","typeLabel":"string"}},"uniqueKey":"data.card.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"lastFour":{"type":"string","description":"Ultimos 4 digitos do cartao","example":"1234"},"brand":{"type":"string","description":"Bandeira do cartao","example":"Visa"},"installments":{"type":"integer","description":"Numero de parcelas","example":1},"authorizationCode":{"type":"string","description":"Codigo de autorizacao","example":"ABC123"}},"uniqueKey":"data.card.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.card","typeLabel":"object | null"},"boleto":{"oneOf":[{"type":"object","properties":{"barcode":{"type":"string","description":"Codigo de barras","example":"23793.38128 60000.000003 00000.000400 1 84340000010000","uniqueKey":"data.boleto.oneOf.0.barcode","typeLabel":"string"},"digitableLine":{"type":"string","description":"Linha digitavel","example":"23793.38128 60000.000003 00000.000400 1 84340000010000","uniqueKey":"data.boleto.oneOf.0.digitableLine","typeLabel":"string"},"pdfUrl":{"type":"string","description":"URL do PDF do boleto","example":"https://api.safefypay.com.br/boleto/123456.pdf","uniqueKey":"data.boleto.oneOf.0.pdfUrl","typeLabel":"string"},"dueDate":{"type":"string","format":"date-time","description":"Data de vencimento","example":"2025-01-20T00:00:00Z","uniqueKey":"data.boleto.oneOf.0.dueDate","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.boleto.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"barcode":{"type":"string","description":"Codigo de barras","example":"23793.38128 60000.000003 00000.000400 1 84340000010000"},"digitableLine":{"type":"string","description":"Linha digitavel","example":"23793.38128 60000.000003 00000.000400 1 84340000010000"},"pdfUrl":{"type":"string","description":"URL do PDF do boleto","example":"https://api.safefypay.com.br/boleto/123456.pdf"},"dueDate":{"type":"string","format":"date-time","description":"Data de vencimento","example":"2025-01-20T00:00:00Z"}},"uniqueKey":"data.boleto.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.boleto","typeLabel":"object | null"}},"uniqueKey":"data","typeLabel":"object"},"message":{"oneOf":[{"type":"string","uniqueKey":"message.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"message.oneOf.1","typeLabel":"null"}],"uniqueKey":"message","typeLabel":"string | null"},"error":{"oneOf":[{"type":"object","properties":{"message":{"type":"string","description":"Mensagem de erro","example":"Token invalido ou expirado.","uniqueKey":"error.oneOf.0.message","typeLabel":"string"},"code":{"type":"string","description":"Codigo do erro","example":"unauthorized","uniqueKey":"error.oneOf.0.code","typeLabel":"string"}},"uniqueKey":"error.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"message":{"type":"string","description":"Mensagem de erro","example":"Token invalido ou expirado."},"code":{"type":"string","description":"Codigo do erro","example":"unauthorized"}},"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"uniqueKey":"error","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"example":{"data":null,"message":null,"error":{"message":"Token invalido ou expirado.","code":"unauthorized"}},"examples":{"Example":{"title":"Example","value":{"data":null,"message":null,"error":{"message":"Token invalido ou expirado.","code":"unauthorized"}}}},"exampleType":"examples"}},"exampleType":"examples"},"0ed05954-6245-4ec4-8bdf-65637fbfa5f5":{"description":"Erro interno","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID unico da transacao","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","uniqueKey":"data.id","typeLabel":"string\u003cuuid>"},"externalId":{"oneOf":[{"type":"string","description":"ID externo informado","example":"pedido_12345","uniqueKey":"data.externalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"ID externo informado","example":"pedido_12345","uniqueKey":"data.externalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.externalId","typeLabel":"string | null"},"method":{"type":"string","enum":["Pix","CreditCard","Boleto"],"description":"Metodo de pagamento","example":"Pix","uniqueKey":"data.method","typeLabel":"enum\u003cstring>"},"amount":{"type":"integer","format":"int64","description":"Valor em centavos","example":10000,"uniqueKey":"data.amount","typeLabel":"integer\u003cint64>"},"fee":{"type":"integer","format":"int64","description":"Taxa cobrada em centavos","example":150,"uniqueKey":"data.fee","typeLabel":"integer\u003cint64>"},"netAmount":{"type":"integer","format":"int64","description":"Valor liquido em centavos","example":9850,"uniqueKey":"data.netAmount","typeLabel":"integer\u003cint64>"},"currency":{"type":"string","description":"Moeda","example":"BRL","uniqueKey":"data.currency","typeLabel":"string"},"status":{"type":"string","enum":["Pending","Processing","Completed","Failed","Refunded","Expired","Cancelled"],"description":"Status da transacao","example":"Pending","uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"description":{"oneOf":[{"type":"string","description":"Descricao","example":"Pagamento do pedido #12345","uniqueKey":"data.description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Descricao","example":"Pagamento do pedido #12345","uniqueKey":"data.description.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.description","typeLabel":"string | null"},"environment":{"type":"string","enum":["Sandbox","Production"],"description":"Ambiente","example":"Sandbox","uniqueKey":"data.environment","typeLabel":"enum\u003cstring>"},"expiresAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data de expiracao","example":"2025-01-15T15:30:00Z","uniqueKey":"data.expiresAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Data de expiracao","example":"2025-01-15T15:30:00Z","uniqueKey":"data.expiresAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.expiresAt","typeLabel":"string\u003cdate-time> | null"},"createdAt":{"type":"string","format":"date-time","description":"Data de criacao","example":"2025-01-15T15:00:00Z","uniqueKey":"data.createdAt","typeLabel":"string\u003cdate-time>"},"completedAt":{"oneOf":[{"type":"string","format":"date-time","description":"Data de confirmacao","example":null,"uniqueKey":"data.completedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","description":"Data de confirmacao","example":null,"uniqueKey":"data.completedAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.completedAt","typeLabel":"string\u003cdate-time> | null"},"customerId":{"oneOf":[{"type":"string","format":"uuid","description":"ID do cliente","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"data.customerId.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","format":"uuid","description":"ID do cliente","example":"550e8400-e29b-41d4-a716-446655440000","uniqueKey":"data.customerId.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.customerId","typeLabel":"string\u003cuuid> | null"},"splits":{"oneOf":[{"type":"array","description":"Splits aplicados a transacao.","items":{"type":"object","required":["splitCode","type","value","shareAmount"],"description":"Split efetivamente aplicado a transacao.","properties":{"splitCode":{"type":"string","format":"uuid","description":"Codigo de referencia da organizacao destinataria.","isRequired":true,"uniqueKey":"data.splits.oneOf.0.items.[INDEX].splitCode","typeLabel":"string\u003cuuid>"},"type":{"type":"string","enum":["PERCENTAGE","FIXED"],"description":"Tipo da regra aplicada.","isRequired":true,"uniqueKey":"data.splits.oneOf.0.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"value":{"type":"number","description":"Valor original da regra: percentual ou centavos, conforme o tipo.","isRequired":true,"uniqueKey":"data.splits.oneOf.0.items.[INDEX].value","typeLabel":"number"},"shareAmount":{"type":"integer","format":"int64","description":"Fatia calculada em centavos, creditada ao destinatario na confirmacao do PIX.","example":1970,"isRequired":true,"uniqueKey":"data.splits.oneOf.0.items.[INDEX].shareAmount","typeLabel":"integer\u003cint64>"}},"uniqueKey":"data.splits.oneOf.0.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.splits.oneOf.0","typeLabel":"object[]"},{"type":"null","description":"Splits aplicados a transacao.","items":{"type":"object","required":["splitCode","type","value","shareAmount"],"description":"Split efetivamente aplicado a transacao.","properties":{"splitCode":{"type":"string","format":"uuid","description":"Codigo de referencia da organizacao destinataria."},"type":{"type":"string","enum":["PERCENTAGE","FIXED"],"description":"Tipo da regra aplicada."},"value":{"type":"number","description":"Valor original da regra: percentual ou centavos, conforme o tipo."},"shareAmount":{"type":"integer","format":"int64","description":"Fatia calculada em centavos, creditada ao destinatario na confirmacao do PIX.","example":1970}}},"uniqueKey":"data.splits.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.splits","typeLabel":"object[] | null"},"pix":{"oneOf":[{"type":"object","description":"Dados do PIX. A imagem do QR Code não é retornada - use uma biblioteca de QR Code para gerar a imagem a partir do copyAndPaste.","properties":{"txId":{"type":"string","description":"ID da transacao PIX (TxId)","example":"SAFEFY2025011512345678901234","uniqueKey":"data.pix.oneOf.0.txId","typeLabel":"string"},"copyAndPaste":{"type":"string","description":"Codigo PIX Copia e Cola (BR Code). Use este codigo para gerar a imagem do QR Code no seu frontend.","example":"00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890...","uniqueKey":"data.pix.oneOf.0.copyAndPaste","typeLabel":"string"},"expiresAt":{"type":"string","format":"date-time","description":"Data de expiracao do codigo PIX","example":"2025-01-15T15:30:00Z","uniqueKey":"data.pix.oneOf.0.expiresAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.pix.oneOf.0","typeLabel":"object"},{"type":"null","description":"Dados do PIX. A imagem do QR Code não é retornada - use uma biblioteca de QR Code para gerar a imagem a partir do copyAndPaste.","properties":{"txId":{"type":"string","description":"ID da transacao PIX (TxId)","example":"SAFEFY2025011512345678901234"},"copyAndPaste":{"type":"string","description":"Codigo PIX Copia e Cola (BR Code). Use este codigo para gerar a imagem do QR Code no seu frontend.","example":"00020126580014br.gov.bcb.pix0136a1b2c3d4-e5f6-7890-abcd-ef1234567890..."},"expiresAt":{"type":"string","format":"date-time","description":"Data de expiracao do codigo PIX","example":"2025-01-15T15:30:00Z"}},"uniqueKey":"data.pix.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.pix","typeLabel":"object | null"},"card":{"oneOf":[{"type":"object","properties":{"lastFour":{"type":"string","description":"Ultimos 4 digitos do cartao","example":"1234","uniqueKey":"data.card.oneOf.0.lastFour","typeLabel":"string"},"brand":{"type":"string","description":"Bandeira do cartao","example":"Visa","uniqueKey":"data.card.oneOf.0.brand","typeLabel":"string"},"installments":{"type":"integer","description":"Numero de parcelas","example":1,"uniqueKey":"data.card.oneOf.0.installments","typeLabel":"integer"},"authorizationCode":{"type":"string","description":"Codigo de autorizacao","example":"ABC123","uniqueKey":"data.card.oneOf.0.authorizationCode","typeLabel":"string"}},"uniqueKey":"data.card.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"lastFour":{"type":"string","description":"Ultimos 4 digitos do cartao","example":"1234"},"brand":{"type":"string","description":"Bandeira do cartao","example":"Visa"},"installments":{"type":"integer","description":"Numero de parcelas","example":1},"authorizationCode":{"type":"string","description":"Codigo de autorizacao","example":"ABC123"}},"uniqueKey":"data.card.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.card","typeLabel":"object | null"},"boleto":{"oneOf":[{"type":"object","properties":{"barcode":{"type":"string","description":"Codigo de barras","example":"23793.38128 60000.000003 00000.000400 1 84340000010000","uniqueKey":"data.boleto.oneOf.0.barcode","typeLabel":"string"},"digitableLine":{"type":"string","description":"Linha digitavel","example":"23793.38128 60000.000003 00000.000400 1 84340000010000","uniqueKey":"data.boleto.oneOf.0.digitableLine","typeLabel":"string"},"pdfUrl":{"type":"string","description":"URL do PDF do boleto","example":"https://api.safefypay.com.br/boleto/123456.pdf","uniqueKey":"data.boleto.oneOf.0.pdfUrl","typeLabel":"string"},"dueDate":{"type":"string","format":"date-time","description":"Data de vencimento","example":"2025-01-20T00:00:00Z","uniqueKey":"data.boleto.oneOf.0.dueDate","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"data.boleto.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"barcode":{"type":"string","description":"Codigo de barras","example":"23793.38128 60000.000003 00000.000400 1 84340000010000"},"digitableLine":{"type":"string","description":"Linha digitavel","example":"23793.38128 60000.000003 00000.000400 1 84340000010000"},"pdfUrl":{"type":"string","description":"URL do PDF do boleto","example":"https://api.safefypay.com.br/boleto/123456.pdf"},"dueDate":{"type":"string","format":"date-time","description":"Data de vencimento","example":"2025-01-20T00:00:00Z"}},"uniqueKey":"data.boleto.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.boleto","typeLabel":"object | null"}},"uniqueKey":"data","typeLabel":"object"},"message":{"oneOf":[{"type":"string","uniqueKey":"message.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"message.oneOf.1","typeLabel":"null"}],"uniqueKey":"message","typeLabel":"string | null"},"error":{"oneOf":[{"type":"object","properties":{"message":{"type":"string","description":"Mensagem de erro","example":"Token invalido ou expirado.","uniqueKey":"error.oneOf.0.message","typeLabel":"string"},"code":{"type":"string","description":"Codigo do erro","example":"unauthorized","uniqueKey":"error.oneOf.0.code","typeLabel":"string"}},"uniqueKey":"error.oneOf.0","typeLabel":"object"},{"type":"null","properties":{"message":{"type":"string","description":"Mensagem de erro","example":"Token invalido ou expirado."},"code":{"type":"string","description":"Codigo do erro","example":"unauthorized"}},"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"uniqueKey":"error","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"example":{"data":null,"message":null,"error":{"message":"Erro ao processar a transacao. Tente novamente.","code":"internal_error"}},"examples":{"Example":{"title":"Example","value":{"data":null,"message":null,"error":{"message":"Erro ao processar a transacao. Tente novamente.","code":"internal_error"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"d07cda11-4db3-44ec-8c53-a5a5d3b18ae3":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Token JWT obtido via /v1/auth/token","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"ad42bb95-9ee9-43f3-8b75-5b69e2293265":{"url":"https://api-payment.safefypay.com.br","description":"API de Pagamentos Safefy"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Token JWT obtido via /v1/auth/token","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Token JWT obtido via /v1/auth/token","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"safefypay","siteName":"Safefy Pay","title":"Create transaction - Safefy Pay","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"pt-BR":{"href":"/api-reference/transactions/create","matchLevel":1},"en":{"href":"/en/api-reference/transactions/create","matchLevel":0}}},"lastModified":"2026-11-02T23:37:10.766Z","originalFileLocation":"en/api-reference/transactions/create.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a new PIX, Boleto, or Credit Card charge\">\u003cmeta data-mint-head name=\"application-name\" content=\"Safefy Pay\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/safefypay/Hujngn-PhWIpRrHV/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/safefypay/Hujngn-PhWIpRrHV/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/safefypay/Hujngn-PhWIpRrHV/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/safefypay/Hujngn-PhWIpRrHV/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/safefypay/Hujngn-PhWIpRrHV/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/safefypay/Hujngn-PhWIpRrHV/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/safefypay/Hujngn-PhWIpRrHV/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/safefypay/Hujngn-PhWIpRrHV/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/safefypay/Hujngn-PhWIpRrHV/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create transaction - Safefy Pay\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new PIX, Boleto, or Credit Card charge\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Safefy Pay\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.safefypay.com.br/en/api-reference/transactions/create\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://safefypay.mintlify.site/_mintlify/api/og/v2?division=Transactions\u0026amp;title=Create+transaction\u0026amp;description=Create+a+new+PIX%2C+Boleto%2C+or+Credit+Card+charge\u0026amp;theme=0ad0c3184b06c52d6e48184f\u0026amp;signature=d3a36f88758a0c8e432ca67d07e49b54eeea03a8bc7c29ca3b19a3d75808f902\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create transaction - Safefy Pay\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new PIX, Boleto, or Credit Card charge\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://safefypay.mintlify.site/_mintlify/api/og/v2?division=Transactions\u0026amp;title=Create+transaction\u0026amp;description=Create+a+new+PIX%2C+Boleto%2C+or+Credit+Card+charge\u0026amp;theme=0ad0c3184b06c52d6e48184f\u0026amp;signature=d3a36f88758a0c8e432ca67d07e49b54eeea03a8bc7c29ca3b19a3d75808f902\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/safefypay/Hujngn-PhWIpRrHV/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Safefy Pay\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3b82f6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.safefypay.com.br/en/api-reference/transactions/create\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/api-reference/transactions/create.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.safefypay.com.br/en/api-reference/transactions/create\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://docs.safefypay.com.br/api-reference/transactions/create\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.safefypay.com.br/api-reference/transactions/create\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.safefypay.com.br/#organization\",\"name\":\"Safefy Pay\",\"url\":\"https://docs.safefypay.com.br\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/safefypay/-Bz3jDSg0a2tULm6/logo/light.svg?fit=max\u0026auto=format\u0026n=-Bz3jDSg0a2tULm6\u0026q=85\u0026s=582ff1fbb2198f44a03cf0083f79c7bb\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.safefypay.com.br#website\",\"name\":\"Safefy Pay\",\"url\":\"https://docs.safefypay.com.br\",\"publisher\":{\"@id\":\"https://docs.safefypay.com.br/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.safefypay.com.br/en/api-reference/transactions/create#webpage\",\"url\":\"https://docs.safefypay.com.br/en/api-reference/transactions/create\",\"name\":\"Create transaction\",\"description\":\"Create a new PIX, Boleto, or Credit Card charge\",\"dateModified\":\"2026-11-02T23:37:10.766Z\",\"isPartOf\":{\"@id\":\"https://docs.safefypay.com.br#website\"},\"breadcrumb\":{\"@id\":\"https://docs.safefypay.com.br/en/api-reference/transactions/create#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.safefypay.com.br/en/api-reference/transactions/create#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Transactions\",\"item\":\"https://docs.safefypay.com.br/en/api-reference/transactions\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create transaction\",\"item\":\"https://docs.safefypay.com.br/en/api-reference/transactions/create\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.safefypay.com.br/en/api-reference/transactions/create#apireference\",\"headline\":\"Create transaction\",\"name\":\"Create transaction\",\"description\":\"Create a new PIX, Boleto, or Credit Card charge\",\"url\":\"https://docs.safefypay.com.br/en/api-reference/transactions/create\",\"mainEntityOfPage\":{\"@id\":\"https://docs.safefypay.com.br/en/api-reference/transactions/create#webpage\"},\"dateModified\":\"2026-11-02T23:37:10.766Z\",\"publisher\":{\"@id\":\"https://docs.safefypay.com.br/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.safefypay.com.br#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Safefy Pay\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Safefy Pay\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/api-reference/transactions/create.md","siteName":"Safefy Pay","nav":{"global":{"anchors":[{"anchor":"Status","icon":"signal","href":"/en/status"},{"anchor":"Support","icon":"life-ring","href":"mailto:suporte@safefypay.com.br"}]},"languages":[{"language":"pt-BR","pages":[{"title":"pt-BR","href":"/api-reference/transactions/create"}]},{"language":"en","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/en"}]},{"tab":"API","groups":[{"group":"Authentication","pages":[{"title":"Generate token","openapi":"api-reference/openapi.json POST /v1/auth/token","href":"/en/api-reference/auth/token"}]},{"group":"Customers","pages":[{"title":"Customer","href":"/en/api-reference/customers/index"},{"title":"Create customer","openapi":"api-reference/openapi.json POST /v1/customers","href":"/en/api-reference/customers/create"},{"title":"List customers","openapi":"api-reference/openapi.json GET /v1/customers","href":"/en/api-reference/customers/list"},{"title":"Get customer","openapi":"api-reference/openapi.json GET /v1/customers/{id}","href":"/en/api-reference/customers/get"},{"title":"Update customer","openapi":"api-reference/openapi.json PATCH /v1/customers/{id}","href":"/en/api-reference/customers/update"}]},{"group":"Transactions","pages":[{"title":"Transaction","href":"/en/api-reference/transactions/index"},{"title":"Transaction webhooks","href":"/en/api-reference/transactions/webhooks"},{"title":"Generating PIX QR Code","description":"How to generate a QR Code image from the copyAndPaste field","href":"/en/api-reference/transactions/qr-code"},{"title":"Create transaction","openapi":"api-reference/openapi.json POST /v1/transactions","href":"/en/api-reference/transactions/create"},{"title":"Tokenize card","description":"Securely tokenize a credit card","openapi":"api-reference/openapi.json POST /v1/card-tokenize","href":"/en/api-reference/transactions/card-tokenize"},{"title":"International sales","href":"/en/api-reference/transactions/international"},{"title":"International sale methods","href":"/en/api-reference/transactions/international-methods"},{"title":"International card configuration","href":"/en/api-reference/transactions/international-card-config"},{"title":"Create international card payment","href":"/en/api-reference/transactions/international-card-payment"},{"title":"List transactions","openapi":"api-reference/openapi.json GET /v1/transactions","href":"/en/api-reference/transactions/list"},{"title":"Get transaction","openapi":"api-reference/openapi.json GET /v1/transactions/{transactionId}","href":"/en/api-reference/transactions/get"},{"title":"Simulate transaction","openapi":"api-reference/openapi.json POST /v1/transactions/{transactionId}/simulate","href":"/en/api-reference/transactions/simulate"}]},{"group":"Balance","pages":[{"title":"Balance","href":"/en/api-reference/balance/index"},{"title":"Get balance","openapi":"api-reference/openapi.json GET /v1/balance","href":"/en/api-reference/balance/get"}]},{"group":"Disputes","pages":[{"title":"Dispute object","href":"/en/api-reference/disputes/index"},{"title":"MED webhooks","href":"/en/api-reference/disputes/webhooks"},{"title":"List disputes","openapi":"api-reference/openapi.json GET /v1/disputes","href":"/en/api-reference/disputes/list"},{"title":"Get a dispute","openapi":"api-reference/openapi.json GET /v1/disputes/{id}","href":"/en/api-reference/disputes/get"},{"title":"Submit a dispute response","openapi":"api-reference/openapi.json PUT /v1/disputes/{id}/response","href":"/en/api-reference/disputes/respond"},{"title":"Add evidence","openapi":"api-reference/openapi.json POST /v1/disputes/{id}/evidences","href":"/en/api-reference/disputes/add-evidence"}]},{"group":"Cashouts","pages":[{"title":"Cashout","href":"/en/api-reference/cashouts/index"},{"title":"Cashout webhooks","href":"/en/api-reference/cashouts/webhooks"},{"title":"Create cashout","openapi":"api-reference/openapi.json POST /v1/cashouts","href":"/en/api-reference/cashouts/create"},{"title":"Create cashout account","openapi":"api-reference/openapi.json POST /v1/cashout-accounts","href":"/en/api-reference/cashouts/create-account"},{"title":"List cashouts","openapi":"api-reference/openapi.json GET /v1/cashouts","href":"/en/api-reference/cashouts/list"},{"title":"Get cashout","openapi":"api-reference/openapi.json GET /v1/cashouts/{id}","href":"/en/api-reference/cashouts/get"},{"title":"Cancel cashout","openapi":"api-reference/openapi.json POST /v1/cashouts/{id}/cancel","href":"/en/api-reference/cashouts/cancel"},{"title":"Simulate cashout","openapi":"api-reference/openapi.json POST /v1/cashouts/{id}/simulate","href":"/en/api-reference/cashouts/simulate"}]}]}]}]},"basePath":"","title":"Create transaction - Safefy Pay","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-_HcdDqS2.js","snippetPresets-CXnm-WO6.js","utils-Dg59J__o.js","style-to-object-BY3JEAdk.js","utils-D8TRpdk7.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-B6QaxWc5.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DeMZ-lcM.js","_Uint8Array-BjA2mcVW.js","isObject-FP1Yky1u.js","ApiExamples-cjPyMv63.js","usePlaygroundInputsStore-D7BWoaw4.js","shallow-Z1ceDNSG.js","isEqual-BObTuQrO.js","CodeSnippets-D1UZ1AE-.js","CodeSnippet-B373COAT.js","getApiPlaygroundDisplay-CfL-UuDS.js","Page-DuqezyvM.js","DynamicMarkdown-5yMTCLas.js","SectionHeading-BxT1HYfP.js","icon-DYJTTD3g.js","MethodPill-4AyycJeu.js","getPastedJson-Bp3WV6cN.js","Check2Icon-PhZu6Gry.js","axios-CsQoIw0U.js","Markdown-Dy9a8hT8.js","AssistantPageLink-87tSPwGm.js","dist-CXMB3QQU.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}