Skip to content

Latest commit

 

History

History
120 lines (82 loc) · 3.87 KB

PaymentsApi.md

File metadata and controls

120 lines (82 loc) · 3.87 KB

swagger_client.PaymentsApi

All URIs are relative to https://api.facestore.local/v1

Method HTTP request Description
get_payment_by_id GET /payments/{id}/
get_payments GET /payments

get_payment_by_id

InlineResponse2005 get_payment_by_id(id)

Returns all payments from the system that the user has access to

Example

from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: APIKeyHeader
configuration = swagger_client.Configuration()
configuration.api_key['APIToken'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIToken'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PaymentsApi(swagger_client.ApiClient(configuration))
id = 789 # int | ID of payment

try:
    api_response = api_instance.get_payment_by_id(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentsApi->get_payment_by_id: %s\n" % e)

Parameters

Name Type Description Notes
id int ID of payment

Return type

InlineResponse2005

Authorization

APIKeyHeader

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_payments

InlineResponse2004 get_payments(includes=includes, limit=limit, order_by=order_by)

Returns all payments from the system that the user has access to

Example

from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: APIKeyHeader
configuration = swagger_client.Configuration()
configuration.api_key['APIToken'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIToken'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PaymentsApi(swagger_client.ApiClient(configuration))
includes = ['includes_example'] # list[str] | Include associated objects within response (optional)
limit = 56 # int | max records to return (optional)
order_by = ['order_by_example'] # list[str] | Specify the field to be sorted, examples:  - `?order_by=id|desc` - `?order_by=updated_at|desc,position|asc`  (optional)

try:
    api_response = api_instance.get_payments(includes=includes, limit=limit, order_by=order_by)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PaymentsApi->get_payments: %s\n" % e)

Parameters

Name Type Description Notes
includes list[str] Include associated objects within response [optional]
limit int max records to return [optional]
order_by list[str] Specify the field to be sorted, examples: - `?order_by=id desc` - `?order_by=updated_at

Return type

InlineResponse2004

Authorization

APIKeyHeader

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]