POST
/
api
/
v1
/
payment
/
invoice_payment
/
create
{
  "invoice": {
    "line_items": [
      {
        "name": "<string>",
        "unit_price": 123,
        "quantity": 123,
        "amount": 123,
        "description": "<string>"
      }
    ],
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "amount": 123,
    "invoice_number": "<string>",
    "invoice_date": "2023-12-25",
    "description": "<string>"
  },
  "customer_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "payment_status": "<string>",
  "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "total_amount": 123,
  "reference_number": "<string>",
  "payment_scheduled_date": "2023-11-07T05:31:56Z",
  "payment_completed_date": "2023-11-07T05:31:56Z"
}

Authorizations

X-API-Key
string
header
required

Body

application/json
invoice
object
required
customer_uuid
string
required

The JustPaid customer ID

Response

200 - application/json
OK
invoice
object
required
total_amount
number
required

Total amount of the payment

customer_uuid
string
payment_status
string
uuid
string
reference_number
string | null

Reference number for the payment

Maximum length: 50
payment_scheduled_date
string | null

Date and time on which the payment is scheduled to be made

payment_completed_date
string | null

Date and time on which the payment is completed