Skip to content
Orillion logo
Soramitsu logo

Assembling a contribution

Protocol: HTTP

EncodingJSON

Endpoint/data/api/v1/contribution-management/contribution/assemble

MethodPOST

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 CodeDescription
200Contribution has been assembled and its transaction data has been retrieved successfully.
400Contribution type is invalid.
404Account not found or the rewards table doesn't exist.
500Internal server error.