Skip to content

API Reference (0.0.1)

Comprehensive reference for integrating with CargoSprint API endpoints

Download OpenAPI description
Languages
Servers
Mock server
https://developer.cargosprint.com/_mock/sprintpay/openapi
https://{service}-{environment}.cargosprintgroup.com

Oauth

The SprintPay API uses Authorization Tokens to authenticate requests.

SprintPay’s OAuth system that uses a access token that is private and reserved for specific official partnerships. To get set up with access please inquire directly with your SprintPay relationship manager.

This API enables partners to register their own systems or authorized third-party systems to be able to execute actions.

Operations

Facilities

API reference for facilities endpoints and webhooks.

The /get/facilities is an endpoint that allow you to retrieve facilities contacts information on file including Facility Name, Airport Code, Firms Code, Phone, Address, City and Delivery.

Operations

Get all facilities

Request

Get facilities by query.

Query
namestring

Facility name. Can be truncated.

Example: name=Test Cargo
firmsCodestring

Facilities Information and Resources Management System (FIRMS) code.

Example: firmsCode=L247
airportCodestring

Facility airport code.

Example: airportCode=JFK
airlinePrefixstring

Three digit prefix that identifies the airline transporting the cargo.

Example: airlinePrefix=871
Headers
x-app-idstring

Encoded customer identifier.

Example: 2ZMEEX2otslHtRRgzQC0tPVwbasC23455vx0k=
curl -i -X GET \
  'https://developer.cargosprint.com/_mock/sprintpay/openapi/facilities?name=Test+Cargo&firmsCode=L247&airportCode=JFK&airlinePrefix=871' \
  -H 'x-app-id: 2ZMEEX2otslHtRRgzQC0tPVwbasC23455vx0k='

Responses

Success.

Bodyapplication/json
contentArray of objects(content)
pageableobject(pageable)
totalPagesinteger
Example: 4
lastboolean
Example: false
totalElementsinteger
Example: 37
firstboolean
Example: true
sortobject(sort)
numberOfElementsinteger
Example: 10
sizeinteger
Example: 10
numberinteger
Example: 0
emptyboolean
Example: false
Response
application/json
{ "content": [ { … }, { … } ], "pageable": { "sort": { … }, "pageSize": 10, "pageNumber": 0, "offset": 0, "paged": true, "unpaged": false }, "totalPages": 4, "last": false, "totalElements": 37, "first": true, "sort": { "unsorted": true, "sorted": false, "empty": true }, "numberOfElements": 10, "size": 10, "number": 0, "empty": false }

Cart

API reference for cart endpoints and webhooks.

The /post/payments is an endpoint that allow you to manage the end user’s cart, initiate and process the payments to the facilities.

Operations

Invoices

API reference for invoices endpoints and webhooks.

The /post/external/downloadinvoices is an endpoint that allow you to retrieve and manage open and paid invoices. This will be retrieved as an Excel file with information such as Cargo Payment Created Date, Email, Airport Code, Cargo Payment: Payment Reference #, Cargo Facility: Airline Cargo Facility Name, Airline AWB #, Customer Reference #, Cargo Payment: Amount and Total Invoice Amount.

Operations

Payments

API reference for payments endpoints and webhooks.

The /post/external/paymentConfirmation is an endpoint that allows you to retrieve and manage electronic payment confirmations. This will be retrieved as a PDF file or a ZIP with multiple PDF files containing information such as Cargo Payment Created Date, Email, Facility Branch, Cargo Payment: Payment Reference #, Cargo Facility: Airline Cargo Facility Name, Airline AWB #, Customer Reference #, Cargo Payment: Amount and Total Invoice Amount.

Operations