Skip to content
Orillion logo
Soramitsu logo

Retrieving top contributions

Protocol: HTTP

EncodingJSON

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

MethodGET

Parameters:

FieldValue TypeDescription
sizeinteger($int32)The number of entries, starting with the latest, shown in the response.
Set to 50 by default.
from and tostringThe timeframe that the response entries are filtered by (set as Unix Epoch time in seconds).
The from parameter is set to 0 by default.
ftarray[string]The type of the fraud event.
Could be one of the following:
  1. Wangiri
  2. IRSF
  3. StolenDevice
  4. IPFraud
  5. SMSA2P
orgarray[string]The country of origination of the fraud event. Set as a two-digit country code (Alpha-2, ISO 3166; e.g., US, GA)
self-onlybooleanA boolean that defines whether the response should only contain contributions submitted by the requesting peer.
The self-only parameter is set to false by default.
fetch-modestringThe parameter that filters the response entries based on whether the requesting user has already seen them.
Could be one of the following:
  1. NEW — includes only the unseen by the requesting user entries.
  • OLD — includes only the already seen by the requesting user entries.
  • DEFAULT — includes all of the entries.

  • The fetch-mode parameter is set to DEFAULT by default.
    fetch-modestringThe parameter that filters the response entries based on whether the requesting user has already seen them.
    Could be one of the following:
    1. NEW — includes only the unseen by the requesting user entries.
    2. OLD — includes only the already seen by the requesting user entries.
    3. DEFAULT — includes all of the entries.

    The fetch-mode parameter is set to DEFAULT by default.
    confidence-scorebooleanA boolean that defines whether the price of the retrieved contributions is affected by the confidence index. If set to true, the price of any given contribution is expected to rise above the default conversion rate.
    The confidence-score parameter is set to false by default.

    Input/request structure:

    A GET request to the endpoint.

    Output/response structure:

    Show
    json5
    {
      status: {
        code: 0, //integer($int32)
        name: 'string',
        message: 'string'
      },
      data: {
        contributions: [
          {
            id: 'string',
            fraudType: 'string(enum)', //Could be one of the following: Wangiri, IRSF, StolenDevice, IPFraud, SMSA2P
            origination: 'string',
            destination: 'string',
            expiryDate: 0, //integer($int32)
            fraudStatus: 'string(enum)', //Could be one of the following: Active, Expired, Flagged
            confidenceIndex: 0, //number($double)
            isPremium: true, //boolean
            peerId: 'string',
            flagger: 'string',
            premium: true //boolean
          }
        ],
        details: {
          self: 0,
          old: 0,
          new: 0,
          creditsSpent: 0
        }
      }
    }
    {
      status: {
        code: 0, //integer($int32)
        name: 'string',
        message: 'string'
      },
      data: {
        contributions: [
          {
            id: 'string',
            fraudType: 'string(enum)', //Could be one of the following: Wangiri, IRSF, StolenDevice, IPFraud, SMSA2P
            origination: 'string',
            destination: 'string',
            expiryDate: 0, //integer($int32)
            fraudStatus: 'string(enum)', //Could be one of the following: Active, Expired, Flagged
            confidenceIndex: 0, //number($double)
            isPremium: true, //boolean
            peerId: 'string',
            flagger: 'string',
            premium: true //boolean
          }
        ],
        details: {
          self: 0,
          old: 0,
          new: 0,
          creditsSpent: 0
        }
      }
    }

    Responses

    Response CodeDescription
    200Contributions have been successfully retrieved and filtered by the specified parameters.
    400Request parameters are invalid or the fraud type could not be resolved by code.
    404Contribution subscription has not been found.
    500Internal server error.