username:password
Authorization: Basic *****************
{
"active": true,
"line_items": [
{
"id": "string",
"quantity": "string"
}
],
"after_completion": {
"type": "redirect",
"hosted_confirmation": {
"custom_message": "string"
},
"redirect": {
"url": "string"
}
},
"billing_address_collection": "auto",
"metadata": {},
"phone_number_collection": {
"enabled": true
},
"shipping_address_collection": {
"allowed_countries": [
"string"
]
}
}
curl --location --request POST 'https://apitest.wooshpay.com/v1/payment_links/id' \
--header 'Accept;' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
"active": true,
"line_items": [
{
"id": "string",
"quantity": "string"
}
],
"after_completion": {
"type": "redirect",
"hosted_confirmation": {
"custom_message": "string"
},
"redirect": {
"url": "string"
}
},
"billing_address_collection": "auto",
"metadata": {},
"phone_number_collection": {
"enabled": true
},
"shipping_address_collection": {
"allowed_countries": [
"string"
]
}
}'
{
"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
}