Payment

Contain data reffered to payment method.


Receive a list of all Payment Methods

Query parameters:
  • fields - list of fields returning in response
  • limit - number of returned shipping (default: 50)
  • page - currently displayed page (default: 1)
  • is_active - filter with payments depending on it's activity
GET /services/payment

Returns all payment methods

HTTP/1.1 200 OK
{
	"payments": [
		{
			"id" : "109",
			"name" : "Bank Transfer",
			"is_active" : 1,
			"position" : 1,
			"is_default" : 0,
			"channel" : "",
			"msg_body" : "Thank You for Your payment.",
			"email_template" : 23,
			"created_at" : "2012-06-04 10:12:25",
			"updated_at" : "2012-06-04 10:12:25",
		},
		{
			"id" : "115",
			"title" : "Credit Card",
			"is_active" : 1,
			"position" : 2,
			"is_default" : 1,
			"channel" : "braintree",
			"msg_body" : "Thank You for Your payment.",
			"email_template" : 17,
			"created_at" : "2012-06-04 14:23:54",
			"updated_at" : "2012-06-04 14:23:54",
		},
	],
}

Receive a count of all Payment Methods

Query parameters:
  • is_active - filter with shipping depending on it's activity
GET /services/payment/count

Receive a count of all Payment Methods

HTTP/1.1 200 OK
{
    "count": 4
}

Receive a single Payment Method

Query parameters:
  • fields - list of fields returning in response
GET services/payment/{id}

Receive a single Payment Method

Response
HTTP/1.1 200 OK
{
	"payment": {
		"id" : "109",
		"name" : "Bank Transfer",
		"is_active" : 1,
		"position" : 1,
		"is_default" : 0,
		"channel" : "",
		"msg_body" : "Thank You for Your payment.",
		"email_template" : 23,
		"created_at" : "2012-06-04 10:12:25",
		"updated_at" : "2012-06-04 10:12:25",
	},
}