The worker service manager used by merchants to obtain value exchange, where the merchant is already integrated with Qoin and also SaaS. On the Transaction Merchant there are three action endpoints :
- Get Point Exchane
- Inquiry Point Exchange
- Process Point Exchange
Here's the detail of service action in Transaction Merchant Point Exchange :
Get Point Exchange
Used to get value exchange.
Payload Data
Name | Data Type |
---|---|
Data | String |
Page | String |
Limit | String |
Type | String |
Example Request
{
"Subject":"transaction",
"SubjectType":"merchant",
"SubjectIdentifier":"pointexchange",
"Action":"get",
"ResourceType":"null",
"Resource":"null",
"ResourceId":"null",
"Data":{
"page":1,
"limit":1,
"type":"point"
}
}
Inquiry Point Exchange
Used for Inquiry processes using Point Exchange.
Payload Data
Name | Data Type |
---|---|
BaseValueCode | String |
TargetValueCode | String |
BaseValue | String |
CustomerToken | String |
TransactionNumber | String |
TicketId |
Notes
- TicketId can be taken from the previous process. For example, when using the PPOB service then TicketId can be obtained from the Order process.
- TicketId may stand alone.
- TicketId and Transaction Number are Optional.
Example Request
{
"Subject":"transaction",
"SubjectType":"merchant",
"SubjectIdentifier":"pointexchange",
"Action":"inquiry",
"ResourceType":"",
"Resource":"",
"ResourceId":"",
"Data":{
"BaseValueCode":"IDR",
"TargetValueCode":"PNT-QOIN-LOUNGE",
"BaseValue":1000,
"CustomerToken":"",
"TransactionNumber":"noreceipt",
"TicketId":"kjskdjksdjk",
"Signature":"asasasa"
}
}
Proses Point Exchange
Used for the existing point conversion process.
Payload Data
Name | Data Type |
---|---|
TransactionNumber | String |
TicketId | String |
Example Request
{
"Subject":"transaction",
"SubjectType":"merchant",
"SubjectIdentifier":"pointexchange",
"Action":"process",
"ResourceType":"",
"Resource":"",
"ResourceId":"",
"Data":{
"TransactionNumber":"PXC123456",
"TicketId":"kjskdjksdjk"
}
}