Skip to main content
POST
/
invoices
/
pay
cURL
curl --request POST \
  --url https://api.yourjobsearchgenius.ai/v1/invoices/pay \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "_id": "507f1f77bcf86cd799439011",
  "expiryDate": "1672531200",
  "invoiceUrl": "https://example.com/invoices/12345",
  "subscriptionId": "sub_abc123",
  "paidAt": "1672531200"
}
'
{
  "success": true,
  "message": "Invoice created successfully"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Invoice to add to the system.

_id
string
required

Invoice ID in their system

Example:

"507f1f77bcf86cd799439011"

expiryDate
integer
required

The expiry date of the invoice(unix timestamp in milliseconds)

Example:

"1672531200"

invoiceUrl
string<uri>
required

URL to access the invoice

Example:

"https://example.com/invoices/12345"

subscriptionId
string
required

Subscription ID in our system

Example:

"sub_abc123"

paidAt
integer
required

The expiry date of the invoice(unix timestamp in milliseconds)

Example:

"1672531200"

Response

Resource fetched successfully

success
boolean
Example:

true

message
string
Example:

"Invoice created successfully"