- 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 price
POST
/v1/prices
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
currency
string
required
product
string
optional
unit_amount
string
required
active
string
optional
metadata
object
optional
nickname
string
optional
product_data
object
optional
active
boolean
optional
description
string
optional
images
array[string]
optional
metadata
object
optional
name
string
required
url
string
optional
billing_scheme
enum<string>
optional
Allowed values:
per_unittiered
lookup_key
string
optional
recurring
object
optional
interval
enum<string>
required
Allowed values:
daymonthweekyear
interval_count
string
optional
usage_type
enum<string>
optional
Allowed value:
licensed
Example
{
"currency": "string",
"product": "string",
"unit_amount": "string",
"active": "string",
"metadata": {},
"nickname": "string",
"product_data": {
"active": true,
"description": "string",
"images": [
"string"
],
"metadata": {},
"name": "string",
"url": "string"
},
"billing_scheme": "per_unit",
"lookup_key": "string",
"recurring": {
"interval": "day",
"interval_count": "string",
"usage_type": "licensed"
}
}
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/prices?members&reference&Type&_postman_listIndexKey=key&_postman_listAllowsMultipleValues' \
--data-raw ''
Responses
🟢200OK
application/json
Body
id
string
optional
object
string
optional
active
boolean
optional
billing_scheme
enum<string>
optional
Allowed values:
per_unittiered
created
integer
optional
currency
string
optional
livemode
boolean
optional
lookup_key
string
optional
metadata
object
optional
nickname
string
optional
product
string
optional
type
enum<string>
optional
Allowed values:
one_timerecurring
unit_amount
integer
optional
recurring
object
optional
interval
enum<string>
required
Allowed values:
dayweekmonthyear
interval_count
integer
optional
usage_type
enum<string>
optional
Allowed value:
licensed
Example
{
"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"
}
}
Modified at 2024-05-29 12:07:42