
🇬🇧English

🇬🇧English
- Openapi-EN-US
- Read before development
- GetAccessToken
- Qris
- EWallet
- VirtualAccount
- Convenient store
- APIS Ayolinx Provided To Merchant
- APIS Need Merchant to Provid Copy
Create retail transaction
Developing
POST
/v1.0/retail/create
Request
Body Params application/json
partnerReferenceNo
stringÂ
required
validUpTo
stringÂ
required
customerName
stringÂ
required
customerEmail
stringÂ
required
customerPhone
stringÂ
optional
amount
objectÂ
required
currency
stringÂ
required
value
stringÂ
required
urlParams
array [object {2}]Â
optional
url
stringÂ
required
type
stringÂ
required
NOTIFICATION
additionalInfo
objectÂ
required
channel
stringÂ
required
RETAIL_PEGADAIAN
RETAIL_POS_INDONESIA
RETAIL_ALFAMIDI
RETAIL_DANDAN
Example
{
"partnerReferenceNo": "string",
"validUpTo": "string",
"customerName": "string",
"customerEmail": "string",
"customerPhone": "string",
"amount": {
"currency": "string",
"value": "string"
},
"urlParams": [
{
"url": "string",
"type": "string"
}
],
"additionalInfo": {
"channel": "string"
}
}
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 'http://sandbox.dev.ayolinx.id:9080/v1.0/retail/create' \
--header 'Content-Type: application/json' \
--data-raw '{
"partnerReferenceNo": "string",
"validUpTo": "string",
"customerName": "string",
"customerEmail": "string",
"customerPhone": "string",
"amount": {
"currency": "string",
"value": "string"
},
"urlParams": [
{
"url": "string",
"type": "string"
}
],
"additionalInfo": {
"channel": "string"
}
}'
Responses
🟢200Success
application/json
Body
responseCode
stringÂ
required
responseMessage
stringÂ
required
partnerReferenceNo
stringÂ
required
expiryDate
stringÂ
required
vaNumber
stringÂ
required
paymentUrl
stringÂ
required
Example
{
"responseCode": "00",
"responseMessage": "Successful",
"partnerReferenceNo": "ei29dh29ee233UE383hf29hr",
"expiryDate": "2024-09-12T12:55:00+07:00",
"vaNumber": "021113791978",
"paymentUrl": "https://passport.duitku.com/topup/topupdirectv2.aspx?ref=FT25ONEXEAPGG3C043O"
}