APIs for Businesses
Home
APIs
  • Checkout/ Deeplink
  • Merchant Proxy
  • Bill24 Hosted
  • Auto Direct Debit
  • KHQR Integration Specification for API
  • Notification API
  • On Boarding Sub Biller API
Home
APIs
  • Checkout/ Deeplink
  • Merchant Proxy
  • Bill24 Hosted
  • Auto Direct Debit
  • KHQR Integration Specification for API
  • Notification API
  • On Boarding Sub Biller API
CHECKOUT/ DEEPLINKMerchant ProxyBill24 HostedAuto Direct DebitKHQR Integration Specification for APINotification APIPayment Method
CHECKOUT/ DEEPLINKMerchant ProxyBill24 HostedAuto Direct DebitKHQR Integration Specification for APINotification APIPayment Method
  1. Payment Method API
  • Payment Method API
    • Overview
    • Response Code
    • MOBILE SDKS
      • iOS SDK
      • Android SDK
    • Authorization
      POST
    • Create Customer
      POST
    • Get Payment Methods
      GET
    • Settle Payment
      POST
    • Get List bills
      GET
    • Get Wallet Balance
      POST
    • Get Transaction Detail
      POST
  • Activate Sub Biller API
    • Overview
    • Response Code
    • Authorization
      POST
    • Onboarding
      POST
    • Get Available Banks
      GET
    • Add Link Account
      POST
    • Verify Linked Bank Account
      POST
  1. Payment Method API

Create Customer

POST
https://merchantapi-demo.bill24.io/customer/create
This endpoint use to create customer Profile at bill24 side
If you choose to add wallets while creating a customer. The name and currency fields in the wallet will become required.

Request

Header Params
 Content-Type
string 
required
Example:
application/json
Authorization
string 
required
Example:
Bearer {token get from endpoint (Authorization)}
Body Params application/json
sync_code
string 
required
Identity code for customer at Biller side
name
string 
required
Customer's name
name_kh
string 
optional
Customer's name
phone
string 
optional
Customer's phone
email
string 
optional
Customer's email
wallet
array [object {2}] 
optional
Optional if you want to create wallet along when create
customer you can pass this information.(can create wallet with KHR currency )
name
string 
optional
Wallet name
currency
string 
optional
Wallet currency
Example
{
  "sync_code": "C001",
  "name": "Kouern Deav",
  "name_kh": "កឿនដៀវ",
  "phone": "081991210/077881701",
  "email": "deavkouern@gmail.com",
  "wallet": [
    {
      "name": "Kouern Deav's Wallet(KHR)",
      "currency": "KHR"
    }
  ]
}

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 --request POST 'https://merchantapi-demo.bill24.io/customer/create' \
--header 'Content-Type:  application/json' \
--header 'Authorization:  Bearer {token get from endpoint (Authorization)}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "sync_code": "C001",
    "name": "Kouern Deav",
    "name_kh": "កឿនដៀវ",
    "phone": "081991210/077881701",
    "email": "deavkouern@gmail.com",
    "wallet": [
        {
            "name": "Kouern Deav'\''s Wallet(KHR)",
            "currency": "KHR"
        }
    ]
}'

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
object 
optional
Data object
sync_code
string 
optional
Identity code for that customer at biller side
name
string 
optional
Customer's name
name_kh
string 
optional
Customer's name in khmer
phone
string 
optional
Customer's phone
email
string 
optional
Customer's email
wallet
array [object {2}] 
optional
Example
{
  "code": "000",
  "message": "Success",
  "message_kh": "ជោកជ័យ",
  "data": {
    "sync_code": "C001",
    "name": "Kouern Deav",
    "name_kh": "កឿនដៀវ",
    "phone": "081991210/077881701",
    "email": "customer@gmail.com",
    "wallet": [
      {
        "name": "Kouern Deav's Wallet(KHR)",
        "currency": "KHR"
      }
    ]
  }
}
Previous
Authorization
Next
Get Payment Methods