# Buscar Link de Pagamento

## Buscar link de pagamento por UUID

> Retorna os dados de um link de pagamento específico

```json
{"openapi":"3.0.0","info":{"title":"API de Links de Pagamento v2","version":"2.0.0"},"servers":[{"url":"https://api.barte.com","description":"Servidor de produção"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-Token-Api"}},"schemas":{"PaymentLinkResponse":{"type":"object","required":["id","uuid","type","url"],"properties":{"id":{"type":"integer"},"uuid":{"type":"string","format":"uuid"},"type":{"type":"string","enum":["ORDER","SUBSCRIPTION","FAST_ORDER"]},"url":{"type":"string","format":"uri"},"scheduledDate":{"type":"string","format":"date"},"paymentOrder":{"$ref":"#/components/schemas/PaymentOrderLinkResponse"},"paymentSubscription":{"$ref":"#/components/schemas/PaymentSubscriptionLinkResponse"},"processed":{"type":"integer","format":"int32"},"enableAnchoring":{"type":"boolean"},"allowedPaymentMethods":{"type":"object","properties":{"pixMethod":{"type":"object"},"bankSlipMethod":{"type":"object"},"creditCardMethod":{"type":"object","properties":{"type":{"type":"string"}}}}},"paymentMethods":{"type":"array","items":{"type":"string"}},"enableBankSlip":{"type":"boolean"},"enableCreditCard":{"type":"boolean"},"enablePixPayment":{"type":"boolean"},"subSellerResponse":{"type":"array","items":{"type":"object"}},"idSeller":{"type":"integer"}}},"PaymentOrderLinkResponse":{"type":"object","required":["title","value","installments"],"properties":{"title":{"type":"string"},"description":{"type":"string"},"value":{"type":"number","format":"double"},"installments":{"type":"integer","format":"int32"},"customInstallmentsValues":{"type":"array","items":{"$ref":"#/components/schemas/CustomInstallmentValueResponse"}},"expirationDate":{"type":"string","format":"date-time"},"timer":{"type":"boolean"},"threeDSecureEnabled":{"type":"boolean"},"requiresLiabilityShift":{"type":"boolean"}}},"CustomInstallmentValueResponse":{"type":"object","properties":{"paymentMethod":{"type":"string","enum":["PIX","BANK_SLIP","CREDIT_CARD","CREDIT_CARD_EARLY_BUYER","CREDIT_CARD_EARLY_SELLER","DEBIT_CARD"]},"installments":{"type":"integer","format":"int32"}}},"PaymentSubscriptionLinkResponse":{"type":"object","required":["idPlan","type","value","valuePerMonth"],"properties":{"idPlan":{"type":"string","format":"uuid"},"type":{"type":"string","enum":["MONTHLY","SEMESTER","YEARLY"]},"value":{"type":"number","format":"double"},"valuePerMonth":{"type":"number","format":"double"}}},"Error":{"type":"object","properties":{"message":{"type":"string"},"details":{"type":"array","items":{"$ref":"#/components/schemas/ErrorDetail"}},"metadata":{"$ref":"#/components/schemas/Metadata"}}},"ErrorDetail":{"type":"object","properties":{"field":{"type":"string"},"message":{"type":"string"}}},"Metadata":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"method":{"type":"string"}}}}},"paths":{"/v2/payment-links/{uuid}":{"get":{"summary":"Buscar link de pagamento por UUID","description":"Retorna os dados de um link de pagamento específico","tags":["Links de Pagamento"],"parameters":[{"name":"uuid","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"UUID do link de pagamento"},{"name":"X-Token-Api","in":"header","required":true,"schema":{"type":"string"},"description":"Token de autenticação para acesso à API"},{"name":"Content-Type","in":"header","required":false,"schema":{"type":"string","enum":["application/json"]},"description":"Tipo de conteúdo da requisição"},{"name":"x-idempotency-key","in":"header","required":false,"schema":{"type":"string"},"description":"Chave de idempotência"},{"name":"x-ip-origin-request","in":"header","required":false,"schema":{"type":"string"},"description":"IP de origem da requisição"}],"responses":{"200":{"description":"Link de pagamento encontrado com sucesso","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentLinkResponse"}}}},"400":{"description":"Erro de validação","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Token inativo ou inexistente","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Acesso negado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Link de pagamento não encontrado","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Muitas requisições","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Erro interno do servidor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.barte.com/api-reference/links-de-pagamento/buscar-link-de-pagamento.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
