API Endpoints

post
Authorizations
Body
firstNamestringRequiredExample: Peter
lastNamestringRequiredExample: Jones
phoneall ofRequired
addressall ofRequired
Responses
201
Successful operation.
application/json
ResponseanyExample: {"statusCode":201}
post
POST /payments/customer-enrollment HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 222

{
  "firstName": "Peter",
  "lastName": "Jones",
  "phone": {
    "number": "9786431878",
    "countryCode": "1"
  },
  "address": {
    "street1": "Main 123",
    "street2": "Secondary St",
    "city": "Los Angeles",
    "state": "CA",
    "countryCode": "US",
    "postalCode": "12345"
  }
}
{
  "statusCode": 201
}
get
Authorizations
Responses
200
Successful operation.
application/json
get
GET /payments/customers HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*
{
  "statusCode": 200,
  "data": {
    "name": "Peter Jones",
    "phone": {
      "number": "9786431878",
      "countryCode": "1"
    },
    "address": {
      "street1": "Main 123",
      "street2": "Secondary St",
      "city": "Los Angeles",
      "state": "CA",
      "countryCode": "US",
      "postalCode": "12345"
    },
    "userExternalId": "c495345a-bf0c-4af3-bc66-a59d570f4459"
  }
}
get
Authorizations
Responses
200
Successful operation
application/json
get
GET /payments/charges HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*
{
  "statusCode": 200,
  "data": {
    "charges": [
      {
        "chargeId": "py_1MGu3AJbiW7FRdJYvghbU3jh",
        "amount": "10",
        "status": "succeeded"
      }
    ]
  }
}
post
Authorizations
Body
amountstringRequiredExample: 10
fromAccountIdstringOptionalExample: ba_1MCkDNJbiW7FRdJYJDT684sV
Responses
201
Successful operation.
application/json
ResponseanyExample: {"statusCode":201}
post
POST /payments/charges HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 61

{
  "amount": "10",
  "fromAccountId": "ba_1MCkDNJbiW7FRdJYJDT684sV"
}
{
  "statusCode": 201
}
post
Authorizations
Responses
201
Successful operation.
application/json
ResponseanyExample: {"statusCode":201}
post
POST /payments/authorizations HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*
{
  "statusCode": 201
}
delete
Authorizations
Body
cancelReasonstringRequiredExample: Personal reasons
Responses
200
Successful operation
application/json
ResponseanyExample: {"statusCode":200}
delete
DELETE /payments/authorizations HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 35

{
  "cancelReason": "Personal reasons"
}
{
  "statusCode": 200
}
post
Responses
400
The request was not made by Stripe
application/json
ResponseanyExample: {"statusCode":400,"message":"Bad Request"}
post
POST /payments/stripe-wh HTTP/1.1
Host: 
Accept: */*
400

The request was not made by Stripe

{
  "statusCode": 400,
  "message": "Bad Request"
}

Last updated

Was this helpful?