- 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
Retrieve payment link
GET
/v1/payment_links/{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
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/payment_links/?members&reference&Type&_postman_listIndexKey=key&_postman_listAllowsMultipleValues'
Responses
🟢200OK
application/json
Body
id
string
optional
object
string
optional
active
boolean
optional
after_completion
object
optional
type
enum<string>
optional
Allowed values:
redirecthosted_confirmation
hosted_confirmation
object
optional
redirect
object
optional
billing_address_collection
enum<string>
optional
Allowed values:
autorequired
currency
string
optional
livemode
boolean
optional
metadata
object
optional
phone_number_collection
object
optional
enabled
boolean
optional
shipping_address_collection
object
optional
allowed_countries
array[string]
optional
url
string
optional
line_items
object
optional
object
string
optional
Default:
"list"
url
string
optional
has_more
boolean
optional
data
array [object {8}]
optional
created
integer
optional
Example
{
"id": "string",
"object": "string",
"active": true,
"after_completion": {
"type": "redirect",
"hosted_confirmation": {
"custom_message": "string"
},
"redirect": {
"url": "string"
}
},
"billing_address_collection": "auto",
"currency": "string",
"livemode": true,
"metadata": {},
"phone_number_collection": {
"enabled": true
},
"shipping_address_collection": {
"allowed_countries": [
"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"
}
]
},
"created": 0
}
Modified at 2023-01-06 13:41:17