UNITELMoney_API_PARTNERS_v4.2
UNITELMoney_API_PARTNERS_v4.2
Unitel Money
API Integration
MANAGEMENT TEAM
Index
INTRODUCTION ...................................................................................................................................... 6
API SPECIFICATION ................................................................................................................................. 7
Solution architecture .............................................................................................................. 7
Authentication and Authorization .......................................................................................... 8
2.2.1 OAuth2.0 ......................................................................................................................... 9
2.2.2 API Gateway – token OAuth2.0 .................................................................................... 10
SERVICES .............................................................................................................................................. 12
Buy Goods ............................................................................................................................. 12
3.1.1 Synchronous Mode Interface ........................................................................................ 14
3.1.2 Asynchronous Mode Interface ...................................................................................... 18
Initiate a Goods Refund Transaction..................................................................................... 27
3.2.1 Synchronous Mode Interface ........................................................................................ 27
3.2.2 Asynchronous Mode Interface ...................................................................................... 33
Reverse Transaction .............................................................................................................. 40
3.3.1 Synchronous Mode Interface ........................................................................................ 40
3.3.2 Asynchronous Mode Interface ...................................................................................... 44
Query Transaction Status ...................................................................................................... 50
3.4.1 Synchronous Mode Interface ........................................................................................ 51
3.4.2 Asynchronous Mode Interface ...................................................................................... 56
Individual B2C Payment ........................................................................................................ 62
3.5.1 Synchronous Mode Interface ........................................................................................ 62
3.5.2 Asynchronous Mode Interface...................................................................................... 67
Query Organization Balance ................................................................................................. 72
3.6.1 Synchronous Mode Interface ........................................................................................ 73
3.6.2 Asynchronous Mode Interface ...................................................................................... 77
Query Organization Statement ............................................................................................. 82
3.7.1 Synchronous Mode Interface ........................................................................................ 82
Figures Index
Figure 1 - Solution Architecture ................................................................................................. 7
Figure 2 - O Auth 2.0 Protocol Flow ........................................................................................ 10
Figure 3 - Token generation ..................................................................................................... 11
Figure 4 - Buy Goods workflow ................................................................................................ 12
Figure 5 – Payments Refunds Transaction workflow .............................................................. 27
Figure 6 - Reverse Transaction workflow................................................................................ 40
Figure 7 - Query Transaction Status workflow ........................................................................ 51
Figure 8 – Individual B2C Payment workflow .......................................................................... 62
Figure 9 – Query Organization Balance workflow .................................................................. 73
Figure 10 - Query Organization Statement workflow ............................................................. 82
Figure 11 - Query Customer Information workflow ................................................................ 90
Introduction
This document provides the details of the Schema API type provided by the Unitel Money
system, including high level architecture, specific parameters of each service, data type
definitions, and error codes. This document is the reference for the third-party to develop
their functions based on the Mobile Money API, to use Unitel Money services.
The mobile money API’s feature allows an individual partner like merchant implement
adopted different functionalities to allow this organization accept and received through e-
money payments on selling of his products and services. Additionally, organization can query
transactions status, reverse or refund transactions.
For Customer, this API’s features allow that an individual customer or organizations to buy
goods or pay bills using e-Money wallet as payment method, offer the opportunity to
customer access a different service like water, electricity, gas, insurance, and tuition and
others.
An individual customer can initiate a buy goods or bill payment transaction using the
Merchant channel or Unitel Money channels like USSD, APP, Web Portal, with the guarantee
the integration between Service Provider and Merchants.
API Specification
This section describes the API Integration between Unitel API Gateway and Partners
(Merchants and Billers), to allow access mobile money services.
Solution architecture
Biller system
A Biller system will be integrated with Unitel API Gateway and will respond to the Bill
Payment Validation request.
Merchant system
A Merchant system offer to his customer channel to sell products and services, and
integrate with Unitel API Gateway to ask a customer payment to conclude sell transaction.
API Gateway
This is an interface between Unitel Money System and Biller systems. Unitel Money System
will send Bill Payment Validation request or receive buy goods request via API Gateway during
the Bill/Goods Payment operation. API Gateway will communicate with respective
Biller/Merchant and Unitel Money system.
The important aspect in the integration between Service Provider and Partner is
authentication and authorization to allow access and communication in both sides. Unitel
uses API Gateway to manage the integration with partner and use some rules to consider,
such as:
API´s:
The API is linked to a category;
A category is only visible to authenticated users who are authorized to access the
category.
Users:
Each partner has a user account supplied by Unitel;
2.2.1 OAuth2.0
OAuth 2.0 provides consented access and restricts actions of what the client app can perform
on resources on behalf of the user, without ever sharing the user's credentials.
OAuth 2.0 uses Access Tokens. An Access Token is a piece of data that represents the
authorization to access resources on behalf of the end-user.
The idea of roles is part of the core specification of the OAuth2.0 authorization framework.
These define the essential components of an OAuth 2.0 system, and are as follows:
Resource Owner: The user or system that owns the protected resources and can
grant access to them.
Client: The client is the system that requires access to the protected resources. To
access resources, the Client must hold the appropriate Access Token.
Authorization Server: This server receives requests from the Client for Access
Tokens and issues them upon successful authentication and consent by the Resource
Owner. The authorization server exposes two endpoints: the Authorization endpoint,
which handles the interactive authentication and consent of the user, and the Token
endpoint, which is involved in a machine to machine interaction.
Resource Server: A server that protects the user’s resources and receives access
requests from the Client. It accepts and validates an Access Token from the Client
and returns the appropriate resources to it.
Services
Buy Goods
When a registered customer buys goods from a merchant organization, the customer can use
the balance of the e-money account to pay for the goods through the handset. This interface
is invoked by a third party of the Mobile Money system to purchase goods from an
organization assigned the goods purchase service in the system for a customer.
1. The customer requests payment for a product or service from one of the channels of
the merchant providing the Unitel Money number and the amount;
4. API Gateway Requests debit authorization from the customer, sending a Push
Notification on the Customer's mobile phone;
6. API Gateway debits the Customer and credits the Merchant at Unitel Money;
Request
Endpoint HTTP
https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/buyGoods_v2
Método HTTP:
POST
Headers HTTP:
Content-Type: application/json
Accept: application/json
Sample request
curl -X 'POST' \
'https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/buyGoods_v2' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer
eyJ4NXQiOiJOakF3TkdZMVpEUmpPV1V4WVdSaE9EZGpOMlJsTmpFMlpUSTJOVFptWmpZeVltWmh
ZekUwWlEiLCJraWQiOiJNbU15TkdVMFpERXpNV0l4WldObE9UbG1Nek5oTXpFMFpHTXdZV1UwT1
dVMU1EbGpPV0prTmpWalpEUm1OVFpsWTJWbFpUUmtORGN5T0RZd1ltTmpOd19SUzI1NiIsImFsZ
yI6IlJTMjU2In0.eyJzdWIiOiJhZG1pbiIsImF1dCI6IkFQUExJQ0FUSU9OIiwiYXVkIjoiQzZYYVZQOUtkM2
FZMHVkUUg4b1hpaXM3eVV3YSIsIm5iZiI6MTY2OTExNzYxNCwiYXpwIjoiQzZYYVZQOUtkM2FZMHV
kUUg4b1hpaXM3eVV3YSIsInNjb3BlIjoiZGVmYXVsdCIsImlzcyI6Imh0dHBzOlwvXC9sc3ZxYXNjb250c
m9sMDFhLmludGVybmFsLnVuaXRlbC5jby5hbzoke2h0dHBzLm5pby5wb3J0fVwvb2F1dGgyXC90b2
tlbiIsImV4cCI6MTY2OTEyMTIxNCwiaWF0IjoxNjY5MTE3NjE0LCJqdGkiOiJmYzFiNjgyMS02NWQ4LTR
iODgtOGZkNS00NjE1N2FjOTdhZjUifQ.rFKe_wRVDy0EO1IlVBft4_eYWs3t_Gv8358itgrIKoZENS6Bga
VIQtO7w3QE9Pj3fyq21ZxUzKtUPkxCPazR8HXBP_ok_I24CuSi1o4ER7IoOs56ocb6goffkC5xg-
ITyPADYw7CxwRqi7-7WSiNwTwrEZQlNr36EkJSb5DEFLSJ34OR7BuITTy7p0-
2MnWiQ_9h5wNp8Za4zv2uXReHmgCgP9hFlTwzelZzQinhyxW618LkA3kwaRUpsRRvX9ogVVBSkrVX
KPJEknzx8n1fGJmCu88p67v44Ntt-uBsRuIixMNUTB6vQCd-137jyeysEoELffDzM2RfZkhpQ_4ECQ' \
-d '{
"BuyGoodRec": {
"Timestamp": "20220113204200",
"OriginatorConversationID": "test_20201122124600001",
"IdentityRec": {
"Initiator": {
"IdentifierType": 12,
"Identifier": "dstvTestOp",
"SecurityCredential":
"eo1ws3yGLA8RF5w3LNBl3W5wERKvFQHoTQvmCVPtBpJTFAuI9Gdtns4pTj5LEjJWIrBFnT1Mk7JGi3
4VLa5MKrXNrS4myI/fVdNKZlNejZFhrTMyybCqhh7mJuW5/R3JXvNs7tPGgB4/1PMqcL/oFBzeF5mX8
IZIG61pEsG45j4FX1vmPRUovq7rScKWv6ofa9Cpv/iT2rkinbaXt46jBWjfAhR/kdAkISLlJV1BY/3w3g3ss
fxWozy2WjzziFsmNomzc0iVV1jxaAMjFk0tz+lV9irjfRPOK6c+Rtxz8zNJGQyFX91yPrLGNQYwJRyBqNs
QoCrFD5zFl9QznxbNnQ==",
"ShortCode": "00001708"
},
"PrimaryParty": {
"IdentifierType": 1,
"Identifier": "930300680"
},
"ReceiverParty": {
"IdentifierType": 4,
"Identifier": "00001708"
}
},
"TransactionRequest": {
"Parameters": {
"Amount": "50.00",
"Currency": "AOA"
}
},
"ReferenceData": {
"ReferenceItem": [
{
"Key": "POSDeviceID",
"Value": "POS234789"
}
]
}
}
}'
Response messages
{
"CustBuyGoodRs": {
"BuyGoodsRec": {
"ConversationID": "AG_20221122_701033ff42b309ca9aee",
"OriginatorConversationID": "test_00000009780090039",
"ResultType": 0,
"ResultCode": 0,
"ResultDesc": "Process service request successfully.",
"TransactionResult": {
"TransactionID": "9KM0005EOM"
}
}
}
Request
Endpoint HTTP
https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/buyGoods_async
Método HTTP:
POST
Headers HTTP:
Content-Type: application/json
Accept: application/json
Sample request
curl -X 'POST' \
'https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/buyGoods_async' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer
eyJ4NXQiOiJOakF3TkdZMVpEUmpPV1V4WVdSaE9EZGpOMlJsTmpFMlpUSTJOVFptWmpZeVltWmh
ZekUwWlEiLCJraWQiOiJNbU15TkdVMFpERXpNV0l4WldObE9UbG1Nek5oTXpFMFpHTXdZV1UwT1
dVMU1EbGpPV0prTmpWalpEUm1OVFpsWTJWbFpUUmtORGN5T0RZd1ltTmpOd19SUzI1NiIsImFsZ
yI6IlJTMjU2In0.eyJzdWIiOiJhZG1pbiIsImF1dCI6IkFQUExJQ0FUSU9OIiwiYXVkIjoiQzZYYVZQOUtkM2
FZMHVkUUg4b1hpaXM3eVV3YSIsIm5iZiI6MTY3NTY2ODg0MywiYXpwIjoiQzZYYVZQOUtkM2FZMH
VkUUg4b1hpaXM3eVV3YSIsInNjb3BlIjoiZGVmYXVsdCIsImlzcyI6Imh0dHBzOlwvXC9sc3ZxYXNjb250
cm9sMDFhLmludGVybmFsLnVuaXRlbC5jby5hbzoke2h0dHBzLm5pby5wb3J0fVwvb2F1dGgyXC90b
2tlbiIsImV4cCI6MTY3NTY3MjQ0MywiaWF0IjoxNjc1NjY4ODQzLCJqdGkiOiI5M2I0NGRmZS1jODI0LT
QxZGYtODNkYS0yZmQzNDBiN2NlODMifQ.mbPRxhOPLOLs1u3kfiNGvoVtCcAmj1OTjvRD2Le3_zs6Ki
0WFIK9XUjG4xgdfDez1dFgA5zfJQQEj3OZzAESeBJLCqDN2X6EG1QLUBfAYgJxtP09E7jW-
_Tpwdwq53QqSHW_bCCvOlOR9ck-
ycMTPq_uINFaRL4T5xgKCvjRn4R5s0jWTQI0LNxpUYX1TEH_IMLJY6u1oFNzEscLIecjmrb47mY6a2txb
5OM5s5IbG77-ritnM8b3-
GuSzlhsdCIreEwWMLYtGyQdHxFjh9aS6H03qwNAy6imEaEoko6H7d8mpn4PZ-HA-Sa5Og1-
mYJB7amWnpveNsfo5pNtM3OgQ' \
-d '{
"BuyGoodRec": {
"Timestamp": "20220113204200",
"OriginatorConversationID": "test_202302060835001",
"IdentityRec": {
"Initiator": {
"IdentifierType": 12,
"Identifier": "dstvTestOp",
"SecurityCredential":
"eo1ws3yGLA8RF5w3LNBl3W5wERKvFQHoTQvmCVPtBpJTFAuI9Gdtns4pTj5LEjJWIrBFnT1Mk7JGi3
4VLa5MKrXNrS4myI/fVdNKZlNejZFhrTMyybCqhh7mJuW5/R3JXvNs7tPGgB4/1PMqcL/oFBzeF5mX8
IZIG61pEsG45j4FX1vmPRUovq7rScKWv6ofa9Cpv/iT2rkinbaXt46jBWjfAhR/kdAkISLlJV1BY/3w3g3ss
fxWozy2WjzziFsmNomzc0iVV1jxaAMjFk0tz+lV9irjfRPOK6c+Rtxz8zNJGQyFX91yPrLGNQYwJRyBqNs
QoCrFD5zFl9QznxbNnQ==",
"ShortCode": "00001708"
},
"PrimaryParty": {
"IdentifierType": 1,
"Identifier": "930300680"
},
"ReceiverParty": {
"IdentifierType": 4,
"Identifier": "00001708"
}
},
"TransactionRequest": {
"Parameters": {
"Amount": 50,
"Currency": "AOA"
}
},
"ReferenceData": {
"ReferenceItem": [
{
"Key": "POSDeviceID",
"Value": "POS234789"
}
]
}
}
}'
Response messages
{
"Response": {
"OriginatorConversationID": "test_202302060835001",
"ConversationID": "AG_20230206_70100852b9e86f6ade43",
"ResponseCode": 0,
"ResponseDesc": "Accept the service request successfully.",
"ServiceStatus": 0
}
}
Result messages
The partner must provide an endpoint to receive this message.
Sucess
<res:OriginatorConversationID>test_202302060835001</res:OriginatorConversationI>
<res:ConversationID>AG_20230206_70100852b9e86f6ade43</res:ConversationID>
</res:Header>
<res:Body>
<res:ResultType>0</res:ResultType>
<res:ResultCode>0</res:ResultCode>
<res:ResultDesc>Process service request successfully.</res:ResultDesc>
<res:TransactionResult>
<res:TransactionID>AB600062CK</res:TransactionID>
<res:ResultParameters>
<res:ResultParameter>
<com:Key>DebitBalance</com:Key>
<com:Value>{"total":[{"amount":"118059.59","currency":"AOA"}],"list":[{"amount":"14
692.09","accountno":"100000000110451562","currency":"AOA","accounttypename":"
Customer E-Money
Account"},{"amount":"103367.50","accountno":"100000000110481056","currency":"A
OA","accounttypename":"Customer Incentive Account"}]}</com:Value>
</res:ResultParameter>
</res:ResultParameters>
</res:TransactionResult>
<res:ReferenceData>
<res:ReferenceItem>
<com:Key>POSDeviceID</com:Key>
<com:Value>POS234789</com:Value>
</res:ReferenceItem>
</res:ReferenceData>
</res:Body>
</api:Result>
</soapenv:Body>
</soapenv:Envelope>
<res:OriginatorConversationID>PremierBet_202302061208001</res:OriginatorConversationID>
<res:ConversationID>AG_20230206_7010733b2c2cc3623f9d</res:ConversationID>
</res:Header>
<res:Body>
<res:ResultType>0</res:ResultType>
<res:ResultCode>3007001</res:ResultCode>
<res:ResultDesc>Your account balance is insufficient for the transaction.</res:ResultDesc>
<res:TransactionResult>
<res:TransactionID>AB630062I7</res:TransactionID>
</res:TransactionResult>
<res:ReferenceData>
<res:ReferenceItem>
<com:Key>POSDeviceID</com:Key>
<com:Value>POS234789</com:Value>
</res:ReferenceItem>
</res:ReferenceData>
</res:Body>
</api:Result>
</soapenv:Body>
</soapenv:Envelope>
<res:OriginatorConversationID>PremierBet_202302070841002</res:OriginatorConversationID>
<res:ConversationID>AG_20230207_70101e3bb1c9e3c25ece</res:ConversationID>
</res:Header>
<res:Body>
<res:ResultType>0</res:ResultType>
<res:ResultCode>401901</res:ResultCode>
<res:ResultDesc>You have cancelled the request.</res:ResultDesc>
<res:TransactionResult>
<res:TransactionID>10100000000001311074</res:TransactionID>
</res:TransactionResult>
<res:ReferenceData>
<res:ReferenceItem>
<com:Key>POSDeviceID</com:Key>
<com:Value>POS234789</com:Value>
</res:ReferenceItem>
</res:ReferenceData>
</res:Body>
</api:Result>
</soapenv:Body>
</soapenv:Envelope>
<res:OriginatorConversationID>PremierBet_202302070841001</res:OriginatorConversationID>
<res:ConversationID>AG_20230207_70102b72bfc2e2a43263</res:ConversationID>
</res:Header>
<res:Body>
<res:ResultType>0</res:ResultType>
<res:ResultCode>3013001</res:ResultCode>
<res:ResultDesc>The user name does not exist or the security credential is
incorrect.</res:ResultDesc>
<res:TransactionResult>
<res:TransactionID>10100000000001311072</res:TransactionID>
</res:TransactionResult>
<res:ReferenceData>
<res:ReferenceItem>
<com:Key>POSDeviceID</com:Key>
<com:Value>POS234789</com:Value>
</res:ReferenceItem>
</res:ReferenceData>
</res:Body>
</api:Result>
</soapenv:Body>
</soapenv:Envelope>
After paying for goods bought from a merchant organization, a registered customer can
submit a refund request to the organization. An operator of the organization processes the
refund request and refunds the paid amount to the customer's Mobile Money system account.
This interface is invoked by a third party of the Mobile Money system to initiate a goods refund
service from merchant.
Request
Endpoint HTTP
https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0 /goodsRefundTransaction_v2
Método HTTP:
POST
Headers HTTP:
Content-Type: application/json
Accept: application/json
Sample request
curl -X 'POST' \
'https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/goodsRefundTransaction_v2' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer
eyJ4NXQiOiJOakF3TkdZMVpEUmpPV1V4WVdSaE9EZGpOMlJsTmpFMlpUSTJOVFptWmpZeVltWmh
ZekUwWlEiLCJraWQiOiJNbU15TkdVMFpERXpNV0l4WldObE9UbG1Nek5oTXpFMFpHTXdZV1UwT1
dVMU1EbGpPV0prTmpWalpEUm1OVFpsWTJWbFpUUmtORGN5T0RZd1ltTmpOd19SUzI1NiIsImFsZ
yI6IlJTMjU2In0.eyJzdWIiOiJhZG1pbiIsImF1dCI6IkFQUExJQ0FUSU9OIiwiYXVkIjoiQzZYYVZQOUtkM2F
ZMHVkUUg4b1hpaXM3eVV3YSIsIm5iZiI6MTY2OTIwMTEyNywiYXpwIjoiQzZYYVZQOUtkM2FZMHVk
UUg4b1hpaXM3eVV3YSIsInNjb3BlIjoiZGVmYXVsdCIsImlzcyI6Imh0dHBzOlwvXC9sc3ZxYXNjb250cm
9sMDFhLmludGVybmFsLnVuaXRlbC5jby5hbzoke2h0dHBzLm5pby5wb3J0fVwvb2F1dGgyXC90b2tlb
iIsImV4cCI6MTY2OTIwNDcyNywiaWF0IjoxNjY5MjAxMTI3LCJqdGkiOiJiMzc2MDI3OS01ZDdiLTRkMj
ktOGM3MC0zNjcxYzljZjQxMTAifQ.jIY_RCX2hMAfMM7yWTFGYvzVQJ9k4PPeqb2jJ10VFRnKGQUYRr
XQFXgtF0UZJEHgdW9Yn31BAr1pnzdBFgNfxOExvUMkoVZZel63t0hQ_ZcT99NcH0bxbDGH3UCbaAv
gZ8QJrU59Wa_hoNGrtJp19nu9lls-4Gvg_cOiUPk-W6_cypb9bo9rXian3yHoJE-
y5pRapMGXZbf4KnvN64oaugZqadvazIuMSBzN8QTn2vwlxyRdRYfrGevpQ83ePgAIHrJ_-
mJB1zwrhat7qE-
0ovqXyaKdOtmMm6YNKCzamjakeR3MPRYmDsi9wdmKoLPzjYks0B4BWDeDO_w1n5b13w' \
-d '{
"GoodRefTransRec": {
"Timestamp": "20220113204200",
"OriginatorConversationID": "test_0000045rtgh000003",
"IdentityRec": {
"Initiator": {
"IdentifierType": 12,
"Identifier": "dstvTestOp",
"SecurityCredential":
"eo1ws3yGLA8RF5w3LNBl3W5wERKvFQHoTQvmCVPtBpJTFAuI9Gdtns4pTj5LEjJWIrBFnT1Mk7JGi3
4VLa5MKrXNrS4myI/fVdNKZlNejZFhrTMyybCqhh7mJuW5/R3JXvNs7tPGgB4/1PMqcL/oFBzeF5mX8
IZIG61pEsG45j4FX1vmPRUovq7rScKWv6ofa9Cpv/iT2rkinbaXt46jBWjfAhR/kdAkISLlJV1BY/3w3g3ss
fxWozy2WjzziFsmNomzc0iVV1jxaAMjFk0tz+lV9irjfRPOK6c+Rtxz8zNJGQyFX91yPrLGNQYwJRyBqNs
QoCrFD5zFl9QznxbNnQ==",
"ShortCode": "00001708"
},
"ReceiverParty": {
"IdentifierType": 1,
"Identifier": 930300680
}
},
"TransactionRequest": {
"Parameters": {
"Amount": "50.00",
"Currency": "AOA"
}
},
"ReferenceData": {
"ReferenceItem": [
{
"Key": "POSDeviceID",
"Value": "POS234789"
}
]
},
"Remark": "remark about goods refund"
}
}'
Response
{
"GoodRefTransRs": {
"GoodRefTransRec": {
"ConversationID": "AG_20221123_7010393601d7e37b99eb",
"OriginatorConversationID": "test_0000045rtgh000003",
"ResultType": 0,
"ResultCode": 0,
"ResultDesc": "Process service request successfully.",
"TransactionResult": {
"TransactionID": "9KN2005F4S"
}
}
}
}
Request
Endpoint HTTP
https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0 /goodsRefundTransaction_async
Método HTTP:
POST
Headers HTTP:
Content-Type: application/json
Accept: application/json
Sample Request
curl -X 'POST' \
'https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/goodsRefundTransaction_async' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer
eyJ4NXQiOiJOakF3TkdZMVpEUmpPV1V4WVdSaE9EZGpOMlJsTmpFMlpUSTJOVFptWmpZeVltWmhZe
kUwWlEiLCJraWQiOiJNbU15TkdVMFpERXpNV0l4WldObE9UbG1Nek5oTXpFMFpHTXdZV1UwT1dVM
U1EbGpPV0prTmpWalpEUm1OVFpsWTJWbFpUUmtORGN5T0RZd1ltTmpOd19SUzI1NiIsImFsZyI6IlJT
MjU2In0.eyJzdWIiOiJhZG1pbiIsImF1dCI6IkFQUExJQ0FUSU9OIiwiYXVkIjoiQzZYYVZQOUtkM2FZMHVk
UUg4b1hpaXM3eVV3YSIsIm5iZiI6MTY3NTY3NDg1NiwiYXpwIjoiQzZYYVZQOUtkM2FZMHVkUUg4b1h
paXM3eVV3YSIsInNjb3BlIjoiZGVmYXVsdCIsImlzcyI6Imh0dHBzOlwvXC9sc3ZxYXNjb250cm9sMDFhLml
udGVybmFsLnVuaXRlbC5jby5hbzoke2h0dHBzLm5pby5wb3J0fVwvb2F1dGgyXC90b2tlbiIsImV4cCI6M
TY3NTY3ODQ1NiwiaWF0IjoxNjc1Njc0ODU2LCJqdGkiOiIxN2JkMDdkNy1iODJkLTQ5ZWItYWVhMi1mO
TFjNjBjMzM1YWMifQ.V-2zsw-
D0liLpRp9adtxoEfG6ega2l4NTKGfac4QMgeGlWSRaRs9lPR2evXv4lr2vGLFtTygyoHwlGmcfXetttCGPHT
DEHjzwZhhlrsI8odKkzNesrsk60yuyp5w2BBJhZYocJEfr5mBuCVkYu-5OzIq90DXcU-1RqO-
EbDArG7XKorm8dfuMCsSrPy9cgsWwwojDk9GdOL_QFfO7KM2Fq0vugSC4v_125Ed9jkExOBBDtLJb5U
52TARzM6j7aU5Pe55_hv12LTMH_LUYZ5QzlaPGP9wNA-
5hCr1Ff5aUmzd7B0pqwOvxWT6axN8djr2DTGcd5JqkvKXIPHc9wAfkQ' \
-d '{
"GoodRefTransRec": {
"Timestamp": "20220113204200",
"OriginatorConversationID": "PremierBet_202302061013001",
"IdentityRec": {
"Initiator": {
"IdentifierType": 12,
"Identifier": "ApiPremier",
"SecurityCredential":
"foPQuRW7Qu8vZo8HoTyI96iFjCWl+B0gQ+RF/cVk1BTHSpcEesLGbRz21L5N8BD2t46dvGZS4N8eaj4Q
xWt4gGnZeipTXeU1ELv4BgWMWFycko2FMxCUMU3cr+Ih6gPzr51XFE4Zce6hFPjjRLT5t1+JAlocGAMG
dIdnqQhFLOm47Bb91FFik3lgvlXqmMKRVHw24QmheWDC3J+dTPAuYjCjcEeLtvcgjRvlqvYvzFTtMPxXz
HD5UzShrgTzvX7jffoDy1nlFYEiTMcouvsZ0ZdhSavmj4IuMbrhDsopPF6ZwukRPexJ8t6EJS36PSqoVMeA
KLUoa24krGdCIAOQEw==",
"ShortCode": "00001209"
},
"ReceiverParty": {
"IdentifierType": 1,
"Identifier": 930300680
}
},
"TransactionRequest": {
"Parameters": {
"Amount": 50,
"Currency": "AOA"
}
},
"ReferenceData": {
"ReferenceItem": [
{
"Key": "POSDeviceID",
"Value": "POS234789"
}
]
},
"Remark": "remark about goods refund"
}
}'
Response messages
{
"Response": {
"OriginatorConversationID": "PremierBet_202302061013001",
"ConversationID": "AG_20230206_70107b59da83a7f624d6",
"ResponseCode": 0,
"ResponseDesc": "Accept the service request successfully.",
"ServiceStatus": 0
}
}
Result messages
The partner must provide an endpoint to receive this message.
</res:ReferenceData>
</res:Body>
</api:Result>
</soapenv:Body>
</soapenv:Envelope>
Reverse Transaction
Customers or organization operators can apply to reverse completed transactions due to some
reasons, for example, refund or incorrect recipient entered for the transaction. This interface
is invoked by a third party of the Mobile Money system to reverse the transaction according
to a specified receipt number.
Request
Endpoint HTTP
https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/reverseTransaction_v2
Método HTTP:
POST
Headers HTTP:
Content-Type: application/json
Accept: application/json
Sample request
curl -X 'POST' \
'https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/reverseTransaction_v2' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer
eyJ4NXQiOiJOakF3TkdZMVpEUmpPV1V4WVdSaE9EZGpOMlJsTmpFMlpUSTJOVFptWmpZeVltWmh
ZekUwWlEiLCJraWQiOiJNbU15TkdVMFpERXpNV0l4WldObE9UbG1Nek5oTXpFMFpHTXdZV1UwT1
dVMU1EbGpPV0prTmpWalpEUm1OVFpsWTJWbFpUUmtORGN5T0RZd1ltTmpOd19SUzI1NiIsImFsZ
yI6IlJTMjU2In0.eyJzdWIiOiJhZG1pbiIsImF1dCI6IkFQUExJQ0FUSU9OIiwiYXVkIjoiQzZYYVZQOUtkM2F
ZMHVkUUg4b1hpaXM3eVV3YSIsIm5iZiI6MTY2OTIwOTE5OSwiYXpwIjoiQzZYYVZQOUtkM2FZMHVk
UUg4b1hpaXM3eVV3YSIsInNjb3BlIjoiZGVmYXVsdCIsImlzcyI6Imh0dHBzOlwvXC9sc3ZxYXNjb250cm
9sMDFhLmludGVybmFsLnVuaXRlbC5jby5hbzoke2h0dHBzLm5pby5wb3J0fVwvb2F1dGgyXC90b2tlb
iIsImV4cCI6MTY2OTIxMjc5OSwiaWF0IjoxNjY5MjA5MTk5LCJqdGkiOiJhZjNhNDMxNy00ZTY1LTQ4N
zQtOWZiNi05MGJiZTBjOTgyMGMifQ.LnDkZiB23Gv2REUQMud8jy-
hxo8237qoeL0G8lvRLTot7ooMCMy7x4vLZyiC92R9LkGElN3wT8Y6Hbzy9HBxoxS3N3IT_kqTjjJ9fsMO
wXkgf2Q_PYCJscUJ4_NwHv8K78O5zTlXcO5vXOdB2HYfeX-tZ-WrNh3Q3kYkztxp-
i9IxoyNxZEijJIuGFKhYV8KmTf5LYP5dnH67KJnmLf-K-qQ_lJoa5ixUeMs3dO5nAl8oKrj9-
LWFskEq_UU1SV5K_hFMdgaUYRzkKebe3tj0nPcPQBkIWLHxeSOlq_woefgW4TnU6e2IVXondK2AcO
xS9DwfLYHy2hRE4XNMFIMQg' \
-d '{
"ReverseTransRec": {
"Timestamp": "20220113204200",
"OriginatorConversationID": "S_X00003e222000000154",
"IdentityRec": {
"Initiator": {
"IdentifierType": 12,
"Identifier": "dstvTestOp",
"SecurityCredential":
"eo1ws3yGLA8RF5w3LNBl3W5wERKvFQHoTQvmCVPtBpJTFAuI9Gdtns4pTj5LEjJWIrBFnT1Mk7JGi3
4VLa5MKrXNrS4myI/fVdNKZlNejZFhrTMyybCqhh7mJuW5/R3JXvNs7tPGgB4/1PMqcL/oFBzeF5mX8
IZIG61pEsG45j4FX1vmPRUovq7rScKWv6ofa9Cpv/iT2rkinbaXt46jBWjfAhR/kdAkISLlJV1BY/3w3g3ss
fxWozy2WjzziFsmNomzc0iVV1jxaAMjFk0tz+lV9irjfRPOK6c+Rtxz8zNJGQyFX91yPrLGNQYwJRyBqNs
QoCrFD5zFl9QznxbNnQ==",
"ShortCode": "00001708"
}
},
"ReverseTransRec": {
"OriginalReceiptNumber": "9KM0005EOM",
"Amount": “50.00”
},
"Remark": "remark about reverse"
}
}'
Response messages
{
"ReverseTransRs": {
"ReverseTransRec": {
"ConversationID": "AG_20221123_701043b6f74485316b8d",
"OriginatorConversationID": "S_X00003e222000000154",
"ResultType": 0,
"ResultCode": 0,
"ResultDesc": "Process service request successfully.",
"ReverseTransactionResult": {
"BOCompletedTime": 20221123141412
}
}
}
}
Request
Endpoint HTTP
https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/reverseTransaction_async
Método HTTP:
POST
Headers HTTP:
Content-Type: application/json
Accept: application/json
Sample request
curl -X 'POST' \
'https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/reverseTransaction_async' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer
eyJ4NXQiOiJOakF3TkdZMVpEUmpPV1V4WVdSaE9EZGpOMlJsTmpFMlpUSTJOVFp
tWmpZeVltWmhZekUwWlEiLCJraWQiOiJNbU15TkdVMFpERXpNV0l4WldObE9UbG
1Nek5oTXpFMFpHTXdZV1UwT1dVMU1EbGpPV0prTmpWalpEUm1OVFpsWTJWbF
pUUmtORGN5T0RZd1ltTmpOd19SUzI1NiIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiJhZG1p
biIsImF1dCI6IkFQUExJQ0FUSU9OIiwiYXVkIjoiQzZYYVZQOUtkM2FZMHVkUUg4b
1hpaXM3eVV3YSIsIm5iZiI6MTY3NTY3ODEwMiwiYXpwIjoiQzZYYVZQOUtkM2FZ
MHVkUUg4b1hpaXM3eVV3YSIsInNjb3BlIjoiZGVmYXVsdCIsImlzcyI6Imh0dHBzOlw
vXC9sc3ZxYXNjb250cm9sMDFhLmludGVybmFsLnVuaXRlbC5jby5hbzoke2h0dHBzL
m5pby5wb3J0fVwvb2F1dGgyXC90b2tlbiIsImV4cCI6MTY3NTY4MTcwMiwiaWF0Ijox
Njc1Njc4MTAyLCJqdGkiOiIxYmM5NTgxNi1iMTllLTRjNWUtOTdkNS0zZGIzZmVjN
WViMzAifQ.iGR108AOMMVE7f6TZh4_wxseAH3hK-
COOi5O1u_iti7OvLEsoYFtg8Sj6U3zoIDu0y4Tf7Jppc8nviUkR1JTvqLH71g8trXz2DuoCf
BDLYDdSb4BThn76x4uAFgT3yYoQ6Llo0GhGvNGif9-
qGKs8MRYdWaJIcdWLly6hu1yoMImWkFerPvk6ptIz88NiS1Yz0sEPPd2du_ic0_tH9qio
FLu6k-OlSQt5smX52bcT28NjdqcqIHJGp6jbjG-
Olu8oPyhgqsiPaEspU0g6nyGOVfbOZCuDKkIU07Ocy5x9p77kgXMPkvxHW8MHvi7Yv
x2YgKrbhy2ygJq7VAM-nOCjA' \
-d '{
"ReverseTransRec": {
"Timestamp": "20220113204200",
"OriginatorConversationID": "PremierBet_202302061128001",
"IdentityRec": {
"Initiator": {
"IdentifierType": 12,
"Identifier": "ApiPremier",
"SecurityCredential":
"foPQuRW7Qu8vZo8HoTyI96iFjCWl+B0gQ+RF/cVk1BTHSpcEesLGbRz21L5N8BD2t4
6dvGZS4N8eaj4QxWt4gGnZeipTXeU1ELv4BgWMWFycko2FMxCUMU3cr+Ih6gPzr51
XFE4Zce6hFPjjRLT5t1+JAlocGAMGdIdnqQhFLOm47Bb91FFik3lgvlXqmMKRVHw24
QmheWDC3J+dTPAuYjCjcEeLtvcgjRvlqvYvzFTtMPxXzHD5UzShrgTzvX7jffoDy1nlF
YEiTMcouvsZ0ZdhSavmj4IuMbrhDsopPF6ZwukRPexJ8t6EJS36PSqoVMeAKLUoa24kr
GdCIAOQEw==",
"ShortCode": "00001209"
}
},
"ReverseTransRec": {
"OriginalReceiptNumber": "AB36006244",
"Amount": 50
},
"Remark": "remark about transaction"
}
}'
Response messages
{
"Response": {
"OriginatorConversationID": "PremierBet_202302061128001",
"ConversationID": "AG_20230206_70104b415dfd99193dea",
"ResponseCode": 0,
"ResponseDesc": "Accept the service request successfully.",
"ServiceStatus": 0
}
}
Result messages
Sucess
<res:OriginatorConversationID>PremierBet_202302061128001</res:OriginatorConversationID>
<res:ConversationID>AG_20230206_70104b415dfd99193dea</res:ConversationID>
</res:Header>
<res:Body>
<res:ResultType>0</res:ResultType>
<res:ResultCode>0</res:ResultCode>
<res:ResultDesc>Process service request successfully.</res:ResultDesc>
<res:ReverseTransactionResult>
<res:BOCompletedTime>20230206112919</res:BOCompletedTime>
<res:DebitPartyPublicName>00001209 - PremierBet</res:DebitPartyPublicName>
<res:CreditPartyPublicName>244930300680 - Paulo
Mbunga</res:CreditPartyPublicName>
<res:DebitAccountBalance>Organização - Conta de dinheiro
electrónico|AOA|5957.99|5957.99|0.00|0.00</res:DebitAccountBalance>
<res:TransCompletedTime>20230206112919</res:TransCompletedTime>
<res:Amount>50.00</res:Amount>
<res:Charge>0.00</res:Charge>
<res:ReceiptNumber>AB680062FK</res:ReceiptNumber>
<res:TransactionStatus>Completed</res:TransactionStatus>
<res:OriginalAmount>100.00</res:OriginalAmount>
<res:OriginalReceiptNumber>AB36006244</res:OriginalReceiptNumber>
</res:ReverseTransactionResult>
</res:Body>
</api:Result>
</soapenv:Body>
</soapenv:Envelope>
Organization operator can query the transaction status through the API channel. The SP
operator can query the status of any transactions. By default, an organization operator can
query only the status of transactions initiated by operators of the initiator's organization. The
Mobile Money system also allows an organization operator to query the transaction status of
the organization to which the operator belongs as the credit or debit party. This interface is
invoked by a third party of the Mobile Money system to query the transaction status
according to a specified OriginatorConversationID.
Request
Endpoint HTTP
https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/queryTransactionStatus_v2
Método HTTP:
POST
Headers HTTP:
Content-Type: application/json
Accept: application/json
Sample request
curl -X 'POST' \
'https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/queryTransactionStatus_v2' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer
eyJ4NXQiOiJOakF3TkdZMVpEUmpPV1V4WVdSaE9EZGpOMlJsTmpFMlpUSTJOVFptWmpZeVltWmh
ZekUwWlEiLCJraWQiOiJNbU15TkdVMFpERXpNV0l4WldObE9UbG1Nek5oTXpFMFpHTXdZV1UwT1
dVMU1EbGpPV0prTmpWalpEUm1OVFpsWTJWbFpUUmtORGN5T0RZd1ltTmpOd19SUzI1NiIsImFsZ
yI6IlJTMjU2In0.eyJzdWIiOiJhZG1pbiIsImF1dCI6IkFQUExJQ0FUSU9OIiwiYXVkIjoiQzZYYVZQOUtkM2F
ZMHVkUUg4b1hpaXM3eVV3YSIsIm5iZiI6MTY2OTIxOTQyOCwiYXpwIjoiQzZYYVZQOUtkM2FZMHVk
UUg4b1hpaXM3eVV3YSIsInNjb3BlIjoiZGVmYXVsdCIsImlzcyI6Imh0dHBzOlwvXC9sc3ZxYXNjb250cm
9sMDFhLmludGVybmFsLnVuaXRlbC5jby5hbzoke2h0dHBzLm5pby5wb3J0fVwvb2F1dGgyXC90b2tlb
iIsImV4cCI6MTY2OTIyMzAyOCwiaWF0IjoxNjY5MjE5NDI4LCJqdGkiOiJkYzhmNDlhMy01YzczLTQ1N
mUtODA1Mi0yMTZmYTEyYmE5MmMifQ.fRYtbHaDI91tC68KQ7gBP_MFOMTDB7rXjTANEmsX0Jt44
Asoc4-
vkrUELVQEt0eEIgdMr5U_RC0eaMUeqesYPVOqY1npPb801rK3aK9DZ73mkNzvD05DFiKKEmoxBSG9
uLkgj66_8TBTXGYPmjQuqaEXLIj6PYT3ZCNXZZmfdiEkLgdQZYkCBI7zaEWX-
dwxB7Dz1UZULQWqsMHCJRtsgaNKBvtF6DChoJB5g3CvBNIz22eaqBAig6hRsBjTzxK9d_NuNPOaHVT
-5VIWi9h950GPjP_4cXUgk18h5oUH_pku_3RMR-4fPdchppKieGdKkWW_eOxSc-1v0PPGyYp4lA' \
-d '{
"QueryTranStatusRec": {
"Timestamp": "20220113204200",
"OriginatorConversationID": "teste_202211231702001",
"IdentityRec": {
"Initiator": {
"IdentifierType": 12,
"Identifier": "dstvTestOp",
"SecurityCredential":
"eo1ws3yGLA8RF5w3LNBl3W5wERKvFQHoTQvmCVPtBpJTFAuI9Gdtns4pTj5LEjJWIrBFnT1Mk7JGi3
4VLa5MKrXNrS4myI/fVdNKZlNejZFhrTMyybCqhh7mJuW5/R3JXvNs7tPGgB4/1PMqcL/oFBzeF5mX8
IZIG61pEsG45j4FX1vmPRUovq7rScKWv6ofa9Cpv/iT2rkinbaXt46jBWjfAhR/kdAkISLlJV1BY/3w3g3ss
fxWozy2WjzziFsmNomzc0iVV1jxaAMjFk0tz+lV9irjfRPOK6c+Rtxz8zNJGQyFX91yPrLGNQYwJRyBqNs
QoCrFD5zFl9QznxbNnQ==",
"ShortCode": "00001708"
}
},
"QueryTransactionStatusRequest": {
"OriginalConversationID": "test_20201122124600001"
},
"Remark": ""
}
}'
Response
{
"QueryTransStatusRs": {
"ResultType": 0,
"ResultCode": 0,
"ResultDesc": "Process service request successfully.",
"Transaction": {
"BOCompletedTime": "20221123170426",
"ReceiptNumber": "9KM2005EOO",
"TransactionStatus": "Completed"
}
}
}
{
"QueryTransStatusRs": {
"ResultType": 0,
"ResultCode": 0,
"ResultDesc": "Process service request successfully.",
"Transaction": {
"BOCompletedTime": "20221220170426",
"ReceiptNumber": "9KM2005EAA",
"TransactionStatus": "Declined"
}
}
}
{
"QueryTransStatusRs": {
"ResultType": 0,
"ResultCode": 3011,
"ResultDesc": "The historical service or associated service does not exist, or the
historical service or associated service is abnormal.",
"QueryTransactionStatusResult": {
"BOCompletedTime": "20230214071439"
}
}
}
Request
Endpoint HTTP
https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/queryTransactionStatus_ async
Método HTTP:
POST
Headers HTTP:
Content-Type: application/json
Accept: application/json
Sample Request
curl -X 'POST' \
'https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/queryTransactionStatus_async' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer
eyJ4NXQiOiJOakF3TkdZMVpEUmpPV1V4WVdSaE9EZGpOMlJsTmpFMlpUSTJOVFp
tWmpZeVltWmhZekUwWlEiLCJraWQiOiJNbU15TkdVMFpERXpNV0l4WldObE9UbG
1Nek5oTXpFMFpHTXdZV1UwT1dVMU1EbGpPV0prTmpWalpEUm1OVFpsWTJWbF
pUUmtORGN5T0RZd1ltTmpOd19SUzI1NiIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiJhZG1p
biIsImF1dCI6IkFQUExJQ0FUSU9OIiwiYXVkIjoiQzZYYVZQOUtkM2FZMHVkUUg4b
1hpaXM3eVV3YSIsIm5iZiI6MTY3NTY3ODEwMiwiYXpwIjoiQzZYYVZQOUtkM2FZ
MHVkUUg4b1hpaXM3eVV3YSIsInNjb3BlIjoiZGVmYXVsdCIsImlzcyI6Imh0dHBzOlw
vXC9sc3ZxYXNjb250cm9sMDFhLmludGVybmFsLnVuaXRlbC5jby5hbzoke2h0dHBzL
m5pby5wb3J0fVwvb2F1dGgyXC90b2tlbiIsImV4cCI6MTY3NTY4MTcwMiwiaWF0Ijox
Njc1Njc4MTAyLCJqdGkiOiIxYmM5NTgxNi1iMTllLTRjNWUtOTdkNS0zZGIzZmVjN
WViMzAifQ.iGR108AOMMVE7f6TZh4_wxseAH3hK-
COOi5O1u_iti7OvLEsoYFtg8Sj6U3zoIDu0y4Tf7Jppc8nviUkR1JTvqLH71g8trXz2DuoCf
BDLYDdSb4BThn76x4uAFgT3yYoQ6Llo0GhGvNGif9-
qGKs8MRYdWaJIcdWLly6hu1yoMImWkFerPvk6ptIz88NiS1Yz0sEPPd2du_ic0_tH9qio
FLu6k-OlSQt5smX52bcT28NjdqcqIHJGp6jbjG-
Olu8oPyhgqsiPaEspU0g6nyGOVfbOZCuDKkIU07Ocy5x9p77kgXMPkvxHW8MHvi7Yv
x2YgKrbhy2ygJq7VAM-nOCjA' \
-d '{
"QueryTranStatusRec": {
"Timestamp": "20220113204200",
"OriginatorConversationID": "PremierBet_202302061157001",
"IdentityRec": {
"Initiator": {
"IdentifierType": 12,
"Identifier": "ApiPremier",
"SecurityCredential":
"foPQuRW7Qu8vZo8HoTyI96iFjCWl+B0gQ+RF/cVk1BTHSpcEesLGbRz21L5N8BD2t4
6dvGZS4N8eaj4QxWt4gGnZeipTXeU1ELv4BgWMWFycko2FMxCUMU3cr+Ih6gPzr51
XFE4Zce6hFPjjRLT5t1+JAlocGAMGdIdnqQhFLOm47Bb91FFik3lgvlXqmMKRVHw24
QmheWDC3J+dTPAuYjCjcEeLtvcgjRvlqvYvzFTtMPxXzHD5UzShrgTzvX7jffoDy1nlF
YEiTMcouvsZ0ZdhSavmj4IuMbrhDsopPF6ZwukRPexJ8t6EJS36PSqoVMeAKLUoa24kr
GdCIAOQEw==",
"ShortCode": "00001209"
}
},
"QueryTransactionStatusRequest": {
"OriginalConversationID": "PremierBet_202302061155001"
},
"Remark": "remark about transaction"
}
}
'
Response messages
"Response": {
"OriginatorConversationID": "PremierBet_202302061157001",
"ConversationID": "AG_20230206_70102e3aedc725dc30ff",
"ResponseCode": 0,
"ResponseDesc": "Accept the service request successfully.",
"ServiceStatus": 0
}
}
Result messages
The partner must provide an endpoint to receive this message.
completed
<res:OriginatorConversationID>PremierBet_202302061157001</res:OriginatorConversati
onID>
<res:ConversationID>AG_20230206_70102e3aedc725dc30ff</res:ConversationID>
</res:Header>
<res:Body>
<res:ResultType>0</res:ResultType>
<res:ResultCode>0</res:ResultCode>
<res:ResultDesc>Process service request successfully.</res:ResultDesc>
<res:QueryTransactionStatusResult>
<res:BOCompletedTime>20230206115752</res:BOCompletedTime>
<res:ReceiptNumber>AB650062HP</res:ReceiptNumber>
<res:TransactionStatus>Completed</res:TransactionStatus>
</res:QueryTransactionStatusResult>
</res:Body>
</api:Result>
</soapenv:Body>
</soapenv:Envelope>
declined
<res:OriginatorConversationID>PremierBet_202302061212001</res:OriginatorConversati
onID>
<res:ConversationID>AG_20230206_70102011ab2dc79da58a</res:ConversationID>
</res:Header>
<res:Body>
<res:ResultType>0</res:ResultType>
<res:ResultCode>0</res:ResultCode>
<res:ResultDesc>Process service request successfully.</res:ResultDesc>
<res:QueryTransactionStatusResult>
<res:BOCompletedTime>20230206121405</res:BOCompletedTime>
<res:ReceiptNumber>AB630062I7</res:ReceiptNumber>
<res:TransactionStatus>Declined</res:TransactionStatus>
</res:QueryTransactionStatusResult>
</res:Body>
</api:Result>
</soapenv:Body>
</soapenv:Envelope>
<res:OriginatorConversationID>PremierBet_202302061157002</res:OriginatorConversati
onID>
<res:ConversationID>AG_20230206_7010783cd925a87a586d</res:ConversationID>
</res:Header>
<res:Body>
<res:ResultType>0</res:ResultType>
<res:ResultCode>3011</res:ResultCode>
<res:ResultDesc>The historical service or associated service does not exist, or the
historical service or associated service is abnormal.</res:ResultDesc>
<res:QueryTransactionStatusResult>
<res:BOCompletedTime>20230206120254</res:BOCompletedTime>
</res:QueryTransactionStatusResult>
</res:Body>
</api:Result>
</soapenv:Body>
</soapenv:Envelope>
The Mobile Money system supports the service of making an individual B2C payment that
allows an organization to pay for individual customers. The recipient can be a registered or
unregistered customer. A withdrawal voucher will be sent if the recipient is an unregistered
customer. The recipient (unregistered customer) can withdraw money at an agent using the
voucher. This interface is invoked by a third party of the Mobile Money system to initiate an
individual B2C payment transaction.
Request
Endpoint HTTP
https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/individualB2CPayment_sync
Método HTTP:
POST
Headers HTTP:
Content-Type: application/json
Accept: application/json
Sample request
curl -X 'POST' \
'https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/individualB2CPayment_sync' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer
eyJ4NXQiOiJOakF3TkdZMVpEUmpPV1V4WVdSaE9EZGpOMlJsTmpFMlpUSTJOVFptWmpZeVltWmh
ZekUwWlEiLCJraWQiOiJNbU15TkdVMFpERXpNV0l4WldObE9UbG1Nek5oTXpFMFpHTXdZV1UwT1
dVMU1EbGpPV0prTmpWalpEUm1OVFpsWTJWbFpUUmtORGN5T0RZd1ltTmpOd19SUzI1NiIsImFsZ
yI6IlJTMjU2In0.eyJzdWIiOiJhZG1pbiIsImF1dCI6IkFQUExJQ0FUSU9OIiwiYXVkIjoiQzZYYVZQOUtkM2F
ZMHVkUUg4b1hpaXM3eVV3YSIsIm5iZiI6MTY3ODkyNDQ2NSwiYXpwIjoiQzZYYVZQOUtkM2FZMHV
kUUg4b1hpaXM3eVV3YSIsInNjb3BlIjoiZGVmYXVsdCIsImlzcyI6Imh0dHBzOlwvXC9sc3ZxYXNjb250c
m9sMDFhLmludGVybmFsLnVuaXRlbC5jby5hbzoke2h0dHBzLm5pby5wb3J0fVwvb2F1dGgyXC90b2t
lbiIsImV4cCI6MTY3ODkyODA2NSwiaWF0IjoxNjc4OTI0NDY1LCJqdGkiOiJkZGM5OTVmOS1jODVmLT
Q0YTctYTBhYy1hYWY5YmY2NDljNDEifQ.RFhOzDpeb8cTrPlBU0xGFtfM3Ozt1flRyBPmQgKVUq-
TpuOgKwtsEF8SLOQJtjciOUJSvEijzF6XQhC3ZdVJgJSdFXwawAZqP1g6QFsEiHp6_ML1SprUcFySmKTe
sNxpgCXjpSwJnQBi6SVCJqg7mCh1EIMAQLzOHZFhYfH9267EVKVg2FNHcgJJA1OUCwzYrSKPhjYobFY
pgQEuzjZcXTDyWL5QkknID06jPzGRvl9axo_1HIA5x_z1iKhyfNcilCH2KY8VW1FNZJzefNQGNEI6oOMC
Dz3W718I-crWa5_8D8ZunzTWt9-bncZ7JWSoDPkrljEe3-7gJFkuYHoECg' \
-d '{
"IndividualB2CPayment": {
"Timestamp": "20130402152345",
"OriginatorConversationID": "Teste_2023021300277uuii8",
"Identity": {
"Initiator": {
"IdentifierType": 12,
"Identifier": "ApiPremier",
"SecurityCredential":
"foPQuRW7Qu8vZo8HoTyI96iFjCWl+B0gQ+RF/cVk1BTHSpcEesLGbRz21L5N8BD2t46dvGZS4N8eaj4
QxWt4gGnZeipTXeU1ELv4BgWMWFycko2FMxCUMU3cr+Ih6gPzr51XFE4Zce6hFPjjRLT5t1+JAlocGA
MGdIdnqQhFLOm47Bb91FFik3lgvlXqmMKRVHw24QmheWDC3J+dTPAuYjCjcEeLtvcgjRvlqvYvzFTt
MPxXzHD5UzShrgTzvX7jffoDy1nlFYEiTMcouvsZ0ZdhSavmj4IuMbrhDsopPF6ZwukRPexJ8t6EJS36PS
qoVMeAKLUoa24krGdCIAOQEw==",
"ShortCode": "00001209"
},
"ReceiverParty": {
"IdentifierType": 1,
"Identifier": "930300680"
}
},
"TransactionRequest": {
"Parameters": {
"Amount": 100,
"Currency": "AOA",
}
},
"ReferenceData": {
"ReferenceItem": {
"Key": "POSDeviceID",
"Value": "POS234789"
}
},
"Remark": "remark about payment"
}
}'
Response messages
{
"Result": {
"OriginatorConversationID": "Teste_2023021300277uuii8",
"ConversationID": "AG_20230316_701031c99b0fc2af794d",
"ResultType": 0,
"ResultCode": 0,
"ResultDesc": "Process service request successfully.",
"TransactionResult": {
"TransactionID": "ACG0006MRU"
}
}
}
Request
Endpoint HTTP
https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/individualB2CPayment_async
Método HTTP:
POST
Headers HTTP:
Content-Type: application/json
Accept: application/json
Sample request
curl -X 'POST' \
'https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/individualB2CPayment_async' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer
eyJ4NXQiOiJOakF3TkdZMVpEUmpPV1V4WVdSaE9EZGpOMlJsTmpFMlpUSTJOVFptWmpZeVltWmh
ZekUwWlEiLCJraWQiOiJNbU15TkdVMFpERXpNV0l4WldObE9UbG1Nek5oTXpFMFpHTXdZV1UwT1
dVMU1EbGpPV0prTmpWalpEUm1OVFpsWTJWbFpUUmtORGN5T0RZd1ltTmpOd19SUzI1NiIsImFsZ
yI6IlJTMjU2In0.eyJzdWIiOiJhZG1pbiIsImF1dCI6IkFQUExJQ0FUSU9OIiwiYXVkIjoiQzZYYVZQOUtkM2F
ZMHVkUUg4b1hpaXM3eVV3YSIsIm5iZiI6MTY3ODkyNDQ2NSwiYXpwIjoiQzZYYVZQOUtkM2FZMHV
kUUg4b1hpaXM3eVV3YSIsInNjb3BlIjoiZGVmYXVsdCIsImlzcyI6Imh0dHBzOlwvXC9sc3ZxYXNjb250c
m9sMDFhLmludGVybmFsLnVuaXRlbC5jby5hbzoke2h0dHBzLm5pby5wb3J0fVwvb2F1dGgyXC90b2t
lbiIsImV4cCI6MTY3ODkyODA2NSwiaWF0IjoxNjc4OTI0NDY1LCJqdGkiOiJkZGM5OTVmOS1jODVmLT
Q0YTctYTBhYy1hYWY5YmY2NDljNDEifQ.RFhOzDpeb8cTrPlBU0xGFtfM3Ozt1flRyBPmQgKVUq-
TpuOgKwtsEF8SLOQJtjciOUJSvEijzF6XQhC3ZdVJgJSdFXwawAZqP1g6QFsEiHp6_ML1SprUcFySmKTe
sNxpgCXjpSwJnQBi6SVCJqg7mCh1EIMAQLzOHZFhYfH9267EVKVg2FNHcgJJA1OUCwzYrSKPhjYobFY
pgQEuzjZcXTDyWL5QkknID06jPzGRvl9axo_1HIA5x_z1iKhyfNcilCH2KY8VW1FNZJzefNQGNEI6oOMC
Dz3W718I-crWa5_8D8ZunzTWt9-bncZ7JWSoDPkrljEe3-7gJFkuYHoECg' \
-d '{
"IndividualB2CPayment": {
"Timestamp": "20130402152345",
"OriginatorConversationID": "Teste_202302130027r21001",
"Identity": {
"Initiator": {
"IdentifierType": 12,
"Identifier": "ApiPremier",
"SecurityCredential":
"foPQuRW7Qu8vZo8HoTyI96iFjCWl+B0gQ+RF/cVk1BTHSpcEesLGbRz21L5N8BD2t46dvGZS4N8eaj4
QxWt4gGnZeipTXeU1ELv4BgWMWFycko2FMxCUMU3cr+Ih6gPzr51XFE4Zce6hFPjjRLT5t1+JAlocGA
MGdIdnqQhFLOm47Bb91FFik3lgvlXqmMKRVHw24QmheWDC3J+dTPAuYjCjcEeLtvcgjRvlqvYvzFTt
MPxXzHD5UzShrgTzvX7jffoDy1nlFYEiTMcouvsZ0ZdhSavmj4IuMbrhDsopPF6ZwukRPexJ8t6EJS36PS
qoVMeAKLUoa24krGdCIAOQEw==",
"ShortCode": "00001209"
},
"ReceiverParty": {
"IdentifierType": 1,
"Identifier": "930300680"
}
},
"TransactionRequest": {
"Parameters": {
"Amount": 300,
"Currency": "AOA",
"ReasonType": "Individual B2C Payment to Registered Customer"
}
},
"ReferenceData": {
"ReferenceItem": {
"Key": "POSDeviceID",
"Value": "POS234789"
}
},
"Remark": "remark about payment"
}
}'
Response messages
{
"Response": {
"OriginatorConversationID": "Teste_202302130027r21001",
"ConversationID": "AG_20230316_7010574cd68d320d0627",
"ResponseCode": 0,
"ResponseDesc": "Accept the service request successfully.",
"ServiceStatus": 0
}
}
Result messages
<res:OriginatorConversationID>Teste_202302130027r21001</res:OriginatorConversationID>
<res:ConversationID>AG_20230316_7010574cd68d320d0627</res:ConversationID>
</res:Header>
<res:Body>
<res:ResultType>0</res:ResultType>
<res:ResultCode>0</res:ResultCode>
<res:ResultDesc>Process service request successfully.</res:ResultDesc>
<res:TransactionResult>
<res:TransactionID>ACG9006MRT</res:TransactionID>
<res:ResultParameters>
<res:ResultParameter>
<com:Key>DebitBalance</com:Key>
<com:Value/>
</res:ResultParameter>
<res:ResultParameter>
<com:Key>CreditBalance</com:Key>
<com:Value>{"total":[{"amount":"907037.59","currency":"AOA"}],"list":[{"amount":"803670.09","
accountno":"100000000110451562","currency":"AOA","accounttypename":"Customer E-Money
Account"},{"amount":"103367.50","accountno":"100000000110481056","currency":"AOA","accou
nttypename":"Customer Incentive Account"}]}</com:Value>
</res:ResultParameter>
</res:ResultParameters>
</res:TransactionResult>
<res:ReferenceData>
<res:ReferenceItem>
<com:Key>POSDeviceID</com:Key>
<com:Value>POS234789</com:Value>
</res:ReferenceItem>
</res:ReferenceData>
</res:Body>
</api:Result>
</soapenv:Body>
</soapenv:Envelope>
An organization operator can use the Self Care service provided by the Mobile Money system
to query the account balance of an organization. This interface is invoked by a third party of
the Mobile Money system to query the account balance of an organization. Authorized
organization operators can query only the account balances of their own organizations and
the child organizations.
Request
Endpoint HTTP
https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/queryOrganizationBalance_sync
Método HTTP:
POST
Headers HTTP:
Content-Type: application/json
Accept: application/json
the merchant.
yyyyMMddHHmmss
OriginatorConversationID String Mandatory Is an ID that uniquely test_00000000004
identifies the request
message generated by the
Merchant
Initiator IdentifierType String Mandatory Indicates the type of 12 (default)
identifier of identity
Initiator Identifier String Mandatory Indicates identifier of an dstvTestOp
identity
SecurityCredential String Mandatory Is the encrypted Operator SppDoP73D9bAkPmQAa
pin provided by Unitel UQEUBlXvqJKq+es0qXIdZ
cvvn2K650Bh0+c9HrjCvH
42b6oBdBOOtjROmjGTKL
KeQh7j5IzAYKjLuGsrN5DZ
DqzuPQEfkRC4v5Cl/7+Xw
tnLWqq45Dz1UvevLiyZEv
h6t10ffpPlI/nU0wJ4OZcg
R+uOrhpuhmSKVTXoZQx
VFks5dzRGSW8B1rhZ7YJt
emBxmRF/0xMz1tECsW
McFkCz8pwF6W44CySAn
8ptTlXuz1n/mrejeYJU2M
hXTCvbm9Xk97nbu6XX2u
3wQn0P5lHNb4nU1gKtJS
ECJYa7sIi+EMUssqMC630
uTLiPS0b2i0zUOAnw==
Sample request
curl -X 'POST' \
'https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/queryOrganizationBalance_sync' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer
eyJ4NXQiOiJOakF3TkdZMVpEUmpPV1V4WVdSaE9EZGpOMlJsTmpFMlpUSTJOVFptWmpZeVltWmh
ZekUwWlEiLCJraWQiOiJNbU15TkdVMFpERXpNV0l4WldObE9UbG1Nek5oTXpFMFpHTXdZV1UwT1
dVMU1EbGpPV0prTmpWalpEUm1OVFpsWTJWbFpUUmtORGN5T0RZd1ltTmpOd19SUzI1NiIsImFsZ
yI6IlJTMjU2In0.eyJzdWIiOiJhZG1pbiIsImF1dCI6IkFQUExJQ0FUSU9OIiwiYXVkIjoiQzZYYVZQOUtkM2F
ZMHVkUUg4b1hpaXM3eVV3YSIsIm5iZiI6MTY3ODkyNDQ2NSwiYXpwIjoiQzZYYVZQOUtkM2FZMHV
kUUg4b1hpaXM3eVV3YSIsInNjb3BlIjoiZGVmYXVsdCIsImlzcyI6Imh0dHBzOlwvXC9sc3ZxYXNjb250c
m9sMDFhLmludGVybmFsLnVuaXRlbC5jby5hbzoke2h0dHBzLm5pby5wb3J0fVwvb2F1dGgyXC90b2t
lbiIsImV4cCI6MTY3ODkyODA2NSwiaWF0IjoxNjc4OTI0NDY1LCJqdGkiOiJkZGM5OTVmOS1jODVmLT
Q0YTctYTBhYy1hYWY5YmY2NDljNDEifQ.RFhOzDpeb8cTrPlBU0xGFtfM3Ozt1flRyBPmQgKVUq-
TpuOgKwtsEF8SLOQJtjciOUJSvEijzF6XQhC3ZdVJgJSdFXwawAZqP1g6QFsEiHp6_ML1SprUcFySmKTe
sNxpgCXjpSwJnQBi6SVCJqg7mCh1EIMAQLzOHZFhYfH9267EVKVg2FNHcgJJA1OUCwzYrSKPhjYobFY
pgQEuzjZcXTDyWL5QkknID06jPzGRvl9axo_1HIA5x_z1iKhyfNcilCH2KY8VW1FNZJzefNQGNEI6oOMC
Dz3W718I-crWa5_8D8ZunzTWt9-bncZ7JWSoDPkrljEe3-7gJFkuYHoECg' \
-d '{
"QueryOrganizationBalance": {
"Timestamp": "20130402152345",
"OriginatorConversationID": "S_X2013012921001errr",
"Identity": {
"Initiator": {
"IdentifierType": 12,
"Identifier": "ApiPremier",
"SecurityCredential":
"foPQuRW7Qu8vZo8HoTyI96iFjCWl+B0gQ+RF/cVk1BTHSpcEesLGbRz21L5N8BD2t46dvGZS4N8eaj4
QxWt4gGnZeipTXeU1ELv4BgWMWFycko2FMxCUMU3cr+Ih6gPzr51XFE4Zce6hFPjjRLT5t1+JAlocGA
MGdIdnqQhFLOm47Bb91FFik3lgvlXqmMKRVHw24QmheWDC3J+dTPAuYjCjcEeLtvcgjRvlqvYvzFTt
MPxXzHD5UzShrgTzvX7jffoDy1nlFYEiTMcouvsZ0ZdhSavmj4IuMbrhDsopPF6ZwukRPexJ8t6EJS36PS
qoVMeAKLUoa24krGdCIAOQEw==",
"ShortCode": "00001209"
},
"ReceiverParty": {
"IdentifierType": 4,
"Identifier": "00001209"
}
}
}
}'
Response messages
{
"Result": {
"OriginatorConversationID": "S_X2013012921001errr",
"ConversationID": "AG_20230316_70100cf9cf17cefeb6ad",
"ResultType": 0,
"ResultCode": 0,
"ResultDesc": "Process service request successfully.",
"QueryOrganizationBalanceResult": {
"BOCompletedTime": "20230316014745",
"AccountBalanceData": {
"AccountBalanceItem": {
"AccountTypeName":"Organization E-Money Account",
"AccountTypeAlias":"Organização - Conta de dinheiro electrónico",
"AccountNo" : "500000000110581107",
"AccountName": "DefaultAccount",
"AccountStatus":"Active",
"Currency": "AOA",
"AvailableBalance":"3748.16",
"ReservedBalance":"0.00",
"UnclearedBalance":"0.00",
"CurrentBalance": "3748.16"
}
}
}
}
}
Request
Endpoint HTTP
https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/queryOrganizationBalance_async
Método HTTP:
POST
Headers HTTP:
Content-Type: application/json
Accept: application/json
Sample request
curl -X 'POST' \
'https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/queryOrganizationBalance_async' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer
eyJ4NXQiOiJOakF3TkdZMVpEUmpPV1V4WVdSaE9EZGpOMlJsTmpFMlpUSTJOVFptWmpZeVltWmh
ZekUwWlEiLCJraWQiOiJNbU15TkdVMFpERXpNV0l4WldObE9UbG1Nek5oTXpFMFpHTXdZV1UwT1
dVMU1EbGpPV0prTmpWalpEUm1OVFpsWTJWbFpUUmtORGN5T0RZd1ltTmpOd19SUzI1NiIsImFsZ
yI6IlJTMjU2In0.eyJzdWIiOiJhZG1pbiIsImF1dCI6IkFQUExJQ0FUSU9OIiwiYXVkIjoiQzZYYVZQOUtkM2F
ZMHVkUUg4b1hpaXM3eVV3YSIsIm5iZiI6MTY3ODkyOTU1NCwiYXpwIjoiQzZYYVZQOUtkM2FZMHV
kUUg4b1hpaXM3eVV3YSIsInNjb3BlIjoiZGVmYXVsdCIsImlzcyI6Imh0dHBzOlwvXC9sc3ZxYXNjb250c
m9sMDFhLmludGVybmFsLnVuaXRlbC5jby5hbzoke2h0dHBzLm5pby5wb3J0fVwvb2F1dGgyXC90b2t
lbiIsImV4cCI6MTY3ODkzMzE1NCwiaWF0IjoxNjc4OTI5NTU0LCJqdGkiOiJhNGU3MDU3ZC1kZGUxLT
QwNmQtYTFjZi1kMDZjNTllMTYxNWUifQ.j0pNNxbU2mgRez1zc-UG1USe_k7laN_W2kgDym-
rNIFX4_SBFArVODGHcaeNYq47GhkSj3tg-
IgRl1nVfRVjqUUdAvQd5wEQFbZcb6f3dLjQS7kprSHqTnXXxVAX_Qo7rOG6Asp0oZf947HRP-
xihCVFQrPx3jIPMYRanNv9I1hnFHnrPENlEoCyHbAgQ7B53VPGJ3Vq588sUQQ920KzVMYs_KOeVnG
DT_QIyJK-
4Ry6hMohA2Lu1ToxFIQqNgTPF9muDTYPJF8HulQq3mkgWImQWWwinBmtSAzWYzj62ZUCGInZzrrl
q2T7V2uJ3sO_5YI7AVjgwQNCPoJkDt6zGw' \
-d '{
"QueryOrganizationBalance": {
"Timestamp": "20130402152345",
"OriginatorConversationID": "S_X2013012921001qqqq",
"Identity": {
"Initiator": {
"IdentifierType": 12,
"Identifier": "ApiPremier",
"SecurityCredential":
"foPQuRW7Qu8vZo8HoTyI96iFjCWl+B0gQ+RF/cVk1BTHSpcEesLGbRz21L5N8BD2t46dvGZS4N8eaj4
QxWt4gGnZeipTXeU1ELv4BgWMWFycko2FMxCUMU3cr+Ih6gPzr51XFE4Zce6hFPjjRLT5t1+JAlocGA
MGdIdnqQhFLOm47Bb91FFik3lgvlXqmMKRVHw24QmheWDC3J+dTPAuYjCjcEeLtvcgjRvlqvYvzFTt
MPxXzHD5UzShrgTzvX7jffoDy1nlFYEiTMcouvsZ0ZdhSavmj4IuMbrhDsopPF6ZwukRPexJ8t6EJS36PS
qoVMeAKLUoa24krGdCIAOQEw==",
"ShortCode": "00001209"
},
"ReceiverParty": {
"IdentifierType": 4,
"Identifier": "00001209"
}
}
}
}'
Response messages
{
"Response": {
"OriginatorConversationID": "S_X2013012921001qqqq",
"ConversationID": "AG_20230316_70100564d9b2afa98b5b",
"ResponseCode": 0,
"ResponseDesc": "Accept the service request successfully.",
"ServiceStatus": 0
}
}
Result messages
The Mobile Money system provides the service of querying transaction statements of an
organization' e-money account. This interface is invoked by a third party of the Mobile Money
system to query the transaction statements of an account according to a specified account
type for an organization.
Request
Endpoint HTTP
https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/queryOrganizationStatement_async
Método HTTP:
POST
Headers HTTP:
Content-Type: application/json
Accept: application/json
Sample request
curl -X 'POST' \
'https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/queryOrganizationStatement_async' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer
eyJ4NXQiOiJOakF3TkdZMVpEUmpPV1V4WVdSaE9EZGpOMlJsTmpFMlpUSTJOVFptWmpZeVltWmh
ZekUwWlEiLCJraWQiOiJNbU15TkdVMFpERXpNV0l4WldObE9UbG1Nek5oTXpFMFpHTXdZV1UwT1
dVMU1EbGpPV0prTmpWalpEUm1OVFpsWTJWbFpUUmtORGN5T0RZd1ltTmpOd19SUzI1NiIsImFsZ
yI6IlJTMjU2In0.eyJzdWIiOiJhZG1pbiIsImF1dCI6IkFQUExJQ0FUSU9OIiwiYXVkIjoiQzZYYVZQOUtkM2F
ZMHVkUUg4b1hpaXM3eVV3YSIsIm5iZiI6MTY3ODkyOTU1NCwiYXpwIjoiQzZYYVZQOUtkM2FZMHV
kUUg4b1hpaXM3eVV3YSIsInNjb3BlIjoiZGVmYXVsdCIsImlzcyI6Imh0dHBzOlwvXC9sc3ZxYXNjb250c
m9sMDFhLmludGVybmFsLnVuaXRlbC5jby5hbzoke2h0dHBzLm5pby5wb3J0fVwvb2F1dGgyXC90b2t
lbiIsImV4cCI6MTY3ODkzMzE1NCwiaWF0IjoxNjc4OTI5NTU0LCJqdGkiOiJhNGU3MDU3ZC1kZGUxLT
QwNmQtYTFjZi1kMDZjNTllMTYxNWUifQ.j0pNNxbU2mgRez1zc-UG1USe_k7laN_W2kgDym-
rNIFX4_SBFArVODGHcaeNYq47GhkSj3tg-
IgRl1nVfRVjqUUdAvQd5wEQFbZcb6f3dLjQS7kprSHqTnXXxVAX_Qo7rOG6Asp0oZf947HRP-
xihCVFQrPx3jIPMYRanNv9I1hnFHnrPENlEoCyHbAgQ7B53VPGJ3Vq588sUQQ920KzVMYs_KOeVnG
DT_QIyJK-
4Ry6hMohA2Lu1ToxFIQqNgTPF9muDTYPJF8HulQq3mkgWImQWWwinBmtSAzWYzj62ZUCGInZzrrl
q2T7V2uJ3sO_5YI7AVjgwQNCPoJkDt6zGw' \
-d '{
"QueryOrganizationStatement": {
"Timestamp": "20130502152345",
"OriginatorConversationID": "S_X2013615921tt21139634",
"Identity": {
"Initiator": {
"IdentifierType": 12,
"Identifier": "ApiPremier",
"SecurityCredential":
"foPQuRW7Qu8vZo8HoTyI96iFjCWl+B0gQ+RF/cVk1BTHSpcEesLGbRz21L5N8BD2t46dvGZS4N8eaj4
QxWt4gGnZeipTXeU1ELv4BgWMWFycko2FMxCUMU3cr+Ih6gPzr51XFE4Zce6hFPjjRLT5t1+JAlocGA
MGdIdnqQhFLOm47Bb91FFik3lgvlXqmMKRVHw24QmheWDC3J+dTPAuYjCjcEeLtvcgjRvlqvYvzFTt
MPxXzHD5UzShrgTzvX7jffoDy1nlFYEiTMcouvsZ0ZdhSavmj4IuMbrhDsopPF6ZwukRPexJ8t6EJS36PS
qoVMeAKLUoa24krGdCIAOQEw==",
"ShortCode": "00001209"
},
"ReceiverParty": {
"IdentifierType": 4,
"Identifier": "00001209"
}
},
"QueryOrganizationStatementRequest": {
"StartDateTime": "20230112215959",
"EndDateTime": "20230126215959"
}
}
}'
Response messages
{
"Response": {
"OriginatorConversationID": "S_X2013615921tt21139634",
"ConversationID": "AG_20230316_7010301960bf529c80da",
"ResponseCode": 0,
"ResponseDesc": "Accept the service request successfully.",
"ServiceStatus": 0
}
}
Result messages
<res:TransIdentityMnemonic>00001209 - PremierBet</res:TransIdentityMnemonic>
<res:IdentityMnemonic>00001209 - PremierBet</res:IdentityMnemonic>
<res:AvailableBalance>191629</res:AvailableBalance>
<res:ReasonTypeAlias>Customer Buy Goods</res:ReasonTypeAlias>
</res:TransactionEntryInfo>
<res:TransactionEntryInfo>
<res:IdentityId>201000000000071007</res:IdentityId>
<res:TransIndex>AAG3005UYJ</res:TransIndex>
<res:AccountNo>500000000110571105</res:AccountNo>
<res:TransactionEndTime>20230116150015</res:TransactionEndTime>
<res:TransactionTime>20230116150015</res:TransactionTime>
<res:AEAuditIndex>212568</res:AEAuditIndex>
<res:Details>Taxa paga a MM SP pelo 00001209 - PremierBet</res:Details>
<res:ReasonTypeId>2519</res:ReasonTypeId>
<res:PaidInAmount>0</res:PaidInAmount>
<res:WithdrawalAmount>379</res:WithdrawalAmount>
<res:TransIdentityMnemonic>00001209 - PremierBet</res:TransIdentityMnemonic>
<res:IdentityMnemonic>00001209 - PremierBet</res:IdentityMnemonic>
<res:AvailableBalance>191682</res:AvailableBalance>
<res:ReasonTypeAlias>Customer Buy Goods</res:ReasonTypeAlias>
</res:TransactionEntryInfo>
<res:TransactionEntryInfo>
<res:IdentityId>201000000000071007</res:IdentityId>
<res:TransIndex>AAG3005UYJ</res:TransIndex>
<res:AccountNo>500000000110571105</res:AccountNo>
<res:TransactionEndTime>20230116150015</res:TransactionEndTime>
<res:TransactionTime>20230116150015</res:TransactionTime>
<res:AEAuditIndex>212567</res:AEAuditIndex>
<res:Details>Customer Buy Goods</res:Details>
<res:ReasonTypeId>2519</res:ReasonTypeId>
<res:PaidInAmount>18950</res:PaidInAmount>
<res:WithdrawalAmount>0</res:WithdrawalAmount>
<res:TransIdentityMnemonic>00001209 - PremierBet</res:TransIdentityMnemonic>
<res:IdentityMnemonic>00001209 - PremierBet</res:IdentityMnemonic>
<res:AvailableBalance>192061</res:AvailableBalance>
<res:ReasonTypeAlias>Customer Buy Goods</res:ReasonTypeAlias>
</res:TransactionEntryInfo>
<res:TransactionEntryInfo>
<res:IdentityId>201000000000071007</res:IdentityId>
<res:TransIndex>AAG1005UYH</res:TransIndex>
<res:AccountNo>500000000110571105</res:AccountNo>
<res:TransactionEndTime>20230116145825</res:TransactionEndTime>
<res:TransactionTime>20230116145825</res:TransactionTime>
<res:AEAuditIndex>212564</res:AEAuditIndex>
<res:Details>Taxa paga a MM SP pelo 00001209 - PremierBet</res:Details>
<res:ReasonTypeId>2519</res:ReasonTypeId>
<res:PaidInAmount>0</res:PaidInAmount>
<res:WithdrawalAmount>378</res:WithdrawalAmount>
<res:TransIdentityMnemonic>00001209 - PremierBet</res:TransIdentityMnemonic>
<res:IdentityMnemonic>00001209 - PremierBet</res:IdentityMnemonic>
<res:AvailableBalance>173164</res:AvailableBalance>
<res:ReasonTypeAlias>Customer Buy Goods</res:ReasonTypeAlias>
</res:TransactionEntryInfo>
</res:QueryOrganizationStatementResult>
</res:Body>
</api:Result>
</soapenv:Body>
</soapenv:Envelope>
Mobile Money system provides the function of querying customer registration information. This
interface is invoked by a third party of the Mobile Money system to request querying the customer
information.
Request
Endpoint HTTP
https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/queryCustomerInfo
Método HTTP:
POST
Headers HTTP:
Content-Type: application/json
Accept: application/json
Sample request
curl -X 'POST' \
'https://apigateway.unitel.co.ao:8343/v1/partners/1.0.0/queryCustomerInfo' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer
eyJ4NXQiOiJOakF3TkdZMVpEUmpPV1V4WVdSaE9EZGpOMlJsTmpFMlpUSTJOVFptWmpZe
VltWmhZekUwWlEiLCJraWQiOiJNbU15TkdVMFpERXpNV0l4WldObE9UbG1Nek5oTXpFMF
pHTXdZV1UwT1dVMU1EbGpPV0prTmpWalpEUm1OVFpsWTJWbFpUUmtORGN5T0RZd1lt
TmpOd19SUzI1NiIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiJhZG1pbiIsImF1dCI6IkFQUExJQ0FUSU9
OIiwiYXVkIjoiQzZYYVZQOUtkM2FZMHVkUUg4b1hpaXM3eVV3YSIsIm5iZiI6MTY3NjM2OTA
1NCwiYXpwIjoiQzZYYVZQOUtkM2FZMHVkUUg4b1hpaXM3eVV3YSIsInNjb3BlIjoiZGVmYXV
sdCIsImlzcyI6Imh0dHBzOlwvXC9sc3ZxYXNjb250cm9sMDFhLmludGVybmFsLnVuaXRlbC5jb
y5hbzoke2h0dHBzLm5pby5wb3J0fVwvb2F1dGgyXC90b2tlbiIsImV4cCI6MTY3NjM3MjY1NC
wiaWF0IjoxNjc2MzY5MDU0LCJqdGkiOiJlNWYzMDdiMS0xNjIzLTQzNDgtOWMzZi0yMTYxM
WE2NGU1MzMifQ.LUKP_w1K02IAFV1V6HykD9Yt3Krp_Vieb_utwRhBBEaSldsO7_GiLRs7N
NlsxCmFcL_UcslUf0S7rAIvHMKNujqNU_gO8N2MyR8BWv_E6gz1XDbvH5HMlX1BcQq76Qv
0K9V4PjZUKdVwrOqtWbLR_qK-
Zjp0Bqbe1esA9Dhft1lQHutB_cDFTZNjdl5qONBORUF4BfO3pZPSV5C-TP_Dxp62y0o-
u_181kL84Ri37xevAkT-kPE_-rmvF9g1-GTxH53XvasbvLZq-
raxol8mC2UgguPyAQEfWCvZw3V3rg-
v72MIGnWpyRLGvjkXGcU3Xl9vX50YcPoMG2cDWYXoBw' \
-d '{
"QueryCustomerInfoRequest": {
"Timestamp": "20211102172425",
"OriginatorConversationID": "Teste_120220231tt7280tt0ed13",
"Identity": {
"Initiator": {
"IdentifierType": 12,
"Identifier": "dstvTestOp",
"SecurityCredential":
"eo1ws3yGLA8RF5w3LNBl3W5wERKvFQHoTQvmCVPtBpJTFAuI9Gdtns4pTj5LEjJWIrBFnT1
Mk7JGi34VLa5MKrXNrS4myI/fVdNKZlNejZFhrTMyybCqhh7mJuW5/R3JXvNs7tPGgB4/1PM
qcL/oFBzeF5mX8IZIG61pEsG45j4FX1vmPRUovq7rScKWv6ofa9Cpv/iT2rkinbaXt46jBWjfAhR
/kdAkISLlJV1BY/3w3g3ssfxWozy2WjzziFsmNomzc0iVV1jxaAMjFk0tz+lV9irjfRPOK6c+Rtxz8z
NJGQyFX91yPrLGNQYwJRyBqNsQoCrFD5zFl9QznxbNnQ==",
"ShortCode": "00001708"
},
"ReceiverParty": {
"IdentifierType": 1,
"Identifier": "930300680"
}
}
}
}
'
Response
Customer registered in Unitel Money:
{
"Result": {
"OriginatorConversationID": "Teste_120220231tt7280tt0ed13",
"ConversationID": "AG_20230214_70103760b4d0950b4939",
"ResultType": 0,
"ResultCode": 0,
"ResultDesc": "Process service request successfully.",
"QueryCustomerInfoResult": {
"BOCompletedTime": "20230214111334",
"IdentityStatus": 3
}
}
}
{
"Result": {
"OriginatorConversationID": "Teste_120220231tt7280tt",
"ConversationID": "AG_20230214_70104af9edd816b2d5c9",
"ResultType": 0,
"ResultCode": 3013002,
"ResultDesc": "The identity does not exist or is invalid."
}
}
{
"Result": {
"OriginatorConversationID": "Teste_120220231tt728h0tt09e",
"ConversationID": "AG_20230214_70103473664ea086e5a8",
"ResultType": 0,
"ResultCode": 3015,
"ResultDesc": "MSISDN verification failed."
}
}
3013002 MSISDN doesn’t exist in system / The identity does not exist or is invalid.
401901 Customer cancelled the transaction / You have cancelled the request.
3013001 PIN incorrect / The user name does not exist or the security credential is
incorrect.
APIG_-1 No response for the conversationID ( you must use the