Skip to content

Private

Get Payment

POST /api/v1/payment/private/payment/{payment_id}/update

Response

Payment

{
    "status": "awaiting",
    "price": 55.12,
    "currency": "string",
    "methodId": 1234,
    "coachId": "a344da16-c4a3-46ea-85b8-67cb58853973",
    "clientId": "26ccf2ad-87e8-4c04-86d6-9ddf6f1bc140",
    "serviceId": "8f3cb0ed-fdd3-4ddf-92ff-9e9472bb23b9",
    "clientSecret": "string",
    "checkout": "object"
}

Payment: {'title': 'Payment', 'required': ['price', 'currency', 'methodId', 'coachId', 'clientId', 'serviceId'], 'type': 'object', 'properties': {'status': {'title': 'Status', 'maxLength': 40, 'type': 'string', 'description': 'awaiting: awaiting
checkout: checkout
review: review
received: received
canceled: canceled
failed: failed
refund: refund
delivered: delivered
deleted: deleted', 'default': 'awaiting'}, 'price': {'title': 'Price', 'type': 'number'}, 'currency': {'title': 'Currency', 'maxLength': 10, 'type': 'string'}, 'methodId': {'title': 'Methodid', 'type': 'integer'}, 'coachId': {'title': 'Coachid', 'type': 'string', 'format': 'uuid'}, 'clientId': {'title': 'Clientid', 'type': 'string', 'format': 'uuid'}, 'serviceId': {'title': 'Serviceid', 'type': 'string', 'format': 'uuid'}, 'clientSecret': {'title': 'Clientsecret', 'type': 'string'}, 'checkout': {'title': 'Checkout', 'type': 'object'}}, 'additionalProperties': False, 'description': 'The Session model', 'json': ' {\n "status": "awaiting",\n "price": 55.12,\n "currency": "string",\n "methodId": 1234,\n "coachId": "a344da16-c4a3-46ea-85b8-67cb58853973",\n "clientId": "26ccf2ad-87e8-4c04-86d6-9ddf6f1bc140",\n "serviceId": "8f3cb0ed-fdd3-4ddf-92ff-9e9472bb23b9",\n "clientSecret": "string",\n "checkout": "object"\n }'}

status string default: awaiting awaiting: awaiting
checkout: checkout
review: review
received: received
canceled: canceled
failed: failed
refund: refund
delivered: delivered
deleted: deleted

price number

currency string

methodId integer

coachId string (uuid)

clientId string (uuid)

serviceId string (uuid)

clientSecret string

checkout object

HTTPValidationError

{
    "detail": "array"
}

HTTPValidationError: {'title': 'HTTPValidationError', 'type': 'object', 'properties': {'detail': {'title': 'Detail', 'type': 'array', 'items': {'$ref': '#/components/schemas/ValidationError'}}}, 'json': ' {\n "detail": "array"\n }'}

detail array


Code sample

1
2
3
4
import requests
r = requests.post("https://api.stretch.com/api/v1/payment/private/payment/{payment_id}/update")
if r.status_code == 200:
    print(r.json())
curl "https://api.stretch.com/api/v1/payment/private/payment/{payment_id}/update"
stretch "https://api.stretch.com/api/v1/payment/private/payment/{payment_id}/update"

Cancel Payment

POST /api/v1/payment/private/payment/{payment_id}/cancel

Response

Payment

{
    "status": "awaiting",
    "price": 55.12,
    "currency": "string",
    "methodId": 1234,
    "coachId": "fbebd1f2-4faf-4e18-886c-065e28604948",
    "clientId": "1568648c-10ba-4ead-b19a-8f711282907d",
    "serviceId": "8b9625e6-a3bb-45e8-9f1a-69acec3ae286",
    "clientSecret": "string",
    "checkout": "object"
}

Payment: {'title': 'Payment', 'required': ['price', 'currency', 'methodId', 'coachId', 'clientId', 'serviceId'], 'type': 'object', 'properties': {'status': {'title': 'Status', 'maxLength': 40, 'type': 'string', 'description': 'awaiting: awaiting
checkout: checkout
review: review
received: received
canceled: canceled
failed: failed
refund: refund
delivered: delivered
deleted: deleted', 'default': 'awaiting'}, 'price': {'title': 'Price', 'type': 'number'}, 'currency': {'title': 'Currency', 'maxLength': 10, 'type': 'string'}, 'methodId': {'title': 'Methodid', 'type': 'integer'}, 'coachId': {'title': 'Coachid', 'type': 'string', 'format': 'uuid'}, 'clientId': {'title': 'Clientid', 'type': 'string', 'format': 'uuid'}, 'serviceId': {'title': 'Serviceid', 'type': 'string', 'format': 'uuid'}, 'clientSecret': {'title': 'Clientsecret', 'type': 'string'}, 'checkout': {'title': 'Checkout', 'type': 'object'}}, 'additionalProperties': False, 'description': 'The Session model', 'json': ' {\n "status": "awaiting",\n "price": 55.12,\n "currency": "string",\n "methodId": 1234,\n "coachId": "fbebd1f2-4faf-4e18-886c-065e28604948",\n "clientId": "1568648c-10ba-4ead-b19a-8f711282907d",\n "serviceId": "8b9625e6-a3bb-45e8-9f1a-69acec3ae286",\n "clientSecret": "string",\n "checkout": "object"\n }'}

status string default: awaiting awaiting: awaiting
checkout: checkout
review: review
received: received
canceled: canceled
failed: failed
refund: refund
delivered: delivered
deleted: deleted

price number

currency string

methodId integer

coachId string (uuid)

clientId string (uuid)

serviceId string (uuid)

clientSecret string

checkout object

HTTPValidationError

{
    "detail": "array"
}

HTTPValidationError: {'title': 'HTTPValidationError', 'type': 'object', 'properties': {'detail': {'title': 'Detail', 'type': 'array', 'items': {'$ref': '#/components/schemas/ValidationError'}}}, 'json': ' {\n "detail": "array"\n }'}

detail array


Code sample

1
2
3
4
import requests
r = requests.post("https://api.stretch.com/api/v1/payment/private/payment/{payment_id}/cancel")
if r.status_code == 200:
    print(r.json())
curl "https://api.stretch.com/api/v1/payment/private/payment/{payment_id}/cancel"
stretch "https://api.stretch.com/api/v1/payment/private/payment/{payment_id}/cancel"

Update User

POST /api/v1/payment/private/user/{user_id}/update

Response

Payment

{
    "status": "awaiting",
    "price": 55.12,
    "currency": "string",
    "methodId": 1234,
    "coachId": "06bb2e33-83b8-4184-a513-a22923dbe378",
    "clientId": "86dffe5f-c9ba-4895-9e8d-6805ecbffbac",
    "serviceId": "bb3be41e-28d3-4b2e-bb19-9045cb988696",
    "clientSecret": "string",
    "checkout": "object"
}

Payment: {'title': 'Payment', 'required': ['price', 'currency', 'methodId', 'coachId', 'clientId', 'serviceId'], 'type': 'object', 'properties': {'status': {'title': 'Status', 'maxLength': 40, 'type': 'string', 'description': 'awaiting: awaiting
checkout: checkout
review: review
received: received
canceled: canceled
failed: failed
refund: refund
delivered: delivered
deleted: deleted', 'default': 'awaiting'}, 'price': {'title': 'Price', 'type': 'number'}, 'currency': {'title': 'Currency', 'maxLength': 10, 'type': 'string'}, 'methodId': {'title': 'Methodid', 'type': 'integer'}, 'coachId': {'title': 'Coachid', 'type': 'string', 'format': 'uuid'}, 'clientId': {'title': 'Clientid', 'type': 'string', 'format': 'uuid'}, 'serviceId': {'title': 'Serviceid', 'type': 'string', 'format': 'uuid'}, 'clientSecret': {'title': 'Clientsecret', 'type': 'string'}, 'checkout': {'title': 'Checkout', 'type': 'object'}}, 'additionalProperties': False, 'description': 'The Session model', 'json': ' {\n "status": "awaiting",\n "price": 55.12,\n "currency": "string",\n "methodId": 1234,\n "coachId": "06bb2e33-83b8-4184-a513-a22923dbe378",\n "clientId": "86dffe5f-c9ba-4895-9e8d-6805ecbffbac",\n "serviceId": "bb3be41e-28d3-4b2e-bb19-9045cb988696",\n "clientSecret": "string",\n "checkout": "object"\n }'}

status string default: awaiting awaiting: awaiting
checkout: checkout
review: review
received: received
canceled: canceled
failed: failed
refund: refund
delivered: delivered
deleted: deleted

price number

currency string

methodId integer

coachId string (uuid)

clientId string (uuid)

serviceId string (uuid)

clientSecret string

checkout object

HTTPValidationError

{
    "detail": "array"
}

HTTPValidationError: {'title': 'HTTPValidationError', 'type': 'object', 'properties': {'detail': {'title': 'Detail', 'type': 'array', 'items': {'$ref': '#/components/schemas/ValidationError'}}}, 'json': ' {\n "detail": "array"\n }'}

detail array


Code sample

1
2
3
4
import requests
r = requests.post("https://api.stretch.com/api/v1/payment/private/user/{user_id}/update")
if r.status_code == 200:
    print(r.json())
curl "https://api.stretch.com/api/v1/payment/private/user/{user_id}/update"
stretch "https://api.stretch.com/api/v1/payment/private/user/{user_id}/update"

Send User Email

POST /api/v1/notification/private/email/{user_id}/verification

Response

HTTPValidationError

{
    "detail": "array"
}

HTTPValidationError: {'title': 'HTTPValidationError', 'type': 'object', 'properties': {'detail': {'title': 'Detail', 'type': 'array', 'items': {'$ref': '#/components/schemas/ValidationError'}}}, 'json': ' {\n "detail": "array"\n }'}

detail array


Code sample

1
2
3
4
import requests
r = requests.post("https://api.stretch.com/api/v1/notification/private/email/{user_id}/verification")
if r.status_code == 200:
    print(r.json())
curl "https://api.stretch.com/api/v1/notification/private/email/{user_id}/verification"
stretch "https://api.stretch.com/api/v1/notification/private/email/{user_id}/verification"

Send User Email

POST /api/v1/notification/private/email/{user_id}/session/{group_id}/booking

Response

HTTPValidationError

{
    "detail": "array"
}

HTTPValidationError: {'title': 'HTTPValidationError', 'type': 'object', 'properties': {'detail': {'title': 'Detail', 'type': 'array', 'items': {'$ref': '#/components/schemas/ValidationError'}}}, 'json': ' {\n "detail": "array"\n }'}

detail array


Code sample

1
2
3
4
import requests
r = requests.post("https://api.stretch.com/api/v1/notification/private/email/{user_id}/session/{group_id}/booking")
if r.status_code == 200:
    print(r.json())
curl "https://api.stretch.com/api/v1/notification/private/email/{user_id}/session/{group_id}/booking"
stretch "https://api.stretch.com/api/v1/notification/private/email/{user_id}/session/{group_id}/booking"

Send Session Approve Email Url

POST /api/v1/notification/private/email/{user_id}/session/{session_id}/approve

Response

HTTPValidationError

{
    "detail": "array"
}

HTTPValidationError: {'title': 'HTTPValidationError', 'type': 'object', 'properties': {'detail': {'title': 'Detail', 'type': 'array', 'items': {'$ref': '#/components/schemas/ValidationError'}}}, 'json': ' {\n "detail": "array"\n }'}

detail array


Code sample

1
2
3
4
import requests
r = requests.post("https://api.stretch.com/api/v1/notification/private/email/{user_id}/session/{session_id}/approve")
if r.status_code == 200:
    print(r.json())
curl "https://api.stretch.com/api/v1/notification/private/email/{user_id}/session/{session_id}/approve"
stretch "https://api.stretch.com/api/v1/notification/private/email/{user_id}/session/{session_id}/approve"

Send Session Cancel Email Url

POST /api/v1/notification/private/email/{user_id}/session/{session_id}/cancel

Response

HTTPValidationError

{
    "detail": "array"
}

HTTPValidationError: {'title': 'HTTPValidationError', 'type': 'object', 'properties': {'detail': {'title': 'Detail', 'type': 'array', 'items': {'$ref': '#/components/schemas/ValidationError'}}}, 'json': ' {\n "detail": "array"\n }'}

detail array


Code sample

1
2
3
4
import requests
r = requests.post("https://api.stretch.com/api/v1/notification/private/email/{user_id}/session/{session_id}/cancel")
if r.status_code == 200:
    print(r.json())
curl "https://api.stretch.com/api/v1/notification/private/email/{user_id}/session/{session_id}/cancel"
stretch "https://api.stretch.com/api/v1/notification/private/email/{user_id}/session/{session_id}/cancel"

Send Session Decline Email Url

POST /api/v1/notification/private/email/{user_id}/session/{session_id}/decline

Response

HTTPValidationError

{
    "detail": "array"
}

HTTPValidationError: {'title': 'HTTPValidationError', 'type': 'object', 'properties': {'detail': {'title': 'Detail', 'type': 'array', 'items': {'$ref': '#/components/schemas/ValidationError'}}}, 'json': ' {\n "detail": "array"\n }'}

detail array


Code sample

1
2
3
4
import requests
r = requests.post("https://api.stretch.com/api/v1/notification/private/email/{user_id}/session/{session_id}/decline")
if r.status_code == 200:
    print(r.json())
curl "https://api.stretch.com/api/v1/notification/private/email/{user_id}/session/{session_id}/decline"
stretch "https://api.stretch.com/api/v1/notification/private/email/{user_id}/session/{session_id}/decline"

Send Session Dispute Coach Email Url

POST /api/v1/notification/private/email/{user_id}/session/{session_id}/dispute

Response

HTTPValidationError

{
    "detail": "array"
}

HTTPValidationError: {'title': 'HTTPValidationError', 'type': 'object', 'properties': {'detail': {'title': 'Detail', 'type': 'array', 'items': {'$ref': '#/components/schemas/ValidationError'}}}, 'json': ' {\n "detail": "array"\n }'}

detail array


Code sample

1
2
3
4
import requests
r = requests.post("https://api.stretch.com/api/v1/notification/private/email/{user_id}/session/{session_id}/dispute")
if r.status_code == 200:
    print(r.json())
curl "https://api.stretch.com/api/v1/notification/private/email/{user_id}/session/{session_id}/dispute"
stretch "https://api.stretch.com/api/v1/notification/private/email/{user_id}/session/{session_id}/dispute"