In a marketplace, suppliers (e.g. drivers, couriers or restaurants) may also be involved in fraud. This endpoint can be used to send Ravelin more detailed information on suppliers. You can associate suppliers with orders using the order.suppliers field and use the Ravelin dashboard to investigate supplier activity.
You can send us additional information about suppliers at registration using the Registration endpoint.
The time at which this data payload was valid. When sending events in realtime, this will usually be 'now'. This is used to merge data that arrives out-of-order. A Unix timestamp preferably as an
integer count of milliseconds since |
The supplier registering or updating their account profile. |
An eventType should identify what event in your system triggered this API call. Pattern:
^[a-zA-Z0-9][a-zA-Z0-9-_]*$ |
The device that the supplier is using. |
Identifications are used by online suppliers to verify their real-world identity. These forms of identification can be authenticated with government authorities or authorised third-parties to confirm the credentials are legitimate. Extra steps should be taken to confirm the supplier is the legitimate holder of these credentials. |
Vehicles the supplier owns or uses. |
POST https://api.ravelin.com/v2/supplier HTTP/1.1
Authorization: token ...
Content-Type: application/json
{
"timestamp": 1512828988826,
"supplier": {
"supplierId": "abc-123-ZYZ",
"groupId": "abc-123",
"groupName": "Burger Chain",
"registrationTime": 1512828988826,
"email": "jsmith123@example.com",
"emailVerifiedTime": 1512828988826,
"name": "John Smith",
"telephone": "+16045555555",
"telephoneVerifiedTime": 1512828988826,
"telephoneCountry": "GBR",
"homeLocation": {
"country": "GBR",
"postalCode": "E1 1AA",
"latitude": 51.503252,
"longitude": -0.127899,
"addresseeName": "John Smith",
"street1": "123 fake st.",
"street2": "floor 4, flat 48",
"neighbourhood": "Hackney",
"zone": "1",
"city": "London",
"region": "California",
"poBoxNumber": "1234"
},
"taxAddress": {
"country": "GBR",
"postalCode": "E1 1AA",
"latitude": 51.503252,
"longitude": -0.127899,
"addresseeName": "John Smith",
"street1": "123 fake st.",
"street2": "floor 4, flat 48",
"neighbourhood": "Hackney",
"zone": "1",
"city": "London",
"region": "California",
"poBoxNumber": "1234"
},
"type": "driver",
"level": "gold",
"employmentType": "selfEmployed",
"transportType": "car",
"category": "private-hire",
"accountType": "INDIVIDUAL",
"accountPlatform": "anchor",
"identityVerified": false,
"tags": {
"foo": true,
"bar": false
}
},
"device": {
"deviceId": "65fc5ac0-2ba3-4a3b-aa5e-f5a77b845260",
"ipAddress": "81.152.92.84",
"language": "en-US",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",
"model": "Pixel XL",
"os": "android",
"type": "phone",
"manufacturer": "google",
"location": {
"country": "GBR",
"postalCode": "E1 1AA",
"latitude": 51.503252,
"longitude": -0.127899,
"addresseeName": "John Smith",
"street1": "123 fake st.",
"street2": "floor 4, flat 48",
"neighbourhood": "Hackney",
"zone": "1",
"city": "London",
"region": "California",
"poBoxNumber": "1234"
}
},
"nationalIdentifications": [
{
"driversLicense": {
"idNumber": "10261985",
"jurisdictionCountry": "USA",
"jurisdictionState": "CA",
"name": "Marty McFly"
}
}
],
"vehicles": [
{
"plate": "OUTATIME",
"jurisdictionCountry": "USA",
"jurisdictionState": "CA",
"make": "DeLorean Motor Company",
"model": "DeLorean",
"year": 1983,
"vin": "2GTEK13M081122443"
}
]
}
Was this page helpful?