Company External Accounts

Quick Reference

Method

Endpoint

Description

GET

/api/company/{companyId}/accounts/stripe/connecturl

POST

/api/company/{companyId}/accounts/stripe/completeconnection

DELETE

/api/company/{companyId}/accounts/stripe

GET /api/company/{companyId}/accounts/stripe/connecturl

Parameters:

Path Parameters:

  • companyId (string, path) (required): No description available

Query Parameters:

  • returnUri (string, query): No description available

Example Request:

from ABConnect import ABConnectAPI

# Initialize the API client
api = ABConnectAPI()

# Make the API call
response = api.raw.get(
    "/api/company/{companyId}/accounts/stripe/connecturl"
,
    companyId="ed282b80-54fe-4f42-bf1b-69103ce1f76c"

)

# Process the response
print(response)

Sample Response:

1{
2  "status": "success",
3  "data": {}
4}

POST /api/company/{companyId}/accounts/stripe/completeconnection

Parameters:

Path Parameters:

  • companyId (string, path) (required): No description available

Example Request:

from ABConnect import ABConnectAPI

# Initialize the API client
api = ABConnectAPI()

# Make the API call
response = api.raw.post(
    "/api/company/{companyId}/accounts/stripe/completeconnection"
,
    companyId="ed282b80-54fe-4f42-bf1b-69103ce1f76c"
,
    data=
    {
        "example": "data"
}

)

# Process the response
print(response)

Sample Response:

1{
2  "id": "789e0123-e89b-12d3-a456-426614174002",
3  "status": "created",
4  "message": "Resource created successfully"
5}

DELETE /api/company/{companyId}/accounts/stripe

Parameters:

Path Parameters:

  • companyId (string, path) (required): No description available

Example Request:

from ABConnect import ABConnectAPI

# Initialize the API client
api = ABConnectAPI()

# Make the API call
response = api.raw.delete(
    "/api/company/{companyId}/accounts/stripe"
,
    companyId="ed282b80-54fe-4f42-bf1b-69103ce1f76c"

)

# Process the response
print(response)

Sample Response:

1{
2  "status": "success",
3  "message": "Resource deleted successfully"
4}