All Downloads are FREE. Search and download functionalities are using the official Maven repository.

app.cybrid.cybrid_api_id.client.apis.CustomerTokensApi.kt Maven / Gradle / Ivy

There is a newer version: 0.122.72
Show newest version
package app.cybrid.cybrid_api_id.client.apis

import app.cybrid.cybrid_api_id.client.infrastructure.CollectionFormats.*
import retrofit2.http.*
import retrofit2.Response
import okhttp3.RequestBody

import app.cybrid.cybrid_api_id.client.models.CustomerTokenIdpModel
import app.cybrid.cybrid_api_id.client.models.ErrorResponseIdpModel
import app.cybrid.cybrid_api_id.client.models.PostCustomerTokenIdpModel

interface CustomerTokensApi {
    /**
     * Create customer access token
     * Creates a customer JWT access token.  Required scopes: **customers:write** and **customers:read**
     * Responses:
     *  - 201: Customer token created
     *  - 401: Unauthorized
     *  - 403: Forbidden
     *  - 422: Unprocessable Content
     *
     * @param postCustomerTokenIdpModel 
     * @return [CustomerTokenIdpModel]
     */
    @POST("api/customer_tokens")
    suspend fun createCustomerToken(@Body postCustomerTokenIdpModel: PostCustomerTokenIdpModel): Response

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy