Add Payment Method

POST/api/payment-methods

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
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
}
MethodPOST
Path/api/payment-methods
GroupPayment Methods
Sincev1.0.0
Defined inRestApi/Controllers/PaymentMethodsController.php