Files
medusa-store/docs/api/store/paths/payment-collections_{id}_sessions.yaml
github-actions[bot] d93d337df7 chore(docs): Updated API Reference (#2903)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2022-12-26 16:30:38 +00:00

54 lines
1.5 KiB
YAML

post:
operationId: PostPaymentCollectionsSessions
summary: Manage a Payment Session
description: Manages Payment Sessions from Payment Collections.
x-authenticated: false
parameters:
- in: path
name: id
required: true
description: The ID of the Payment Collection.
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: ../components/schemas/StorePaymentCollectionSessionsReq.yaml
x-codeSamples:
- lang: JavaScript
label: JS Client
source:
$ref: >-
../code_samples/JavaScript/payment-collections_{id}_sessions/postundefined
- lang: Shell
label: cURL
source:
$ref: ../code_samples/Shell/payment-collections_{id}_sessions/postundefined
security:
- api_token: []
- cookie_auth: []
tags:
- PaymentCollection
responses:
'200':
description: OK
content:
application/json:
schema:
properties:
payment_collection:
$ref: ../components/schemas/PaymentCollection.yaml
'400':
$ref: ../components/responses/400_error.yaml
'401':
$ref: ../components/responses/unauthorized.yaml
'404':
$ref: ../components/responses/not_found_error.yaml
'409':
$ref: ../components/responses/invalid_state_error.yaml
'422':
$ref: ../components/responses/invalid_request_error.yaml
'500':
$ref: ../components/responses/500_error.yaml