API Explorer API Reference

Snap Checkout 2.0 API is built to help empower your tools and applications to get the most out of them through an easy integration. All our APIs are organized around REST. All our APIs will return JSON as response, including errors.

Schemes: https

Authentication

jwt-authorizer-sandbox-internal

type
apiKey
name
Authorization
in
header
x-amazon-apigateway-authtype
custom

Login

POST /auth-sandbox.snapfinance.com/oauth/token

Authenticate users and get an access_token

Credentials to obtain token

Request Example
{
  "client_id": "string",
  "client_secret": "string",
  "audience": "string",
  "grant_type": "string"
}

Success

400 Bad Request

Bad Request

401 Unauthorized

Unauthorized

403 Forbidden

Forbidden

404 Not Found

Not Found

405 Method Not Allowed

Method Not Allowed

429 Too Many Requests

Too Many Requests

500 Internal Server Error

Internal Server Error

503 Service Unavailable

Service Unavailable

Response Content-Types: application/json
Response Example (200 OK)
{
  "access_token": "string",
  "scope": "string",
  "expires_in": "string",
  "token_type": "string"
}

Application

POST /v2/internal/application/complete/{applicationId}

Updates application status to either Complete or Pending Delivery

Authorization: string
in header

(no description)

applicationId: string
in path

(no description)

Application status updated successfully

401 Unauthorized

Unauthorized to perform update

404 Not Found

Not found

500 Internal Server Error

Issue with Snap- Server Error - Error completing order

Response Content-Types: application/json
Response Example (200 OK)
{
  "access_token": "string",
  "scope": "string",
  "expires_in": "string",
  "token_type": "string"
}
Response Example (401 Unauthorized)
{
  "success": "string",
  "status": "string",
  "statusMessage": "string",
  "error": {
    "code": "integer",
    "message": "string"
  }
}
Response Example (404 Not Found)
{
  "success": "string",
  "status": "string",
  "statusMessage": "string",
  "error": {
    "code": "integer",
    "message": "string"
  }
}
Response Example (500 Internal Server Error)
{
  "success": "string",
  "status": "string",
  "statusMessage": "string",
  "error": {
    "code": "integer",
    "message": "string"
  }
}

Payment Calculator

POST /v2/tools/payment-calculator/{merchantId}

Values to calculate

merchantId: integer (int64)
in path

Merchant Id

Request Example
{
  "invoiceAmount": "number",
  "paymentAmount": "number",
  "frequency": "string",
  "applicationId": "number"
}

Calculation successful

400 Bad Request

Application not found

500 Internal Server Error

Error calculating invoice

Response Content-Types: application/json
Response Example (200 OK)
{
  "success": "string",
  "status": "string",
  "statusMessage": "string",
  "data": {
    "message": "string"
  }
}
Response Example (400 Bad Request)
{
  "success": "string",
  "status": "string",
  "statusMessage": "string",
  "error": {
    "code": "integer",
    "message": "string"
  }
}
Response Example (500 Internal Server Error)
{
  "success": "string",
  "status": "string",
  "statusMessage": "string",
  "error": {
    "code": "integer",
    "message": "string"
  }
}

Schema Definitions

PaymentCalc: object

invoiceAmount: number
paymentAmount: number
frequency: string WEEKLY, BI_WEEKLY, SEMI_MONTHLY, MONTHLY, MONTHLY_WEEK
applicationId: number
Example
{
  "invoiceAmount": "number",
  "paymentAmount": "number",
  "frequency": "string",
  "applicationId": "number"
}

LoginModel: object

client_id: string
client_secret: string
audience: string
grant_type: string
Example
{
  "client_id": "string",
  "client_secret": "string",
  "audience": "string",
  "grant_type": "string"
}

ErrorResponseModel: object

success: string
status: string
statusMessage: string
error: object
code: integer
message: string
Example
{
  "success": "string",
  "status": "string",
  "statusMessage": "string",
  "error": {
    "code": "integer",
    "message": "string"
  }
}

LoginResponseModel: object

access_token: string
scope: string
expires_in: string
token_type: string
Example
{
  "access_token": "string",
  "scope": "string",
  "expires_in": "string",
  "token_type": "string"
}

SuccessfulResponseModel: object

success: string
status: string
statusMessage: string
data: object
message: string
Example
{
  "success": "string",
  "status": "string",
  "statusMessage": "string",
  "data": {
    "message": "string"
  }
}
Web Development
Dedicated Tech Support
We want to hear from you! Email devsupport@snapfinance.com for help or questions.

Alert

Are you still there? Your session will time out in 5 minutes. Click OK to continue

OK