curl --location --request POST 'https://sandbox.paypoint.blackkonnect.io/services/blackkonnectpaypointswitch/api/energy/transaction/bill-payment' \
--header 'X-ServiceAccount-ID;' \
--header 'X-Organisation-ID;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"messageId": "string",
"serviceId": "string",
"requestId": "string",
"initiatorEntityReference": "string",
"initiatorId": "string",
"initiatorLocale": "string",
"billPayment": {
"accountNumber": "string",
"amount": 0,
"countryCode": "string",
"currencyCode": "string",
"transactionReference": "string",
"accountHolderEntity": {
"entityId": "string",
"entityReferenceAccountId": "string",
"entityName": "string",
"contactNumber": "string",
"emailAddress": "string",
"entityAddress": "string",
"addressLine1": "string",
"addressLine2": "string",
"city": "string",
"state": "string",
"zipCode": "string",
"country": "string",
"vatNumber": "string",
"firstName": "string",
"lastName": "string",
"entityProfileType": "ORGANIZATION"
},
"billPayerEntity": {
"entityId": "string",
"entityReferenceAccountId": "string",
"entityName": "string",
"contactNumber": "string",
"emailAddress": "string",
"entityAddress": "string",
"addressLine1": "string",
"addressLine2": "string",
"city": "string",
"state": "string",
"zipCode": "string",
"country": "string",
"vatNumber": "string",
"firstName": "string",
"lastName": "string",
"entityProfileType": "ORGANIZATION"
},
"recipientEntity": {
"entityId": "string",
"entityReferenceAccountId": "string",
"entityName": "string",
"contactNumber": "string",
"emailAddress": "string",
"entityAddress": "string",
"addressLine1": "string",
"addressLine2": "string",
"city": "string",
"state": "string",
"zipCode": "string",
"country": "string",
"vatNumber": "string",
"firstName": "string",
"lastName": "string",
"entityProfileType": "ORGANIZATION"
}
}
}'{
"code": 0,
"message": {},
"data": {},
"correlationId": "string",
"conversationId": "string",
"requestId": "string",
"initiatorId": "string",
"billPaymentOrderReceipt": {
"transactionId": "string",
"transactionDate": "2019-08-24T14:15:22Z",
"invoiceAmount": 0,
"faceValue": 0,
"discount": 0,
"fee": 0,
"tax": 0,
"levy": 0,
"product": {
"skuId": "string",
"productName": "string",
"faceValue": 0
},
"accountHolderEntity": {
"entityId": "string",
"entityReferenceAccountId": "string",
"entityName": "string",
"contactNumber": "string",
"emailAddress": "string",
"entityAddress": "string",
"addressLine1": "string",
"addressLine2": "string",
"city": "string",
"state": "string",
"zipCode": "string",
"country": "string",
"vatNumber": "string",
"firstName": "string",
"lastName": "string",
"entityProfileType": "ORGANIZATION"
},
"billPayerEntity": {
"entityId": "string",
"entityReferenceAccountId": "string",
"entityName": "string",
"contactNumber": "string",
"emailAddress": "string",
"entityAddress": "string",
"addressLine1": "string",
"addressLine2": "string",
"city": "string",
"state": "string",
"zipCode": "string",
"country": "string",
"vatNumber": "string",
"firstName": "string",
"lastName": "string",
"entityProfileType": "ORGANIZATION"
},
"billPaymentDetail": {
"accountNumber": "string",
"accountReferenceNumber": "string",
"token": "string",
"unit": "string",
"unitValue": 0,
"receiptNarration": "string",
"localCurrencyAmount": 0,
"localCurrencyAmountExcludingTax": 0,
"salesTaxAmount": 0,
"levyAmount": 0,
"destinationCurrency": "string",
"transactionDate": "2019-08-24T14:15:22Z",
"transactionReference": "string",
"paymentReference": "string"
}
},
"isSuccessful": true
}