Skip to content

Elevate Payment and Refund API (1.37)

Payment Management

Provides read & write access to payment entities.

Definitions

  • PaymentProvider - a representation of a system that Elevate will interoperate with to collect payments, e.g. Go Cardless
  • SitePaymentMandate - a token from the payment provider that gives authority to take a direct debit from a bank account
  • InvoicePayment - a single payment for an invoice that has happened externally or passed to a payment provider to collect funds
  • AdhocInvoicePayment - a single payment for an adhoc invoice that has happened externally or passed to a payment provider to collect funds
  • Refund - the funds returned to the customer that have previously been collected
  • CustomerPayments - a single payment to an invoice or customer outstanding balance
  • CustomerOutstandingBalance - the amount a customer is in debt (if negative) or has in credit (if positive)
  • CustomerCreditStatus - returns a customer balance versus their credit threshold
  • PaymentProviderPaymentLink - An external hyperlink that allows a customer to pay for an invoice or any amount towards the customer balance
Languages
Servers
https://rest.elevatebilling.com/v1

payment-providers

A representation of a system that Elevate will interoperate with to collect payments, e.g. Go Cardless or Finastra

Operations

invoice-payments

An event related to a normal invoice payment (For example a manual payment, a successful submission to a third party payment provider, or an update received back)

Operations

adhoc-invoice-payments

An event related to an adhoc invoice payment (For example a manual payment, a successful submission to a third party payment provider, or a status update received back)

Operations

refunds

Refunds represent the funds returned to the customer that have previously been collected. If the payment method is left blank or the invoice is auto collected, then same payment method of the last successful payment will be used

Operations

Get a list of refunds

Request

Security
bearerAuth
Query
customerIdinteger(int64)(IdParam)>= 1

Customer identifier

Example: customerId=1
invoiceIdinteger(int64)(IdParam)>= 1

Invoice identifier

Example: invoiceId=1
billRunTypestring(BillRunType)

Bill Run Type

Enum"NORMAL""ADHOC"
pageinteger(int32)(PageParam)>= 1required

Page of results to show

Example: page=1
pageSizeinteger(int32)(ResultsPerPageParam)[ 1 .. 1000 ]required

Results to return per page

Example: pageSize=100
sortstring(SortParam)

Comma-delimited list of the fields to sort by - defaults to ascending order, suffix :desc to change

Example: sort=id,name | name:desc
fieldsstring(FieldsParam)

Comma-delimited list of the field(s) to return if only a subset is required

