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
{
"amount_off": 0,
"currency": "string",
"duration": "forever",
"metadata": {},
"name": "string",
"percent_off": 0
}
Request samples
curl --location --request POST 'https://apitest.wooshpay.com/v1/coupons' \
--header 'Accept;' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
"amount_off": 0,
"currency": "string",
"duration": "forever",
"metadata": {},
"name": "string",
"percent_off": 0
}'
Responses
application/json {
"id": "string",
"amount_off": 0,
"currency": "string",
"duration": "forever",
"object": "string",
"created": 0,
"livemode": true,
"metadata": {},
"name": "string",
"percent_off": 0
}
Modified at 2024-12-10 11:41:10