- API Introduction
- Error Code
- Payment Intents
- Charges
- Payment Methods
- Refunds
- Webhooks
- Events
- Files
- Disputes
- Payouts
- Balance
- Products
- Prices
- Payment Links
- Checkout
- Customers
- Setup Intents
- Invoices
- Invoice Items
- Invoice Line Item
- Subscriptions
- Subscription Items
- Issuing
- Authorizations
- Cardholders
- Cards
- Transactions
- Coupons
- Promotion Code
- Accounts
Retreive a Session
GET
/v1/checkout/sessions/{id}
Request
Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string {{Username}}:{{Password}}Example:
Authorization: Basic YWRtaW46MTIzNDU2
Path Params
id
string
required
Example:
cs_1795782989284638720
Header Params
Accept
string
required
Default:
application/json
Content-Type
string
required
Default:
application/json
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://apitest.wooshpay.com/v1/checkout/sessions/cs_1795782989284638720?members&reference&Type&_postman_listIndexKey=key&_postman_listAllowsMultipleValues'
Responses
🟢200OK
application/json
Body
id
string
optional
object
string
optional
amount_subtotal
integer
optional
amount_total
integer
optional
billing_address_collection
enum<string>
optional
Allowed values:
requiredauto
cancel_url
string
optional
client_reference_id
string
optional
created
integer
optional
currency
string
optional
customer
string
optional
customer_email
string
optional
expires_at
integer
optional
livemode
boolean
optional
metadata
object
optional
mode
string
optional
payment_intent
string
optional
payment_link
string
optional
payment_method_options
object (Payment Method Options)
optional
card
object
optional
alipayplus
object
optional
alipay_hk
object
optional
alipay
object
optional
wechat_pay
object
optional
sepa_debit
object
optional
akulaku
object
optional
truemoney
object
optional
kakaopay
object
optional
shopeepay
object
optional
dana
object
optional
pix
object
optional
payment_method_types
array[string]
optional
payment_status
string
optional
phone_number_collection
object
optional
enabled
boolean
optional
shipping_address_collection
object
optional
allowed_countries
array[string]
optional
shipping
object
optional
address
object (Address)
optional
carrier
string
optional
name
string
optional
phone
string
optional
tracking_number
string
optional
status
enum<string>
optional
Allowed values:
opencompleteexpired
success_url
string
optional
url
string
optional
line_items
object
optional
object
string
optional
Default:
"list"
url
string
optional
has_more
boolean
optional
data
array [object {10}]
optional
customer_creation
enum<string>
optional
Allowed values:
alwaysif_required
customer_details
object
optional
address
object
optional
email
string | null
optional
name
string | null
optional
phone
string | null
optional
Example
{
"id": "string",
"object": "string",
"amount_subtotal": 0,
"amount_total": 0,
"billing_address_collection": "required",
"cancel_url": "string",
"client_reference_id": "string",
"created": 0,
"currency": "string",
"customer": "string",
"customer_email": "string",
"expires_at": 0,
"livemode": true,
"metadata": {},
"mode": "string",
"payment_intent": "string",
"payment_link": "string",
"payment_method_options": {
"card": {
"request_three_d_secure": "any",
"setup_future_usage": "on_session",
"capture_method": "string",
"tax_id": "string"
},
"alipayplus": {
"terminal_type": "APP",
"os_type": "IOS"
},
"alipay_hk": {
"terminal_type": "APP",
"os_type": "IOS"
},
"alipay": {
"terminal_type": "APP",
"os_type": "IOS"
},
"wechat_pay": {
"terminal_type": "WEB",
"client_ip": "string",
"os_type": "IOS",
"openid": "string"
},
"sepa_debit": {},
"akulaku": {
"terminal_type": "WEB",
"os_type": "IOS"
},
"truemoney": {
"terminal_type": "WEB",
"os_type": "IOS"
},
"kakaopay": {
"terminal_type": "WEB",
"os_type": "IOS"
},
"shopeepay": {
"terminal_type": "string",
"os_type": "string"
},
"dana": {
"terminal_type": "string",
"os_type": "string"
},
"pix": {
"tax_id": "string"
}
},
"payment_method_types": [
"string"
],
"payment_status": "string",
"phone_number_collection": {
"enabled": true
},
"shipping_address_collection": {
"allowed_countries": [
"string"
]
},
"shipping": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"carrier": "string",
"name": "string",
"phone": "string",
"tracking_number": "string"
},
"status": "open",
"success_url": "string",
"url": "string",
"line_items": {
"object": "\"list\"",
"url": "string",
"has_more": true,
"data": [
{
"id": "string",
"object": "string",
"amount_subtotal": "string",
"amount_total": "string",
"currency": "string",
"description": "string",
"price": {
"id": "string",
"object": "string",
"active": true,
"billing_scheme": "per_unit",
"created": 0,
"currency": "string",
"livemode": true,
"lookup_key": "string",
"metadata": {},
"nickname": "string",
"product": "string",
"type": "one_time",
"unit_amount": 0,
"recurring": {
"interval": "day",
"interval_count": 0,
"usage_type": "licensed"
},
"tiers": [
{
"up_to": "string",
"flat_amount": "string",
"unit_amount": "string"
}
]
},
"quantity": "string",
"discounts": [
{
"id": "string",
"object": "string",
"checkout_session": "string",
"coupon": {
"id": "string",
"amount_off": 0,
"currency": "string",
"duration_in_days": "string",
"object": "string",
"created": 0,
"livemode": true,
"metadata": {},
"name": "string",
"percent_off": 0,
"max_redemptions": 0,
"redeem_by": 0,
"times_redeemed": 0,
"valid": true,
"currency_options": {
"<currency>.amount_off": 0
}
},
"customer": "string",
"start": 0,
"end": null,
"promotion_code": null,
"subscription": null
}
],
"amount_discount": 0
}
]
},
"customer_creation": "always",
"customer_details": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"email": "string",
"name": "string",
"phone": "string"
}
}
Modified at 2024-05-29 12:46:15