Add Payment Method
POST/api/payment-methods
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| title | string | Mandatory Payment method title |
| description | string | optional Optional Payment method description |
curl -X POST "https://yoursite.com/api/payment-methods" \
-H "authtoken: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "title": "..." }' Success-Response:
HTTP/1.1 201 Created
{
"status": 200,
"messages": {"success": "Payment method add success"},
"id": 1
}