Invoice - DRAFT API

Integrate to PayEx Billing Invoice API 

Changelog

VersionDateDescriptionCreated by
1.02025-05-20

Created document

Anders Göthberg
1.1 API in productionAnders Göthberg

Introduction

Link to the general step-by-step implementations guide that guides you through setting up a REST API integration towards PayEx Ledger Invoice Service can be found here 

Billing Invoice API presents presents at the lowest level all incoming charges that generated an invoice regardless of presentation in PDF. This can be used for presentation on the company's various applications such as "my pages" or customer service users in the company's own CRM.

Invoice API

Route description

Each resource in the API corresponds to its own route. All routes are structured according to a specific standard, explained below

The below route is an example of a route towards resource3Id, to operate on this resource you must also include the ids of its parent resources in the route.
lf-api.payex.com/billing/{subdomain}/v1/{ownerNo}/resource1/{resource1Id}/resource2/{resource2Id}/resource3/{resource3Id}

Route segmentDescription
subdomainIn this part of the API it will be "billing"
ownerNoThe ledger identifier/number at PayEx
resource1IdIdentifier of resource1 (customers)
resource2Ididentifier of resource2, subresource to resource1 (recurring products or subscriptions)
resource3Ididentifier of resource3, subresource to resource2 (recurring products)

Routes that occurs in examples of this documentation will use the following identifiers

ResourceIdentifier
ownerNoThe ledger identifier/number at PayEx
customerNoCustomer number
subscriptionNoSubscription number (identifier for subscription)
recurring-productsRecurring products on customer or subscription level

Swaggerfil!!!

Problem types

Note, each problem typecode is preceded by "billing/customer/service" in this API, e.g. the error "validation" in the table below will appear as typecode "billing/customer/problems/validation".

Problem type (code)Http statusDescription
validation400occurs if any of the inputvalidation fails, it is described in the problem which parameter that failed the validation
customer-not-found404Customer not found in PayEx Billing
subscription-not-found404Subscription not found on selected customer
Created by Anders Göthberg on 2026/05/13 09:54