UNPKG

@tennac-booking/sdk

Version:

OpenAPI client for @tennac-booking/sdk

64 lines (41 loc) 1.51 kB
# SumUpApi All URIs are relative to *http://localhost* |Method | HTTP request | Description| |------------- | ------------- | -------------| |[**sumupOauthCallback**](#sumupoauthcallback) | **GET** /api/sumup/oauth/callback | | # **sumupOauthCallback** > SumupOAuthCallbackResponse sumupOauthCallback() OAuth callback for SumUp. ### Example ```typescript import { SumUpApi, Configuration } from '@tennac-booking/sdk'; const configuration = new Configuration(); const apiInstance = new SumUpApi(configuration); let code: string; // (default to undefined) let state: string; // (default to undefined) const { status, data } = await apiInstance.sumupOauthCallback( code, state ); ``` ### Parameters |Name | Type | Description | Notes| |------------- | ------------- | ------------- | -------------| | **code** | [**string**] | | defaults to undefined| | **state** | [**string**] | | defaults to undefined| ### Return type **SumupOAuthCallbackResponse** ### Authorization No authorization required ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| |**200** | Connexion SumUp enregistrée | - | |**400** | Bad Request | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)