- Getting Started
- Auth
- Carts
- Create Payment SessionsPOST
- Refresh a Payment SessionPOST
- Create a CartPOST
- Complete a CartPOST
- Select a Payment SessionPOST
- Delete a Payment SessionDELETE
- Update a Payment SessionPOST
- Get a CartGET
- Update a CartPOST
- Add Shipping MethodPOST
- Update a Line ItemPOST
- Delete a Line ItemDELETE
- Add a Line ItemPOST
- Calculate Cart TaxesPOST
- Remove DiscountDELETE
- Customers
- Gift Cards
- Orders
- Order Edits
- Payment Collections
- Products
- Product Variants
- Product Tags
- Product Categories
- Product Collections
- Product Types
- Regions
- Returns
- Return Reasons
- Shipping Options
- Swaps
Manage Payment Sessions
POST
/store/payment-collections/{id}/sessions/batch
Payment Collections
sessions
array, it's deleted.Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.medusa-commerce.com/store/payment-collections//sessions/batch' \
--header 'Content-Type: application/json' \
--data-raw ''
Response Response Example
200 - Example 1
Request
Path Params
id
string
required
Body Params application/json
sessions
array [object {3}]
required
provider_id
string
required
amount
integer
required
session_id
string
optional
Examples
Responses
🟢200OK
application/json
Body
The payment collection's details.
payment_collection
object (Payment Collection)
required
id
string
required
Example:
paycol_01G8TJSYT9M6AVS5N4EMNFS1EK
description
string | null
required
amount
integer
required
authorized_amount
integer | null
required
region_id
string
required
Example:
reg_01G1G5V26T9H8Y0M4JNE3YGA4G
created_by
string
required
created_at
string <date-time>
required
updated_at
string <date-time>
required
deleted_at
string <date-time> | null
required
type
enum<string>
required
Allowed value:
order_edit
status
enum<string>
required
Allowed values:
not_paidawaitingauthorizedpartially_authorizedcanceled
currency_code
string
required
Example:
usd
metadata
object | null
required
Example:
{"car":"white"}
currency
object (Currency)
optional
payments
array[object (Payment) {19}]
optional
region
object (Region)
optional
payment_sessions
array[object (Payment Session) {13}]
optional
🟠400Client Error or Multiple Errors
🟠401User is not authorized. Must log in first
🟠404Not Found Error
🟠409Invalid State Error