createInvoice
MUTATIONCreates an invoice.
Arguments
inputRequired
The input object that contains all the information needed to create an invoice.
Response
Invoice
account_code
A custom value that will be passed on to the transaction when a payment is made through Pay Theory's hosted checkout.
created_date
The date the invoice was created.
currency
The currency of the payment that will be used to pay the invoice.
due_by
The date that the payor is expected to pay the invoice by.
fee_mode
The fee mode that will be used on that transaction when a payment is made through Pay Theory's hosted checkout. It can be one of the following: MERCHANT_FEE, SERVICE_FEE.
Values
CUSTOM_FEEINTERCHANGEMERCHANT_FEESERVICE_FEE
invoice_amount
The total amount of the invoice.
invoice_date
The initial date for the Invoice.
invoice_description
A brief description of the invoice. This will show up on the hosted checkout page and any email communications about the Invoice.
invoice_id
The Pay Theory unique identifier for the invoice.
invoice_name
The name of the invoice. This will show up on the hosted checkout page and any email communications about the Invoice.
merchant_invoice_number
A custom value that can be used to tie the Pay Theory Invoice to a merchant's internal invoice number.
merchant_uid
The Pay Theory unique identifier for the merchant that the invoice belongs to.
metadata
A JSON object that can be used to store custom data about the invoice.
offline_transactions
A list of offline transactions that have been applied to the invoice. This is used to track payments that are made outside Pay Theory toward an Invoice.
payor
The payor object for the payor that the invoice belongs to. More information on the payor object can be found here.
reference
A custom value that will be passed on to the transaction when a payment is made through Pay Theory's hosted checkout.
settings
The settings object to configure settings for the Pay Theory hosted checkout page.
status
The status of the invoice. It can be one of the following: NOT_PAID, PAID, PARTIALLY_PAID For the time being this will not be used as we do not yet support partial payments for Invoices.
Values
NOT_PAIDPARTIALLY_PAIDPAID
total_paid_amount
The total amount that has been paid toward the invoice.