Example: fields=id,name
curl -i -X GET \
  'https://rest.elevatebilling.com/v1/refunds?customerId=1&invoiceId=1&billRunType=NORMAL&page=1&pageSize=100&sort=id%2Cname+%7C+name%3Adesc&fields=id%2Cname' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Bodyapplication/jsonArray [
idinteger(int64)read-only

Refund identifier

Example: 1
invoiceIdinteger(int64)

Invoice identifier

Example: 1
customerIdinteger(int64)read-only

Customer identifier

Example: 1
billRunTypestring(BillRunType)

Bill run type

Enum"NORMAL""ADHOC"
thirdPartyRefundStatusstring(ThirdPartyRefundStatus)read-only

Third party refund status

Enum"CREATED""PENDING_SUBMISSION""SUBMITTED""PAID""CANCELLED""BOUNCED""FUNDS_RETURNED""MANUALLY_REFUNDED""REFUND_SETTLED"
descriptionstring[ 0 .. 255 ] characters[\w\p{L}\s%£@&#=':;`’,|!_—–\(\)\\/\-\+\.\?\*\...

Refund description

errorInfostring[ 0 .. 255 ] characters[\w\p{L}\s%£@&#=':;`’,|!_—–\(\)\\/\-\+\.\?\*\...read-only

Error information from third party payment provider

paymentMethodstring(PaymentMethod)

Payment method

Enum"CHEQUE""DIRECT_DEBIT""CANCELLED_DD""CANCELLED_CARD""CREDIT_CARD""PAYPAL""BACS""POST_OFFICE_PAYMENT_CARD""EZYPAY""GO_CARDLESS"
amountInMajorCurrencynumber[ 0.01 .. 100000 ]

Amount to refund in major currency (e.g pounds/dollars/euros)

Example: 10.5
]
Response
application/json
[ { "id": 1, "invoiceId": 1, "customerId": 1, "billRunType": "NORMAL", "thirdPartyRefundStatus": "CREATED", "description": "string", "errorInfo": "string", "paymentMethod": "CHEQUE", "amountInMajorCurrency": 10.5 } ]

Trigger a refund for an invoice or an adhoc invoice payment

Request

Security
bearerAuth
Bodyapplication/jsonrequired

Create a refund for an invoice

invoiceIdinteger(int64)

Invoice identifier

Example: 1
billRunTypestring(BillRunType)

Bill run type

Enum"NORMAL""ADHOC"
descriptionstring[ 0 .. 255 ] characters[\w\p{L}\s%£@&#=':;`’,|!_—–\(\)\\/\-\+\.\?\*\...

Refund description

paymentMethodstring(PaymentMethod)

Payment method

Enum"CHEQUE""DIRECT_DEBIT""CANCELLED_DD""CANCELLED_CARD""CREDIT_CARD""PAYPAL""BACS""POST_OFFICE_PAYMENT_CARD""EZYPAY""GO_CARDLESS"
amountInMajorCurrencynumber[ 0.01 .. 100000 ]

Amount to refund in major currency (e.g pounds/dollars/euros)

Example: 10.5
curl -i -X POST \
  https://rest.elevatebilling.com/v1/refunds \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "invoiceId": 1,
    "billRunType": "NORMAL",
    "description": "string",
    "paymentMethod": "CHEQUE",
    "amountInMajorCurrency": 10.5
  }'

Responses

OK

Bodyapplication/json
idinteger(int64)read-only

Refund identifier

Example: 1
invoiceIdinteger(int64)

Invoice identifier

Example: 1
customerIdinteger(int64)read-only

Customer identifier

Example: 1
billRunTypestring(BillRunType)

Bill run type

Enum"NORMAL""ADHOC"
thirdPartyRefundStatusstring(ThirdPartyRefundStatus)read-only

Third party refund status

Enum"CREATED""PENDING_SUBMISSION""SUBMITTED""PAID""CANCELLED""BOUNCED""FUNDS_RETURNED""MANUALLY_REFUNDED""REFUND_SETTLED"
descriptionstring[ 0 .. 255 ] characters[\w\p{L}\s%£@&#=':;`’,|!_—–\(\)\\/\-\+\.\?\*\...

Refund description

errorInfostring[ 0 .. 255 ] characters[\w\p{L}\s%£@&#=':;`’,|!_—–\(\)\\/\-\+\.\?\*\...read-only

Error information from third party payment provider

paymentMethodstring(PaymentMethod)

Payment method

Enum"CHEQUE""DIRECT_DEBIT""CANCELLED_DD""CANCELLED_CARD""CREDIT_CARD""PAYPAL""BACS""POST_OFFICE_PAYMENT_CARD""EZYPAY""GO_CARDLESS"
amountInMajorCurrencynumber[ 0.01 .. 100000 ]

Amount to refund in major currency (e.g pounds/dollars/euros)

Example: 10.5
Response
application/json
{ "id": 1, "invoiceId": 1, "customerId": 1, "billRunType": "NORMAL", "thirdPartyRefundStatus": "CREATED", "description": "string", "errorInfo": "string", "paymentMethod": "CHEQUE", "amountInMajorCurrency": 10.5 }

site-payment-mandates

A token from the payment provider that gives authority to take a direct debit from a bank account

Operations

payment-provider-mandates

Mandate details from the payment provider

Operations

customer-payments

A payment against a customer. The amount will be used to pay off any unpaid invoices starting from the oldest first. Overpayments will be added to the customer-balance

Operations

customer-balances

The customer's outstanding balance. Negative means a debt, Positive means they have credit

Operations

customer-credit-status

The customer's credit status - returns current balance versus their credit threshold

Operations

payment-provider-reprocess

Synchronise Elevate payment statuses by reprocessing payment provider events

Operations

invoice-payment-reprocess

Reprocess a normal or adhoc invoice payment

Operations

invoice-payment-cancel

Cancel a pending payment collection

Operations

instant-bank-payment-for-mandate

An instant first payment—typically made via Instant Bank Payment—processed as part of the mandate creation flow. Currently supported only when using the GoCardless payment provider

Operations