- 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
Create a Product
POST
/v1/products
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
Header Params
Accept
string
required
Default:
application/json
Content-Type
string
required
Default:
application/json
Body Params application/json
name
string
required
active
boolean
optional
description
string
optional
metadata
object
optional
url
string
optional
images
array[string]
optional
Example
{
"id": null,
"name": "taiwan fengli",
"active": true,
"description": "very delicious",
"metadata": {
"key1": "value1",
"key2": "value2"
},
"url": "www.baidu.com"
}
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 POST 'https://apitest.wooshpay.com/v1/products?members&reference&Type&_postman_listIndexKey=key&_postman_listAllowsMultipleValues' \
--data-raw '{
"id":null,
"name":"taiwan fengli",
"active":true,
"description":"very delicious",
"metadata":{
"key1":"value1",
"key2":"value2"
},
"url":"www.baidu.com"
}'
Responses
🟢200OK
application/json
Body
id
string
optional
object
string
optional
active
boolean
optional
created
integer
optional
description
string
optional
images
array[string]
optional
livemode
boolean
optional
metadata
object
optional
name
string
required
updated
integer
optional
url
string
optional
Example
{
"id": "string",
"object": "string",
"active": true,
"created": 0,
"description": "string",
"images": [
"string"
],
"livemode": true,
"metadata": {},
"name": "string",
"updated": 0,
"url": "string"
}
Modified at 2024-05-30 02:36:26