POST/v1/payments/collection

Collections

Debit money from a mobile money wallet. Name Verify must be called before DebitMoneyService. This API is asynchronous.

Details

AuthorizationBearer API Key
Content TypeApplication/Json
URLhttps://360pay-merchant-api.libertepay.com/v1/payments/collection
MethodPOST

Parameters

NameTypeRequiredDescription
account_namestringYesFull name of the payer (from Name Verify)
account_numberstringYesMobile money or bank account number
amountfloatYesAmount to collect (two decimal places)
institution_codestringYesIssuer routing code
transaction_idstringYesConsumer transaction ID
currencystringYesCurrency (default: GHS)
referencestringNoTransaction reference
metadataobjectNoAdditional metadata

Parameters Description

ParameterDescriptionisMandatoryComment
transaction_IdConsumer transaction IdYes
account_numberMobile Money or Bank Account number to receive the disbursementYesMust be 12 digits for a mobile money account. EG: 233XXXXXXXXX
account_nameFull name of the recipient of disbursementYesValue is retrieved from NameVerify API
amountAmount to be disbursedYesIn two decimal places
institution_codeIssuer routing codeYes
currencyCurrencyYesGHS is the default value
referenceDescription of transactionNo
codeRequest Status code
statusStatus code descriptionSUCCESS/FAILED
dataInformation returned
msgGives the status of the transaction to the userDate and time GMT

Status Codes

200Success
202Request is being processed
401Unauthorized
409Request expired
500System error

Try It

Request Body

json
{
  "account_name": "string",
  "account_number": "string",
  "amount": float,
  "institution_code": "string",
  "transaction_id": "string",
  "reference": "string",
  "currency": "string",
  "metadata": {
    "string": "string"
  }
}
Response Body
{
  "code": "string",
  "data": {
    "transaction_id": "string",
    "transaction_message": "string"
  },
  "msg": "string",
  "status": "string"
}