curl --request POST \
--url https://api.helpyousponsor.com/v1/admin/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"client_id": 1,
"name": "Setting Name",
"program_type": "contribution",
"currency_symbol": "$",
"duration": 365,
"sponsorship_amount": "10,20,50,60",
"sp_num": 100,
"processing_percentage": 2.9,
"info": "<p>sample</p>",
"text_front": "<p>sample</p>",
"text_profile": "<p>sd</p>",
"text_checkout": "<p>fs</p>",
"text_account": "<p>fs</p>",
"allow_email": true,
"show_payment": false,
"designations": true,
"login_box": true,
"stripe": false,
"checks": false,
"cash": false,
"display_percent": false,
"display_info": false,
"wire_transfer": false,
"hide_payment_method": false,
"hide_frequency": false,
"processing_fee": true,
"sorting": false,
"display_all": false,
"disable_program_link": false
}'
{
"message": "Settings Saved."
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Settings Saved
The response is of type object
.
curl --request POST \
--url https://api.helpyousponsor.com/v1/admin/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"client_id": 1,
"name": "Setting Name",
"program_type": "contribution",
"currency_symbol": "$",
"duration": 365,
"sponsorship_amount": "10,20,50,60",
"sp_num": 100,
"processing_percentage": 2.9,
"info": "<p>sample</p>",
"text_front": "<p>sample</p>",
"text_profile": "<p>sd</p>",
"text_checkout": "<p>fs</p>",
"text_account": "<p>fs</p>",
"allow_email": true,
"show_payment": false,
"designations": true,
"login_box": true,
"stripe": false,
"checks": false,
"cash": false,
"display_percent": false,
"display_info": false,
"wire_transfer": false,
"hide_payment_method": false,
"hide_frequency": false,
"processing_fee": true,
"sorting": false,
"display_all": false,
"disable_program_link": false
}'
{
"message": "Settings Saved."
}