Logo
maya API Documentation

Get payment methods

GET {{baseUrl}}/paymentmethods

This method must called after POST guest or POST paymentaddress because it depends on the customers billing details.
Service urls:
http://yourdomain.com/api/rest/paymentmethods
OR
http://yourdomain.com/index.php?route=rest/payment_method/payments

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
X-Oc-Session
string (Required) User session id
Accept
string




RESPONSES

status OK

{ "success": 1, "error": [ "Error description", "Error description" ], "data": {} }



Curl
curl -X GET 'https://api.opencart-api.com/api/rest/paymentmethods' -H 'X-Oc-Session: voluptate' -H 'Accept: application/json'

ENDPOINTS