# Payments

Endpoints for payment-related features

## Get Payments

> Retrieve payment information and transaction history for WhatsApp payments.

```json
{"openapi":"3.1.0","info":{"title":"Messaging API","version":"1.38.1"},"tags":[{"name":"Payments","description":"Endpoints for payment-related features"}],"servers":[{"description":"Production server","url":"https://waba-v2.360dialog.io"}],"security":[{"D360-API-KEY":[]}],"components":{"securitySchemes":{"D360-API-KEY":{"description":"API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.","in":"header","name":"D360-API-KEY","type":"apiKey"}},"schemas":{"payments.GetPaymentsResponse":{"description":"Response payload containing payment and transaction information","properties":{"data":{"items":{"additionalProperties":{},"type":"object"},"type":"array","uniqueItems":false}},"type":"object"},"utils.ErrorResp":{"properties":{"error":{"type":"string"}},"type":"object"}}},"paths":{"/payments":{"get":{"description":"Retrieve payment information and transaction history for WhatsApp payments.","operationId":"get-payments","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/payments.GetPaymentsResponse"}}},"description":"Payments retrieved successfully"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/utils.ErrorResp"}}},"description":"Unauthorized"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/utils.ErrorResp"}}},"description":"Internal server error"}},"summary":"Get Payments","tags":["Payments"]}}}}
```
