The parameter {{customer_sync_code}} is required to be include in the the request URL.
Request
Header Params
Content-Type
string
required
Example:
application/json
Authorization
string
required
Example:
Bearer {token get from endpoint (Authorization)}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location-g--request GET 'https://merchantapi-demo.bill24.io/instant_payment/{{customer_sync_code}}/get_payment_methods' \
--header'Content-Type: application/json' \
--header'Authorization: Bearer {token get from endpoint (Authorization)}'
Responses
🟢200Success
application/json
Body
code
string
optional
Response Code
message
string
optional
Response message in english
message_kh
string
optional
Response message in khmer
data
array [object {8}]
optional
Data object
id
string
optional
Payment method identity number
type
string
optional
Payment method type card , wallet , linked_account
name
string
optional
Payment method name
sub_title
string
optional
Payment method subtitle
sub_title_kh
string
optional
Payment method subtitle khmer
token
string
optional
Token for payment ( will expired in 2 hours )
is_default
boolean
optional
Is default payment method for that customer
logo
string
optional
payment method logo
Example
{"code":"000","message":"Success","message_kh":"ជោកជ័យ","data":[{"id":"xxxxx","type":"wallet","name":"Kouern Deav's Wallet(KHR)","sub_title":"Balance : 150.00 KHR","sub_title_kh":"សមតុល្យ : 150.00 KHR","token":"xxxxxx","is_default":true,"logo":""},{"id":"xxxxx","type":"card","name":"Kouern Deav's Visa card","sub_title":"Account No : **********3234","sub_title_kh":"លេខ account : **********3234","token":"xxxxxx","is_default":false,"logo":""}]}