Fetch Business Info
Fetch Business Info API endpoint for Sweeppea. POST account/business. Complete documentation with code examples in cURL, JavaScript, and Python.
POST
account/business
Description
This endpoint allows you to fetch business information from the user's profile. Use this to retrieve business-specific data programmatically through the Sweeppea API.
Code Examples
curl -X POST "https://api-v3.sweeppea.com/account/business" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
Response
200 OK
{
"Response": true,
"Data": {
"BusinessName": "string",
"BusinessTelephone": "string",
"BusinessAddress": "string",
"BusinessCity": "string",
"BusinessState": "string",
"BusinessZipCode": "string",
"BusinessCountry": "string",
"BusinessWebsite": "string",
"EIN": "string"
}
}
Error Responses
401 Unauthorized
{
"Response": false,
"Message": "Invalid or Missing Bearer Token",
"Code": 401
}
403 Forbidden
{
"Response": false,
"Message": "Invalid API Token",
"Code": 403
}
404 Not Found
{
"Response": false,
"Message": "User Profile Not Found",
"Code": 404
}