Assembling a contribution
Protocol: HTTP
Encoding: JSON
Endpoint: /data/api/v1/contribution-management/contribution/assemble
Method: POST
Parameters: —
Input/request structure:
Show
json5
[
{
id: 'string', //fraud identifier value
fraudType: 'string(enum)', //Could be one of the following: Wangiri, IRSF, StolenDevice, IPFraud, SMSA2P
origination: 'string', //two-digit country code (Alpha-2, ISO 3166)
destination: 'string', //two-digit country code (Alpha-2, ISO 3166)
expiryDate: 0 //integer($int32), Unix Epoch Time in seconds
}
]
[
{
id: 'string', //fraud identifier value
fraudType: 'string(enum)', //Could be one of the following: Wangiri, IRSF, StolenDevice, IPFraud, SMSA2P
origination: 'string', //two-digit country code (Alpha-2, ISO 3166)
destination: 'string', //two-digit country code (Alpha-2, ISO 3166)
expiryDate: 0 //integer($int32), Unix Epoch Time in seconds
}
]
Note
This endpoint accepts requests with up to 500
entries.
Output/response structure:
Show
json5
{
status: {
code: 0, //integer($int32)
name: 'string',
message: 'string'
},
data: 'string'
}
{
status: {
code: 0, //integer($int32)
name: 'string',
message: 'string'
},
data: 'string'
}
Responses
Response Code | Description |
---|---|
200 | Contribution has been assembled and its transaction data has been retrieved successfully. |
400 | Contribution type is invalid. |
404 | Account not found or the rewards table doesn't exist. |
500 | Internal server error. |