Business pay methods have two special params request that brings specific information, the attributes that are used for special requests are listed below:
- Business
- Pay method
Business
This param is used to obtain the Business information and paymethods with the Business
attribute.
An example to use this param is:
http://apiv4.ordering.co/v400/en/demo/business/41/paymethods?params=business,business_id
Business_id
is required to make this special request.
[
{
"id": 3,
"business_id": 41,
"business": {
"id": 41,
"name": "McBonalds en",
"email": "[email protected]",
"slug": "mcbonalds",
"schedule": [],
"description": "long description en",
"about": "short description english",
"logo": "https://res.cloudinary.com/ordering2/image/upload/v1523379984/vymo7gxbk73mms4kyz5l.jpg",
"header": "https://res.cloudinary.com/ordering2/image/upload/v1523379740/psz6waiyu4u2giom6grt.jpg",
"phone": "123123212123",
"cellphone": "123123212123",
"owner_id": 3,
"city_id": 1,
"address": "1450 5th Avenue, NY, New York, USA",
"address_notes": null,
"zipcode": null,
"location": {
"lat": 40.8019674,
"lng": -73.9457505,
"zipcode": -1,
"zoom": 15
},
"featured": false,
"timezone": "America/New_York",
"currency": "USD",
"food": true,
"alcohol": false,
"groceries": false,
"laundry": false,
"use_printer": false,
"printer_id": null,
"minimum": 0,
"delivery_price": 0,
"always_deliver": false,
"tax_type": 1,
"tax": 10,
"delivery_time": "2:0",
"pickup_time": "2:0",
"service_fee": 9,
"fixed_usage_fee": 1,
"percentage_usage_fee": 10,
"enabled": true
},
"paymethod": null
}
]
Paymethod
This param is used to obtain Business paymethods with only the paymethod
attribute.
An example to use this param is:
http://apiv4.ordering.co/v400/en/demo/business/41/paymethods?params=paymethod,paymethod_id
Business_id
is required to make this special request.
[
{
"id": 1,
"paymethod_id": 5,
"business": null,
"paymethod": {
"id": 5,
"name": "Authorize.Net",
"gateway": "authorize",
"enabled": true,
"deleted_at": null,
"created_at": "2018-07-19 16:20:54",
"updated_at": "2018-07-19 16:20:54"
}
},
...
]