Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,32 @@ Class | Method | HTTP request
- [TransactionProduct](docs/TransactionProduct.md)


## Documentation For Authorization


## oauth2

- **Type**: OAuth
- **Flow**: accessCode
- **Authorization URL**: `https://connect.squareup.com/oauth2/authorize?<PARAMETERS>`
- **Scopes**:
- **MERCHANT_PROFILE_READ**: GET endpoints related to a merchant's business and location entities. Almost all Connect API applications need this permission in order to obtain a merchant's location IDs
- **PAYMENTS_READ**: GET endpoints related to transactions and refunds
- **PAYMENTS_WRITE**: POST, PUT, and DELETE endpoints related to transactions and refunds. E-commerce applications must request this permission
- **CUSTOMERS_READ**: GET endpoints related to customer management
- **CUSTOMERS_WRITE**: POST, PUT, and DELETE endpoints related to customer management
- **SETTLEMENTS_READ**: GET endpoints related to settlements (deposits)
- **BANK_ACCOUNTS_READ**: GET endpoints related to a merchant's bank accounts
- **ITEMS_READ**: GET endpoints related to a merchant's item library
- **ITEMS_WRITE**: POST, PUT, and DELETE endpoints related to a merchant's item library
- **ORDERS_READ**: GET endpoints related to a merchant's Square online store.
- **ORDERS_WRITE**: POST, PUT, and DELETE endpoints related to a merchant's Square online store
- **EMPLOYEES_READ**: GET endpoints related to employee management
- **EMPLOYEES_WRITE**: POST, PUT, and DELETE endpoints related to employee management
- **TIMECARDS_READ**: GET endpoints related to employee timecards
- **TIMECARDS_WRITE**: POST, PUT, and DELETE endpoints related to employee timecards


## Contributing

Send bug reports, feature requests, and code contributions to the [API
Expand Down
1 change: 1 addition & 0 deletions docs/ErrorCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Name | Type
**PAYMENT_NOT_REFUNDABLE** | string
**INVALID_CARD_DATA** | string
**IDEMPOTENCY_KEY_REUSED** | string
**UNEXPECTED_VALUE** | string
**CARD_DECLINED** | string
**VERIFY_CVV_FAILURE** | string
**VERIFY_AVS_FAILURE** | string
Expand Down
3 changes: 3 additions & 0 deletions squareconnect/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ def __init__(self):
# Password for HTTP basic authentication
self.password = ""

# access token for OAuth
self.access_token = ""


# Logging Settings
self.logger = {}
Expand Down