POST
/
client
/
pay
curl --request POST \
  --url https://api.helpyousponsor.com/v1/client/pay \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "number": "4242424242424242",
  "cvc": "123",
  "expiryMonth": "12",
  "expiryYear": "2023",
  "user_id": "1",
  "fee": "100.00",
  "first_name": "John",
  "last_name": "Doe"
}'
{
  "status": "success",
  "message": "Payment successful"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
Payment details are required
number
string
Example:

"4242424242424242"

cvc
string

Card CVC

Example:

"123"

expiryMonth
string

Card expiry month

Example:

"12"

expiryYear
string

Card expiry year

Example:

"2023"

user_id
integer

User ID

Example:

"1"

fee
number

Payment amount

Example:

"100.00"

first_name
string

First name

Example:

"John"

last_name
string

Last name

Example:

"Doe"

Response

200
application/json
Successful operation
status
string
Example:

"success"

message
string
Example:

"Payment successful"