Skip to content

Latest commit

 

History

History
67 lines (47 loc) · 1.23 KB

File metadata and controls

67 lines (47 loc) · 1.23 KB

Fetch Data Transfer

Retrieve data transfer information for the authenticated user's billing account.

Endpoint

GET /billing/transfer

Description

This endpoint allows you to fetch data transfer records. Use this to manage your billing data programmatically through the Sweeppea API.

Authentication

This endpoint requires Bearer token authentication via the Authorization header.

Code Examples

cURL

curl -X GET "https://api-v3.sweeppea.com/billing/transfer" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"

JavaScript

const response = await fetch('https://api-v3.sweeppea.com/billing/transfer', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  }
});

const data = await response.json();
console.log(data);

Python

import requests

url = "https://api-v3.sweeppea.com/billing/transfer"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
}

response = requests.get(url, headers=headers)
print(response.json())

Response

200 OK

{
  "success": true,
  "data": {},
  "message": "Operation completed successfully"
}