Updates the specified price by setting the values of the parameters passed. Any parameters not provided are left unchanged.
Request
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 *****************
Body Params application/json
{
"active": true,
"metadata": "string",
"nickname": "string",
"lookup_key": "string"
}
Request samples
curl --location --request POST 'https://apitest.wooshpay.com/v1/prices/' \
--header 'Accept;' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
"active": true,
"metadata": "string",
"nickname": "string",
"lookup_key": "string"
}'
Responses
application/json {
"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,
"tiers": [
{
"up_to": "string",
"flat_amount": "string",
"unit_amount": "string"
}
]
}
Modified at 2023-01-06 13:41:50