Deliveries

Good to know: All the methods shown below are synced to an example Swagger file URL and are kept up to date automatically with changes to the API.

GET Delivery Pricing

Get the delivery price from departure to arrival

GET https://api.gorider.co/api/oauth2/v1/delivery/pricing

Query Parameters

Name
Type
Description

client_id*

String

client_secret_id*

String

departure*

String

arrival*

String

Headers

Name
Type
Description

Bearer Token*

String

API_KEY

curl https://api.gorider.co/v1/delivery/pricing?client_id={client_id}&client_secret_id={client_secret_id}&departure="10 rue du paradis, 75010"&arrival="121 rue du faubourg saint-denis, 75010"
    -H "Authorization: Bearer {token}"

GET Your Deliveries

Get your deliveries

GET https://api.gorider.co/api/oauth2/v1/deliveries

Query Parameters

Name
Type
Description

client_id*

String

client_secret_id*

String

$limit*

Number

By default set to 10

$page*

Number

Headers

Name
Type
Description

Bearer Token*

String

curl https://api.gorider.co/v1/deliveries?client_id={client_id}&client_secret_id={client_secret_id}
    -H "Authorization: Bearer {token}"

By default, the $page is equal to 1 and the $limit is equal to 10

GET Your Delivery

Get a delivery

GET https://api.gorider.co/api/oauth2/v1/delivery/:deliveryId

Path Parameters

Name
Type
Description

deliveryId*

String

Query Parameters

Name
Type
Description

client_id*

String

client_secret_id*

String

Headers

Name
Type
Description

Bearer Token*

String

curl https://api.gorider.co/v1/delivery/:deliveryId?client_id={client_id}&client_secret_id={client_secret_id}
    -H "Authorization: Bearer {token}"

GET Deliveries Statistics

GET https://api.gorider.co/api/oauth2/v1/deliveries/stats?

Path Parameters

Name
Type
Description

deliveryId

String

Query Parameters

Name
Type
Description

client_id*

String

client_secret_id*

String

$startDate

Date

$endDate

Date

Headers

Name
Type
Description

Bearer Token*

String

curl https://api.gorider.co/v1/delivery/statistics?client_id={client_id}&client_secret_id={client_secret_id}
    -H "Authorization: Bearer {token}"

UPDATE Deliveries Settings

Update deliveries settings

PUT https://api.gorider.co/api/oauth2/v1/delivery/settings

Query Parameters

Name
Type
Description

client_id*

String

client_secret_id

String

Headers

Name
Type
Description

Bearer Token

String

Request Body

Name
Type
Description

maxRadius

String

curl -XPUT https://api.gorider.co/v1/delivery/settings?client_id={client_id}&client_secret_id={client_secret_id}
    -H "Authorization: Bearer {token}"
    -H "Content-Type: application/json"
    -d '{"maxRadius": 5000}'

POST Order Delivery

Order a delivery

POST https://api.gorider.co/api/oauth2/v1/delivery

Query Parameters

Name
Type
Description

client_id*

String

client_secret_id*

String

Headers

Name
Type
Description

Bearer Token*

String

Request Body

Name
Type
Description

departure

Object

arrival*

Object

arrival.placeId*

String

arrival.contact*

Object

departure.placeId

String

departure.contact

Object

{
    // Response
}
curl https://api.gorider.co/v1/delivery/pricing?client_id={client_id}&client_secret_id={client_secret_id}&departure="10 rue du paradis, 75010"&arrival="121 rue du faubourg saint-denis, 75010"
    -H "Authorization: Bearer {token}"

CANCEL Ongoing Delivery

POST https://api.gorider.co/api/oauth2/v1/delivery/:delivery/cancel

Path Parameters

Name
Type
Description

deliveryId*

String

Query Parameters

Name
Type
Description

client_id*

String

client_secret_id*

String

Headers

Name
Type
Description

Bearer Token*

String

curl -XPUT https://api.gorider.co/v1/delivery/:deliveryId/cancel?client_id={client_id}&client_secret_id={client_secret_id}
    -H "Authorization: Bearer {token}"
    -H "Content-Type: application/json"
    -d '{ "reason": "Cancelled by the buyer" }'

UPDATE Ongoing Delivery

PUT https://api.gorider.co/api/oauth2/v1/delivery/:delivery/update

Path Parameters

Name
Type
Description

deliveryId

String

Query Parameters

Name
Type
Description

client_id*

String

Headers

Name
Type
Description

String

curl -XPUT https://api.gorider.co/v1/delivery/:deliveryId?client_id={client_id}&client_secret_id={client_secret_id}
    -H "Authorization: Bearer {token}"
    -H "Content-Type: application/json"
    -d '{ "arrival": { "placeId": "ChIJh_jHSBFu5kcRATQwxUT8k7o", "contact": { "phoneNumber": "+33633443344" } } }'

Last updated