- 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
Refresh a Payment Session
POST
/store/payment-collections/{id}/sessions/{session_id}
Payment Collections
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.medusa-commerce.com/store/payment-collections//sessions/'
Response Response Example
200 - Example 1
Request
Path Params
id
string
required
session_id
string
required
Responses
🟢200OK
application/json
Body
payment_session
object (Payment Session)
required
id
string
required
Example:
ps_01G901XNSRM2YS3ASN9H5KG3FZ
cart_id
string | null
required
Example:
cart_01G8ZH853Y6TFXWPG5EYE81X63
provider_id
string
required
Example:
manual
is_selected
boolean | null
required
Example:
true
is_initiated
boolean
required
Default:
false
Example:
true
amount
integer | null
required
Example:
100
payment_authorized_at
string <date-time> | null
required
created_at
string <date-time>
required
updated_at
string <date-time>
required
status
enum<string>
required
pending
, and will eventually become authorized
. Payment Sessions may have the status of requires_more
to indicate that further actions are to be completed by the Customer.Allowed values:
authorizedpendingrequires_moreerrorcanceled
Example:
pending
data
object
required
Example:
{}
idempotency_key
string | null
required
cart
object (Cart)
optional
🟠400Client Error or Multiple Errors
🟠404Not Found Error
🟠409Invalid State Error
🟠422Invalid Request Error
🔴500Server Error
Modified at 2023-11-27 13:05:07