Earning Point worker integration using RabbitMQ communication as its input and output broker (not using http) to be accessed from external Qoin. A worker service manager that works similar to an existing Earning http service manager is simply not called through http/Krakend but is called through RabbitMQ message broker.
Earning Point
Earning
Example Request
{
"Subject": "loyalty",
"SubjectType": "trx",
"SubjectIdentifier": "earning",
"Action": "0",
"ResourceType": "data",
"Resource": "",
"ResourceId": "",
"Data": {
"trxOrganization": 0,
"trxMerchantId": 0,
"trxPaymentType": 0,
"trxDate": "2022-10-26 14:37:42",
"trxReceipt": "REF221026143742",
"trxUser": "6281311053950",
"trxStatus": 1,
"trxReceiptExtern": "REF221026143742",
"trxCryptoNo": null,
"trxStampToken": "86684e25-7262-4ed8-98a4-06f3c4befd15",
"trxMaster": 0,
"trxNote": null,
"trxPhone": null,
"trxAddressTo": null,
"trxSignature": null,
"trxLatitude": null,
"trxLongitude": null,
"trxPayload": null,
"virCashier": null,
"trxHidden": 0,
"details": [
{
"trxId": 2440,
"trxIssuerId": 0,
"trxItemType": null,
"trxAssetType": 3,
"trxCurrencyDecimal": null,
"trxCurrency": "PTS",
"trxCurrencyType": null,
"trxProduct": 3200,
"trxEvent": 0,
"trxAmount": 0,
"trxDC": null,
"trxData": null,
"trxDataResult": null,
"trxPpn": 0,
"trxPph22": 0,
"trxAmountBill": 0,
"trxFee": 0,
"trxDecimalCrypto": 0,
"trxAmountCrypto": 0,
"trxGasFee": 0,
"trxConvertCrypto": 0,
"trxMarkupProcentage": null,
"trxMarketRate": null,
"trxStatus": 0,
"trxStampToken": "b49970bc-b0cf-4970-83a6-93f860ea1d76",
"trxUser": null,
"exactGasFee": null,
"exactAmountCrypto": null,
"ExactConvertCrypto": null
}
]
}
}
Earning Save
Example Request
{
"Subject":"loyalty",
"SubjectType":"trx",
"SubjectIdentifier":"earning",
"Action":"0",
"ResourceType":"data",
"Resource":"",
"ResourceId":"",
"Data":{
"trxOrganization":0,
"trxMerchantId":0,
"trxPaymentType":0,
"trxDate":"2023-10-24 11:36:19",
"trxReceipt":"REF221026143742",
"trxUser":"6281311053950",
"trxStatus":1,
"trxReceiptExtern":"REF221026143742",
"trxCryptoNo":null,
"trxStampToken":"86684e25-7262-4ed8-98a4-06f3c4befd15",
"trxMaster":0,
"trxNote":null,
"trxPhone":null,
"trxAddressTo":null,
"trxSignature":null,
"trxLatitude":null,
"trxLongitude":null,
"trxPayload":null,
"virCashier":null,
"trxHidden":0,
"details":[
{
"trxIssuerId":0,
"trxItemType":null,
"trxAssetType":3,
"trxCurrencyDecimal":null,
"trxCurrency":"PTS",
"trxCurrencyType":null,
"trxProduct":3200,
"trxEvent":0,
"trxAmount":9000000,
"trxDC":null,
"trxData":null,
"trxDataResult":null,
"trxPpn":0.00000000,
"trxPph22":0.00000000,
"trxAmountBill":0.00000000,
"trxFee":0.00000000,
"trxDecimalCrypto":0,
"trxAmountCrypto":0,
"trxGasFee":0,
"trxConvertCrypto":0.000000000000000000,
"trxMarkupProcentage":null,
"trxMarketRate":null,
"trxStatus":0,
"trxStampToken":"b49970bc-b0cf-4970-83a6-93f860ea1d76",
"trxUser":null,
"exactGasFee":null,
"exactAmountCrypto":null,
"ExactConvertCrypto":null
}
]
}
}
Get Earning
Example Request
{
"Subject":"loyalty",
"SubjectType":"trx",
"SubjectIdentifier":"earning",
"Action":"7",
"ResourceType":"data",
"Resource":"",
"ResourceId":"",
"Data":{
"id":34523
}
}
Debit H2H
Debit H2H
Example Request
trxStampToken = Unique every request
partnerReferenceNo = Unique every request
{
"Subject":"loyalty",
"SubjectType":"trx",
"SubjectIdentifier":"order",
"Action":"1",
"ResourceType":"data",
"Resource":"",
"ResourceId":"",
"Data":{
"header":{
"timeStamp":"2023-07-06T14:12:50+07:00",
"clientkey":"202000215",
"partnerId":"9ec88209a7e144a58aef04ff2f01775d",
"externalId":"41807553358950093184162180797837",
"channelId":"95221"
},
"Body":{
"partnerReferenceNo":"order0011-x9",
"merchantId":"202000215",
"amount":{
"value":"10000.00",
"currency":"IDR"
},
"urlParam":{
"url":"https://example.com",
"type":"PAY_RETURN",
"isDeeplink":"N"
},
"validUpTo":"2023-12-23T07:44:11+07:00",
"payOptionDetails":{
"payMethod":"7",
"payOption":""
},
"additionalInfo":{
"userName":"Agung Setiadi Putra",
"userEmail":"[email protected]",
"userPhone":"082231838297"
}
},
"trx":{
"trxOrganization":0,
"trxMerchantId":0,
"trxPaymentType":0,
"trxDate":"2022-10-26 14:37:42",
"trxReceipt":"REF221026143742",
"trxUser":"6281311053950",
"trxStatus":1,
"trxReceiptExtern":"REF221026143742",
"trxCryptoNo":null,
"trxStampToken":"86684e25-7262-4ed8-98a4-06f3c4befd15-9",
"trxMaster":0,
"trxNote":null,
"trxPhone":null,
"trxAddressTo":null,
"trxSignature":null,
"trxLatitude":null,
"trxLongitude":null,
"trxPayload":null,
"virCashier":null,
"trxHidden":0,
"details":[
{
"trxIssuerId":0,
"trxItemType":null,
"trxCurrencyDecimal":null,
"trxCurrencyType":null,
"trxEvent":0,
"trxAmount":0,
"trxDC":null,
"trxData":null,
"trxDataResult":null,
"trxPpn":0,
"trxPph22":0,
"trxAmountBill":0,
"trxFee":0,
"trxDecimalCrypto":0,
"trxAmountCrypto":0,
"trxGasFee":0,
"trxConvertCrypto":0,
"trxMarkupProcentage":null,
"trxMarketRate":null,
"trxStatus":0,
"trxStampToken":"b49970bc-b0cf-4970-83a6-93f860ea1d76-4",
"trxUser":null,
"exactGasFee":null,
"exactAmountCrypto":null,
"ExactConvertCrypto":null
}
]
}
}
}
H2H Status
Example Request
{
"Subject":"loyalty",
"SubjectType":"trx",
"SubjectIdentifier":"order",
"Action":"2",
"ResourceType":"data",
"Resource":"",
"ResourceId":"",
"Data":{
"header":{
"timeStamp":"2023-07-06T14:12:50+07:00",
"clientkey":"202000215",
"partnerId":"9ec88209a7e144a58aef04ff2f01775d",
"externalId":"41807553358950093184162180797837",
"channelId":"95221"
},
"Body":{
"originalPartnerReferenceNo":"order0011-x9",
"serviceCode":"17",
"additionalInfo":{
}
},
"trxId":4964
}
}
Token B2B
Token B2B
Example Request
{
"Subject": "loyalty",
"SubjectType": "trx",
"SubjectIdentifier": "order",
"Action": "5",
"ResourceType": "data",
"Resource": "",
"ResourceId": "",
"Data": {
"timeStamp": "2023-07-06T14:12:50+07:00",
"clientkey": "202000215",
"signature": "Pk5wiziFCSRMkePamfIe1X5BHoseSK9ZQus6VWQ2R+8UGCsqbYYmxUdO2+4QJ/CDPTAS2sK6vQPrnOTUaGI69Dm0+KKHm1EX73HIcyns28J1/m3RJSJoJJSdT4dBOTRAQ6Dfb/+92K7y4jY56e1hqIbxFpCPNUys+yxLx3GPB2u7JhW2b98emWi0vFh9XWPHHo9p5wewweYN9MVx1P00PdH/x4krVmnuHWDPqwk0ThSsJfABlobvjhw4zT153D34BTldNsKazJ9MeGYsxT2oCTyg0kLEitHVteLIGs9pVy9YBwOhK4q/PE7SCw09LfBcYjjuHEzdmqa0PF3b3lujHg=="
}
}
Signature Service
Example Request
{
"Subject": "loyalty",
"SubjectType": "trx",
"SubjectIdentifier": "sign",
"Action": "3",
"ResourceType": "data",
"Resource": "",
"ResourceId": "",
"Data": {
"timeStamp": "2023-07-06T14:12:50+07:00",
"clientSecret": "oJnNPGsiuzytMOJPatwtPilfsfykSBGplhxtxVSGpqaJaBRgAvzLXqzRrrUIYvaI",
"AccessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI5NDU0MDAwNC04ZjNhLTQwYzUtYTVjYy1hOTI4M2ZmOTI5MjAiLCJjbGllbnRJZCI6IjIwMjAwMDIxNSIsIm5iZiI6MTY5NzAwNjg0MCwiZXhwIjoxNjk3MDA3NzQwLCJpYXQiOjE2OTcwMDY4NDB9.Me9sLg70u3O3PgifcWmuNtfgtDIhGMKKGRB6tLFUbqI",
"BodyContent": "{\r\n \"partnerServiceId\": \" 088899\",\r\n \"customerNo\": \"12345678901234567890\",\r\n \"virtualAccountNo\": \" 08889912345678901234567890\",\r\n \"virtualAccountName\": \"Jokul Doe\",\r\n \"virtualAccountEmail\": \"[email protected]\",\r\n \"virtualAccountPhone\": \"6281828384858\",\r\n \"trxId\": \"abcdefgh12345\",\r\n \"totalAmount\": {\r\n \"value\": \"12345678.00\",\r\n \"currency\": \"IDR\"\r\n },\r\n \"billDetails\": [\r\n {\r\n \"billCode\": \"01\",\r\n \"billNo\": \"123456789012345678\",\r\n \"billName\": \"Bill A for Jan\",\r\n \"billShortName\": \"Bill A\",\r\n \"billDescription\": {\r\n \"english\": \"Maintenance\",\r\n \"indonesia\": \"Pemeliharaan\"\r\n },\r\n \"billSubCompany\": \"00001\",\r\n \"billAmount\": {\r\n \"value\": \"12345678.00\",\r\n \"currency\": \"IDR\"\r\n },\r\n \"additionalInfo\": {}\r\n }\r\n ],\r\n \"freeTexts\": [\r\n {\r\n \"english\": \"Free text\",\r\n \"indonesia\": \"Tulisan bebas\"\r\n }\r\n ],\r\n \"virtualAccountTrxType\": \"1\",\r\n \"feeAmount\": {\r\n \"value\": \"12345678.00\",\r\n \"currency\": \"IDR\"\r\n },\r\n \"expiredDate\": \"2023-08-11T12:11:33-07:00\",\r\n \"additionalInfo\": {\r\n \"enabledh2hpayments\": 4\r\n }\r\n}"
}
}
Create VA
Create VA
Example Request
{
"Subject":"loyalty",
"SubjectType":"trx",
"SubjectIdentifier":"order",
"Action":"3",
"ResourceType":"data",
"Resource":"",
"ResourceId":"",
"Data":{
"header":{
"timeStamp":"2023-11-30T14:12:50+07:00",
"clientkey":"202000215",
"partnerId":"9ec88209a7e144a58aef04ff2f01775d",
"externalId":"41807553358950093184162180797837",
"channelId":"95221"
},
"Body":{
"partnerServiceId":"088899-1",
"customerNo":"12345678901234567890",
"virtualAccountNo":"088899123456789012345678901",
"virtualAccountName":"Jokul Doe",
"virtualAccountEmail":"[email protected]",
"virtualAccountPhone":"6281828384858",
"trxId":"abcdefgh123452-1",
"totalAmount":{
"value":"12345678.00",
"currency":"IDR"
},
"billDetails":[
{
"billCode":"01",
"billNo":"1234567890123456782-1",
"billName":"Bill A for Jan",
"billShortName":"Bill A",
"billDescription":{
"english":"Maintenance",
"indonesia":"Pemeliharaan"
},
"billSubCompany":"00001",
"billAmount":{
"value":"12345678.00",
"currency":"IDR"
},
"additionalInfo":{
}
}
],
"freeTexts":[
{
"english":"Free text",
"indonesia":"Tulisan bebas"
}
],
"virtualAccountTrxType":"1",
"feeAmount":{
"value":"12345678.00",
"currency":"IDR"
},
"expiredDate":"2023-11-30T12:11:33-07:00",
"additionalInfo":{
"enabledh2hpayments":4
}
}
}
}
VA Status
Example Request
{
"Subject":"loyalty",
"SubjectType":"trx",
"SubjectIdentifier":"order",
"Action":"4",
"ResourceType":"data",
"Resource":"",
"ResourceId":"",
"Data":{
"header":{
"timeStamp":"2023-11-30T14:12:50+07:00",
"clientkey":"202000215",
"partnerId":"9ec88209a7e144a58aef04ff2f01775d",
"externalId":"41807553358950093184162180797837",
"channelId":"95221"
},
"Body":{
"partnerServiceId": "088899-1",
"customerNo":12345678901234567890,
"virtualAccountNo":"9901023110661979",
"inquiryRequestId":"abcdef-123456-abcdef",
"paymentRequestId":"abcdef-123456-abcdef",
"additionalInfo":{
}
}
}
}